Unverified Commit dcc1fd3e authored by vvb2060's avatar vvb2060 Committed by GitHub

Use PACKAGE_FULLY_REMOVED for magiskhide

Remove from magiskhide only if pkg fully deleted
parent 933f020b
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" /> <action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
<data android:scheme="package" /> <data android:scheme="package" />
</intent-filter> </intent-filter>
......
...@@ -40,6 +40,8 @@ open class Receiver : BaseReceiver() { ...@@ -40,6 +40,8 @@ open class Receiver : BaseReceiver() {
} }
Intent.ACTION_UID_REMOVED -> { Intent.ACTION_UID_REMOVED -> {
getUid(intent)?.let { rmPolicy(it) } getUid(intent)?.let { rmPolicy(it) }
}
Intent.ACTION_PACKAGE_FULLY_REMOVED -> {
getPkg(intent)?.let { Shell.su("magiskhide rm $it").submit() } getPkg(intent)?.let { Shell.su("magiskhide rm $it").submit() }
} }
Intent.ACTION_LOCALE_CHANGED -> Shortcuts.setupDynamic(context) Intent.ACTION_LOCALE_CHANGED -> Shortcuts.setupDynamic(context)
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" /> <action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
<data android:scheme="package" /> <data android:scheme="package" />
</intent-filter> </intent-filter>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment