D dgoss Member Licensed User Longtime User Sep 26, 2015 #1 I am using the following:- Code: Copy Dim r As Reflector r.Target = r.GetActivity r.Target = r.RunMethod("getWindow") r.RunMethod2("addFlags", 6815872, "java.lang.int") along with :- Code: Copy Sub IsScreenOn As Boolean Dim R As Reflector R.Target = R.GetContext R.Target = R.RunMethod2("getSystemService", "power", "java.lang.String") Return R.RunMethod("isScreenOn") End Sub to wake phone up on Android 4.4.4 and it bypasses lock screen (swipe to open, no passwords or other stuff) and goes straight to my app, but with Android 5.0.2 it wakes phone but does not bypass lock screen I still have to swipe to unlock. Any ideas why much appreciated I have learnt so much but still no nothing Click to expand...
I am using the following:- Code: Copy Dim r As Reflector r.Target = r.GetActivity r.Target = r.RunMethod("getWindow") r.RunMethod2("addFlags", 6815872, "java.lang.int") along with :- Code: Copy Sub IsScreenOn As Boolean Dim R As Reflector R.Target = R.GetContext R.Target = R.RunMethod2("getSystemService", "power", "java.lang.String") Return R.RunMethod("isScreenOn") End Sub to wake phone up on Android 4.4.4 and it bypasses lock screen (swipe to open, no passwords or other stuff) and goes straight to my app, but with Android 5.0.2 it wakes phone but does not bypass lock screen I still have to swipe to unlock. Any ideas why much appreciated I have learnt so much but still no nothing Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2015 #2 You can wake the phone with PhoneWakeState. The issue you are describing seems to be related to this bug: https://code.google.com/p/android-developer-preview/issues/detail?id=1902 Upvote 0
You can wake the phone with PhoneWakeState. The issue you are describing seems to be related to this bug: https://code.google.com/p/android-developer-preview/issues/detail?id=1902
D dgoss Member Licensed User Longtime User Sep 28, 2015 #3 Erel said: You can wake the phone with PhoneWakeState. The issue you are describing seems to be related to this bug: https://code.google.com/p/android-developer-preview/issues/detail?id=1902 Click to expand... Thx for the info Erel Upvote 0
Erel said: You can wake the phone with PhoneWakeState. The issue you are describing seems to be related to this bug: https://code.google.com/p/android-developer-preview/issues/detail?id=1902 Click to expand... Thx for the info Erel