summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2014-07-24 16:00:46 +0200
committerAdrian Roos <roosa@google.com>2014-07-24 21:44:02 +0200
commitc5f95cea2639b698594a85acbde6a5519941d7b1 (patch)
treefa123927e9bbc021bf1ac0b39733d826dd675546 /packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml
parent866cf65cc3c53f67836c9157d5c661adfdbd25e1 (diff)
downloadframeworks_base-c5f95cea2639b698594a85acbde6a5519941d7b1.zip
frameworks_base-c5f95cea2639b698594a85acbde6a5519941d7b1.tar.gz
frameworks_base-c5f95cea2639b698594a85acbde6a5519941d7b1.tar.bz2
Restart trust agents when updated or when they are dead
ActivityManager restarts the trust agent service for us when it gets killed automatically. This does not apply when its process crashes too often or when its package gets updated however. To catch the update case, the trust agent connection is removed as soon as the package disappears, and then readded when the new package appears. To catch the repeated crashing case, the connection is reset if it hasn't successfully connected for several minutes. Also adds a button to SampleTrustAgent to simulate a crash. Bug: 16137258 Change-Id: I1b18fc7a3025e23e25ca1623b6af658d5430a94b
Diffstat (limited to 'packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml')
-rw-r--r--packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml b/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml
index f3125f1..a7c9105 100644
--- a/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml
+++ b/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml
@@ -38,6 +38,10 @@
android:label="@string/app_name"
android:exported="true"
android:launchMode="singleInstance" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
</activity>
</application>
</manifest>