usb-debugging

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

usb debugging with micromax unit a092 in ubuntu 12.04

让人想犯罪 __ 提交于 2020-01-30 12:21:16
问题 I am using Micromax Unite A092, for USB debugging in Ubuntu 12.04. I enabled "USB debugging" from developer options and "connected as a media device". But ./adb devices does not show it. I tried SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="7f10", MODE="0666" writing in /etc/udev/rules.d/51-android.rules but no luck. The output of lsusb is- Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate

usb debugging with micromax unit a092 in ubuntu 12.04

六月ゝ 毕业季﹏ 提交于 2020-01-30 12:21:07
问题 I am using Micromax Unite A092, for USB debugging in Ubuntu 12.04. I enabled "USB debugging" from developer options and "connected as a media device". But ./adb devices does not show it. I tried SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="7f10", MODE="0666" writing in /etc/udev/rules.d/51-android.rules but no luck. The output of lsusb is- Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate

get ERROR_CAMERA_ALREADY_IN_USE when usb debugging on my Nexus 5 with libstreaming

你离开我真会死。 提交于 2020-01-06 14:45:18
问题 I am trying to use libstreaming library to stream my phone camera output. I built my app based on the Example 3. But I just keep getting this ERROR_CAMERA_ALREADY_IN_USE exception when usb debugging with my Nexus 5 (with Android 6.0.1). I tried killing other apps, rebooting my phone, but the exception is still there. I checked online and see this, but it doesnt give me the correct answer. So I am trying to ask for help and I am grateful for any replies. Here is my MainActivity: import android

Chrome Inspect Device not showing android app

眉间皱痕 提交于 2020-01-03 04:15:11
问题 I am trying to debug this app using chrome://inspect - Devices, but I am not able to see my app in the debug app list. I can see the device name and only Chrome app under it, but not my app. Settings that I have applied Enable USB Debugging (Android Device) Discover USD Devices (Chrome Dev Tools) Select Debug app - App Name Use USB for - File Transfer Added android:debuggable="true" in Manifest file I have also tried using different USB cables, different android device, but no luck. 回答1:

Android Studio doesn't have the permission to install apk copied on /data/local/tmp

回眸只為那壹抹淺笑 提交于 2019-12-25 08:44:38
问题 While running my android application on my device Android Studio shows the device with its name properly and while selecting the device to run it gives the error:- Installing com.example.android.borderlessbuttons DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.android.borderlessbuttons" pkg: /data/local/tmp/com.example.android.borderlessbuttons Failure [INSTALL_FAILED_INVALID_APK] and now the device name changed to ??????? implying permission denied or not identified. Again

Keep screen on in Activity - does not work with FLAG_KEEP_SCREEN_ON

人走茶凉 提交于 2019-12-21 10:15:12
问题 So, for a long time I thought that I knew how to stop the screen from going into sleep mode, I simply used this code in my Activity: getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); However, I realized that this only worked when my phone was in "developer mode", ie when the usb debugging (Settings --> Developer options --> USB debugging) was enabled/checked. Then the above codes indeed stops the screen/device to go to sleep. When that debugging is not checked, then my

How to connect multiple android devices with ADB over wifi

允我心安 提交于 2019-12-20 14:14:41
问题 ADB is installed in the computer, and usb debugging is enabled on devices. Also I have connected one device over wifi successfully. How to connect more devices without having to mention the serial number of the device for every additional device with the -s flag like: adb -s <serial> tcpip <port> 回答1: Yes there is a way to do so without having to type the serial number. Say you have 2 devices A (IP: 192.168.1.32) and B (IP: 192.168.1.33) that you want to connect to ADB over wifi: Connect

Android Studio USB Debugging Google Play Services Out Of Date

爷,独闯天下 提交于 2019-12-13 05:48:40
问题 I'm using Android Studio 1.2 and I'm trying to run an app (that requires Google Maps) using USB Debugging . My phone is running Android 4.1.2 (API 16 - Sony Xperia T). On Android Studio I was able to run successfully the app using Android 5.0.1 (API 21). However, using USB Debugging I get this error "Google Play Services Out Of Date, Requires 713.... but found 65...." (dots represent some numbers). My device has the latest Google Play Version. In Android Studio under Project Structure, I've