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
3
votes
1answer
1k views

Password protecting shell access

We distribute android devices to other developers so that they can develop on our devices. We want them to be able to install / uninstall / debug apps, but we don't want them to be able to run adb ...
0
votes
1answer
1k views

adb sync shows Product directory not specified

I am using android in an emulator integrated with eclipse. I was trying to import my gmail contacts into my emulator. For that purpose, I exported my gmail contacts to a .vcf file (contacts.vcf) from ...
1
vote
1answer
40 views

Get Android activities and sub activities path programmatically

This is my first question on AE forum, so excuse me for my ignorance. I'm searching for a method to get the complete path through the system apps like Music, Video, Settings, etc... The goal is to ...
0
votes
1answer
1k views

Connecting android tablet as testing device

I have a problem related to connectivity between my desktop (Windows) and tablet (Android 4.1). I bought a new device (Colorovo City Tab Vision 7) and now I want to use it for testing of my ...
0
votes
3answers
9k views

Unable to install .apk from /system/priv-app

I moved my apk file to /system/priv-app just as you adviced me in this thread. When I'm trying to install it through clicking this .apk, Android said me that "The application has not been installed". ...
0
votes
1answer
70 views

How to create a copy of a file immediately when it's created? [duplicate]

I have an Android app that will create a file in /data/ and immediately delete it. I want to know how can I catch this file or create a copy or even disable user permissions to delete a file? I have ...
1
vote
1answer
49 views

what in xposed caused this bootloop and how to prevent it from happening again?

My android phone is stuck in a boot loop. To troubleshoot it I was able to boot into TWPR and use adb pull /sys/fs/pstore/console-ramoops to get some boot logs (is that even the right file?). When ...
0
votes
0answers
1k views

Stuck in fastboot oem unlock (Fly IQ4503)

Trying to install another OS on my Android phone. Fly it isn't so popular phone, so I have lots of problems within installation. Also I used for this my laptop with Ubuntu 15.10. Now I'm trying to ...
0
votes
0answers
25 views

How will I know what exactly I need to uninstall

I'm on a galaxy s10+ and let me just say, I have OCD really bad lol. So the s10+ came with a lot of bloatware, and currently there's no root method for the phone I have, which leads me to use adb PM ...
0
votes
0answers
35 views

Encryption/decrytion

LG V30+ US998U version Have struggled extensively to get AOSP running on my device. Would wipe data and reboot TWRP; flash DM-verity and no-encrypt also did not help prevent bootloop. But on to my ...
4
votes
3answers
10k views

Is there a way to backup contents of internal SD, while preserving the file's modification date?

I'm having problems with my internal flash storage (namely not being able to create folders in root, which prevents some apps from working, plus periodic unmounts), and I have tried unsuccessfully to ...
2
votes
1answer
176 views

What does the charge counter in battery indicates?

I have used the adb shell dumpsys battery command on my phone. It delivers the following results (posted on the image). Most of the terms, I can understand but not the charge counter. What does it ...
0
votes
0answers
12 views

How do I directly launch to General tab within Settings via ADB?

I am able to launch Settings via adb. But how do I directly launch the General tab in settings? I am able to launch it to settings currently with, but not to the general tab: adb shell am start -a ...
0
votes
0answers
19 views

How to get unattended access to Android device

For a Xiaomi Redmi note 4 device running Android 7 I would like to get unattended access ( Teamviewer - like ) to the device for the purpose of smart home control I know the support is there, I ...
1
vote
1answer
418 views

List of supported A/V and Image Codecs

Using ADB, is it possible to obtain a list of audio, video and image codecs supported on a given device? Whether or not they physically play is another story. I'm just trying to poke the device and ...
1
vote
1answer
1k views

Wondering if i can debloat some google apps from unrooted lg phone for my father?

My father being older does not want to modify his phone, however he has a LG L70 and no sd card, and doesn't use some unnecessary Google apps, such as play, books, and whatever else. My question is ...
2
votes
1answer
923 views

Differences between fastboot erase and fastboot format

I have an asus zenfone 2 laser with radio problem:it doesn't take the line.I want to format modem partition to see if the problem could be solved.I jave a doubt:what is the difference between fastboot ...
0
votes
2answers
1k views

Can android device issue adb commants to itself?

I made a simple shell (actually windows batch) script that automates a task on android phone. It can be ran on any computer. I thought that if I convert the batch to linux sh script, I could issue the ...
5
votes
2answers
2k 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 ...
0
votes
0answers
15 views

What is adb error on Android?

I want to send a file from my PC in Android recovery mode, but I can not get an error. The error is as follows: adb push file.zip *daemon not running; starting now at tcp:5037 could not read ...
0
votes
1answer
1k views

GT-I9082 - Unable to enter download mode through ADB

I have a really old Samsung Galaxy Grand Duos from 5 years back. I want to boot into download mode using ADB. I am using the following command adb -s <deviceid> reboot download What this ...
9
votes
3answers
10k 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 ...
0
votes
1answer
909 views

How to search “My apps” on google play or show a text listing?

I have quiet a number of android devices. Not all of them have the same apps. On Google play it shows a My Apps section that shows a picture with the name of the apps in what appears a random order. ...
23
votes
6answers
30k views

Is it possible to activate the “USB Tethering” Android setting from the command line?

I would like to activate "USB tethering" from within a bash script, so is there any possibility to run a command line with adb shell to change some Android settings ? Edit1: The following command ...
1
vote
1answer
2k 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? ...
1
vote
1answer
1k views

