mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Use noHistory attribute for SuRequestActivity
This commit is contained in:
parent
c495b3d183
commit
569e9ad937
@ -26,10 +26,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".ui.surequest.SuRequestActivity"
|
android:name=".ui.surequest.SuRequestActivity"
|
||||||
android:directBootAware="true"
|
android:directBootAware="true"
|
||||||
android:excludeFromRecents="true"
|
android:exported="false">
|
||||||
android:exported="false"
|
|
||||||
android:taskAffinity=""
|
|
||||||
tools:ignore="AppLinkUrlError">
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
@ -38,7 +35,6 @@
|
|||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".core.Receiver"
|
android:name=".core.Receiver"
|
||||||
android:directBootAware="true"
|
|
||||||
android:exported="false">
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.LOCALE_CHANGED" />
|
<action android:name="android.intent.action.LOCALE_CHANGED" />
|
||||||
|
@ -94,7 +94,6 @@ fun genStubManifest(srcDir: File, outDir: File): String {
|
|||||||
"""
|
"""
|
||||||
|<receiver
|
|<receiver
|
||||||
| android:name="%s"
|
| android:name="%s"
|
||||||
| android:directBootAware="true"
|
|
||||||
| android:exported="false">
|
| android:exported="false">
|
||||||
| <intent-filter>
|
| <intent-filter>
|
||||||
| <action android:name="android.intent.action.LOCALE_CHANGED" />
|
| <action android:name="android.intent.action.LOCALE_CHANGED" />
|
||||||
@ -127,10 +126,7 @@ fun genStubManifest(srcDir: File, outDir: File): String {
|
|||||||
|<activity
|
|<activity
|
||||||
| android:name="%s"
|
| android:name="%s"
|
||||||
| android:directBootAware="true"
|
| android:directBootAware="true"
|
||||||
| android:excludeFromRecents="true"
|
| android:exported="false">
|
||||||
| android:exported="false"
|
|
||||||
| android:taskAffinity=""
|
|
||||||
| tools:ignore="AppLinkUrlError">
|
|
||||||
| <intent-filter>
|
| <intent-filter>
|
||||||
| <action android:name="android.intent.action.VIEW"/>
|
| <action android:name="android.intent.action.VIEW"/>
|
||||||
| <category android:name="android.intent.category.DEFAULT"/>
|
| <category android:name="android.intent.category.DEFAULT"/>
|
||||||
|
@ -17,9 +17,10 @@ exe, "/system/bin", "com.android.commands.content.Content", \
|
|||||||
#define START_ACTIVITY \
|
#define START_ACTIVITY \
|
||||||
exe, "/system/bin", "com.android.commands.am.Am", \
|
exe, "/system/bin", "com.android.commands.am.Am", \
|
||||||
"start", "-p", target, "--user", user, "-a", "android.intent.action.VIEW", \
|
"start", "-p", target, "--user", user, "-a", "android.intent.action.VIEW", \
|
||||||
"-f", "0x18000020", "--es", "action", action
|
"-f", "0x58000020", "--es", "action", action
|
||||||
|
|
||||||
// 0x18000020 = FLAG_ACTIVITY_NEW_TASK|FLAG_ACTIVITY_MULTIPLE_TASK|FLAG_INCLUDE_STOPPED_PACKAGES
|
// 0x58000020 = FLAG_ACTIVITY_NEW_TASK|FLAG_ACTIVITY_MULTIPLE_TASK|
|
||||||
|
// FLAG_ACTIVITY_NO_HISTORY|FLAG_INCLUDE_STOPPED_PACKAGES
|
||||||
|
|
||||||
#define get_cmd(to) \
|
#define get_cmd(to) \
|
||||||
((to).command.empty() ? \
|
((to).command.empty() ? \
|
||||||
|
Loading…
Reference in New Issue
Block a user