How might work flag, that do not specified in Developer Android Docs?

66 Views Asked by At

I reverse engineer one application that turn on / off screen on shake. It uses WakeLock by PowerManager

this.mWakelock = this.mPowermanager.newWakeLock(268435466, "ShakeUnlock"); //LockService.java activity

Flag that is written here, 268435466. I tried to understand what does it stand for. But this value does not specified in Google Dev Docs. None of the constants have this value.

But it works properly. How so?

Full code of Android Studio project: Google Drive

enter image description here

1

There are 1 best solutions below

0
Công Hải On BEST ANSWER

Actually it is PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.SCREEN_BRIGHT_WAKE_LOCK value of it is 0x1000000a = 268435466