Mark VvmSimStateTracker as system user only
The Phone object visual voicemail depends on is only available to the
primary(system) user. This CL prevent the receiver to be invoked on
secondary users.
Bug: 34022180
Fixes: 34022180
Test: Manually remove and insert the SIM on a device with secondary
users.
Change-Id: I825d49b8ffac8bc71b5c92381ed73dd206574ef5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 64dc426..76a7b61 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -692,8 +692,9 @@
android:exported="false" />
<receiver
- android:name="com.android.phone.vvm.VvmSimStateTracker"
- android:exported="false">
+ android:name="com.android.phone.vvm.VvmSimStateTracker"
+ android:exported="false"
+ androidprv:systemUserOnly="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.telephony.action.CARRIER_CONFIG_CHANGED"/>