Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddef7e77 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Get rid of security exception spam during boot.

Change-Id: If7a516e463722280bf597f7dd601e7a0f6e379c8
parent 051a3204
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
        }