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

Commit b04401df authored by Evan Severson's avatar Evan Severson Committed by Android (Google) Code Review
Browse files

Merge "Catch Illegal argument exception" into sc-dev

parents 4f2967f7 b23f0c30
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 =