Hot answers tagged

16

Short Answer Try using an earlier version of adb. 1.0.32 did not work for me, but 1.0.31 did. Long Answer I just encountered this issue on a Nexus 5 running CyanogenMod 11 (based on Android 4.4) using the current version of the Platform Tools and ADB (Android Debug Bridge version 1.0.32 Revision eac51f2bb6a8-android). Using adb logcat to watch the ...


8

There are a few methods how you can mount your /system directory RW or RO. However, it will require root. Method 1: Connect your phone to the computer. (Make sure USB debugging is enabled on your phone) Open CMD/Terminal on your PC. Windows: CTRL + R, then type cmd. Ubuntu: CTRL + ALT + T. Mac: Navigate to /Applications/Utilities/ and double-click on ...


7

I got it to work :) NOTE: This also requires your device to be rooted. (Thankfully, mine was rooted) Connect the device to Mac or PC in recovery mode. (I had to map the process in my mind as the screen was broken). Now open terminal/CMD in computer and go to platform-tools/. type and enter ./adb devices to check if the device is connected in recovery ...


6

I have not tried this myself, but there's an app named ADB Wireless (no root) which, as the name suggests, claims to make this possible without involving root: This app is for developers wanting adb access over WiFi without rooting your phone. … *** NO ROOT REQUIRED *** Usage instructions can be found on the app's playstore page – looks pretty easy ...


6

The other answers about the command arguments being quoted is accurate. I've found that if you escape the spaces between the arguments, it works. Like this: adb backup -apk\ -shared\ -all\ -system


6

From DavisNT answer on Stack Overflow, There exist a simple workaround on rooted devices. To enable Airplane Mode the following root shell commands can be used: settings put global airplane_mode_on 1 am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true To disable Airplane Mode these root shell commands can be used: settings ...


6

If you need to do something that requires root privileges, your device must be rooted. You can't circumvent this via ADB because what ADB does is to provide a shell on your host machine through which you can run commands on the Android device. So essentially you are running commands on your device through your PC. Hence you can't do anything that requires ...


5

This is not a final answer, as it is not generic (only works on some devices) – but it's a start at least: As we've figured out, at least CM based ROMs with Kitkat (Android 4.4) and above ship with the aapt binary available in /system/bin1. If your ROM doesn't have it, and installing the binary on the device is an option, you can find it here. Using aapt, ...


5

The fix for me was using a different micro-usb cable. No software change, no drivers to update, just the usb cable. Apparently they aren't all created equal.


5

adb shell input keyevent 3 # home adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings adb shell input keyevent 20 # down adb shell input keyevent 20 # down adb shell input keyevent 20 # down adb shell input keyevent 66 # enter adb shell input keyevent 20 ...


5

