I'm searching the alternative of PowerManager.FULL_WAKE_LOCK for days but I cannot find it. Google recommends WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON but this does not wake up device from sleep.
I also checked souces of AOSP, and found some source still uses FULL_WAKE_LOCK. I think 'deprecated' means 'Remove in future and give you an alternative way and grace time for fix', But there seem to be no alternative way of FULL_WAKE_LOCK(Purpose for waking up device from sleep) Do I have no choice but using FULL_WAKE_LOCK for waking up device? [Sources below still use FULL_WAKE_LOCK] Connectivity.java https://android.googlesource.com/platform/development/+/master/apps/Development/src/com/android/development/Connectivity.java PhoneGlobals.java https://android.googlesource.com/platform/packages/services/Telephony/+/1e99b43/src/com/android/phone/PhoneGlobals.java BluetoothOppObexServerSession.java https://android.googlesource.com/platform/packages/apps/Bluetooth/+/e3a869d6117800bb5525eb34c47ea3d9a7a0bcbd/src/com/android/bluetooth/opp/BluetoothOppObexServerSession.java ShutdownThread.java https://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/services/java/com/android/server/power/ShutdownThread.java PhotoCaptureActivity.java https://android.googlesource.com/platform/cts/+/34c833a/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/PhotoCaptureActivity.java UiModeManagerService.java https://github.com/cozybit/aosp-frameworks-base/blob/master/services/java/com/android/server/UiModeManagerService.java -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7f391951-bd71-4c7f-ae5e-da2fe068fa45%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

