ADB access denied to data folder?

Update 2023; accessing data is not even through USB (file transfer mode) possible anymore (since a few Android and/or Samsung-device updates ago). Root your device. Original answer; Starting from API level 8 (Android 2.2), for the debuggable application (the one built by Android Studio all the times unless the release build was requested), you can … Read more

How to run a specific Android app using Terminal? [duplicate]

Use the cmd activity start-activity (or the alternative am start) command, which is a command-line interface to the ActivityManager. Use am to start activities as shown in this help: $ adb shell am usage: am [start|instrument] am start [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-c <CATEGORY> [-c <CATEGORY>] …] [-e <EXTRA_KEY> <EXTRA_VALUE> [-e <EXTRA_KEY> <EXTRA_VALUE> … Read more

Fake Incoming Call Android

You can use DDMS in Eclipse, Android Device Monitor in Android Studio or run command lines on terminal Using DDMS: Open DDMS/ADM in Eclipse: Window > Open Perspective > DDMS in Android Studio: Tools > Android > Android Device Monitor Enter the fake incomming phone number Choose “Voice” Press call After that, you will see … Read more

adb shell su works but adb root does not

By design adb root command works in development builds only (i.e. eng and userdebug which have ro.debuggable=1 by default). So to enable the adb root command on your otherwise rooted device just add the ro.debuggable=1 line to one of the following files: /system/build.prop /system/default.prop /data/local.prop If you want adb shell to start as root by … Read more

Copying files in ADB shell with run-as

The OP tried to combine the following 3 commands (that he had no problem executing one after another in the interactive shell session) into a single non-interactive command: adb shell run-as com.example.app cat /sdcard/temp_prefs.xml > shared_prefs/com.example.app_preferences.xml For simplicity let’s start from within an interactive adb shell session. If we just try to combine the last … Read more