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
0 answers
180 views

How can one robustly and automatically configure Orbot through ADB?

Context Whilst automating a calendar setup over tor, and I was looking for an open source, and more robust way to automatically configure Orbot to: 0. Allow the Connection request (prompt: ok) Select ...
a.t.'s user avatar
  • 379
1 vote
0 answers
387 views

Opening notification with ADB and notification ID on Android

I am trying to open a notification on my Android device using ADB and the notification ID, but I am getting the following error message: Starting: Intent { act=android.intent.action.VIEW cat=[android....
user2367932's user avatar
5 votes
0 answers
333 views

How can we access Settings > Safety & emergency on Android via ADB commands?

How can we access Settings > Safety & emergency via ADB commands? I tried the below commands but none are working. 1. adb shell am start -n com.android.settings/com.android.settings.emergency....
Sam Sam's user avatar
  • 51
1 vote
0 answers
153 views

How can I get the output of an application via ADB?

I would like to get the text output of Google Voice2Text feature [Android9] via adb. The one you get when clicking the microphone on the keyboard (Google Voice Typing in the pref panel). I tried adb ...
r01_mage's user avatar
2 votes
0 answers
498 views

dumpsys battery in Termux

I am trying to get battery info in Termux. I granted android.permission.DUMP and android.permission.PACKAGE_USAGE_STATS via ADB for com.termux (Termux app) Then I opened Termux and types in /system/...
sudoer's user avatar
  • 149
1 vote
0 answers
69 views

Can I check for multi-process apps on a device using adb?

I have an Android device and I want to know either: whether there are currently any apps running in multiple processes whether there are any apps installed with the ability to run in multiple ...
Matt's user avatar
  • 111
2 votes
0 answers
103 views

Turn an old Samsung Galaxy S6 into a GameBoy/eBook reader

I have a Galaxy Tab S6 (I know, old...) and I would like to turn it into something that, once turned on, will do two things: GameBoy (via an emulator) Ebook (via the Kindle reader) I want to make ...
Merc's user avatar
  • 121
2 votes
0 answers
213 views

Port-forwarded connection (adb) being reset

I'm connected to an Android phone (being hosted on OpenSTF) via adb and have run $ adb reverse tcp:34567 tcp:34567 adb reverse --list confirms that the command was successful. I've also got an HTTP ...
August Vrubel's user avatar
3 votes
1 answer
393 views

ADB file transfer works on internal storage but not SD card

I am trying to transfer a large amount of files (>40k images and videos). I've had trouble transferring it by dragging and dropping in Windows File Explorer so I used the adb push command. It works ...
Grey Bunny's user avatar
2 votes
0 answers
134 views

Is it possible to make Android Emulator appear as an USB device on my Linux machine?

I need to access both ADB and MTP from one emulated device. May be there is some ready-made solution that can emulate android device via usb device emulating? All that I found is an android kernel ...
DarkLex's user avatar
  • 21
1 vote
1 answer
952 views

Does "adb shell settings put secure location_mode 0" reliably turn off/disable GPS?

I am trying to completely turn off and disable all GPS and location services for an Android phone. I found the following ADB command -- "adb shell settings put secure location_mode 0" Does ...
watchy's user avatar
  • 11
1 vote
0 answers
365 views

Set custom notification sound per contact regardless of app - Samsung Phone

I own a Samsung phone (One UI 5.0 Android 13), and was trying to set a custom notification sound for a contact (technically a "room") in the Element android app. In the process I found this ...
RaKXeR's user avatar
  • 21
1 vote
0 answers
518 views

Cannot enable wifi/tcpip adb at boot time in Android 10 - no Allow USB debugging prompt/unauthorized

I have a Lenovo TB_X606F, with stock Android 10. I managed to root the device, and I wanted to be able to have the device listen to port 5555 for adb connections over Wi-Fi, that is TCP/IP, at startup ...
sdaau's user avatar
  • 251
2 votes
0 answers
130 views

Phone bricks when I uninstall package installer - can I block app install?

I have a phone that I am trying to block from being able to install apps. I tried removing package installer via ADB, but when I did that the phone bricked upon being restarted, and had to be hard ...
Kovy Jacob's user avatar
1 vote
0 answers
227 views

OnePlus 7t - Device unauthorized in recovery mode (but authorized when turned on)

I would like to install a clean Android 11 with adb sideload, but I've encountered a problem. When I rebooted to recovery and tried adb sideload rom.zip it gives me this error: adb: sideload ...
Edward Noga's user avatar
1 vote
0 answers
186 views

Using LADB: "sm partition" does not show any differnce in internal storage

Using LADB (Local ADB Shell App) i tried turning my SD card into expandable internal storage (or adoptable storage, which isnt availabe on my samsung). I am unfortunatly not able to connect my phone ...
Eric Dirla's user avatar
3 votes
2 answers
2k views

How to flash something if the data partition is encrypted?

Problem The data on my phone is encrypted and I do not know how to flash something without decrypting it by using Disable Force Encryption. When the data partition is decrypted I can just copy a file ...
FreePhoenix's user avatar
0 votes
1 answer
3k views

Can you install Google Play Store with adb after it was uninstalled? [duplicate]

I have a non-rooted Samsung phone that runs android version 9 as shown in the image below. Some time ago I uninstalled Google Play Store from my phone because I thought that I could reinstall it if ...
inot12's user avatar
  • 1
1 vote
0 answers
463 views

How can an app detect ADB being used (e.g. with HttpToolkits)?

I have an app that stops working (at the login screen) when I have my device connected via ADB using HttpToolkits to get traffic. It seems odd; how does the app know that the phone is being used with ...
Zik Mir's user avatar
  • 11
1 vote
0 answers
343 views

Storage manager (SM) Partitioned Micro sd card but how to mount the extended partition and use it as internal storage.?

Question:- Storage manager (SM) Partitioned Micro sd card but how to mount the extended partition and use it as internal storage.? I purchased 6 months before, Samsung Galaxy s20 Fe with android 12 ...
Androidquery's user avatar
0 votes
0 answers
11 views

Turn off / delete "Smooth Sliding Screen" function in UI 3.0 ( realme smartphone ) [duplicate]

How can be turned off / uninstalled "Smooth Sliding Screen" function from realme smartphone? It is an adb command to achieve that? In UI 3.0 this function is forced enabled globally and not ...
Bogdan's user avatar
  • 101
1 vote
0 answers
447 views

get cellInfo with adb

I want to get the information inside cellinfo using adb command, but tac, lac, ci and cid are hidden. How to get these? for example: mCi=9*****68 mTac=3****1 command: adb shell dumpsys telephony....
mohsen's user avatar
  • 31
1 vote
0 answers
1k views

How to disable app background data usage via adb without root

I'm trying to disable unnecessary apps and their background data usage on an Android 10 device, using the following commands: adb shell appops set package_name RUN_IN_BACKGROUND ignore adb shell ...
M. A.'s user avatar
  • 820
3 votes
1 answer
707 views

How can I reset the WindowManager resolution and DPI settings in the Google TV user selection screen?

I was experimenting with the wm size and wm density commands, and now the Google TV user selection screen does not let me pick a user, telling me that 1920x1080 is not a supported resolution when I do ...
hacker1024's user avatar
3 votes
0 answers
203 views

Considering the licence, can I use ADB for other purposes than creating an Android application?

When I try to download Android SDK Platform-Tools (with ADB) from the official site (https://developer.android.com/studio/releases/platform-tools) it is required to accept the license that says (among ...
Mekushen's user avatar
2 votes
0 answers
458 views

am start of Chrome: Activity class does not exist

I've downloaded Chrome 106.0.5249.79-524907934 from APKMirror and installed it (along with the corresponding Trichrome package) on a Pixel 5a via $ unzip com.android.chrome_106.0.5249.79-...
August Vrubel's user avatar
2 votes
0 answers
259 views

Getting ModemServiceMode with adb

On Samsung devices, how to get the ModemServiceMode page (*#0011#) with ADB commands?
mohsen's user avatar
  • 31
4 votes
0 answers
677 views

ADB/PM command to disable data and wifi access for Apps

Is there a way via adb shell to disable an apps access to WiFi and Data? I'd like to turn off internet for all apps and then selectively turn it on for required apps. I know the manual way by going to ...
0fnt's user avatar
  • 141
1 vote
0 answers
244 views

How to pull non-debuggable app user data on a non-rooted device (with a broken screen!)

I recently broke my Pixel 3a's screen and I've bought a replacement. Almost everything's ported over, except for some key app data that I want if at all possible. The Google backup didn't work, ADB ...
Shirdel's user avatar
  • 11
1 vote
0 answers
469 views

How to recover data on a phone stuck in boot?

I know it is a common question. But I have been browsing the internet for the past 2 days and I can't find the answer to my specific case. So, I have a Redmi Note 5 pro Indian model. But for the past ...
Vivek's user avatar
  • 11
1 vote
1 answer
928 views

Preferred Network Mode not changing using ADB on Samsung S21 (Android 12)

I am trying to change the preferred network of android using ADB on Samsung S21 (Android 12) through the following commands: adb shell settings put global preferred_network_mode 9 adb shell settings ...
rox's user avatar
  • 11
1 vote
1 answer
247 views

How do I upgrade an Android phone's version from my pc

Ok so I have Android 7.0 and I'm trying to upgrade it to Android 8 or 9 because some apps require that as the minimum version. The problem now is I feel like my phone has stopped receiving updates ...
drvnprgrmr's user avatar
3 votes
0 answers
153 views

find out what app/package uses sensor

on my device running AOSP something accesses a sensor of my phone continuously, preventing it from going into deep sleep and thus draining battery. Logcat shows the pid, but that just links to android....
Tobi Peter's user avatar
2 votes
1 answer
2k views

How to open an app using ADB?

I would like to modify an existing app from Google Play to not appear on the app drawer. So what I did is I decompiled the apk file and then removed the line: <category android:name="android....
hontou_'s user avatar
  • 123
0 votes
2 answers
813 views

adb fails to authenticate but still connects

I'm connecting to a phone on OpenSTF via adb. Running $ adb connect <url>:<port_no> produces the message failed to authenticate to <url>:<port_no> However, adb devices shows ...
August Vrubel's user avatar
0 votes
0 answers
245 views

can't adb into phone with broken screen and lock pattern

i accidentally dropped my Pixel 6a on the counter a little hard. it landed flat on it's back. no physical damage. but the screen froze up. i pressed the power button to try and lock the screen (which ...
crookedleaf's user avatar
0 votes
0 answers
1k views

Bypass ADB Unauthorized

I have hero2ltechn or Samsung s7 edge with broken screen, already rooted and with custom twrp, i able to do root command. i only have access to adb recovery mode.... so i want enable adb from twrp ...
Anas Fanani's user avatar
0 votes
0 answers
428 views

ADB root shell always waits for background job before exit

I want to run a process in background and close the terminal, so the process remains active. I need to run the process as root. Since adb root doesn't work for me, I use adb shell; $ su to gain root ...
g00dds's user avatar
  • 111
1 vote
2 answers
4k views

<scrcpy> adb server version () doesn't match this client ()

I'm getting very contradicting messages trying to run scrcpy wirelessly. $ adb connect 192.168.1.200:5555 connected to 192.168.1.200:5555 $ adb devices List of devices attached 192.168.1.200:5555 ...
Pavel Schriber's user avatar
0 votes
0 answers
42 views

Check if developer options were active before?

Is there a reliable way to figure out when developer options were turned on the first time or ever? It'd be fine to use adb for that task, if I could see if developer options were active previously. ...
Martin Braun's user avatar
1 vote
1 answer
981 views

adb install-multiple: Update to package <pkg> doesn't support multi arch

I'm attempting to install Chrome 100.0.4896.127-489612710 (arm-v7a, Android 6.0+) on a Pixel 3 running Android 9. It's a .apkm file so I unzipped it and ran adb install-multiple -r -d *.apk However, ...
Daniel Walker's user avatar
0 votes
0 answers
91 views

No charging or transfer despite USB debugging and working cable

Device: Samsung Galaxy Tab 3 lite (SM-T110) OS: Android 4.2.2 I want to connect the device with my computer. In the developer settings I activate USB Debugging - but nothing happens. There is also no ...
Mat's user avatar
  • 41
1 vote
0 answers
4k views

Disable signature verify in android default bootloader for zip files

I have a J7 elte. When I want to sideload a zip file with adb from the phone's default boot loader the bootloader raises error Signature Verification Failed whole-file. How can I disable this ...
Reza Hosseinzadeh's user avatar
1 vote
1 answer
557 views

stuck on boot-loop

I experimented with custom roms, my phone cant load system, i get the start vibration with redmi screen looped. I have redmi note 9 pro max, i got lineage os 18.1 working for month, i tired upgrading ...
Arthur42's user avatar
1 vote
0 answers
38 views

Phone won`t boot into android/recovery [closed]

android phone won't boot into os/recovery even after flashing a new ones. here`s adb logcat maybe something writen here https://pastebin.com/6bSFURBM
EnderDremurr's user avatar
3 votes
1 answer
1k views

Cannot disable the clipboard history feature on Samsung galaxy device

Samsung devices have a clipboard history feature which is a big security risk for people who use a password manager. I have tried disabling the ClipboardSaveService package as described in the thread &...
raptorAcrylyc's user avatar
0 votes
1 answer
2k views

How do I reflash both partitions of a Google Pixel 6 Pro device in one go?

How do I reflash both partitions of a Google Pixel 6 Pro device in one go? If I follow the instructions at https://developers.google.com/android/images, I have to: reflash the first, default ...
Patrick Dark's user avatar
1 vote
0 answers
305 views

Smartwatch: forcing a factory reset without USB debugging?

I recently made a mistake on my watch "h1-c-aladeng"(watch model) or "Lanix Ilium LT510"(the model in "Find My Device"). I now can look at the smartwatch and can't do ...
GD TheuTrich's user avatar
3 votes
0 answers
2k views

How to give `adb run-as` external storage permission?

So far I've been using adb run-as and cat to extract files from apps private storage /data/user/0/com.myapp.android. Simply catting the file and piping it to a local file on my pc worked a treat. Now ...
Kristian's user avatar
  • 131
1 vote
0 answers
57 views

Symlink temporary file

I'm attempting to backup my Signal chats totalling almost 15GB, which presents a challenge in my 32GB phone. I simply have no space to do it, and even stripping the system of pretty much all apps ...
Tmpod's user avatar
  • 41

1 2 3
4
5
47