How to restore adb backup on Nexus 4 (boot loop)?

Recently I have flashed unofficial cyanogenmod 10.2 for my Nexus 4. After testing some features I the device came into a "bootloop" (stays on cyanogenmod logo launcher). I tried to reflash it with cm ...
1
vote
1answer
1k views

How to switch off HDMI

I have an android box with a HDMI port. Im connecting it to a projector. To the same projector Im also connecting a PC via VGA cable. Now I want to give my box a command to switch off the HDMI port, ...
2
votes
1answer
1k views

How to backup applications' data from second or subsequent user of a currently non-rooted device?

Primary question: given a non-rooted 4.2.2 device which has second user added and used for awhile, is there any way to backup or otherwise safe the application's data of that second (or third etc.) ...
2
votes
1answer
1k views

Device freezes after trying to reboot with bootloader

I have been trying to unlock my bootloader as per the instructions found here. I already have installed the drivers from Google USB driver folder that comes in Android SDK "extras" folder. However, ...
3
votes
3answers
2k views

fastboot works, adb doesn't

I picked up a second-hand Motorola Moto G (2nd gen) device. The model is technically XT1064 (Titan). On my Windows machine, I'm sometimes able to see an error message when I power down the phone ...
4
votes
2answers
87k views

How to factory reset android using adb

I am trying to factory data reset my Oppo neo 7 (Android 5.1) using adb shell. Any ways i can try and links to adb shell? thanks
0
votes
1answer
2k views

Remove everything from android

I would like to remove all files from my android device INCLUDING system files. I have tried rm -r * and other commands but when I switch the phone off the files reappear.
0
votes
1answer
2k views

Pushing to TWRP, adb shows “adb: error: connect failed: no devices/emulators found”

When I try to push my rom to /sdcard/ with TWRP, I get adb push myRom.zip /sdcard/ * daemon not running. starting it now on port 5037 * * daemon started successfully * adb: error: connect failed: no ...
0
votes
0answers
45 views

Fastboot doesn't see device but ADB does (windows 10)

I am attempting the unlock the bootloader on my Google Pixel 2 XL. I know this problem seems to be very common, but I have yet been unable to find a solution for my particular case after searching ...
1
vote
0answers
10 views

I am unable to enable cam2api on my ZMPM1, what should I do?

I have installed the latest versions of adb and fastboot and qualcomm usb driers for my phone - zenfone max pro m1. I tried running the command - "fastboot devices" and it runs perfectly ( when I have ...
3
votes
3answers
13k views

Running TRIM from shell

Is it possible to run fstrim in stock android 4.3 from adb shell? I understand it runs every 24 hours when the device is plugged in and idle but I would like to run on demand to test a few theories.
1
vote
1answer
3k views

Is there a way to grant myself MANAGE_USERS permission while inside the adb shell?

The thing is that I'm fed up of some stock adware apps on my Micromax phone and want to disable them for good. So, as per this answer, I used adb shell to disable the app, but I'm getting the ...
3
votes
1answer
3k 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 ...
1
vote
1answer
1k views

ADB Push not keeping file permissions, specifically execute permission

I "inadvertently" wiped system on my tablet with adb. No critique needed. I've already called myself all the names. What I need now is a way to put at least the "sh" program back on using adb or other ...
1
vote
2answers
4k views

remote: oem unlock is not allowed

i did not find any solution on xda-developers, so i am posting this question here. i am trying unlock bootloader on nokia6 when i give command: sudo fastboot oem unlock or sudo fastboot flashing ...
0
votes
1answer
1k views

How can I get the IMEI on Lollipop and upper with ADB?

I'm trying to get the IMEI with this command "adb shell dumpsys iphonesubinfo" but is not working. Also I try this: adb shell service call iphonesubinfo 1 but neither How can I resolve it?
0
votes
0answers
23 views

Can I access an app's data folder by installing a custom build of that app?

I want to access the data for two apps (Mozilla Firefox and Google Authenticator) on my non-rooted[1] Android 6.0.1 phone, to transfer it to a new phone. Unfortunately, both of these apps have ...
0
votes
1answer
21 views

Is there a way to push the results of an adb query to a file?

I have a couple of adb commands that I'm running in PowerShell. Specifically: adb shell settings get secure bluetooth_address; adb get-serialno Is there a way to do an 'adb push' of that data to a ...
2
votes
1answer
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 ...
0
votes
0answers
20 views

Not granting permission because it was previously installed without?

An app i installed fails at startup, in the logs i see this permission problem: Not granting permission android.permission.ACCESS_FINE_LOCATION to package com.nianticlabs.pokemongo because it was ...
0
votes
1answer
2k views

Change critical settings with ADB without root

I am new to Android "internals". I am looking for a way to change some settings on my device, just by using ADB, with debug mode enabled, without having root on my phone (warranty issues taken ...
0
votes
0answers
13 views

Attempting to fastboot LG Tribute Dynasty,

So I am currently trying to flash an operating system onto my android and every time I try the command adb reboot bootloader It fails. The command simply reboots the phone like normal. Device: LG ...
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 ...
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, ...
0
votes
1answer
36 views

SystemUI.apk is not in /system/app

I tried to pull SystemUI.apk on my Samsung Android Pie/OneUI and it seems like it's either in some other directory than /system/app or has been renamed. I tried to pull this through adb. Tried ...