People who code: we want your input. Take the Survey

Questions tagged [adb]

For issues specific to the Android Debug Bridge (adb), a command-line tool to interact with Android devices and Emulator instances. See the full tag wiki for details and hints.

Filter by
Sorted by
Tagged with
14
votes
3answers
15k views

How to pull only newer files with “adb pull”? (Android SDK utility)

With the command "adb pull /sdcard/" I can copy all the contents of the internal memory of my Android phone into my current local directory (and "adb pull /mnt/extSdCard/" does the same with the ...
13
votes
6answers
102k views

How do I get my Nexus 7 to show up in the adb devices list?

So I have a Nexus 7 that I'm trying to connect to my Windows computer for debugging over adb. Adb works fine with my phone, but when I plug in the tablet and run adb devices in Windows I get an empty ...
8
votes
2answers
61k views

adb push not working on /system, read only

I can do adb push to /sdcard/ location but not /system on my android device. sudo adb push lib/audio.primary.gmin.so system/lib/hw/ failed to copy 'lib/audio.primary.gmin.so' to 'system/lib/hw/audio....
4
votes
3answers
10k views

Can I update the adb shell's environment variables?

I wanted to update the PATH environment variable permanently in the adb shell. I guessed the shell was mksh for I've found /system/bin/sh pointing to /system/bin/mksh. Then I tried Making a new file /...
3
votes
2answers
2k views

Auto start two apps on split screen after reboot

I have Two running Android apps (used for surveillance and doorbell) permanently and simultaneously on split screen. Sometimes, the person who used the device (for personal purposes) forget to get ...
3
votes
2answers
9k views

Using ADB shell, How I can disable hotspot / tethering on lollipop Nexus 5

My screen got broken and I've been using my phone with a VNC Server installed on it, but this morning i'd the stupid idea of enable hotspot just to see if I can use my mobile data plan on my laptop, ...
3
votes
1answer
16k views

Uninstall via adb without root

I own an Asus Zenfone Go Z00VD running Android 5.1. It came preinstalled with TrendMicro Dr. Safety, which I absolutely have no use for and do not want running at all. This app starts itself ...
2
votes
0answers
1k views

Display bound manipulation on an android device, to avoid faulty touchscreen area

I have a Oneplus 3T on which, the digitizer would not register a touch on the bottom 1cm of the display. I tried the adb shell wm overscan 0,0,0,100 command to set display margins, and it breaks a lot ...
9
votes
0answers
874 views

How to stop apps from doubling overscan?

For some reason a chunk of the digitizer broke on the bottom of my phone. I tried to use adb shell wm overscan 0,54,0,324 to resize my screen smaller until I can get a new phone, but it's giving bad ...
2
votes
1answer
10k views

Is there a way to run adb as host on android without root?

I have an android phone and an android tablet. Both not rooted. I want to use adb as host on the tablet and as client on the phone, using an USB-OTG adapter. I downloaded connectbot as terminal ...
2
votes
1answer
284 views

Is it possible to disable USB tethering from command line?

I try to be able to stop USB tethering. I tried: adb shell am stop com.android.settings/.TetherSettings # Unknown command: stop adb shell am kill com.android.settings/.TetherSettings # nothing adb ...
1
vote
1answer
11k views

Best Practise for deploying a 'clone' image across 200 android tablets (Samsung GT-P7510)

My objective is to be able to create a master 'image' of an android tablet, and then duplicate that image across about 200 identical tablets to streamline the administration of a university's pool of ...
8
votes
2answers
30k views

Can't connect to the device with ADB when it's in recovery mode

I am having some problems with my Samsung Galaxy S2 and I want to start an fschk session on the device. So, I installed Android SDK with platform-tools. I can access to the device when it's normally ...
6
votes
1answer
8k views

How to take backup of all installed APKs from Phone to PC? [duplicate]

How do I take backup of all installed apks from my sgs2 to PC using android sdk/ 3rd party tool etc? My phone is not rooted. I can install/uninstall apks using adb, but is there any similar command ...
5
votes
2answers
3k views

Running a tasker task via SSHDroid (or adb shell)

I'm trying to run a tasker task manually from ADB Shell, via SSHDroid. I'm running the following in putty (Windows SSH client): am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -es task_name ...
5
votes
1answer
13k views

Fastboot doesn't see nexus 6p

Currently trying to unlock my bootloader, but cannot get my nexus 6p to determine that it's connected to my PC. I can use adb commands while it's on, but booting it into fastboot mode with the adb ...
5
votes
2answers
3k views

Force 720p Resolution on InForce 6540

I'm working with an InForce 6540 board that has 5.0.2 Lollipop installed. I am trying to connect a display device that has a max resolution of 720p at 60hz. I am using a micro HDMI connection. The ...
2
votes
1answer
4k views

Toggle location services via adb in Android 5

I see this answer from 2013, but now there are options for High Accuracy, Battery Saving, and Device Only. Also, there was no command for disabling location.
2
votes
1answer
24k views

Error when flashing recovery to Moto G4 Plus Xt1640 - Image not signed or corrupt

I recently bought a new android phone (Moto g4 plus). Coming from the iPhone, I was eager to root it and take advantage of all the features. The problem is that whenever I try to flash a recovery ...
2
votes
1answer
4k views

How to install a firmware without losing your data and restore the previous one in case it goes wrong?

I have a OnePlus 5T and I can't install OTA updates anymore because my firmware is too old. In addition to that I don't have a full backup of my device because I'm using encryption and TWRP doesn't ...
1
vote
1answer
7k views

Enabling ADB on Nexus 6 with dead screen

So I acquired a Nexus 6 with a completely dead screen. (Dead as in I cannot see anything) The phone powers on (and off) and is detected by my computer. I want to be able to see the phone's display ...
1
vote
2answers
5k views

How can I manage “desktop” icons

I want to remove all the icons on the desktop, (and also in the bottom bar) and place new ones via ADB. My script already removes all the apps, but icons/shortcuts remanin there! Is there any command ...
0
votes
1answer
2k views

ADB sideload doesn't work, no drivers

Sometimes on my Nexus 9 (LMY48M)ADB sideload doesn't work as the device doesn't have a driver. This is true for both stock and TWRP. However, ADB from booted Android works perfectly. I have ADB ...
7
votes
3answers
13k views

No-name i.onik android tablet not recognized by adb — adb devices empty

I have followed various instructions and finally was able to connect my ZTE Blade to my Ubuntu laptop for USB debugging. The same setup does not work when I exchange the phone by my "no-name" i.onik ...
3
votes
0answers
715 views

Enable USB debugging through recovery mode and ADB sideload

This is a follow up question to this one. Basically, I intend to somehow use this command to remove the lock screen: >adb sideload customROM.zip But, the customROM.zip should be something like ...
3
votes
0answers
1k views

Help with this ADB REVERSE Tethering Script?

I added the functionality to automatically turn on reverse tethering after many fails: Now i only enter t into terminal alias t='r && sz $tether && r && sz $n' tether='am ...
3
votes
1answer
2k views

Is it possible to change Android ID without root access nor factory reset?

I have an Android 10 phone (OnePlus 5) and I want to change the Android ID (I think this is what apps use to identify you sometimes). I read that either I can do a factory reset or root my phone, both ...
2
votes
0answers
87 views

Unable to take kernel logs on a non-rooted device [duplicate]

I am trying to take kernel logs but so far have only got errors like 'permission denied', 'path does not exist' or 'kernel log does not exist'. I have tried this kernel panic link, this crash logs ...
1
vote
0answers
3k views

Directly storing apps in SD Card

So I bought an 'Swees' Android phone recently, with ~150mb Internal storage + 4gb External SD Card. I downloaded Android SDK manager on my mac, installed necessary packages and ran the 'adb' file in ...
1
vote
0answers
648 views

How to install SuperSU using adb while the phone is in TWRP recovery with a broken screen

I have a Samsung Galaxy S4 SHV-E330S with a broken screen (cannot see or touch anything). Please see this and it's comments for more context I have managed to flash TWRP on this phone (https://twrp....
1
vote
1answer
384 views

Go back to previous custom rom - adb issue

I decided to try a custom ROM from here. I downloaded Exodus ROM to my computer, and via ADB transmitted it to the sdcard/0/ folder. I then rebooted and flashed this custom ROM. Everything went well ...
1
vote
1answer
3k views

Is there a way to keep an old Android installation as virtual machine?

With PCs I have made good experiences virtualizing the machine when changing to a new system (e.g., buy a new computer, change the operation system). Doing this, you can preserve your old system and ...
1
vote
0answers
3k views

Apply update from ADB: how to use it when you are locked out of the device

My cousin's kid has played with his Samsung A8 (2018) phone and has changed his unlock pattern. So, nobody knows the pattern the child has set. The phone has no Google account set up The USB ...
1
vote
1answer
307 views

Android ADB Key Not Working

I used to have a rooted Android device about 3-4 years ago. I recently found it and I dont know the password. This android device was trusted on my computer but now it is showing unauthorized under ...
1
vote
0answers
502 views

ADB shell gets “stuck” connecting to Samsung S10, must open other ADB shell to “unstuck” it

On Ubuntu, I often use adb shell and other operations such as adb push and adb pull over a USB cable. On Nexus 5 it always worked perfectly. But since I switched to Samsung S10e I have this very ...
1
vote
1answer
2k views

How to grant certain apps root permission through ADB? [duplicate]

I have an Android TV box (4.4.2, armv7), and I can login the device as root by ADB (local network). What I want to do is to give certain apps root permission. How can I do it?
0
votes
0answers
1k views

How to stream an image into camera source trough ADB?

I am trying to stream an image into the camera source of an Android 10 device through adb. This should effect on all apps that use the camera source and not only using specific camera apps. Thank you!
0
votes
4answers
12k views

How to pull mmcblk0 to a windows pc?

So here is what i want to pull : mmcblk0 whith it's size 15.7 GB. C:\adb>adb shell shell@android:/ $ su su shell@android:/ # fdisk -l /dev/block/mmcblk0 fdisk -l /dev/block/mmcblk0 Disk /dev/...
0
votes
2answers
3k views

How to Clear Caches in LG G2 Running Lollipop 5.0.2

The Lollipop update for AT&T LG G2 has pretty much destroyed my phone. I'm hoping clearing out every sort of cache might help. But I can't clear the caches the usual ways because (1) the ...
0
votes
1answer
506 views

How to re-enable apps using ADB?

I got a samsung galaxy folder 2: https://www.samsung.com/hk_en/smartphones/galaxy-folder2-g165/ It runs Android 6.0.1 Anyways I am not new to ABD and have used it to uninstall system apps on my other ...
0
votes
1answer
539 views

Access Android log files for specific periods on android 7

Is it possible to access old log files,lets say 3 months old, to see the usage on the android device, by usage i mean, any app installed or unistalled, time spent online, via wifi or cellular, time ...
74
votes
4answers
323k views

How to start root shell with Android Studio?

I just installed Android Studio. How do I get into root shell on my phone? Or do I have to download ADB separately?
22
votes
4answers
359k views

How to install ADB drivers on Windows 10 (OPO)

Problem: Install ADB drivers (google_usb_drivers) on a Windows 10 client in order to enable debugging for my OnePlus One (OPO). What I have tried: After some Googling I found several guides telling ...
21
votes
5answers
59k views

adb pull /data fails

I have rooted my device HTC Evo Design 4G and I try to adb pull /data data and it says "0 files pull 0 file skipped" I was able to pull /System/build.prop. How can I pull root folder. Thank you iua
47
votes
18answers
106k views

ADB constantly disconnects, shows device offline

I'm not 100% sure if this should go here or the main Stack Overflow, but I decided to go with this area in hope I might catch someone with more specific experience with a similar problem. I have a ...
21
votes
1answer
22k views

Manually switch from ART to Dalvik

I wanted to try out the new ART runtime, but didn't realize my custom ROM doesn't support it. So now I am getting recurring Force Closed messages after booting, and can't get through to the settings ...
15
votes
2answers
85k views

Clear Caches from ADB?

How do I clear caches (app, individual apps, Dalvik, ART if possible) via ADB? Using apps, recovery, or doing it through Settings are not options for me. Also, my phone is not rooted.
15
votes
6answers
107k views

How can I find out which bands my phone supports

Background: I recently bought the Padfone X, and have been attempting to get it on my network. Part of this effort has been verifying information I have found online which claims that it supports LTE ...
13
votes
5answers
147k views

What do I type in PATH variable for ADB server to start from CMD?

I am following a Wiki on how to install and set up Android SDK and I am stuck at a step where I am supposed to test if the ADB server works by using the command adb start-server. Is this command ...
28
votes
5answers
22k views

Is it possible to write to a device's clipboard using ADB?

I am interested in learning how to write to (and if possible, read from) a rooted Android device's clipboard. I hope to do so using ADB over USB and I am not interested in installing any apps to help ...