Use new PowerManager API.
Change-Id: I2901fd02cd5b2307e3a4d2f35b03ef7060712908
This commit is contained in:
@@ -437,7 +437,7 @@ public class MonkeySourceNetwork implements MonkeyEventSource {
|
||||
IPowerManager pm =
|
||||
IPowerManager.Stub.asInterface(ServiceManager.getService(Context.POWER_SERVICE));
|
||||
try {
|
||||
pm.userActivityWithForce(SystemClock.uptimeMillis(), true, true);
|
||||
pm.wakeUp(SystemClock.uptimeMillis());
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Got remote exception", e);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user