Revert "Check for the DEVICE_POWER permission in userActivity."

The change broke SetupWizard and probably other apps

This reverts commit 059f8f93e6.
This commit is contained in:
Mike Lockwood
2010-09-28 23:07:26 -04:00
parent 3e94b94f56
commit 4da4827504

View File

@@ -2105,7 +2105,6 @@ class PowerManagerService extends IPowerManager.Stub
}
public void userActivity(long time, boolean noChangeLights) {
mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null);
userActivity(time, -1, noChangeLights, OTHER_EVENT, false);
}
@@ -2129,6 +2128,7 @@ class PowerManagerService extends IPowerManager.Stub
private void userActivity(long time, long timeoutOverride, boolean noChangeLights,
int eventType, boolean force) {
//mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null);
if (((mPokey & POKE_LOCK_IGNORE_CHEEK_EVENTS) != 0)
&& (eventType == CHEEK_EVENT || eventType == TOUCH_EVENT)) {