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

Tablet listed under adb devices, but not under lsusb while in recovery

I am working with a Gemini devices GEM1000 tablet, I have performed all the steps to get adb working, and the device shows up under 'adb devices' so I go to the bootloader with 'adb reboot bootloader' ...
2
votes
0answers
11 views

Interact with notification action from ADB Shell

I have an Android(7) phone and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my phone using the command: adb shell dumpsys notification -...
1
vote
0answers
16 views

Best adb command and system tweaks for non rooted phone to get closer to rooted experience

As I always owned rooted phones I find frustrating living with all the limitations of non-rooted phones. I would like to list here all the adb commands you can issue and system settings you can tweak ...
0
votes
1answer
766 views

Send fake sensor value to an Android real device

Is possible to simulate an event on a Android real device? More precisely, I want to test an application which does something if a particular temperature value is detected. Is there an adb command, ...
1
vote
1answer
3k views

How to monitor API calls made by an Android App?

I am using an Android Virtual Device and I am running the Monkey Runner script to generate user input. Now, I have to see the API calls made by that app. Is there any tool or script that will help me? ...
0
votes
2answers
473 views

ADB dumpsys batterystats - How does one read it?

Why on earth does the adb shell dumpsys batterystats command not print regular timestamps? (Like usagestats does for example, or literally anything else on the planet.) Instead, it gives you a "RESET ...
0
votes
2answers
2k views

Windows doesn't show device in Explorer

After updating my Nexus 7 to the latest version of Android (4.4.4 at this point), Windows decided that it would no longer show the device in Explorer in MTP mode. PTP worked fine, but obviously this ...
0
votes
0answers
45 views

Is it possible to bypass android USB debugging authorization and gain access to ADB shell?

Is it still possible to bypass a rooted Android version 8 USB debugging authorization using ADB? I'm currently working on a mini forensic application project which works similar to Cellebrite. I have ...
0
votes
2answers
1k views

Unable to modify file permissions.xml, get error Read-only file system

I have a rooted Galaxy S5 SM-G900V, lineage_klte, ARMv7 Processor rev 1 (v71), Kernel: 3.4.113-lineageos #1 SMP, Oreo 8.1 that a friend asked me to modify. I need to modify the platform.xml file to ...
0
votes
1answer
18 views

I have my android connected to my pc via a wifi hot spot. How do I enable usb debbuging through the adb ? What is the commands?

What are the commands in ADB to enable USB debugging? I have my android connected to my pc via a wifi hot spot. How do I enable usb debbuging through the adb ? What is the commands?
1
vote
0answers
19 views

ADB content query - Browser

I am having some slight issue using the query adb shell content query --uri content://browser/bookmarks" & "adb shell content query --uri content://browser/searches I have played around ...
0
votes
1answer
12 views

Restart unresponsive phone without power button

My huawei y9 prime became unresponsive and i cant connect it to my pc to reboot it with adb since i cannot press "use usb to transfer files" so adb doesnt see my device and as title says, ...
13
votes
4answers
26k views

Can I use ADB without connecting over USB?

Is there a way to use adb directly via bluetooth instead of always via usb? -- Thanks for the adb wireless solutions below, but I am looking for something that works well on hotel or public wifi. ...
0
votes
1answer
1k views

Micromax nitro a311 fastboot connection error

I'm trying to flash custom ROM for Micromax a311 when I enter fastboot devices it is stuck at < waiting for device >. I think this is driver problem, I tried with some drivers that I found on web, ...
1
vote
2answers
4k views

How can I get the last dialled number and call duration via adb?

I'm creating a computer system for telemarketing. I'm using adb commands to dial numbers Link Is it possible to get last dialled number and call duration via adb? If it is, how?
0
votes
3answers
771 views

Phone won't boot/start after successful flashing through QFIL

My phone was bricked, so I decided to flash my phone LYF f1s with the stock ROM through QFIL, but after after successful flashing it won't start !! Nothing happens, no matter which combination of ...
0
votes
1answer
2k views

How can I record the phone screen from the command prompt?

I have been trying to record my phone screen (Nexus 5) through command prompt. I have also downloaded the SDK. For some unknown reason I am unable to open or play the file saved using this script: $...
0
votes
1answer
1k views

