summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Vilas Chaudhari <quic_ganeshvi@quicinc.com>2023-12-01 15:38:01 +0530
committerGanesh Vilas Chaudhari <quic_ganeshvi@quicinc.com>2023-12-05 05:52:29 +0000
commitbddf3537336b939a78273575aa81350d33a6b120 (patch)
tree9770c7f7155a5cf437b3e5dd565e359018d6dc0b
parent154bca018d0cb2641f4ff6f8ad3454b42bd23b3d (diff)
downloadAlternativeNetworkAccess-bddf3537336b939a78273575aa81350d33a6b120.tar.gz
Make receiver as system user only
- ONSAutoBoot receiver receive LOCKED_BOOT_COMPLETED intent and start the OpportunisticNetworkService. - Avoid receiving LOCKED_BOOT_COMPLETED in guest mode as OpportunisticNetworkService is single user and which will not start new com.android.phone process Bug: 304206882 Change-Id: I03afc2ca3fcb9beac10009412d08f31ac6ab5d33
-rw-r--r--AndroidManifest.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index fb40082..b55a50e 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -32,7 +32,8 @@
<receiver android:name="ONSAutoBoot"
android:exported="true"
- android:directBootAware="true">
+ android:directBootAware="true"
+ androidprv:systemUserOnly="true">
<intent-filter>
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
</intent-filter>
@@ -46,7 +47,8 @@
<receiver android:name=".ONSProfileResultReceiver"
android:enabled="true"
- android:exported="true">
+ android:exported="true"
+ androidprv:systemUserOnly="true">
<intent-filter>
<action android:name="android.telephony.action.MULTI_SIM_CONFIG_CHANGED"/>
</intent-filter>