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,531
questions
-1
votes
0
answers
15
views
Why is my phone not showing up in VSCode and flutter devices even when `adb devices` shows the device is connected?
I want to run flutter project on my phone. The adb devices command is showing the device as shown in the picture.But VSCode and flutter devices command are just showing the Linux desktop.
NB: USB ...
0
votes
0
answers
4
views
quickstep recent button stopped working with new launcher, is there way to edit recent button source code in android studio?
Whenever I try to use recent button in a newly installed launcher, I get error, 'quickstep keeps stopping'.i want to edit quickstep settings in Android studio to make recent button work with any ...
0
votes
0
answers
25
views
Python Matching images with OpenCV + AirCV + ADB. Coordinates retrieved are wrong despite matching
So what i'm doing is essentially taking a screenshot of my emulator using ADB then matching the screenshot with a specific image. If the image can be found in the screenshot then it returns "True&...
0
votes
0
answers
12
views
Android Studio Cannot Reach ADB Server/Error while waiting for device: is already running/Waiting for target devices to come online
I just cannot run my application on the Android Studio emulator. I've tried every possbile solution from the internet, as well as reinstalling the Android Studio. I have couple of issues:
Cannot ...
0
votes
0
answers
17
views
Why is app link and verification not working on android
Cannot verify app link for my app on android devices. Using example.com for domain, and com.example.app for app id instead of the real one.
I can launch app by adb shell am start -W -a android.intent....
1
vote
1
answer
20
views
How to extract /data/ on Android without root
My aim is to extract system folder /data from my Android phone. I was trying several answers and my plan is
1 Create backup adb backup "-apk app.source.getcontact -f res.adb" (DONE - file ...
0
votes
0
answers
26
views
How to connect directly to the ADB daemon via an Android
I am looking to implement a Android virtual controller application. Most android games works with mobile gaming controllers but for certain games, this is not supported (Genshin, looking at you 0__0). ...
0
votes
0
answers
16
views
adb not available on fedora linux
I just switched from Ubuntu to Fedora but I have a problem with installing ADB, before that I installed adb on my Ubuntu and worked normally with it, but in the process of working I encountered some ...
0
votes
0
answers
22
views
Port dissapears from URI in adb android.intent.action.VIEW command?
Context
While attempting to automatically configure DAVx5 over (usb) adb, I noticed the port that I include in the intent, does not arrive at the DAVx5 app.
Example
I can run:
adb shell am start -a ...
-1
votes
0
answers
26
views
Bat file to connect different device from list [closed]
I have a Bat file to connect adb to device using IP. But i change device to test different cases. so i want to write all IP in array and while running BAT file, which IP is connected, it should ...
0
votes
0
answers
20
views
Disable bugged parental control [closed]
A phones parental control got bugged and I can't reset it back. The phone thinks it is supervised but the google account supervision isn't activated. (Using Motorola G42)
I tried disabling admin ...
0
votes
0
answers
17
views
Android SDK emulator: crasher strlen-NULL
https://source.android.com/docs/core/tests/debug/native-crash says:
"You can reproduce an instance of this type of crash using crasher strlen-NULL."
How to do that actually? Open a "adb ...
0
votes
0
answers
24
views
VScode: Error:ADB not founded in this machine (Flutter and Android SDK)
I installed AndroidSdk and Vscode, when i connect usb cable i managed to deploy my application on my phone. on terminal the command works:
adb devices
i installed the adb pplugins for Vscode but when ...
0
votes
1
answer
31
views
Android application cannot execute adb bugreport
how can i excute adb, not adb shell in my app with system sign.
for example, i excute adb shell bugreport, but error message tell me should use adb bugreport.
i found many docs, but didn't solve my ...
-1
votes
1
answer
42
views
zsh: killed adb on macOS
I'm trying to resolve an issue related to adb. Whenever I type "adb" and associated commands (adb kill-server, adb devices, etc.) I get this output:
zsh: killed adb
In other similar ...
-1
votes
0
answers
26
views
ADB command or any approach by which we can confirm after clicking somewhere in android application new page is loaded completely
I want to know if there is any method or adb command by which I can confirm that my new page in android application is loaded completely after I clicked somewhere.
I tried adb shell "dumpsys ...
0
votes
0
answers
14
views
Script to record all touch events on an android device
I have an android device with developer mode enabled.
I would like to write a script which I can push using adb which will have the android record all touch events, even while disconnected from my ...
1
vote
2
answers
73
views
android app stucks in waiting for debugger
Since I've installed a newer version of android studio i.e. Android Studio Flamingo | 2022.2.1 my application always waits for a debugger when executing debugging from android studio.
I have tried a ...
0
votes
0
answers
11
views
ADB shell command to set default Bluetooth volume for android device
can someone please give me a command to make android device Bluetooth volume to default(some 11).
The below query working but the volume is going back to normal once the device is restart.
Enter ...
0
votes
0
answers
15
views
Cannot Upload a File in an App installed on Windows Subsystem for Android
I'm using a mobile app through windows subsystem for Android. The app is working fine. but when I try to upload a file to that app it will not prompt for opening file manager or storage locations for ...
0
votes
0
answers
19
views
Unlocking an Android phone
I forgot the password of my android phone (I have a Samsung A51) and I am trying to reset the lock password. It is important for me not to reset because I have important information that I want to ...
0
votes
0
answers
16
views
Oculus devices network without internet disconnects
I have an issue with the Meta Quest 2 and the new Meta Quest Pro, where i have an app that needs to be connected to a local network to work (the same as the others headsets because it's multiplayer). ...
0
votes
0
answers
15
views
Why is my shell script variable not working as an argument for the top command? [duplicate]
So I'm writing this simple script to pull the process ID of my app, and then run the "top" command with the value I pulled as the -p argument. The goal is to run the "top" command ...
3
votes
0
answers
34
views
ADB Command to set alarm volume to 0 (completely silent)?
On Android 13 (particularly LineageOS 20), the alarm volume level seems to have been limited to a minimum of 1, which means there is still sound coming out, whereas in older Android versions such as ...
0
votes
1
answer
49
views
Can't Install app adb: failed to install app-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES
I wanted to make my old phone into a spotify mp3 player and make spotify the home launcher app. I found this on github: https://github.com/joshmcarthur/spotify-launcher
It is from 2016 and it says &...
0
votes
0
answers
18
views
Not able to get the dumpsys wifi Logs (Can't find service : wifi) but with other command it works "dumpsys display", "dumpsys cpuinfo" etc
When I run "adb shell dumpsys wifi" on the android studio terminal I am able to see logs but when I am trying to do it using java and trying to save it in another file it does not work.
With ...
0
votes
1
answer
38
views
How can I reconnect a disconnected emulator to adb server without killing the server?
At first, I ran 11 Bluestacks instances like this:
After some time using self made macro, one instance disconnected like this:
I just want reconnect emulator-5614 without killing adb server because ...
0
votes
0
answers
15
views
Android Studio can install app on one physical device but not another of the same model
I successfully can install an app (for debugging) on one phone. When I try to install the same app on another phone that is the same model as the first phone, the installation fails.
The idea logs for ...
1
vote
0
answers
37
views
How can I force launch the Android app picker for a URI via ADB?
Running the below command launches the URI in the default app for that URI, falling back on the app picker if there is none.
adb shell am start -a android.intent.action.VIEW -d "https://example....
0
votes
0
answers
33
views
How to execute adb shell commands that includes granting permissions to subfolders in /data/data directory from a Python script with os.system?
I'm trying to execute the following series of adb commands in one line using os.system:
OnePlus5:/ $ su
OnePlus5:/ # cd data/data && chmod -R 777 ./
chmod: chmod 'lib' to 120777: Read-only ...
0
votes
2
answers
81
views
Installing or giving my app system level permissions (API 30+)
I'm currently trying to develop a system app or a application with system level permission so it can for example change language and disable/enable wifi etc.
There are some examples out there with ...
0
votes
0
answers
27
views
Is it possible to reboot Android Automotive OS to fastboot/recovery using physical keyboard? [migrated]
I have a media-system module occasionally locked in OTA mode. It does not response on any buttons pressed or screens tapped - but it still works: adb port works (but there is no trusted connection so ...
-3
votes
0
answers
31
views
Python Pygame Buildozer APK keeps crashing after running app on Android device [duplicate]
I developed a small animation/game in Pygame that I want to run on my Android device. The Pygame works perfectly fine on my Windows machine when using Spyder/Jupyter notebook etc. In order to utilize ...
0
votes
1
answer
72
views
Cannot reach ADB server, attempting to reconnect
hello please help me when i connect my phone to android studio i am getting this type of log it was working fine few days ago after i update my android studio i am unable to connect my physically ...
0
votes
0
answers
13
views
failed to copy 'Wire1.nmconnection' to '/persist/NetworkManager/system-connections/': remote secure_mkdirs failed: read-only file system
I tried ./adb push'Wire1.nmconnection' /persist/NetworkManager/system-connections/ to send this file to a device and it is showing something like that.
What I assume is, I don't see the device listed ...
0
votes
0
answers
19
views
Programmatically map flutter emulator's device id and he emulator id
I have defined a bunch of emulator profiles. Each has a different emulator id which can be checked with ~/Library/Android/sdk/emulator/emulator -list-avds
Any emulator can be started with ~/Library/...
0
votes
0
answers
29
views
I encountered an error INSTALL_FAILED_INSUFFICIENT_STORAGE while trying to install APK. adb logcat Output INSTALL_FAILED_INVALID_APK
About
Device: Car PC By Android
Version: Android 4.4.2
Use adb install output error code INSTALL_FAILED_INSUFFICIENT_STORAGE.
But there is more than 80% remaining storage space,Total 1G,Free 900M,So ...
0
votes
0
answers
24
views
Save trace file from Android emulator of Android Studion to the system using adb
I want to save trace file of an App from Android emulator of Android Studio to my system using the following command:
adb pull /sdcard/Android/Trace1.perfetto-trace /C:/Users/MyAccount/TraceFile/
But ...
0
votes
1
answer
36
views
How to simulate user input when writing bash script on a shell device [duplicate]
I am writing a script to automate a large number of steps needed for provisioning an android device. However, I am having a trouble with one particular step. There is a command that I have to run on ...
0
votes
0
answers
22
views
Why are the addresses in my log file completely different to the addresses in the .so debug symbol files?
I'm running a Unity Android application, using ADB from a Windows machine.
By using ADB and logcat, I'm able to get the runtime logs with stack traces (with hex addresses).
Now I want to use the hex ...
0
votes
1
answer
26
views
How to kill the app so that it will be started from the last opened activity next time
The app has MainActivity and NextActivity. User opens the app in MainActivity, then goes to NextActivity.
If user sent the app into background the system may kill the application process.
In logs I ...
0
votes
0
answers
27
views
How to copy xml file from Android device/ emulator to PC in JAVA?
In the app that I'm building, there's a sync feature that synchronizes with the backend database and retrieves data. The data will be stored on the device (at the location tempDecryptPath) in XML ...
0
votes
0
answers
17
views
How to save a bug report stuck as a .tmp file?
I have an android phone with bugreports saved on them. One of the bugreports did not finish properly executing and seems to be saved on the phone as bugreport-bramble-TQ2A.230305.008.C1-2023-04-21-04-...
0
votes
0
answers
32
views
debugging faild "cant find the process issue"
I'm having an issue with the debugging process while testing the Android application I created on Android Studio. When I click on "run" in Android Studio, the application successfully ...
1
vote
0
answers
205
views
Android Studio Flamingo failed to launch an application because use wrong applicationId
After I update android studio ide from Dolphin to Flamingo, when I press run button the ide failed to launch my app.
As I see the different between 2 version of Ide is
Android Studio Dolphin use this ...
0
votes
0
answers
28
views
Is it possible to make the wireless debugging port static?
I have a Google Pixel 7 phone using Android 13, not rooted.
Is there a way to specify a static port when doing wireless debugging, so that it doesn't change if you turn off and then turn on Wireless ...
1
vote
0
answers
40
views
Reinstalling an app via ADB sometimes causes data to be lost on Samsung devices with Android 13
I am trying to uninstall and reinstall the Whatsapp application, while keeping the app data on the device.
To uninstall the app and keep it's data, I use the following command:
adb shell pm uninstall -...
0
votes
0
answers
182
views
SCRCPY: [server] ERROR: Could not invoke methodWARN: Device disconnected
I'm encountering with an error message when attempting to use scrcpy.
I am trying to mirror the Android screen.
Please refer the image
Error:
intel@intel-NUC12WSHi7:~$ scrcpy
INFO: scrcpy 1.12.1 https:...
1
vote
1
answer
63
views
I want to decompress the .ab file backed up by adb and write it into a tar package
I handle it in the following way
bf, err := os.Open(backupFilePath)
if err != nil {
fmt.Println("os.Open: ", err)
return
}
defer bf.Close()
rd := bufio.NewReader(bf)
tarFile, err := ...
0
votes
0
answers
25
views
Problems creating Netlog when starting Chrome
I've a problem regarding Chrome with VPN and a developer asked me to provide a netlog (https://bugs.chromium.org/p/chromium/issues/detail?id=1317640#c28 )
I know how to do this when the app us running
...