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

Commit 357c9389 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Clear binder identity before checking with compat service" into rvc-dev am: e3392189

Change-Id: I0e4f526f5e217c182273a47ba78ef80970ff3043
parents b1453492 e3392189
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -11814,12 +11814,15 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
    }
    private boolean isSetSecureSettingLocationModeCheckEnabled(String packageName, int userId) {
        long ident = mInjector.binderClearCallingIdentity();
        try {
            return mIPlatformCompat.isChangeEnabledByPackageName(USE_SET_LOCATION_ENABLED,
                    packageName, userId);
        } catch (RemoteException e) {
            Log.e(LOG_TAG, "Failed to get a response from PLATFORM_COMPAT_SERVICE", e);
            return getTargetSdk(packageName, userId) > Build.VERSION_CODES.Q;
        } finally {
            mInjector.binderRestoreCallingIdentity(ident);
        }
    }