Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
dcc1fd3e
Unverified
Commit
dcc1fd3e
authored
Sep 02, 2021
by
vvb2060
Committed by
GitHub
Sep 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PACKAGE_FULLY_REMOVED for magiskhide
Remove from magiskhide only if pkg fully deleted
parent
933f020b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-0
Receiver.kt
app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt
+2
-0
AndroidManifest.xml
stub/src/main/AndroidManifest.xml
+1
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
dcc1fd3e
...
@@ -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>
...
...
app/src/main/java/com/topjohnwu/magisk/core/Receiver.kt
View file @
dcc1fd3e
...
@@ -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
)
...
...
stub/src/main/AndroidManifest.xml
View file @
dcc1fd3e
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment