From dcc1fd3ee448d3e3660eaf695c0c290503fb872f Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Thu, 2 Sep 2021 17:15:25 +0800 Subject: [PATCH] Use PACKAGE_FULLY_REMOVED for magiskhide Remove from magiskhide only if pkg fully deleted --- app/src/main/AndroidManifest.xml | 1 + app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt | 2 ++ stub/src/main/AndroidManifest.xml | 1 + 3 files changed, 4 insertions(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0b4a00d9b..8eb5b28e0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -54,6 +54,7 @@ + diff --git a/app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt b/app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt index 35efc2d7f..bfc44accb 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt @@ -40,6 +40,8 @@ open class Receiver : BaseReceiver() { } Intent.ACTION_UID_REMOVED -> { getUid(intent)?.let { rmPolicy(it) } + } + Intent.ACTION_PACKAGE_FULLY_REMOVED -> { getPkg(intent)?.let { Shell.su("magiskhide rm $it").submit() } } Intent.ACTION_LOCALE_CHANGED -> Shortcuts.setupDynamic(context) diff --git a/stub/src/main/AndroidManifest.xml b/stub/src/main/AndroidManifest.xml index 4aacc12ec..6a0c9ce31 100644 --- a/stub/src/main/AndroidManifest.xml +++ b/stub/src/main/AndroidManifest.xml @@ -54,6 +54,7 @@ +