Hot answers tagged

11

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 ...


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

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

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 ...


5

I made something for OS X, this may be exactly what you are looking for: Quick ADB/Fastboot installer: ADB and Fastboot binaries with installer


5

Running the following command as root should enable USB tethering: service call connectivity 32 i32 1 on Ice Cream Sandwich (4.0) service call connectivity 33 i32 1 on Jelly Bean (4.1 to 4.3) service call connectivity 34 i32 1 on KitKat (4.4) service call connectivity 30 i32 1 on Lollipop (5.0) service call connectivity 31 i32 1 on Lollipop (5.1) according ...


5

Basically speaking: You can't. At least not without rooting. The main reasons Android does not allow you to install an application to your external SD card are: Security: It's the main reason for that restriction. Basic file systems like NTFS or FAT (any version of it) do not allow for Unix-like permission management. This means: any application would be ...


5

Based on the platform/system/core repository you linked above, I think the key is in libcutils/android_reboot.c. And important definitions are in include/cutils/android_reboot.h; namely: /* Commands */ #define ANDROID_RB_RESTART 0xDEAD0001 #define ANDROID_RB_POWEROFF 0xDEAD0002 #define ANDROID_RB_RESTART2 0xDEAD0003 Usually in normal ...


5

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 ...


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

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 ...


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

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.


4

I used this methodology, and it worked fine in 4.x, but failed for me in lollipop. While looking for alternative solution, I found this: http://stackoverflow.com/questions/3391160/paste-text-on-android-emulator it is not exactly as you wanted it, but for myself, most time I want to copy text to clipboard is because I want to paste it into password field. ...


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

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

Basically you can! ;) First, Root your phone! Second, Create a secondary partition in your SD card (Ext.4) >= 2GB and set it as primary. Third, download and install Link2sd app from playstore. Open the app, and I will ask you to create a mount point to your 2nd partition. Select Yes. Reboot. After reboot, EVERY app you install will automatically go to ...


4

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 ...


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

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 ...


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

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.


3

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, ...


3

That was quite a journey searching for an answer not involving rooting but I ended up: Unlocking my bootloader Booting on TWRP without installing it: fastboot boot recovery.img Installing Chainfire's SuperSU with TWRP. From Terminal Emulator or adb's shell: su pm set-install-location 2 From an application's menu in Settings > Applications just ...


3

Based on the comments from Google in this bugtracker - emulator support of screenrecorder isn't going to happen in the near future due to hardware requirements/limitations. https://code.google.com/p/android/issues/detail?id=61682


3

it means, the device, haven't any PIN password. just do this : Goto Settings > LockScreen > Screen Lock and set the password for PIN and after this, try again for backup and it showing you for enter the PIN password and then, Backup process will be starting. Edit : after Set the PIN, use this Command : adb backup -all this command will ...


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

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 ...



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