Skip to content

Commit 8bf97db

Browse files
committed
Send information required for the result service in the intent
1 parent d86184a commit 8bf97db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activity.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ int send_intent(const struct su_context *ctx,
2424
{
2525
char command[PATH_MAX];
2626

27-
sprintf(command, "/system/bin/am broadcast -a %s --es socket %s --ei version_code %d > /dev/null",
28-
action, socket_path, VERSION_CODE);
27+
sprintf(command, "/system/bin/am broadcast -a '%s' --es socket '%s' --ei caller_uid '%d' --ei allow '%d' --ei version_code '%d' > /dev/null",
28+
action, socket_path, ctx->from.uid, allow, VERSION_CODE);
2929

3030
// before sending the intent, make sure the (uid and euid) and (gid and egid) match,
3131
// otherwise LD_LIBRARY_PATH is wiped in Android 4.0+.

0 commit comments

Comments
 (0)