Disable Mi5 Touchscreen Input via adb

I've got a Xiaomi Mi5 (gemini) and I encounter the problem of ghost input. I guess my phone could be water-damaged even though I'm not sure. To backup my data I need to access the phone (not just it's ...
0
votes
0answers
22 views

How to push a file to internal storage?

I want to do this step to root my phone: Copy it to the internal storage of your device So the command is: adb push <local file> <remote location> The "local file" is "boot....
4
votes
2answers
2k views

Install OpenGApps in Android Studio Emulator (Marshmallow)

I wanted to install OpenGApps in an Android emulator (created in Android Studio). The emulator is running with Marshmallow. There is enough storage space available, so this is not the problem. I tried ...
0
votes
1answer
1k views

Backup and Restore with Holo ( ADB ) from N4 to another N4 - some questions

I am soon receiving a replacement device for my Nexus 4, that got some problems charging now and then. Some questions regarding Holo Backup: It shall be no problem to restore a "Backup all without ...
3
votes
5answers
20k views

How to get IMEI Number From adb Command

I am working on adb with my Samsung Galaxy Device. I want to get the IMEI number of the device using adb but I have been unable to do that. I tried the Following: adb shell dumpsys iphonesubinfo ...
12
votes
4answers
9k views

Where to find description of all “/system/bin/service” calls?

In one answer I was adviced to use service call phone 2 s16 "$number". It works, but in service list I see other useful things I don't know how to use and can't easily find the information on the ...
0
votes
1answer
969 views

How to Know my Android Processor info using ADB?

I want to know the android QCT Chipsets Processor information like snapdragon version details usind ADB Commands. Can you please explain anyone?
0
votes
2answers
5k views

Adb doesn't work, “adb.exe has stopped working” window appears

I want to learn flutter, so, I installed Android SDK from Android Studio but when I tried to connect my device a "adb.exe has stopped working" window showed, then I tried using 'adb devices' command ...
9
votes
5answers
37k views

Need one-line adb shell su push & pull to access /data from Windows batch file

I wrote a Windows batch file that replaces Amazon lockscreen ads with user images on rooted kindle fire hd 7", 2013 (kfsowi). Just learned I botched the adb commands because I was running "...
1
vote
1answer
764 views

ERRORLEVELs in adb push and pull

I need to execute adb commands from DOS batch files, but I need to know if the push and pull commands were successful. Do these commands return an ERRORLEVEL, or some other environment variable to ...
2
votes
1answer
34 views

adb reboot vs adb shell reboot

I run the commands from my laptop. but can't understand what is the different, it's look like both commands are just restart the mobile device. What is the different between adb reboot vs adb shell ...
0
votes
0answers
24 views

Debloat: real remove (system) app (after “pm uninstall” was successful) by script?

There are two ways to get rid of apps to debloat a ROM: adb shell pm uninstall -k --user 0 (run on PC) rm -rf (on device, in Terminal of TWRP) The first method has one big advantage - deleted apps ...
0
votes
1answer
3k views

How to grant write access to external SDcard using ADB in Android tv?

I can't get ES file explorer and winrar to write (copy or cut from internal storage and paste to external storage) to SDCard external storage in Android TV. It says that there will be an "open from" ...
0
votes
1answer
767 views

ADB - Can't enable USB Debugging, phone stuck on boot screen

My phone stopped working and stays stuck on the boot screen. I've tried wiping both cache partition and data reset, still nothing. So I decided to flash a new ROM, but I can't connect through ADB as ...
3
votes
1answer
22k views

Chrome taking up lots of space on my Android device

I have an OnePlus 5T running Oxygen 5.1.4 (which is based on Android Oreo 8.1.6). According to the app DiskUsage, Google Chrome is using almost 15 GB of data. (Click image to enlarge it) Apart from ...
5
votes
1answer
6k 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 ...
0
votes
0answers
16 views

“adb remount” Command not working

I'm trying to root my Android head unit which has a custom rom(Android 10.0) installed on it. Instructions are here: cd c:/ adb connect (enter here your ip address number, for example 10.0.0.2) adb ...
0
votes
0answers
14 views

How could charging adb be disabled

I have an Android device running when I'll call a quasi proprietary os that had somehow turned off charging adb. I've been able to initiate adb on previous similar devices that did not have adb ...
0
votes
1answer
2k views

App not installed error while sideloading and Install failed UID changed via adb [Not rooted]

I am having hard time getting an app installed since none sideloading nor adb install work...since I dont have root i cant delete the app's data folder from the data/data folder.. seems delete that ...
1
vote
1answer
3k views

Some app is causing bootloop

It happened when Google Play was automatically updating apps. I guess, something went wrong and the phone suddenly restarted and was not able to turn on again. It always gets stuck on "Starting apps" ...
0
votes
0answers
12 views

Creating a log entry in logcat via adb?

Does anybody knows a possibility to add a log entry into the logcat main log? I need to inject an log line with custom text into this log on arbitrary devices. The main problem is that I can't just ...
1
vote
1answer
1k views

Turn the speakerphone on a call using ADB shell

I'm trying to find a command in adb shell that lets me turn on the speakerphone when I start a call. First I make the call adb shell service call phone 1 s16 "" s16 "#####" the call starts and I ...
0
votes
1answer
1k views

Unable to detect Android device with ADB on Mac but can detect it through Fastboot?

I am unable to view my Android device, an Oppo Find7, with ADB. I can view it with Fastboot. As I use a Mac, I followed this guide to install ADB and Fastboot. More generally, I am having issues ...
0
votes
0answers
9 views

Reconfigure physical screen size

I have an aosp(6 mashmallow) device with a hardware screen of 640×480, but the software screen has height 800 $ wm size Physical size: 640x800 Override size: 640x480 Also $ dumpsys display | grep ...
0
votes
2answers
1k views

Is there any trick to set ADBD to work on TCP/IP on a non-rooted device?

What I want is to control a device from remote: turn display on/off, launch a specified application (clock), open a website. On a rooted device, I've installed a SSHD app, then I logged in to the ...
0
votes
1answer
1k views

Samsung Galaxy S4 broken screen ADB autharization

I have an SGS4 i9500 device with totally screen broken. So, I can't see or touch anything. But device works. I had flashed it with Odin using this firmware: I9500XXUGNJ1_I9500SERGNJ1_SER. Then I ...
0
votes
0answers
31 views

Pixel 3: Cannot Flash Factory Image - Only Fastboot and Recovery Available - Unlocked Bootloader - Cannot Authorize USB Debugging

Pixel 3: Cannot Flash Factory Image - Only Fastboot and Recovery Available - Unlocked Bootloader - Cannot Authorize USB Debugging Can someone please direct me to the appropriate resources to resolve ...
1
vote
0answers
25 views

How can I disable locations in Android 11(API 30) using adb shell command

The following commands do not disable location services on API 30. Although they do work on other API levels. adb shell settings put secure location_providers_allowed -gps adb shell settings put ...
0
votes
0answers
34 views

Access files of Android device without the login code

Long story short. The father of a friend of mine died and he asked me if I could have a look at the father's phone to see if there might be any images or other stuff he might find relevant. The ...
1
vote
1answer
308 views

No ADB driver for medion e4001 (MD 98500) for remote debugging

For testing purposes I need to debug an older android device: MEDION LIFE e4001 (MD 98500) There are no drivers available online and I wrote to the MEDIUM guys receiving the following answer: ...
1
vote
1answer
25 views

What package is responsible for the “Recents” button to work?

Background: I wanted to customize my phone a little bit, a Samsung Galaxy A70 (SM-A705FN), and that process included de-bloating it. I opened xda-developers, looked around, and finally found a list of ...
0
votes
0answers
34 views

How do i solve boot loop on Mi A2

My Mi A2 Running: Android 10 xiaomi/jasmine/jasmine_sprout 10/QKQ1.190910.002/V11.0.5.0.QDIMIXM Boot loader is still locked is stuck in boot loop after I accidentally clicked on "Run Graphics ...
0
votes
0answers
26 views

Getting adb root: I did unpack and repack the boot img yet adb root doesn't work

my android is a Marshmallow 6.0.1 (EDIT: It is Samsung!) I just unpacked the boot.img and edited the build.prop by setting: ro.secure=0 ro.debuggable=1 ro.adb.secure=0 repacket it, flashed it and ...

1
2 3 4 5
37