0

I have locked my android device using pattern/pin.

I want to launch activity from lockscreen itself via adb command.

Is there anyway to achieve it?

Example: Say I have an app with activity name com.example.myactivity

When the device is not locked, I am able to launch it using: adb shell am start -a com.sample.app/com.example.myactivity

But when I lock the device using pattern/pin from settings menu: I am not able to launch the same app using below command: adb shell am start -a com.sample.app/com.example.myactivity

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.