From 1eb7d7b7a8146386950145b7ecc79926860ccf0a Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 3 Nov 2018 12:04:27 +0800 Subject: [PATCH] Add FLAG_INCLUDE_STOPPED_PACKAGES for broadcast --- native/jni/su/connect.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/jni/su/connect.c b/native/jni/su/connect.c index fb89c7db4..ff08a3e91 100644 --- a/native/jni/su/connect.c +++ b/native/jni/su/connect.c @@ -75,6 +75,7 @@ void app_log(struct su_context *ctx) { AM_PATH, "broadcast", "-a", "android.intent.action.BOOT_COMPLETED", "-p", DB_STR(ctx->info, SU_MANAGER), + "-f", "0x00000020", "--user", user, "--es", "action", "log", "--ei", "from.uid", fromUid, @@ -104,6 +105,7 @@ void app_notify(struct su_context *ctx) { AM_PATH, "broadcast", "-a", "android.intent.action.BOOT_COMPLETED", "-p", DB_STR(ctx->info, SU_MANAGER), + "-f", "0x00000020", "--user", user, "--es", "action", "notify", "--ei", "from.uid", fromUid, @@ -120,6 +122,7 @@ void app_connect(const char *socket, struct su_info *info) { AM_PATH, "broadcast", "-a", "android.intent.action.BOOT_COMPLETED", "-p", DB_STR(info, SU_MANAGER), + "-f", "0x00000020", "--user", user, "--es", "action", "request", "--es", "socket", (char *) socket,