The command you run with adb shell
gets executed with shell(UID=2000)
user privileges. The command you run from your java
code gets executed with your app’s UID
privileges. Thus the difference.
More Related Contents:
- set up device for development (???????????? no permissions)
- How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”
- What’s the Android ADB shell “dumpsys” tool and what are its benefits?
- Why do I get a “sqlite3: not found” error on a rooted Nexus One when I try to open a database using the adb shell?
- android studio adb Syntax error: “)” unexpected
- Where to find info on Android’s “service call” shell command?
- Connecting to WiFi using adb shell
- Android adb not found
- adb remount permission denied, but able to access super user in shell — android
- How to turn off Wifi via ADB?
- Copying files in ADB shell with run-as
- Android ADB commands to get the device properties
- adb devices command not working
- Launch a script as root through ADB
- shell/ batch scripting to direct commands to adb shell
- How to measure time from adb shell with milliseconds resolution?
- adb shell su works but adb root does not
- Debug android through adb without allow it
- Error “The connection to adb is down, and a severe error has occurred.”
- Why is Eclipse’s Android Device Chooser not showing my Android device?
- Android ADB stop application command like “force-stop” for non rooted device
- Sending intent to BroadcastReceiver from adb
- error “activity class does not exist” when launching android app with adb shell am start
- get launchable activity name of package from adb
- Nexus 7 not visible over USB via “adb devices” from Windows 7 x64
- How can one pull the (private) data of one’s own Android app?
- Android Studio – ADB Error – “…device unauthorized. Please check the confirmation dialog on your device.”
- Install app via usb: The device is temporarily restricted
- How to get the phone number of an android phone via adb?
- Adb install failure: INSTALL_CANCELED_BY_USER