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
1answer
13 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
27 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 ...
3
votes
1answer
231 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
10 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
18 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
57 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 ...
-2
votes
0answers
17 views

How to make a custom Hosts file in Android device? [duplicate]

I want to make a custom Hosts file on Android. I have bought a new Android device lately and I want to block some websites. As far as I know, the only way to edit the host file on Android, or your ...
0
votes
0answers
36 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
47 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
85 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
63 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
15 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
19 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
32 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
55 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
vote
1answer
130 views

How to pull data from internal memory on an unrooted phone?

Yesterday, I suddenly discovered that I had lost all the user files on the internal memory of my android phone. All my photos, my music, my PDFs, audio recordings, everything. I will explain the ...
0
votes
1answer
51 views

Restart adbd as shell user on a non-rooted device without rebooting after the “setprop” operation [duplicate]

The setprop service.adb.tcp.port 5555 worked on my non-rooted device, now I need to restart adbd as the shell user : $ adb shell shell@android:/ $ getprop ro.build.version.release ...
0
votes
0answers
79 views

Stuck on “Bootloader is unlocked” screen, can't boot into recovery

So I wanted to root my OnePlus 6 after updating to android 10 (OnePlus6Oxygen_22_OTA_041_all_1911142043_dde113e5 3cd0f9.zip) I tried booting into twrp via fastboot using fastboot flash boot twrp.img (...
2
votes
1answer
107 views

How to get 2nd IMEI number using adb?

I am currently using this command adb shell "service call iphonesubinfo 1" to get IMEI number, but it only returns 1st one. Does anyone know how I can get the 2nd IMEI number?
0
votes
1answer
37 views

Sony Xperia Z3 Compact Back and Home buttons not working

Background Many people have experienced a bug whereby the Sony Xperia Z3C (compact) no longer has functional home and back buttons. Specifically, the issue involves the buttons highlighted by the red ...
0
votes
1answer
50 views

How to make `adb reboot` work like `/system/bin/reboot`?

I have a problem with my device. When I do adb reboot then it stuck on boot in a loop. But, when I do adb shell and then reboot, it works fine. I searched over the internet and understand that both ...
0
votes
0answers
13 views

Accidentally mklabel'ed the entire disk [duplicate]

So I recently got an old Nexus Tablet for an incredible low price and wanted to use it for Kali Nethunter. The problem was, that the /system partition is too small. So I used adb to transfer parted ...
0
votes
0answers
14 views

XML Config File to force wi-fi switch always on

I have and android running 5.1.1 for some reason it keeps shutting off the wi-fi, switch just goes to off. Can i push a config to it to force it permanently on?
2
votes
0answers
37 views

How to know if USB drive was detected using OTG from dmesg output?

I am trying to get OTG to work with my phone (Samsung Galaxy Win SHV-E500L, previous question here) I have used an externally powered USB hub and connected it to an OTG cable connecting it to my ...
1
vote
1answer
163 views

Is my Android device vulnerable to CVE-2019-2234 and How can I mitigate this before a firmware upgrade?

Background Info: CVE-2019-2234 is a serious vulnerability or (maybe an APT) which allow other apps to record videos, take pictures, and extract EXIF data without having permissions. Edit: This ...
0
votes
2answers
87 views

Disable xposed from TWRP

An xposed module screwed my interface. It's all black. I can't access /data/data from within TWRP due to some stupid encription problem. Is there another way to disable xposed ? Losing data is out ...
0
votes
0answers
28 views

How to test dns resolving in adb (Android Debugging Bridge) shell?

I have set up adb shell with a virtual device (anbox under ubuntu 18.04), while the ifconfig can give the valid information: x86_64:/ # ifconfig eth0 Link encap:Ethernet HWaddr f6:57:1f:73:e9:...
1
vote
1answer
45 views

How do I bypass the RSA authentication dialog box to enable controlling phone from adb?

My phone is Samsung Galaxy S4 SHV-E330S with a broken screen (cannot see or touch anything) For more context please see my old questions here and here. I have already tried these: Can I ...
1
vote
0answers
69 views

How to install SuperSU using adb while the phone is in TWRP recovery with a broken screen

I have a Samsung Galaxy S4 SHV-E330S with a broken screen (cannot see or touch anything). Please see this and it's comments for more context I have managed to flash TWRP on this phone (https://twrp....
0
votes
0answers
33 views

Is there a way to move the adbkey files to a different directory

I have found a .android folder in my home directory with two files: adbkey and adbkey.pub Is there a way to move these files to a different folder. After first installing Android Studio I noticed ...
0
votes
0answers
70 views

Cloning Android Devices

I would like to know if it is possible to clone a physical Android device with all settings, apps and configuration to inject it on other Android devices such as an image of the device. And if it is ...
2
votes
1answer
53 views

How to screencap the smaller display of Samsung Galaxy Fold using ADB 'screencap' command?

I'm trying to take a screenshot of Samsung Galaxy Fold's smaller display. I use shell screencap -p /sdcard/testss1.png but it only captures the main display ― which is off ― and gets a black image. ...
0
votes
0answers
20 views

How to package partitions into a flashable twrp package

I have a rare android tablet that twrp doesn't support. So I'm rolling my own TWRP recovery for it. I only have root access via command line. Not via Magisk or SuperSu. I have created copies of all ...
0
votes
0answers
10 views

How can I extract all apks (both system and user) from rooted android device? [duplicate]

I would like to backup all apks on my android device. Even the system ones. I know how to extract one apk, but I didn't know if there was a tool or a script or a command that I could use to grab all ...
0
votes
0answers
48 views

Make second user also a device owner

I recently bought Samsung Galaxy tab s5e , and configured my account for it. Afterwards I created account (using android multiuser feature ) for my wife. Hovewer the second account is very limited due ...
0
votes
1answer
26 views

(Semi) permanently disable touch input

I own a Samsung Galaxy S4 (GT-I9515L "jfvelte") running Lineage OS 16. It has a broken touchscreen which register random "ghost" touches. I'm able to use it with the help of a USB mouse. To disable ...
0
votes
0answers
73 views

Error: java.lang.IllegalStateException: command '1636 volume partition disk:179:64 private' failed with '400 1636 Command failed'

using the method described here. First command adb devices Output of first command List of devices attached * daemon not running; starting now at tcp:5037 * daemon started successfully ...
0
votes
1answer
64 views

change root location to /system/xbin android

i have a root android device, but su is located on / So, i wanna change my su to /system/xbin or /system/bin. but i can't change su while i'm using it. I also need to change 2 files that are located ...
2
votes
0answers
74 views

Programmatically add wifi networks on Android

I have a list of about 100 WiFi SSIDs and passwords that I've extracted from my old phone and I want to add them to the new phone that runs Android 10 and I couldn't find any useful information on the ...
0
votes
0answers
90 views

Boot loop recovery with access to Download / Recovery modes, OEM / FRP lock enabled

Context: I have a Samsung Galaxy Tab S3. Which, seemingly sudden, entered a boot loop - The Device name and Samsung logo screens will cycle indefinitely until There is no power left or I interrupt ...
1
vote
1answer
148 views

How To Enable Debug Mode From ADB Shell or ADB Via Terminal In Linux

so far I have put my android device in ftm mode i have tried from adb sideload now i am trying with busybox ash I'm able to run ls but anything else says permission denied or error:closed. / $ ls ...
0
votes
0answers
13 views

“mount -o bind” command does not work [duplicate]

I ran this mount command to link a folder in /data to /storage/emulated/0: mount -o bind /data/directory_1 /storage/emulated/0/directory_2. Although there was no errors, in the mounted directory (/...
0
votes
0answers
24 views

Phone not recognized by computers at all. No adb, usb, lsusb, fastboot

For over a year my phone had no issue connecting to my computer via usb cable. I could transfer files back and forth via adb no problem. It stopped being recognized about a month or two ago, So I've ...
0
votes
0answers
54 views

How to mount 100% ext4 sd in Android Pie?

My phone (Redmi 6A) is running Android Pie(MIUI). How do I mount a 100% ext4 formatted sd card, such that it would be seen by vold? My phone is rooted. I am not experienced with the android shell ...
0
votes
1answer
86 views

Local equivalent to adb install

With a PC connection and adb, I can install packages by running adb install foobar.apk There is also an option to downgrade a package to an earlier version and keep data (as long the app itself did ...
0
votes
0answers
43 views

Get raw app usage data

Android seems to keep a log of the past week of app usage. It seems that there are many applications that are able to get this "App usage" permission and by querying some underlying api get all the ...
2
votes
1answer
525 views

How to set Wi-Fi HTTPS proxy, not HTTP, via adb shell?

For HTTP I found a link: How to set WIFI proxy via adb shell? But I want to setup HTTPS proxy via adb shell.
0
votes
1answer
31 views

Should my “adb backup” include the system files or not if I'm planning to downgrade my Android version?

I'm using Oneplus 3t on the latest Android 9 OS. I'm planning to downgrade it to Android 8 and hence backing up my data with adb first. adb backup "-apk -obb -shared -all -nosystem -f d:/other backup/...
0
votes
0answers
31 views

How to switch active slots without a computer or rooted device

Essential PH-1, Liquid Remix ROM api 28, not rooted, no Gapps, bootloader unlocked. Problem: current slot A, where the ROM boots from, does not have custom recovery installed. However TWRP is ...
0
votes
0answers
59 views

Does “adb backup” also backup /data/misc/vold - the Encryption Key for Adoptable SD card?

I want to make sure that using adb backup -apk -shared -all -f ~/backup.ab will also save /data/misc/vold? I am trying to backup before rooting, in order to be able to gain access to the encryption ...