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
1
vote
0answers
12 views

Recurring “Allow USB debugging?” popup during a test run

android stackexchange com! Long time; first time. Per my work-around here https://stackoverflow.com/questions/57433975/gradlew-test-connectedandroidtest-erases-my-getfilesdir-folder/60174578#60174578 ...
1
vote
0answers
16 views

Bypass Samsung Knox factory reset protection

I have an Android device supplied by my government for students and secured by Samsung Knox. However & unfortunately, I forgot the security pattern of the device and I want to hard reset it to ...
0
votes
0answers
13 views

android shuts down after adb reboot?

So my phone (Mi A1) had a broken power button and I wanted to restart it through adb reboot. The phone worked perfectly fine before albeit the broken power button but once I applied the command the ...
1
vote
0answers
11 views

Adb restoration stopped on Zenfone 3

My goal is to backup save data of two games from my older phone, which I succeeded, and to restore them to my new phone where I have Lineage 16.0 installed. I used the command : adb backup -apk ...
0
votes
0answers
17 views

Where can we get the generic ADB Interface Driver for Windows 7 very much like the one we have for Windows 10? [closed]

I want to Debug a IoT device from Intel (Logistic Monitoring Device) which runs on Android 6.0 (Marshmallow) using ADB. The device gets detected on Windows 10 because generic ADB driver from ...
0
votes
0answers
34 views

I'm trying to disable hotspot but I can't find hostapd on android 9

I'm trying to permanently disable hotspot on my phone. I saw this answer here How do I disable the Mobile Hotspot feature? I've connected my phone (ulefone armor 6e) to adb but I can't find hostapd ...
0
votes
0answers
41 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 ...
0
votes
0answers
38 views

How to get a list (scan) of all available Wi-fi networks/APs via ADB without root?

