Merge "Don't crash system server" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fedb3f6192
@@ -494,7 +494,7 @@ abstract public class ManagedServices {
|
||||
return info;
|
||||
}
|
||||
throw new SecurityException("Disallowed call from unknown " + getCaption() + ": "
|
||||
+ service);
|
||||
+ service + " " + service.getClass());
|
||||
}
|
||||
|
||||
public void unregisterService(IInterface service, int userid) {
|
||||
|
||||
@@ -737,6 +737,9 @@ public class ZenModeHelper {
|
||||
mConfig = config;
|
||||
mHandler.postApplyConfig(config, reason, setRingerMode);
|
||||
return true;
|
||||
} catch (SecurityException e) {
|
||||
Log.wtf(TAG, "Invalid rule in config", e);
|
||||
return false;
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(identity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user