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
6
votes
2answers
2k views

Treble: How do I check if it is enabled on my device?

Title says it all By way of background Project Treble was announced with release of Oreo to speed up OS updates by reducing OEM delay . Devices running Oreo out of the box are expected to have it , ...
6
votes
1answer
15k views

Can't use chmod to alter permissions on emulated phone

So, I'm trying to make an app in android studio and I need to reference a particular file in the app, cascade.xml. I've pushed it onto the emulated phone no problem using adb (it's in the storage/...
6
votes
3answers
47k views

adb push … Permission denied

I am trying to push a file to a directory on a physical android device, but I am running into the following error. >adb push data.db /data/data/com.me.app/databases failed to copy 'data.db' to '/...
6
votes
1answer
12k views

Howto get device's features with adb

Howto get device's features with adb i.e. whether it has e.g. accelerometer, screen is capable landscape mode, etc. These values are set in XML during build: <feature name="android.hardware....
6
votes
3answers
14k views

How do I access .img files with yaffs2?

I've tried mounting them in Ubuntu, no luck, mount does not recognize the yaffs2 file system. I've tried yaffs2utils and ./unyaffs2 but it doesn't actually unpack the img files, I've posted an issue ...
6
votes
3answers
34k views

How to remove the SIM Toolkit from my phone? (Without root or flashing any ROM)

This application is sending a lot of spam to my phone recently, two or three times a day. I deactivated broadcast messages, tried converting USSD pop-ups into notifications to avoid being interrupted (...
6
votes
3answers
9k views

trying to adb backup but dialog doesn't show

I have sony xperia P device and I want to flash its ROM to get Marshmallow(I currently have android 4.0.4). I want to do full backup of my phone before doing this, I knew about adb backup command, ...
6
votes
1answer
15k views

Terminating adb.exe?

I am trying to hot spot my htc evo. When I click on PDAnet, it tells me that I have to terminate adb.exe. how do i terminate adb.exe. thank
6
votes
2answers
6k views

How to install xapk, apks, or multiple-apks via adb?

xapk, apks, or multiple-apks is the new standard for apps that is basically one folder and multiple apks in it. I know there are apps like apkpure or SAI that can do it, but I want to know how to it ...
6
votes
1answer
5k views

ADB pulling files from /data/data fails due to symlinks. How to skip symlinks in ADB pull?

I can run adb pull /data/data/com.xlythe.saolauncher/databases ./ or adb pull /data/data/com.xlythe.saolauncher/files ./ and it works fine. However, if I try adb pull /data/data/com.xlythe....
6
votes
1answer
347 views

Harden adb on Android 2.3

Actually I was never thinking about leaving my adb debugging enable on my cellphone when going outside. Now on cyanogenmod 10 and newer, it asks me to verify the rsa key of the host, which makes ...
6
votes
1answer
46k views

How to perform a full system dump/backup with a broken screen?

So, yesterday my phone took a serious tumble. It is now essentially useless, as the screen either fails to turn on, or when it does, there is nothing useful to see (just lines of primary colors, ...
6
votes
3answers
5k views

How to pull the apks from my android phone

I have a rooted android phone. I am trying to pull the applications from /system/app/. However this simply does not copy the apk. What I have tried. adb shell su cd data cd app ls ...
6
votes
3answers
5k views

“Too many files specified; only takes APK file and verifier file” problem

I have some devices attached to my PC. Now I want to install Astro to a specific emulator. Unfortunately, I get this error. hieund@hieund:~/Downloads$ adb install "Astro File Manager 2.5.1.apk" -s ...
6
votes
1answer
386 views

ADB installs apps for all users. How to force it to install to main user only?

I have a LineageOS 17.1 system on Pocophone F1, unrooted. When I install an apk through USB using adb, adb not run as root, the app is installed both on my main admin user and on a secondary user on ...
6
votes
1answer
78k views

Unable to run fastboot commands: < waiting for device >

I want to unlock my Nexus 5. I cannot run any fastboot command however: the device is not detected. What I did: Press VolumeDown+rightButton until arriving to this screen Plug the phone Run the ...
6
votes
1answer
4k views

No confirm prompt when trying to use adb backup

I'm trying to do an adb backup of my Galaxy S3 (i747m), but after receiving the "Now unlock your device and confirm the backup operation" order from adb, I never receive the prompt on the device. It ...
6
votes
2answers
2k views

What options exist when the vendor does not supply an ADB driver for an Android device?

I bought an Android phone and the vendor does not offer any drivers whatsoever. The Android SDK and the drivers that come with it don't seem to work with the device, but the device itself reports as ...
6
votes
3answers
20k views

Unlock Screen with ADB Android 4.2

Previously with Android 4.1, doing something like: adb shell input keyevent 82 #(KEYCODE_MENU) would unlock the screen at first boot and would then allow further commands to launch applications ...
6
votes
2answers
27k views

adb shell mount command: documentation?

I'm creating a guide for noobs on editing the SystemUI.apk on the US Galaxy S3. But, before I post the guide, I want to make sure I know my stuff! I'm looking to learn about ADB (and ADB shell) and ...
6
votes
1answer
35k views

why is my file system suddenly read only?

Some background: My HTC Desire HD has several issues. The first issue being that I can not connect to it using a USB cable. So I found that I can tell ADB to work over wifi and I was using this ...
6
votes
2answers
9k views

How to add contacts using adb without user interaction?

Following this I found out how to add a contact using adb. The only thing that's bugging me is that the user has to okay/cancel the action, because a create-contact dialog appears on the screen. What ...
6
votes
4answers
10k views

adb input keyevent 26 - Not waking device up

I am trying to wake a device up using the following adb command adb input keyevent 26 This correctly emulates the power button keypress if the screen is on, but will not turn the screen on if it was ...
6
votes
2answers
4k views

adb restore progress

Using the backup and restore function with adb (as discussed in Full Backup of non-rooted devices) there is no progress available and often it is very hard to follow the adb logcat output as long ...
6
votes
1answer
4k views

What is a “partial application install” via adb?

Android's adb has a "partial application install": $ adb install Android Debug Bridge version 1.0.32 ... adb install [-lrtsd] <file> adb install-multiple [-lrtsdp] <file...> ...
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 ...
6
votes
1answer
5k views

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 ...
6
votes
2answers
3k views

Making mediaserver immediately scan a file created through ADB

The mediaserver in my stock and rooted Android 6.0.1 (running in Nexus 6) doesn't detect new files created or moved to into /sdcard using adb. It doesn't detect until I do a soft/full reboot which I ...
6
votes
1answer
5k views

Simulate missed call from ADB shell

On the ADB shell, I run the command adb -s <serial_number> shell am start -a android.intent.action.CALL -d tel:123456 to place a call on my testing device. It works great. But I also want to ...
6
votes
1answer
8k views

How to wipe data on a bootloader-locked, broken screen, Nexus 6P

I want to sell my Nexus 6P for parts, but I want to wipe it first. The screen of my Nexus 6P broke (internally, the touchscreen MIGHT be fine, idk). The phone is full-disk encrypted with a PIN and the ...
6
votes
2answers
1k views

Protect ADB access via network?

I have several Android devices in a local network. (Android Set Top Boxes from Geniatech, running 4.2 Jelly-Bean) If these boxes have problems or need debugging, I simply connect to them via adb ...
5
votes
2answers
17k views

Using ADB to change the screen lock

I am looking for a way to change the screen lock type from slide to password, and set the password via adb command line. I have a device with the setup I want, and one that has slide lock. I'm pretty ...
5
votes
3answers
56k views

ADB does not see connected Samsung S4

I'm on Windows 7 and have developer options including USB Debugging enabled. I have opened Kies and it recognizes the S4. However when I try adb devices, nothing to be found. It works perfectly fine ...
5
votes
2answers
7k views

Interpretting the output of dumpsys telephony.registry

So when I run the command dumpsys telephony.registry | grep -i signalstrength I get the following output: mSignalStrength=SignalStrength: 99 0 -120 -160 -120 -1 -1 25 -93 -12 300 2147483647 gsm|...
5
votes
2answers
7k views

App not installed for this user [duplicate]

I see App in my Apps section of settings which says App not installed for this user. It's completely greyed out and I cannot uninstall it. When I install the same from play store it says incompatible ...
5
votes
1answer
27k views

Start application from ADB

I have an Android device which I don't have physical access to. But I can access it through ADB commands. I have Teamviewer host installed on it. But unfortunately it's not running. How can I start it ...
5
votes
1answer
53k views

How to Install App as System App [duplicate]

My S3 has a damaged motherboard (says Samsung Tech Center), only boots into safe mode. If I am to keep using the device I have to make the apps into system apps, so they run in safe mode. One way is ...
5
votes
2answers
17k views

adb listing all forwarded ports

I have forwarded machine port to emulator using following command adb forward tcp:1234 tcp:8080 I wanted to see currently what all ports are forwarded to avoid any conflicts. How to do that ?
5
votes
3answers
41k views

fastboot set_active command does not exist

I am trying to root my Xiaom mi a2 phone. But i am stuck on changing the active partition. When i enter "fastboot set_active b" it doesnt execute the command. Instead i get a list off all available ...
5
votes
1answer
5k views

Why “adb root” does nothing?

I have a OnePlus 6T. It is rooted by TWRP and Magisk. I have set ro.debuggable to 1. But when I type adb root it does this: I cannot even use adb pull on system files.
5
votes
1answer
5k views

adb backup not working for certain app

I need to get all files of a certain app (com.valvesoftware.android.steam.community), but adb backup only gives me a 1KB AES encrypted file. upon decrypting it there is nothing inside the tar archive ...
5
votes
2answers
6k views

ADB shell-ing to wifi connected device when usb device present

I have two devices connected to my workstation simultaneously, one by usb, the other over wifi. C:\>adb devices List of devices attached Cxxxxxxxxxx2 device 192.168.60.69:5555 ...
5
votes
1answer
5k views

Can apps be controlled through adb?

Can an installed application be completely controlled via adb? For example: Consider I need to to export my Contacts to SD Card. So here there are basically 5 Steps involved 1)Open Contacts ...
5
votes
1answer
2k views

Obtaining app storage details via ADB

TL;DR: On-device, we can navigate to Settings › Apps, and for each app separately can call up details on storage used: by the app itself, by its data, by its cache. Is it possible to obtain those ...
5
votes
1answer
10k views

ADB app uninstall from bootloader

I have a Galaxy Core Duos that I was playing with. It is stock rom, unrooted. However, I installed one app which is crashing the phone after startup. So I cannot use the phone anymore and I need to ...
5
votes
3answers
9k views

setting mock location remotely

for testing purpose I need to fake my GPS location on a real Android device. Now I know about the possibility of Android Emulator and setting their GPS location via telnet. I dont really have a clue ...
5
votes
1answer
2k views

Button to allow ADB backup not working

I have a Oneplus One running CyanogenMod 12.0. (Based on Lollipop 5.0) I'm trying to create a backup using ADB. I executed the command, and it gave me the usual prompt to unlock my phone and allow the ...
5
votes
2answers
9k views

ADB - Android emulator - Unable to record video - screenrecord not found with Android 5.11

I installed android emulator, the SDK Tools v24.1.2, Android v5.1.1. After all this the emulator is UP and I am able to run my app. Where I ran into problem was while trying to do a screenrecord ...
5
votes
1answer
17k views

Terminal or ADB command to force-stop applications

What is the terminal or adb command to force-stop an application? Like for freezing we use pm disable application_name.
5
votes
2answers
30k views

How can I get ADB to properly recognize an Alcatel One Touch 995 device on Windows/Ubuntu?

The problem I am trying to deploy a custom application to an Alcatel One Touch 995 running Android 2.3.6. I using Eclipse to compile the source code and push it onto the phone. The Android Device ...

1 2 3
4
5
40