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

Commit 835e878a authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Catch Illegal argument exception" into sc-dev am: b04401df am: 06402852"

parents 88b61f32 89890ef7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -441,7 +441,14 @@ public final class SensorPrivacyService extends SystemService {
                inputMethodPackageName = ComponentName.unflattenFromString(
                        inputMethodComponent).getPackageName();
            }
            int capability = mActivityManagerInternal.getUidCapability(uid);

            int capability;
            try {
                capability = mActivityManagerInternal.getUidCapability(uid);
            } catch (IllegalArgumentException e) {
                Log.w(TAG, e);
                return;
            }

            if (sensor == MICROPHONE) {
                VoiceInteractionManagerInternal voiceInteractionManagerInternal =