Skip to content

Instantly share code, notes, and snippets.

@koush
Created November 16, 2012 02:29
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save koush/4083403 to your computer and use it in GitHub Desktop.
diff --git a/activity.c b/activity.c
index 5124477..ecfd95e 100644
--- a/activity.c
+++ b/activity.c
@@ -91,7 +91,8 @@ int send_intent(struct su_context *ctx, allow_t allow, const char *action)
snprintf(command, sizeof(command),
"exec /system/bin/am broadcast -a %s --es socket '%s' "
"--ei caller_uid %d --ei allow %d "
- "--ei version_code %d",
+ "--ei version_code %d "
+ "--user 0",
action, socket_path, uid, allow, VERSION_CODE);
char *args[] = { "sh", "-c", command, NULL, };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment