Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

8
votes
0answers
353 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 ...
6
votes
0answers
1k views

Connecting WiFi via ADB Shell (Oreo 8.1 - LineageOS)

I've tried all publicly discussed methods I could find to connect to WiFi via ADB on a phone with a broken screen (no display/no touch). The closest I have got is via wpa_cli using the method #1 ...
6
votes
0answers
662 views

Android 7.1.1 storage location of adb keys

I have a Galaxy s3 (I9300) that has a broken touch screen (display is fine). I therefore can not click the authorization dialog that pops up when I try to access the device via adb on any ROMs above ...
5
votes
0answers
1k views

`adb shell wm overscan` makes apps leave blank spaces on top

I've been following the instructions given by: Resize screen to display only on working part of semi-functional touchscreen. Basically I just ran: adb shell wm overscan 0,320,0,0 to fix a broken ...
5
votes
0answers
4k views

Adb commands from Termux

Is it possible to run adb and fastboot commands using Termux terminal emulator? I am wanting to run commands from one Huawei T3 7 to another using usb/otg cable. Need to unlock bootloader but have no ...
5
votes
0answers
602 views

How can I create a backup ROM compatible with ADB sideload?

Can someone explain how to backup a rooted Android device into a ZIP file that would be compatible with adb sideload? Is it possible without having a custom recovery installed? Is there a specific ...
5
votes
0answers
19k views

Device boots normally, but cannot enter recovery or fastboot

I have secondhand Vodafone Smart Tab 4G. It seems to me that previous owner messed something up. The device boots normally but I cannot enter either bootloader, fastboot, or recovery. I have tried HW ...
5
votes
0answers
30k views

adb>shell returns “error: closed” - how to “open” adb shell access through adb sideload

my device got broken but i am still able to connect usb in the stock recovery mode. if i try to start a shell via adb while the device is in recovery mode, i fail. my terminal echos the line: "error: ...
4
votes
0answers
4k views

How to enable USB Debugging from recovery mode?

So, my phone screen broke. I can't see anything and touch doesn't work. I have a Motorola Moto G2 running LineageOS 14.1, and TWRP custom recovery. Until now I have been able to use my phone with ...
4
votes
0answers
4k views

/sbin/sh: pm: not found

I was trying to install apk files from adb. I used the command adb install <app-name>.apk command. But it returned /sbin/sh: pm: not found But if I login to the shell with adb shell and do ...
4
votes
0answers
2k views

How do I remove orphaned permissions that are preventing an app reinstalling on Android lollipop

I have a ZTE phone I'm unable to reinstall facebook on using the Google Play Store - I get the notorious -505 unknown error. If I install a downloaded facebook apk using adb I get the following error....
4
votes
0answers
430 views

Enable bluetooth tethering via command line

Is there a way to activate the bluetooth tethering mode in Lollipop using the command line? You can do it for usb tethering by running the command service call connectivity 30 i32 1 Is there a similar ...
4
votes
0answers
2k views

ADB Screen Record with Audio

I have prototype hardware and an application that produces sound. I would like to use ADB to record, the screen, audio out and audio in, all at the same time. Is there a way to do this? Note: Because ...
3
votes
0answers
100 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
0answers
492 views

How to turn mobile hotspot off using ADB

I need to turn the mobile hotspot off using ADB. I'm using various Samsung phones with Android 7 & 8. I'm planning on opening the settings activity and using keyevents. I know the Mobile Hotspot ...
3
votes
0answers
2k views

How to make changes done through `adb settings put` persist through device reboots?

The specific changes I attempted were to a database entry following instructions in this question: Possible to turn on Airplane mode with WiFi on only? The changes to either row would take effect ...
3
votes
0answers
505 views

Extract SMS messages from adb backup on the host?

I have made a backup using the following command: adb backup -apk -shared -all Does there exist any straightforward way of extracting the SMS messages from the backup file on the host system? By ...
3
votes
0answers
393 views

Android can´t see the Internal Storage

My Android tells me I don´t have anything on my Internal Storage, but adb shell says I have a file on my Internal Storage (/storage/emulated/0) for example an apk file. Furthermore I haven´t any ...
3
votes
0answers
478 views

`/data` and `/sdcard` use the same block device?

My OnePlus 3 is in a pretty weird situation. I deleted the contents of /sdcard on an adb shell while my phone was running TWRP via: # rm -r /sdcard* I also deleted the hidden files files but they ...
3
votes
0answers
3k views

execute “adb tcpip <port_no>” command without using usb even once

I am trying to create to backup of all application in android but I don't want the users to connect to USB even for the first time. okay let me first explain what happens when we connect our phone ...
3
votes
0answers
295 views

What represents 'bootloader' in the possible outputs of `adb get-state`?

I recently employed the use of adb get-state and decided to know further about it. Running adb inter alia shows: adb get-state - prints: offline | bootloader | device I intend to know ...
3
votes
0answers
811 views

Nexus 6 automatically remounting system read-only, deleted files returning

tl;dr I mount system rw I try to copy/update/write /system/xposed.prop System is auto-remounted ro, causing the write to fail (applicable to a variety of workarounds) Moving/renaming/deleting files ...
3
votes
0answers
320 views

Cannot remove/rename/move build.prop, new insights

I've already asked this question before but I haven't gotten any progress, but did note some things. First the problem again. I soft bricked my phone by editing a line in build.prop, specifically ...
3
votes
0answers
953 views

I can't see new files throught windows explorer

i can't see my new(!) files on android throught windows explorer while i can do it by ES explorer or adb shell. Is there any way to fix it?
3
votes
0answers
901 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
0answers
2k views

adb input swipe to unlock slide screen lock and open notifications

When I use the command adb input swipe, the slider slides all the way to the right, but does not 'click', so the screen does not unlock. I calculate the coordinates based on the (not visible) 'swipe ...
3
votes
0answers
1k views

Rooting/unlocking Android Nexus One with broken power button using Linux terminal tools

I am attempting to get Cyanogenmod onto my Nexus One, but am running into far more problems than expected. The information on rooting Android devices seems heavily fragmented across the web and the ...
3
votes
0answers
645 views

Error: “reloc_library cannot locate 'fdatasync'”

I have my phone connected to my laptop via the USB cable and ADB is able to identify the device. When I run adb devices it returns the phone in the list of connected devices. Running the command adb ...
2
votes
0answers
38 views

How to set up a socks5 with Android cli?

I found articles how to set up a http-proxy. But can't find any info, how to set up a socks5 proxy. My goal is to route all traffic from apps, etc throught this proxy. Is this possible? How then ...
2
votes
0answers
65 views

Removing multiple files using ADB

This is what I tried: $ adb -e exec-out run-as com.awesomeproject rm *.jpg rm: *.jpg: No such file or directory After that I tried using find $ adb -e exec-out run-as com.awesomeproject ls ...
2
votes
0answers
216 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 ...
2
votes
0answers
753 views

Backup strategy for non-rooted phone

With apologies for my naivete: I want, insofar as possible, to periodically back up the data on my non-rooted Samsung Galaxy S8. To this end I do two things: 1) I periodically do adb backups ...
2
votes
0answers
136 views

Can I use ADB with USB Network Gate?

I have a colleague who cannot obtain the kind of Android device we need for our project. He would like to own such a device to test our project with adb and similar tools, but to reiterate, his ...
2
votes
0answers
665 views

How to install apps to SD with adb when SD is formatted as internal storage

LOS 14.1, small internal storage, large SD card formatted as "internal". Now when I adb install -s whatever.apk it fails with java.lang.IllegalStateException: ☃No suitable external storage available ...
2
votes
0answers
1k views

[Nokia 3]adb reboot bootloader failed

I have Nokia 3 Android 7.1.1 connected to PC Windows 8. Problem is: C:\>adb reboot bootloader reboot failed: -1 Reason to do it is to flash/root in future. Other commands ok: C:\>adb devices ...
2
votes
0answers
81 views

Why does every adb command take several minutes?

I've run adb devices and adb push some-stuff /sdcard, and both commands take several minutes. Once adb push gets started though, it races through the file, so the throughput is fine. It just takes an ...
2
votes
0answers
223 views

Side load apps on android wear watch through iOS app

I am wondering if it's possible to side load apps on an android wear watch through Bluetooth debugging from the android wear app on iOS. I have a Moto 360 2nd Gen and I recently bought an iPhone. I ...
2
votes
0answers
418 views

Backup encrypted data from Android with broken screen

short story is as follows: I have a Sony Xperia M2 with display suffering from water damage. It's completely black but it's still working, booting and responding to touch. However, I need to enter my ...
2
votes
0answers
1k views

What dose “Enable OEM Unlock” do, and how can I do it through a root shell?

Looking at this Samsung Galaxy A8 question, I was looking to do something on my nexus 6p. I would like to enable OEM unlocking, the developer setting. Due to the problems my device is experiencing, ...
2
votes
0answers
2k views

Any way to force “USB debugging enabled” status using adb commands, with broken phone screen

I am trying to access my phone, after screen is broken (no way to enter swipe access or pin). I have installed Android Studio and am able to navigate to the folder containing adb in a command prompt, ...
2
votes
0answers
3k views

Data recovery from android device with broken screen

Situation Summary - I have an Android device with a broken screen, LCD and touch I have an android phone (BQ Aquaris E4.5 Ubuntu Edition, which I have flashed with the Android firmware for the E4.5 - ...
2
votes
0answers
2k views

Using Remix OS(Android-x86) terminal shell to turn off the touchscreen

I have recently installed Remix OS on my PC, and now it's like a craze. Nothing worked. I always think it was the problem with the touchscreen, because EVERY operating system I used on my PC, the ...
2
votes
0answers
563 views

ADB Debugging over wifi not connecting

So I am trying to connect my device to adb over wifi. I have been following this tutorial http://codetheory.in/android-debug-bridge-adb-wireless-debugging-over-wi-fi/ I have been doing this adb ...
2
votes
0answers
58 views

Why not autostart PPP?

In the adb docs, under PPP it says "Note that you should not automatically start a PPP connection." Anybody know why this is discouraged? I'd like to do exactly that when I plug my tablet into my ...
2
votes
0answers
732 views

Android: Google Play - App Will Not Install - Why?

Hello everybody I face annoying error when, whenever I try to install this app I face many errors. Ok, per usual, I tried installing it through Google Play store but whenever I do so I get this error: ...
2
votes
0answers
2k views

How to fix emmc memory showing 0mb?

Yesterday actually I messed my Xolo Q700. Actually I wanted to install a custom ROM "experia final" on it. But I didn't installed any custom recovery previously. So I installed TWRP recovery using ...
2
votes
0answers
2k views

Error: package x.x.x is unknown, for “run-as (classname)” command on Samsung Galaxy Note 10.1 running Android 4.4.2

I'm using a Samsung Galaxy Note 10.1 tablet, Android 4.4.2. As a developer, I need to be able to see my files in /data/data/(classname), but I don't want to root my tablet. Found out one can read ...
2
votes
0answers
1k views

File copied to /system/bin keeps disappearing

After copying Sqlite3 to by /system/bin folder, the file disappears. I can successfully change the folder to rw and modify the file properties on sqlite3. However, as soon as I remount my /system as ...
2
votes
0answers
89 views

creating mount point in root mode

When trying to expand tablet memory (from 500 Mb to 1G) I made a mistake when I was applying Gparted. I reset my device to the fabrication settings and now I can't mount sd card (no the real sd card), ...
2
votes
0answers
5k views

BOOTLOADER - USB Device Not Recognized

I am currently using a ROOTED "Huawei MediaPad 7 Lite" tablet and am having issues entering the bootloader. When powered on and connected to a PC, the device is seen in adb using the command adb ...