adb

adb: CreateFileW 'null' failed: The system cannot find the specified file

牧云@^-^@ 提交于 2021-02-19 08:45:19
问题 I installed Android Studio 3.0.1 in Windows 10 and it turns out that I can not launch any emulator, as much as you create these emulators, these are not displayed and I get the following error: I have verified that the ADB is not running and that other processes also listen to port 5037 as other users indicate. The strange thing isadb: CreateFileW 'nul' failed: 回答1: This problem also appeared on my computer, but after reinstalling the Windows system and Android Studio, the problem is no

How to install an apk in one of the connected devices through adb? [closed]

限于喜欢 提交于 2021-02-19 05:43:46
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Improve this question I have multiple devices/emulators connected to my computer and I want to install an apk or run other adb commands in one of the devices. How do I do that? 回答1: If you want to install apk Multiple Emulator and one device attached you want to install apk on device :

Using ADB to launch an activity while using putExtra

前提是你 提交于 2021-02-19 05:25:08
问题 I've been trying to use the Android Documentation to determine how to start an activity with putExtra. My putExtra value is of type String and I've tried numerous combinations of "true", "1", putting the string in quotes. I've tried switching the flags to "-n", "-a", etc... Can somebody point out what I'm doing wrong here? I've ready many other articles but they are usually for some built in intent. I'm starting my own custom intent. Starting an intent with a string key. -e|--es <EXTRA_KEY>

Is there a way to start android emulator in Travis CI build?

♀尐吖头ヾ 提交于 2021-02-18 12:26:26
问题 I have python wrapper-library for adb where I have unit-test which depend on emulator or real device (since they execute adb commands). I want also to use Travis CI as build environment along with executing those unit tests for each build. Is there a way to have android emulator available somewhow in Travis CI, so that unit tests can execute adb commands? Thanks in advance! 回答1: According to the Travis CI documentation, you can start an emulator with the following script in your .travis.yml :

How do I pass an absolute path to the adb command via git bash for windows?

元气小坏坏 提交于 2021-02-17 19:04:08
问题 I'm trying to pass a unix style path to the Android adb command using a git bash (msysgit) but the shell is interpreting my path incorrectly. This is what I've tried so far: $ adb push myfile /mnt/sdcard/ failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory $ adb push myfile "/mnt/sdcard/" failed to copy 'myfile' to 'C:/Program Files (x86)/Git/mnt/sdcard/': No such file or directory $ adb push myfile '/mnt/sdcard/' failed to copy 'myfile' to 'C:

Adb install failed

邮差的信 提交于 2021-02-17 06:17:11
问题 I'am developing an android app. before this morning everythings ok when i click 'run' in Android Studio, the IDE will compile my codes and install apk to my devices automatically.but now device will disconnect automatically when IDE install apk, so i try to install apk manually,i got same result,like this: My Envirement OS:Ubuntu 16.04 Android Studio: Android Studio 3.5 Build #AI-191.8026.42.35.5791312, built on August 9, 2019 JRE: 1.8.0_202-release-1483-b49-5587405 amd64 JVM: OpenJDK 64-Bit

how to see adb devices on linux container when host is windows 7 machine

情到浓时终转凉″ 提交于 2021-02-17 05:06:15
问题 i have a windows 7 machine with docker tool box installed i downloaded image and running container which have adb installed in it from below link https://hub.docker.com/r/muicoder/adb/ The container is up and running, with container id mentioned below 9ba51613a7be on my host machine(windows 7) , i have nexus 6 connected and i can see the result with adb devices > C:\Users\panmishr>adb devices List of devices attached > * daemon not running; starting now at tcp:5037 > * daemon started

how to see adb devices on linux container when host is windows 7 machine

断了今生、忘了曾经 提交于 2021-02-17 05:05:17
问题 i have a windows 7 machine with docker tool box installed i downloaded image and running container which have adb installed in it from below link https://hub.docker.com/r/muicoder/adb/ The container is up and running, with container id mentioned below 9ba51613a7be on my host machine(windows 7) , i have nexus 6 connected and i can see the result with adb devices > C:\Users\panmishr>adb devices List of devices attached > * daemon not running; starting now at tcp:5037 > * daemon started

Is there an ADB command to check a media is playing or not

时光怂恿深爱的人放手 提交于 2021-02-11 15:18:16
问题 I want to check whether the Audio/Video is playing in my external device which is rooted in terminal using ADB command.I am not able to find any ADB commands if available mention that I have tried adb shell dumpsys media.player i want a command to specify if video is running or not 回答1: I think there is no direct command to do that. But you can query all the running service using adb shell service list | grep 'media.player' 回答2: To print out the MediaPlayer states: adb shell dumpsys audio But

Can't run/debug app on phone while connected through USB while using Android Studio (it disconnects when installing)

霸气de小男生 提交于 2021-02-11 13:50:19
问题 I got an app that I'm perfectly able to run/debug while connected through USB from Android Studio on my Nexus 5 (Android 6) and LG Stylus 2 Plus (Android 8) phones, but it seems to fail when testing it on my Huawei P30 (Android 9). I'm able to see all 3 devices as available from Android Studios' "Device File Explorer" tab, and browse the files in it, so I know that it is able to connect just fine. Still, whenever I try to debug or run the app on my Huawei, the app is built, and as soon as it