Add app ops for wake locks.

Currently only supports auditing, not disabling.

Change-Id: Ie85f02c29b490d96e073f54d59e165d48c7c00c9
This commit is contained in:
Dianne Hackborn
2013-05-17 11:27:57 -07:00
parent ea0735ff12
commit 713df150b9
8 changed files with 79 additions and 33 deletions

View File

@@ -286,7 +286,8 @@ class ServerThread {
// only initialize the power service after we have started the
// lights service, content providers and the battery service.
power.init(context, lights, ActivityManagerService.self(), battery,
BatteryStatsService.getService(), display);
BatteryStatsService.getService(),
ActivityManagerService.self().getAppOpsService(), display);
Slog.i(TAG, "Alarm Manager");
alarm = new AlarmManagerService(context);