Prevent Traceur BootReceiver from starting Traceur on work profile
Utilizes the systemUserOnly property to ensure that only the primary
user on a phone will boot Traceur on receipt of a
BOOT_COMPLETED intent.
Bug: 136500409
Test: Booted phone with and without property set. Saw that two instances
of Traceur were running without, and only one instance with.
Change-Id: Ife5eea2296fe9bd79731f4e831de792b962be33b
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 07000cc..0453ee5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -16,6 +16,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
package="com.android.traceur"
android:versionCode="2"
android:versionName="1.0">
@@ -80,7 +81,9 @@
android:excludeFromRecents="true"
android:exported="false"/>
- <receiver android:name=".Receiver" android:permission="android.permission.DUMP">
+ <receiver android:name=".Receiver"
+ android:permission="android.permission.DUMP"
+ androidprv:systemUserOnly="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>