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

Commit 06402852 authored by Evan Severson's avatar Evan Severson Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15174877

Change-Id: I57b9e2b28e65305a632194bb7da960dd57f239b8
parents 0ca4e857 b04401df
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 =