Loading services/core/java/com/android/server/am/ActivityManagerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -14695,10 +14695,11 @@ public class ActivityManagerService extends IActivityManager.Stub if (!Build.IS_DEBUGGABLE && callingUid != ROOT_UID && callingUid != SHELL_UID && callingUid != SYSTEM_UID) { // If it's not debug build and not called from root/shell/system uid, reject it. String msg = "Permission Denial: instrumentation test " final String msg = "Permission Denial: instrumentation test " + className + " from pid=" + callingPid + ", uid=" + callingUid + " not allowed because target package " + ii.targetPackage + " is not debuggable."; + ", pkgName=" + mInternal.getPackageNameByPid(callingPid) + " not allowed because it's not started from SHELL"; Slog.wtfQuiet(TAG, msg); reportStartInstrumentationFailureLocked(watcher, className, msg); throw new SecurityException(msg); } Loading
services/core/java/com/android/server/am/ActivityManagerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -14695,10 +14695,11 @@ public class ActivityManagerService extends IActivityManager.Stub if (!Build.IS_DEBUGGABLE && callingUid != ROOT_UID && callingUid != SHELL_UID && callingUid != SYSTEM_UID) { // If it's not debug build and not called from root/shell/system uid, reject it. String msg = "Permission Denial: instrumentation test " final String msg = "Permission Denial: instrumentation test " + className + " from pid=" + callingPid + ", uid=" + callingUid + " not allowed because target package " + ii.targetPackage + " is not debuggable."; + ", pkgName=" + mInternal.getPackageNameByPid(callingPid) + " not allowed because it's not started from SHELL"; Slog.wtfQuiet(TAG, msg); reportStartInstrumentationFailureLocked(watcher, className, msg); throw new SecurityException(msg); }