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

Unverified Commit 55a08f18 authored by Kevin F. Haggerty's avatar Kevin F. Haggerty
Browse files

Merge tag 'android-security-10.0.0_r48' into staging/lineage-17.1_merge-android-security-10.0.0_r48

Android security 10.0.0 release 48

* tag 'refs/tags/android-security-10.0.0_r48':
  Fix security vulnerability of TelecomManager#getPhoneAccountsForPackage
  Fix call redirection service issues.
  Revert "Migrate system dialer config to RoleManager"
  Revert "Migrate system dialer config to RoleManager"
  Fix BT call state issue

Change-Id: I699825e8e6270b0d1284f2e9730ad288388c64a0
parents 9678213b dde54679
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -262,6 +262,23 @@ public class TelecomServiceImpl {

        @Override
        public List<PhoneAccountHandle> getPhoneAccountsForPackage(String packageName) {
            //TODO: Deprecate this in S
            try {
                enforceCallingPackage(packageName);
            } catch (SecurityException se1) {
                EventLog.writeEvent(0x534e4554, "153995334", Binder.getCallingUid(),
                        "getPhoneAccountsForPackage: invalid calling package");
                throw se1;
            }

            try {
                enforcePermission(READ_PRIVILEGED_PHONE_STATE);
            } catch (SecurityException se2) {
                EventLog.writeEvent(0x534e4554, "153995334", Binder.getCallingUid(),
                        "getPhoneAccountsForPackage: no permission");
                throw se2;
            }

            synchronized (mLock) {
                final UserHandle callingUserHandle = Binder.getCallingUserHandle();
                long token = Binder.clearCallingIdentity();