Questions tagged [adb]
ADB (Android Debug Bridge) is a tool that comes with the Android SDK that allows you to control and interface with your Android device.
7,156
questions
0
votes
0
answers
6
views
syntax error when running iperf through adb
I am trying to execute iperf through adb shell, however I am getting following error:
syntax error: unexpected 'newline'
here are the steps:
push android compiled iperf binary to /data/local/tmp
...
0
votes
0
answers
7
views
Can anybody help me getting current activity's layout and views via adb, if the screen is a Webview?
As Both commands, adb shell uiautomator dump or adb shell dump --compressed doesn't work with Webview Layout.
-1
votes
0
answers
15
views
How to download package using adb? [closed]
I want to download packages with adb but there are some problems. I type adb shell pm list packages on the command line and download packages but unfortunately package: com.android.calculator2 is ...
0
votes
0
answers
28
views
How to execute ADB inside Android with Flutter?
It possible to run ADB inside android flutter application without root.
There is an application that did it and it works as expected:
https://github.com/nightmare-space/adb_tool
It is using ADB binary ...
0
votes
0
answers
11
views
How to run device setup wizard on Android emulator?
I want to run device setup wizard - the app that's getting run when you first boot your fresh (factory reset) device. The problem is: I want to run it on Android Emulator.
I've tried the following on ...
0
votes
0
answers
16
views
adb not work in android studio ,'adb' is not recognized as an internal or external command
i try use adb , i put my adb in a PATH environment variable , and i run my app and navigate it to home screen ,adb work in cmd on my computer but it not work in terminal in android studio
in cmd it's ...
-1
votes
0
answers
26
views
Android: Shell adb commands changing periodically
Hey i have this adb command that turns a certain feature off. It basically changes a value of something from True to False. It works for a few days or sometimes a few hours and it changes back to True....
0
votes
0
answers
7
views
python pure adb error: read-only file system. Xiaomi
from ppadb.client import Client
from ppadb.client import *
import os
client = Client(host="127.0.0.1", port=5037)
device = client.device("3147da30")
directory = os.fsencode('C:\\...
-1
votes
0
answers
15
views
How do I unlock the bootloader of my Honor 20 Lite [migrated]
I recently tried to unlock the boot loader of my Honor 20 lite but failed, due to Huawei removing the online code request thing. And I thought that this would be the right place to ask.
So, whenever ...
0
votes
0
answers
24
views
communication between iphone and windows pc
the company I work for wants to replicate certain performances on Apple devices. I would need to make an iphone communicate with a windows pc in the same way that ADB communicates with android devices ...
0
votes
0
answers
9
views
Get value in specific element with python in Android with ppadذ
I want to enter an Android application using Python and adb and get the elements displayed by the application, find the element I want, change the code and run it again, and receive the text inside ...
-3
votes
0
answers
32
views
What's problem here? FileNotFoundError: Cannot find [closed]
from ppadb.client import Client
import os
client = Client(host="127.0.0.1", port=5037)
device = client.device("device_name")
for i in os.listdir(r'some folder'):
if i.endswith(...
0
votes
0
answers
32
views
USB Debugging Error but WIFI Debugging clearly Fine :( how to fix it?
I want to debug using my USB Port, but the adb or something hold me an error. In other condition, when i used my Wifi/Wireless Debugging, the app running well.
I screenshot the messages Event Log my ...
0
votes
1
answer
27
views
Screenshotting ADB using Python
so I am trying to screenshot adb and handle it purely from Python hence there will be no files saved on the users device.
I created the following helper functions in order to do so
def adb_run(command,...
0
votes
0
answers
24
views
How to see the output of my android app through command line (not only Log.d output, and not only while running)
I tried all answers at How to filter Android logcat by application? but some of them only work when the app is running, or some require logging in to the device via shell.
If I run those commands ...
0
votes
0
answers
13
views
Getting device ID for custom configuration in Android Studio
In Android Studio I can have different configurations and I can choose on which device I want to run them.
I want to run certain adb commands (like adb reverse) before running the app, is there a way ...
0
votes
1
answer
14
views
Real device is not installing app.apk after deleting .gradle folder
I was cleaning up my explorer and was stupid enough to delete the .gradle folder. When I recreated the folder, the real device was not install my flutter app and was stucked by "installing build/...
-3
votes
0
answers
24
views
How I can run cloud apps in my mobile phone [closed]
I want to create an Android application on my own. I want to run a cloud running app on my mobile phone. Here is the thing:
The super application will be deployed in the Play store. I know the super ...
-1
votes
1
answer
13
views
How to delete apk/app from system/app via adb
Hi guys ım trying to delete system apps which developed by custom user, not stock. Some app setted as a system apps. When ı try to delete, its saying not installed for user 0. How can ı solve this ...
0
votes
2
answers
57
views
Is there a faster way to emulate tap in android using Python in PC?
I tried:
from ppadb.client import Client
adb = Client()
device = adb.devices[0]
device.shell('input tap x y')
but it just takes too long. Is there a faster alternative to it?
-1
votes
0
answers
11
views
INSTALL_FAILED_PACKAGE_CHANGED
can any one solve this problem.when i try to install app from adb it shows error
'''INSTALL_FAILED_PACKAGE_CHANGED'''
-1
votes
0
answers
31
views
Stuck on bootloader, OEM unlock was previously disabled. How to flash? [closed]
I have an OnePlus 7 Pro and my device is stuck on bootloader, I can access fastboot but I can't seem to flash the Official ROM of the phone or any other ROM. The device state on phone is labeled
...
0
votes
0
answers
36
views
How to open Android pop-up view from adb?
in samsung galaxy s8 how open app in popup view from adb ?
0
votes
1
answer
21
views
How to get color of X Y pixel in python from android screen as fast as is possible with adb or another solution
I try write some automatic app in python, and i have to check color pixel from mobile as fast as possible. I try take screenshot, and take pixel from photo. But it is too slow,
Thanks!
-1
votes
0
answers
33
views
Can I use printf in an Android native binary
Let's assume the phone is rooted and arm binaries can be installed. Can I make a console binary using Android Studio with printf output?
Is there a step-by-step guide to writing and compiling such ...
-1
votes
0
answers
18
views
How to check adb access over ethernet?
I want to connect my Android device via ethernet to access adb.
The device is not connected to any internet/wifi. The ethernet cable should connect the laptop with the Android device. Using Android 11....
0
votes
0
answers
23
views
I'm using Expo App in my Android Device to connect into the my Desktop's Expo
I'm using Expo App on my Android device to connect to my Desktop
(Ubuntu 20.04.4 LTS) Expo (I signed in both my same Expo Account)I am also connected to the same network. Then I scanned my code then ...
1
vote
1
answer
15
views
Broadcast receiver not working for INITIALIZE_PROGRAMS action
I'm developing an Android TV app, and I'm setting up a broadcast receiver to run a work class when the user installs the app.
Following the Google documentation, topic number 6, it shows how to add a ...
0
votes
1
answer
31
views
Issue when sending http requests to android emulated devive
I m trying to run some ui automated tests on a android virtual device( android studio) and I have the bellow issue:
After my app is installed on the device , from my framework I sending http request ...
1
vote
0
answers
31
views
Android Device Does not have option for : Android (Security Settings) Model : One plus 9 pro
I can not give permissions to android app, In the developer options menu, there is only USB debugging option is available.
Here are the Command line outputs,
$ pm grant com.draco.resolutionchanger ...
0
votes
0
answers
33
views
How to take screenshot in Android Emulator (user pressing "power" + "vol down")?
I need to take a screenshot inside my app, so the image would be saved in Google Photos. All questions I see related to taking screenshot are basically about saving screenshot of your pc with an ...
0
votes
0
answers
36
views
UiAutomator2 server because the instrumentation process is not running python appium error
i am trying to automate an app with appium but after the first click i get an error:
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: 'POST ...
0
votes
1
answer
16
views
Android Studio doesn't see devices (usb and emulator)
Android studio doesn't see any of the devices, but it worked before. Now, when real device is connected via USB and I can see all it's files from the PC, Android Studio still doesn't see it, no matter ...
1
vote
0
answers
16
views
Is there command to show all bluetooth devices ever conencted to my mobile phone?
So i lost my bluetooth ear buds and wonder if there is any way i can see where i was lastly connected to them. I had already tried using command adb shell dumpsys bluetooth_manager but the command ...
0
votes
1
answer
14
views
apksigner verify with no output
Shouldn't I expect an "Ok" output whenever I run apksigner verify APK.apk on my apk and it finishes correctly?
I ran the command on an apk and it simply finished without throwing any warning ...
-1
votes
2
answers
23
views
Getting output from adb command in python pygui to populate combo
im using python and pygui to make a simple window that has a combo box that will list the files in a directory of an ADB device. For example if the folder has pictures, i would like to list all the ...
0
votes
0
answers
19
views
Qt android debugger adb error Address already in use
Im trying to debug android application using Qt Creator and getting the following error:
W ActivityThread: Application org.qtproject.example.tid_trains_android10 is waiting for the debugger on port ...
-1
votes
0
answers
30
views
How do i execute a adb shell using a sh script on android? [closed]
How to set global GPUTUNER_SWITCH true using ADB shell?
0
votes
0
answers
26
views
No wireless mobile connection to computer as simulator. Error 10060
ADB-QR: cannot connect to 192.168.1.104:42663:
A connection attempt failed because the connected party
did not properly respond after a period of time, or
established connection failed because ...
0
votes
1
answer
32
views
Xamarin Forms - Android project doesnt deploy from Visual Studio
The Android project doesnt deploy from Visual studio to Samsung Tab.
Initially the output shows deploying to device, after 2 minutes, it changes to Ready state and doesnt deploy even after 30 mins.
...
0
votes
0
answers
20
views
Install Android App Bundle on device over WiFi
How can I installed .AAB file with adb or other tool over a WiFi only connected Android 11 device?
I have been using something like:
adb.exe -s 192.168.1.120:5555 install -g some.apk
tried ...
0
votes
0
answers
16
views
Android Studio Bumblebee : wifi pairing always getting disconnected
I manage to connect my device. But a few minutes after, it gets disconnected and I have to restart the whole connection procedure to connect it again.
How to solve this problem?
Thanks
0
votes
0
answers
15
views
how to return result in cmd if you use adb to send a broadcast
I have a BroadcastReceiver like this:
class PlatformAccountReceiver:
BroadcastReceiver(), CoroutineScope by MainScope() {
override fun onReceive(context: Context, intent: Intent) {
...
1
vote
0
answers
31
views
Is there a way to send push-notifications via adb shell or mock one for tests?
I'm trying to test the notifications of my android app. Is there a way to mock a Firebase notification or send one via adb?
-1
votes
0
answers
14
views
Appium Mobile Testing - Getting an below error message (Attached in Body) while running second test case in Real android device. I have attached info
Appium Testing
Android device - One plus (Android Version -11)
Appium version - 1.22.3
N pm version - 6.14.12
Java version - 1.8.0_202
enter image description here
enter image description here
0
votes
0
answers
47
views
Copy folder from /data/data/ with adb
how can I copy the folder from /data/data to my pc using adb?
I tried this and this copy only 1 file but I want to copy the whole folder
adb -d shell "run-as com.example.test cat /data/data/com....
1
vote
0
answers
35
views
Download btsnoop_hci from Android 12
I am trying to extract and analyse BLE traffic from an Android 12 STB to validate certain operations like key press etc.
I came across two methods:
Download the entire bugreport (adb bugreport <...
1
vote
0
answers
39
views
Can you achieve multi touch with Android keyevents via ADB for scrolling screenshot
I would like to try and initiate a scrolling screenshot on Android via adb keyevents. On the physical device this requires a three finger long press followed by the three fingers being swiped to the ...
0
votes
0
answers
45
views
How to ADB run command as background process AND THEN KILL IT?
I've searched similar questions on the net, yet nothing is close to what I want, let's say my Windows script ( .bat) is composed of many commands start with "adb shell" which would be ...
0
votes
2
answers
41
views
How does adb find the USB port #?
When I run "adb devices -l", it is able to display the USB port info as "usb:xxxxxxx". Does anyone know how adb pulls this info? I'm trying to figure out how I may be able to do ...