5

Is it possible to start an app from the lockscreen without unlocking the phone?

Every time I lock my phone and want to use it again, I must enter a password or the correct sequence of pattern to be able to use my phone. But I want to add an specific app on the lockscreen as a shortcut, so that I don't need to enter a pass or a sequence of pattern to be able to open the app.

Is this possible?

I want to open an app added on the lockscreen without unlocking the screen.

I have tried looking for solutions but cant seem to find any.

Pi Da
  • 359
  • 2
  • 8
adamH
  • 97
  • 1
  • 6
  • You can't do bypass the lockscreen to launch the entire application. You can however create a lockscreen widget to control the application from the lockscreen – Isaac Jan 24 '17 at 14:19
  • is there absolutely noway to bybass the lockscreen to launch the app? – adamH Jan 24 '17 at 16:02
  • because the camera app is able to launch from lockscreen if im correct – adamH Jan 24 '17 at 16:03
  • Yes the camera is able to but no other application is able to launch before the lockscreen has been cleared. The camera is able to be abled to be used because it uses: MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE There is no similar thing for anything else except a camera. https://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE_SECURE – Isaac Jan 24 '17 at 16:15
  • so what other options do i have? is there anything that one can do without clearing lockscreen? – adamH Jan 24 '17 at 16:30
  • 1
    You don't have any other way around clearing the lockscreen before using the application. Android is designed this way to prevent unauthorized users from accessing any applications on your device without clearing the lockscreen. Without it there wouldn't even be a point of having a lockscreen – Isaac Jan 24 '17 at 16:32
  • 1
    app like wechat is able to receive call, and start itself even if the phone is screen off and locked – BabyishTank Jun 06 '21 at 21:58
  • Ok I found the solution, you can't bypass the phone lock programmatically, but it is possible to display the activity before phone is unlock, stackoverflow.com/a/55998126/5777189 – BabyishTank Jun 13 '21 at 00:40

1 Answers1

1

you need this permission too:

<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />

original post:

Justice
  • 11
  • 3