-
Notifications
You must be signed in to change notification settings - Fork 11
PowerManagerHelper
Lock the screen. You need to modify main activity in AndroidManifest.xml to com.picovr.androidhelper.MainActivity
.
Unlock the screen.
Request a WakeLock. This function will prevent the device to sleep until releaseWakeLock()
Called.
PowerManager.WakeLock | Android Developers
Request a WakeLock, unlock automatically after timeout.
parameter:
timeout: the allowed maximal time for devices to stay on.
Deactivate WakeLock.
Set system sleep timeout. The sleep timeout must longer than screen off timeout.
parameter:
time: timeout duration in seconds."-1" for never sleep mode.
Sets Screen Off Timeout.
parameter:
time: timeout duration in seconds. "65535" for screen never off.
You must set sleep mode to never before setting screen never off.
Shutdown the device.
Reboot the device.
- getPUIVersion
- getDeviceType
- getSN (*)
- silentInstall (*)
- silentUninstall (*)
- killApp
- launchBrowser
- launchBrowserWithLinkInFile
- goToApp
- startVRShell
- getAppsString
- registerHomeReceiver
- unregisterHomeReceiver
- openRecenterApp
- installApp
- setSystemProp
- getSystemProp