Loading telephony/common/com/android/internal/telephony/TelephonyPermissions.java +9 −0 Original line number Diff line number Diff line Loading @@ -923,4 +923,13 @@ public final class TelephonyPermissions { return UserHandle.isSameApp(uid, Process.ROOT_UID) || UserHandle.isSameApp(uid, Process.SHELL_UID); } /** * @return true if the specified {@code uid} is for a SHELL process, no matter if runs * as system user or not. */ public static boolean isShell(int uid) { return UserHandle.isSameApp(uid, Process.SHELL_UID); } } Loading
telephony/common/com/android/internal/telephony/TelephonyPermissions.java +9 −0 Original line number Diff line number Diff line Loading @@ -923,4 +923,13 @@ public final class TelephonyPermissions { return UserHandle.isSameApp(uid, Process.ROOT_UID) || UserHandle.isSameApp(uid, Process.SHELL_UID); } /** * @return true if the specified {@code uid} is for a SHELL process, no matter if runs * as system user or not. */ public static boolean isShell(int uid) { return UserHandle.isSameApp(uid, Process.SHELL_UID); } }