Merge "Catch Illegal argument exception" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b04401df4e
@@ -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