Get rid of security exception spam during boot.

Change-Id: If7a516e463722280bf597f7dd601e7a0f6e379c8
This commit is contained in:
Dianne Hackborn
2014-07-09 16:39:14 -07:00
parent 051a3204d4
commit ddef7e776b

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);
}