Loading src/com/android/server/telecom/TelecomServiceImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -3600,10 +3600,11 @@ public class TelecomServiceImpl { // Note: Important to clear the calling identity since the code below calls into RoleManager // to check who holds the dialer role, and that requires MANAGE_ROLE_HOLDERS permission // which is a system permission. int callingUserId = Binder.getCallingUserHandle().getIdentifier(); long token = Binder.clearCallingIdentity(); try { return mDefaultDialerCache.isDefaultOrSystemDialer( callingPackage, Binder.getCallingUserHandle().getIdentifier()); callingPackage, callingUserId); } finally { Binder.restoreCallingIdentity(token); } Loading Loading
src/com/android/server/telecom/TelecomServiceImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -3600,10 +3600,11 @@ public class TelecomServiceImpl { // Note: Important to clear the calling identity since the code below calls into RoleManager // to check who holds the dialer role, and that requires MANAGE_ROLE_HOLDERS permission // which is a system permission. int callingUserId = Binder.getCallingUserHandle().getIdentifier(); long token = Binder.clearCallingIdentity(); try { return mDefaultDialerCache.isDefaultOrSystemDialer( callingPackage, Binder.getCallingUserHandle().getIdentifier()); callingPackage, callingUserId); } finally { Binder.restoreCallingIdentity(token); } Loading