0

I read PowerManager API Doc which said "In addition, you can add two more flags, which affect behavior of the screen only. These flags have no effect when combined with a PARTIAL_WAKE_LOCK."

So ON_AFTER_RELEASE and ACQUIRE_CAUSES_WAKEUP not work with PARTIAL_WAKE_LOCK.

But why in google alarm module here , they used them together:

sCpuWakeLock = pm.newWakeLock(
                PowerManager.PARTIAL_WAKE_LOCK |
                PowerManager.ACQUIRE_CAUSES_WAKEUP |
                PowerManager.ON_AFTER_RELEASE, Log.LOGTAG);
DONG
  • 59
  • 1
  • 10
  • The code you link to is *at least* 7 years old. Don't use it as a reference. Trust the docs. – Tim Jul 18 '16 at 10:06
  • @TimCastelijns Yeh. But the problem is when I implemented google alarm module in my own code .... it works :( So a little lost here – DONG Jul 18 '16 at 10:11

0 Answers0