mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Unset FLAG_ACTIVITY_NO_HISTORY for SuRequestActivity
This fixes device credential confirm activity on OnePlus devices because SuRequestActivity is accidentally finished before a valid response is delivered to it.
This commit is contained in:
parent
9a33a4dfe2
commit
bd7f9c9e46
@ -16,11 +16,10 @@ using namespace std;
|
|||||||
#define START_ACTIVITY \
|
#define START_ACTIVITY \
|
||||||
"/system/bin/app_process", "/system/bin", "com.android.commands.am.Am", \
|
"/system/bin/app_process", "/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", "0x58800020", "--es", "action", action
|
"-f", "0x18800020", "--es", "action", action
|
||||||
|
|
||||||
// 0x58800020 = FLAG_ACTIVITY_NEW_TASK|FLAG_ACTIVITY_MULTIPLE_TASK|
|
// 0x18800020 = FLAG_ACTIVITY_NEW_TASK|FLAG_ACTIVITY_MULTIPLE_TASK|
|
||||||
// FLAG_ACTIVITY_NO_HISTORY|FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS|
|
// FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS|FLAG_INCLUDE_STOPPED_PACKAGES
|
||||||
// FLAG_INCLUDE_STOPPED_PACKAGES
|
|
||||||
|
|
||||||
#define get_cmd(to) \
|
#define get_cmd(to) \
|
||||||
((to).command.empty() ? \
|
((to).command.empty() ? \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user