Skip to content

Commit

Permalink
Quote service arguments in starter command
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Feb 10, 2022
1 parent 6bb5199 commit be92b1f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public class SuiUserServiceManager extends UserServiceManager {

public static final String USER_SERVICE_CMD_DEBUG;

private static final String USER_SERVICE_CMD_FORMAT = "(CLASSPATH=%s %s%s /system/bin " +
"--nice-name=%s %s " +
"--token=%s --package=%s --class=%s --uid=%d%s)&";
private static final String USER_SERVICE_CMD_FORMAT = "(CLASSPATH='%s' %s%s /system/bin " +
"--nice-name='%s' %s " +
"--token='%s' --package='%s' --class='%s' --uid=%d%s)&";

static {
int sdk = Build.VERSION.SDK_INT;
Expand Down

0 comments on commit be92b1f

Please sign in to comment.