Non-root solutions only. I found bunch of questions and answers how to connect to specific wifi manually but surprisingly none about gathering network info (without requiring root or some custom ...
0
votes
1answer
37 views

Log ADB Commands?

I have an application that uses the ADB interface as communication with my Android phone. When I run the application and press the button, the application somehow sends commands to my android, to ...
0
votes
1answer
20 views

SHELL Command works fine as a standalone command, but fails when put into a shell script?

Android 8.1 PIXEL 2 with root access. I have seen this asked here once before but the only solution didn't help me at all. I am going to try and make this as simple as I can for the example. If I ...
-1
votes
0answers
51 views

How to copy file to device from Windows using ADB or FASTBOOT?

I cannot copy image to my device. I tried following command (on Windows 10) while my device was both in fastboot mode and in bootloader (I have TWRP): adb push lineage-version-nightly.zip /sdcard/...
0
votes
0answers
45 views

/storage/emulated/10: Permission denied

I have two android system users configured. $ pm list users Users: UserInfo{0:Owner:13} running UserInfo{10:security space:13} running UserInfo{999:XSpace:800010} running When the mobile ...
3
votes
1answer
129 views

Send a notification (or just vibrate) to phone via ADB/shell

I would like to be able to send some kind of notification to my android using a remote shell script (SimpleSSHD running as root, so basically the same as an adb shell). On an iOS device I can use the ...
0
votes
0answers
24 views

Command has different output when running in a shell or in script

I'm trying to run a script on the Nox emulator through adb. After connecting to Nox via adb with adb connect localhost:62001 and copying a script into a /data/scripts/script.sh folder, executing it ...
2
votes
1answer
103 views

Where can I run a .sh script on Android without root?

Lately I've been playing around with .sh scripting in Android. At first I used BusyBox and it's integrated scripting utility, though I quickly realised that coding on the phone isn't the best, so I ...
1
vote
0answers
36 views

copy encrypted internal storage to pc ( in twrp mode )

I have this situation where I had my internal storage encrypted and then by using twrp I formatted only my data( booted into twrp > advance wipe > selected data and Dalvic cache > swiped to wipe . I ...
2
votes
0answers
23 views

Possible to change an apps SSAID aka Android_ID without rebooting? Which service handles this? Fast rebooting with Zygote kills my shell script

This may seem like an odd question, and I apologize for that. I am currently debugging an application and I am having trouble getting new Android_ID's to stick without rebooting. To be specific ...
0
votes
0answers
26 views

adb devices not working in Hyper-V

I connected Motorola android device on my host machine. I can not view the connected device from Hyper-V VM (Windows 10) I can not see connected android devices (adb) from VM, but i can very well see ...
-2
votes
1answer
52 views

Wifi connect but no internet access

This is a strange thing that started happening with the wifi network at my work. Android devices connected to the network say "Connected, no internet access " however the internet works perfectly well....
0
votes
0answers
22 views

Can't generate keys for ADB

I'm trying to use ADB on an ARM device running Ubuntu 18. The Ubuntu machine communicates with the android phone and can access its files. However, listing the devices on ADB produces an error ...
-2
votes
0answers
43 views

How can i unlock the bootloader of the amazon fire 7 9th gen tablet using adb commands?

I looked for online resources and there is no way to unlock the bootloader of the amazon fire 7 9th gen tablet. any ideas?
1
vote
1answer
23 views

Android asks me for USB debugging permission on one computer, but not another

I have two Ubuntu machines, a laptop and a tower. ADB works on the tower but not on the laptop. I'm using the same Android device on each, with the same adbkey and adbkey.pub. On my tower, ADB works - ...
-2
votes
1answer
63 views

How can I remove system apps on my amazon fire 7 9th gen tablet using adb commands? [duplicate]

I'm tired of bloatware on my amazon fire 7 tablet (9th gen)
1
vote
1answer
43 views

Use phone as USB modem by adb

I want to use the phone as backup line for my Linux server. Can I do this by using the adb? I mean forward everything to a socket and route the traffic there. I also need some port forwarding, would ...
0
votes
1answer
31 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
0answers
51 views

Are there (developer) tools to remove files from Android “Rom” cache, if the smartphone doesn't start properly?

(I have also asked on stackoverflow, as I assume the use of developer tools is neccessary, but I would be very glad to get any working help on here also. The Google Photo App filled up the 16 GByte "...
0
votes
0answers
71 views

ADB Root Grant Root Permission to App or Package

I am having a little trouble with my Development Board it is Orange Pi 4B, running Android 8.1 Currently I have access to ADB root and also can modify the system folder or even place files inside ...
1
vote
0answers
175 views

How to block app silent installation

Recently I noticed I have opera browser installed. I definitely did not install it because I was sleeping at that time. I checked installation time and revealed it was the day before yesterday ...
1
vote
1answer
51 views

How to delete some files on unbootable phone with low memory?

I had been ignoring low memory on my android phone (Nexus 6P running copperhead OS) for some time. OS suddenly crashed out of no where and started booting up infinitely. After forcing it to restart ...
0
votes
0answers
14 views

Changing Device ID seems not to work [duplicate]

Ive tried several times to change my phone ID with the ADB commands adb shell content delete --uri content://settings/secure --where "name=\'android_id\'" adb shell content insert --uri content://...
0
votes
0answers
6 views

Logcat not showing React Native debug messages [migrated]

I'm currently developing an app using React Native (JavaScript). My client is running logcat through the SDK command like using this command (found on the official wiki): adb logcat *:S ReactNative:V ...
-1
votes
0answers
21 views

Can I install apps in Android with broken screen without touching and without enable USB debugging?

Can I install apps in Android with broken screen without touching and without enable USB debugging? Can I enable usb debugging with any other way with PC and use phone mirroring by Vysor
0
votes
0answers
30 views

How can I semi-permanently disable the Wifi/USB tethering / hotspot feature on my phone?

Obviously there is much more information out there on how to enable hotspot, but not nearly as much on disabling it. I'd like to disable it permanently/semi-permanently. Is there a setting or package ...
1
vote
1answer
66 views

Getting DeadObjectException on uninstalling any app using adb

On a fairly old non-rooted Galaxy Tab A-tablet I wanted to uninstall all the Samsung and Microsoft apps and most of the Google packages to make it faster. Using adb shell pm uninstall -k user 0 I ...
4
votes
1answer
120 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 ...
0
votes
0answers
8 views

How to uninstall ADB drivers from Windows 10? [migrated]

If I type "adb devices" to CMD I want it to be unrecognized. Not sure if this question for superuser but it's related to Android. I have installed this automated installation, however it's not ...
0
votes
1answer
38 views

What are the Wi-Fi disconnect reasons on adb dumpsys wifi?

adb dumpsys wifi gives me, among many others, lines like this: Event [IFNAME=wlan0 CTRL-EVENT-DISCONNECTED bssid=X reason=7] What does reason=7 mean? What other reasons are there? If this applies ...
0
votes
0answers
86 views

Change Google Play Services notification setting from “allow peeking” to “block all” with adb?

Is there a setting name where I can run: adb shell settings put setting_name value I don't know the setting_name. I can manually navigate there but I need to change this setting with adb. Manually ...
4
votes
1answer
385 views

Does `adb install` do APK signature verification?

When using adb install something.apk, does the Android Package Manager verify the signature of the APK? adb install seems to bring up nothing up on the phone's screen, so it's hard for me to know if ...
0
votes
0answers
18 views

Why won't Minecraft PE register L2 and R2 adb shell keyevents?

So I've recently been trying to create an AFK fish farm on Minecraft PE. The touch screen UI for fishing doesn't allow this for my setup, but I've learned that with gamepad controls the actions are ...
0
votes
1answer
23 views

ADB using USB-C to USB 2.0 cable

Can I use ADB (USB Debugging) with cable that has USB-C connector on phone side and USB 2.0 Type A plug on the computer side? It should be able to transfer data.
0
votes
1answer
82 views

How to use an external sdcard as internal in Android Lolipop 5.1.1?

I have seen option of making external sd card to internal in android 6 mobile phones but i have android lolipop 5.1.1 how can i make it adoptable or get that option is it feasable to get that ...
0
votes
0answers
37 views

Permanently Enable Wi-Fi On a Smartwatch

I bought a children android smartwatch, MyKi Junior, running Android 4.2, which is intended for the specific purposes of parenting. I found out that it has a wifi chip that is usually used for ...
2
votes
1answer
54 views

Phone manufacturer prevents installation of apps signed by third paries, does anyone know a way around this?

I'm trying to put apps on an LG Exalt VN220, which is a flip phone that runs on a limited version of android. Whenever I try to install an apk using adb I get the following message: ...
1
vote
1answer
110 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
169 views

Fix ERR_PROXY_CONNECTION_FAILED due to a change in global proxy by mobile security framework through adb shell on non rooted phone

The problem in a non rooted Samsung Galaxy S7 smartphone: ERR_PROXY_CONNECTION_FAILED in Google Chrome No internet access on cellphone wireless settings No internet access on cellphone mobile data ...
0
votes
0answers
17 views

Question regarding dumpsys netstats

If I query using adb shell dumpsys netstat detail command, it is fetching me the same result always. How can I query netstat results realtime ?
0
votes
0answers
21 views

How to reboot a phone into safe mode using adb [duplicate]

Is there's any method to reboot a phone into safe mode with adb? What is the command? ps: I have installed adb probably in my window.
1
vote
0answers
39 views

How to enable debugging in ASUS Zenfone Selfie Pro 4 without seeing the screen (touch works BTW)?

[The similar questions are related to other devices and I don't intend to do factory reset.] I cannot see what is being 'shown' on the screen, only interact through fastboot or randomly touching the ...
0
votes
1answer
69 views

How to see Android OS System log file?

After leaving my Samsung Galaxy A-30 phone (with Android 9) for a few hours unbelievably I understood all of my internal storage is cleaned! I don't remember that I have installed any suspicious app ...

1 2 3 4 5 35