Add FLAG_INCLUDE_STOPPED_PACKAGES for broadcast

This commit is contained in:
vvb2060 2018-11-03 12:04:27 +08:00 committed by John Wu
parent 11c33d4447
commit 1eb7d7b7a8

View File

@ -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,