mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-26 03:12:16 +00:00
Use noHistory attribute for SuRequestActivity
This commit is contained in:
@@ -17,9 +17,10 @@ exe, "/system/bin", "com.android.commands.content.Content", \
|
||||
#define START_ACTIVITY \
|
||||
exe, "/system/bin", "com.android.commands.am.Am", \
|
||||
"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) \
|
||||
((to).command.empty() ? \
|
||||
|
Reference in New Issue
Block a user