I am using adb shell monkey -p app.package.name -c android.intent.category.LAUNCHER 1
to try to launch the settings app so that I can turn on MTP and connect this android device to my computer, but I keep getting killed
every time I enter the command in the adb shell.
How can I find out why this is happening? I have tried restarting adb, getting su
privelages, and rebooting the device, but nothing changes.
Thanks in advance!
EDIT: The actual command is adb shell monkey -p com.android.settings -c android.intent.category.LAUNCHER 1
EDIT 2: Probably already known, but this happens for any package name, not just settings. Not sure if that is relevant or not :/