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

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

Set date/time using ADB shell

To save storage space Android like many other embedded systems uses multi-call binaries to implement its basic command line tools like date. Android device may include either toolbox or toybox (or both) binary depending on the version. You can check which implementation of the date tool available on your device by running toolbox date and … Read more

Play store reports “Your device isn’t compatible with this version” but it installs via adb just fine on Nexus7

That’s completely correct this behavior: please refer to the official documentation here http://developer.android.com/guide/topics/manifest/uses-feature-element.html. That’s the relevant part: Declared <uses-feature> elements are informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application. However, other services (such as Google Play) or applications may check your … Read more

How to remove set-device-owner in Android DPM?

By specifying the android:testOnly=”true” attribute in the AndroidManifest.xml it will be possible to uninstall the app or remove admin with: adb shell dpm remove-active-admin package.name/MyDeviceAdminReceiver But on a production device, this attribute should not be included and the app will be a non-test admin. From that point, it will not be possible to remove it … Read more