Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbd8452f authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Change permission check for two Telecom shell commands." into main

parents 6b5198d8 ba57e578
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -2846,9 +2846,7 @@ public class TelecomServiceImpl {
            try {
                Log.startSession("TSI.sTDCRA");
                enforceModifyPermission();
                if (!Build.IS_USERDEBUG) {
                    throw new SecurityException("Test-only API.");
                }
                enforceShellOnly(Binder.getCallingUid(), "Test-only API");
                synchronized (mLock) {
                    long token = Binder.clearCallingIdentity();
                    try {
@@ -2868,9 +2866,7 @@ public class TelecomServiceImpl {
            try {
                Log.startSession("TSI.sTDCSA");
                enforceModifyPermission();
                if (!Build.IS_USERDEBUG) {
                    throw new SecurityException("Test-only API.");
                }
                enforceShellOnly(Binder.getCallingUid(), "Test-only API");
                synchronized (mLock) {
                    long token = Binder.clearCallingIdentity();
                    try {