Loading services/core/java/com/android/server/am/ActivityManagerService.java +0 −7 Original line number Diff line number Diff line Loading @@ -10636,13 +10636,6 @@ public class ActivityManagerService extends IActivityManager.Stub public void onShellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err, String[] args, ShellCallback callback, ResultReceiver resultReceiver) { final int callingUid = Binder.getCallingUid(); if (callingUid != ROOT_UID && callingUid != Process.SHELL_UID) { if (resultReceiver != null) { resultReceiver.send(-1, null); } throw new SecurityException("Shell commands are only callable by root or shell"); } (new ActivityManagerShellCommand(this, false)).exec( this, in, out, err, args, callback, resultReceiver); } Loading Loading
services/core/java/com/android/server/am/ActivityManagerService.java +0 −7 Original line number Diff line number Diff line Loading @@ -10636,13 +10636,6 @@ public class ActivityManagerService extends IActivityManager.Stub public void onShellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err, String[] args, ShellCallback callback, ResultReceiver resultReceiver) { final int callingUid = Binder.getCallingUid(); if (callingUid != ROOT_UID && callingUid != Process.SHELL_UID) { if (resultReceiver != null) { resultReceiver.send(-1, null); } throw new SecurityException("Shell commands are only callable by root or shell"); } (new ActivityManagerShellCommand(this, false)).exec( this, in, out, err, args, callback, resultReceiver); } Loading