Skip to content

Commit bbff072

Browse files
bigrushdogSaintZ13
authored andcommitted
Add a protected broadcast for Masquerade events
Parse extras to get event details. Docs will be available in Masquerade source code Change-Id: I24ca3d11438bb830ce97af8b0e935c0700b394e6
1 parent d0f32f0 commit bbff072

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/res/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@
523523
<protected-broadcast android:name="cyanogenmod.intent.action.LID_STATE_CHANGED" />
524524

525525
<protected-broadcast android:name="projekt.substratum.APP_CRASHED" />
526+
<protected-broadcast android:name="masquerade.substratum.STATUS_CHANGED" />
526527

527528
<!-- ====================================================================== -->
528529
<!-- RUNTIME PERMISSIONS -->

services/core/java/com/android/server/pm/PackageManagerService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4557,6 +4557,7 @@ public boolean isProtectedBroadcast(String actionName) {
45574557
|| actionName.startsWith("com.android.internal.telephony.data-reconnect")
45584558
|| actionName.startsWith("android.net.netmon.launchCaptivePortalApp")
45594559
|| actionName.startsWith("intent_navbar_edit")) {
4560+
|| actionName.startsWith("masquerade.substratum.STATUS_CHANGED")) {
45604561
return true;
45614562
}
45624563
}

0 commit comments

Comments
 (0)