Android Question phone unlock


Licensed User
Longtime User
I am using the following:-

Dim r As Reflector
    r.Target = r.GetActivity
    r.Target = r.RunMethod("getWindow")
    r.RunMethod2("addFlags", 6815872, "")
along with :-

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