Merge "Get rid of security exception spam during boot."

This commit is contained in:
Dianne Hackborn
2014-07-10 00:42:58 +00:00
committed by Android (Google) Code Review

View File

@@ -2609,6 +2609,10 @@ public final class PowerManagerService extends com.android.server.SystemService
@Override // Binder call
public void powerHint(int hintId, int data) {
if (!mSystemReady) {
// Service not ready yet, so who the heck cares about power hints, bah.
return;
}
mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null);
powerHintInternal(hintId, data);
}