Details for that can be found in our usb-debugging tag-wiki (where I've just added them): By default, USB debugging is disabled with stock ROMs (some custom ROMs however have it enabled by default). To toggle it on or off, you can find the corresponding switch in Settings › Development – a section originally hidden with Android 4.2 and up. You can make ...


5

As for the first part: Yes, that definitely means your device is rooted. For the second part of your question, IMHO it's close to impossible to figure the exact timestamp of rooting (apart from yourself noting it in some document). Though there seem to be tools reporting it, as mentioned in this answer1, I'm afraid that timestamp is not much reliable ...


5

The workaround was to set the desktop backup password under Developer settings. It seems there is a bug in backup process. If you din't set a desktop backup password under the developer options settings the above problems occurs and your backup will eventually be incomplete(empty backup file). However I couldn't find an official source for this bug report ...


5

Easy to do – as in any Linux system: Connect your device as usual log into it using adb shell use the ls command to list files in the current directory, and the cd command to change directories (i.e. walk the tree / navigate through directories) For details on the commands, check for the corresponding Linux man pages – e.g. man ls and man cd. Edit: If ...


5

Try the 15-seconds ADB/drivers all-in-one installer. You could also install the Samsung drivers rather than conventional OnePlus drivers. I installed these drivers and I've had mine working since the upgrade. You could also try following this guide on how to set it up.


5

Yes. All you need to do is test for the presence of the file that enables it. On devices that do: # adb shell ls /system/etc/permissions/android.hardware.usb.host.xml /system/etc/permissions/android.hardware.usb.host.xml And otherwise: # adb shell ls /system/etc/permissions/android.hardware.usb.host.xml ...


4

15 seconds minimal ADB, fastboot and drivers installer. No need to navigate to the installation folder in CMD. It can be installed system-wide. No need to check for manufacturer specific drivers. Everything included in 9MB.


4

As described by ss-3-1415926535897932384626433 there is no flag, but you have to get a list of files first and then check if your local files match. I wrote a little script for it: #!/bin/sh rfolder=/sdcard/DCIM/Camera lfolder=Camera adb shell ls "$rfolder" > android.files ls "$lfolder" -1 > local.files rm -f update.files touch update.files while ...


4

Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? The command is: adb shell settings put secure location_providers_allowed gps where, settings would makes changes into settings.db (part of com.android.providers.settings) put is to update key location_providers_allowed with value gps in table ...


4

Samsung devices can usually be forced into download mode using a JIG. They are pretty simple and cheap to make. If your device has been soft-bricked this will almost always work. http://www.xda-developers.com/need-a-samsung-usb-jig-build-your-own/


4

I am sorry but this is not possible. During apk installation (even via adb), managed by the android Package Manager on the device, various processes are executed such as: Determine the appropriate location of the package installation Copying a copy of the apk file to a given directory (usually /data/app/) Create the application directory and set ...


4

Running an APK without installing it? No matter if you won't accept the answer, running an APK is not possible. It's not an executable, it's an archive containing the application and instructions on where all it's resources should be placed so that the app can run. Android APK File Format Asking this question is the same as asking how you run an iso ...


4

Note: The solution is tested on Android 4.2.1, 5.0.2 and 5.1.1. The value for the system property persist.sys.safemode determines whether the phone should boot into safe mode or in normal mode. When booted into Android OS, provided root access, the value can be changed as adb shell su -c 'setprop persist.sys.safemode 1' adb shell su -c 'echo "1" > ...


3

Building on kevenoid's answer, it may depend on what version of adb is running on the phone. You can find out what version the phone is running natively by doing the following: First find out what version you are running on your desktop adb version Then open the shell on your phone adb shell Once the shell is open then you can run adb version ...


3

in that App Info (though grey out), click the three vertical dots and use Uninstall for All Users.


3

You may check-out my updated answer dealing with the question in entirety, or consider the following info: High accuracy: gps,wifi,network or gps,network (if you don't want Wi-Fi enabled) Battery saving: wifi,network or network only Device only: gps E.g: adb shell settings put secure location_providers_allowed gps,wifi,network To disable Location mode ...


3

For the RSA verification that you asked to bypass, I don't know whether it would work in your device, but it worked in my little experiment. In Lollipop, the ADB keys (after authorization) are saved in /data/misc/adb/adb_keys. Your private key is saved in computer. In Linux the directory location is $HOME/.android/. On Windows that usually translates to ...


3

On your device, Go to Settings > About Device and repeatedly tap "Build Number" until it says you're a developer. Then go back to Settings and into Developer Options. Turn it on and check the box for USB debugging. Then Revoke USB debugging authorisations. Now, connect your device, install its drivers if you haven't and type any ADB command. A message will ...


3

First make sure that you have virtualization on in the BIOS. Next, make sure you have done what I have done in my question. What I forgot to do was install the android_winusb file in the usb_driver folder. The path should be sdk\extras\google\usb_driver. In my case, C:\Users\Ruchir\AppData\Local\Android\sdk\extras\google\usb_driver After doing that, go ...


3

There is always a lack of documentation because the drivers are device specific so you need to find documentation for your specific device. You can try using Universal ADB Driver, but the best solution is to install a companion app for your device, something like Kies for Samsung, as they usually install drivers alongside. To know if ADB is installed - ...



Only top voted, non community-wiki answers of a minimum length are eligible