Merge "Catch Illegal argument exception" into sc-dev am: b04401df4e am: 79d83e88d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15174877 Change-Id: Ic51bc2f5ffe71ca4992395dd1df6e01108a28f25
This commit is contained in:
@@ -441,7 +441,14 @@ public final class SensorPrivacyService extends SystemService {
|
|||||||
inputMethodPackageName = ComponentName.unflattenFromString(
|
inputMethodPackageName = ComponentName.unflattenFromString(
|
||||||
inputMethodComponent).getPackageName();
|
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) {
|
if (sensor == MICROPHONE) {
|
||||||
VoiceInteractionManagerInternal voiceInteractionManagerInternal =
|
VoiceInteractionManagerInternal voiceInteractionManagerInternal =
|
||||||
|
|||||||
Reference in New Issue
Block a user