adb

Android Studio is not recognising OnePlus2 on Mac/Linux

牧云@^-^@ 提交于 2020-01-01 08:57:03
问题 My Android Studio (1.3.2) is not recognising my phone "OnePlus Two" I am having Mac (OS x Yosemite 10.10.5) with latest Android SDK. Update 1: The file transfer software installed on my mac "Android File Transfer" is able to recognise the phone as soon as I connect phone to mac. Update 2: While trying to look for all connected device through terminal, I even don't see my device their by executing command adb devices Update 3: I do tried killing adb and starting again but that too didn't work.

How I can simulate “tail” command for file on the Android file system?

試著忘記壹切 提交于 2020-01-01 08:49:16
问题 I have file on SD-CARD and my app using it as log file. Is it possible through the adb to watch file with all changes in real time? Like with tail -f /sdcard/myfile.log command. 回答1: This seems to work great for me: adb shell "while true; do cat; sleep 1; done < /sdcard/myfile.log" 回答2: You can do this with logcat. You can add a view that will only show log entries from your app and it will be continuously updated. 回答3: You can install busybox and then: adb shell tail -f /path/of/your/file

adb devices return error: protocol fault (no status)

泪湿孤枕 提交于 2020-01-01 08:32:48
问题 My ADB stopped working recently. All commands results in error: protocol fault (no status). Follow trace. adb devices system/core/adb/adb.c::main():Handling commandline() system/core/adb/adb_client.c::adb_query():adb_query: host:devices system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client : could not connect to tcp:5037 system/core/adb/adb_client.c::adb_connect():adb_connect: service host

adb devices return error: protocol fault (no status)

半腔热情 提交于 2020-01-01 08:32:37
问题 My ADB stopped working recently. All commands results in error: protocol fault (no status). Follow trace. adb devices system/core/adb/adb.c::main():Handling commandline() system/core/adb/adb_client.c::adb_query():adb_query: host:devices system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client : could not connect to tcp:5037 system/core/adb/adb_client.c::adb_connect():adb_connect: service host

Error message when setting up ADT in Linux

核能气质少年 提交于 2020-01-01 05:29:23
问题 I installed Ubuntu 11.10, installed GNOME 3 (replaced Unity), installed Eclipse from the Ubuntu Software Center, installed the android sdk and ADT. Now when I start eclipse I get a message saying: Failed to get ADB version : Cannot run program /home/ayush/android-sdk/platform-tools/adb":java.io.IOException:error=2, No such file or directory What is causing this error and how do I fix it? 回答1: The command to install IA32 libraries on Ubuntu is: apt-get install ia32-libs 回答2: sudo dpkg --add

How to usb-connect android devices with adb under ubuntu [closed]

旧巷老猫 提交于 2020-01-01 04:52:05
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Other may have experienced problems with adb debugging under ubuntu linux. The symptom is the availability of usb connected android devices e.g. with eclipse. You may test this with adb usb When you get error: insufficient permissions for device you probably run into the same problem like me.

Uiautomator报错:Unexpected error while obtaining UI hirerarchy

孤街醉人 提交于 2020-01-01 04:34:32
该错误的原因是android 8.0以上的版本不适用 解决办法如下: 1.可以使用automatorview导入文件的方式 2.截取uix文件 adb shell uiautomator dump /sdcard/screen.uix 截取文件 3.截取当前设备也就是连接手机的话就是当前手机页面 adb shell screencap -p /sdcard/screen.png 4.打开sdk---》tools下的uiaotomator 5.点击文件图标,将uix和png都导入到工具中【图片和文件在设备的文件管理器里边找,然后拷贝到电脑上导入就行了,也可以用adb pull命令pull到电脑上】 ,则会出现下边的界面,成功文件显示,也可以在右边查看其id等信息 备注:【网络和互联网】忽略,是当时在设备上选中的,不做操作 来源: CSDN 作者: 一腔曦意 链接: https://blog.csdn.net/W_C_X/article/details/103765465

How to get available/free sdcard space in android with adb command

▼魔方 西西 提交于 2020-01-01 01:57:25
问题 I am trying to get free sdcard space with adb command, but I could not able to achieve. Any suggestions how to get the sdcard space. 回答1: Use df , as with any Linux distro. Not all Android devices may have it, but it usually seems to be available. 回答2: df : Disk space details. adb shell df du : Disk space used by the specified files and subdirectories. adb shell du df -h : Disk space details in KB/MB format. adb shell df -h du -h : Disk space used by the specified files and subdirectories in

“unable to locate adb” using Android Studio [duplicate]

五迷三道 提交于 2020-01-01 01:13:09
问题 This question already has answers here : Error:Unable to locate adb within SDK in Android Studio (23 answers) Closed last year . I have been trying to test my app on real device. I keep receiving error message that "unable to locate adb" . I have the USB driver for my phone installed. Thank you for the help. The snap shot is shown below. 回答1: if using avast go for virus chest,will find adb,restore it by clicking right button..thats all,perfectly works 回答2: on your android studio go to Tools >

adb pull -> device not found

左心房为你撑大大i 提交于 2019-12-31 19:21:15
问题 I have a rooted phone and running adb in root mode. I used adb shell to successfully access the phone. I can browse directorys, even those who require root. When i try to use: adb pull /data/data/my.app.path/databases/mydatabase.db /home/admin/Desktop/ I get the following error: error: device not found The adb shell stays connected and i can go on browsing the sdcard. Can anyone tell me where this error comes from and how i can fix it to pull the file? 回答1: Stay out of shell during adb pull .