adb

adb pull -> device not found

≯℡__Kan透↙ 提交于 2019-12-31 19:21:03
问题 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 .

安卓命令

偶尔善良 提交于 2019-12-31 16:15:42
https://blog.csdn.net/l_vaule/article/details/79866396 getprop ro.build.version.release 获取系统版本:adb shell getprop ro.build.version.release 获取系统api版本:adb shell getprop ro.build.version.sdk 获取手机相关制造商信息:adb shell getprop | grep "model\|version.sdk\|manufacture r\|hardware\|platform\|revision\|serialno\|product.name\|brand" 来源: CSDN 作者: sun007700 链接: https://blog.csdn.net/sun007700/article/details/103782643

adb socket not working and daemon

孤街浪徒 提交于 2019-12-31 13:29:35
问题 I am getting this type of error error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048) 1:34:26 PM could not read ok from ADB Server 1:34:26 PM * failed to start daemon * 1:34:26 PM error: cannot connect to daemon 1:34:26 PM 'C:\Users\MITESH SUTHAR\AppData\Local\Android\Sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessary 1:38:14 PM Unable to

Typing on an Android Device straight from computer?

孤街醉人 提交于 2019-12-31 10:40:12
问题 Can you use ADB to type directly on an android device from a computer? If so, how? 回答1: Although this question is rather old, I'd like to add this answer: You may use adb shell input keyevent KEYCODE resp. adb shell input text "mytext" . A list of all keycodes can be found here 回答2: To avoid expansion/evaluation of the text parameter (i.e. for special characters like '$' or ';'), you could wrap them into quotes like this: adb shell "input text 'insert your text here'" 回答3: As Manuel said, you

Android Studio ADB wipes out logcat files when app crashes! Ohh Myy

元气小坏坏 提交于 2019-12-31 10:29:07
问题 Just upgraded latest Android Studio. Now when app crashes, the log files adb logcat disappear. It not only stops recording the whole logs seems to be suddenly wiped out. Not too cool for debugging. Do I need to set log cache size or something? Also noticed that debugger takes a very long time to collect its data, but this might be specific to the program I am testing. 回答1: When I use Android Studio I face the same problem, I resolve this problem by a simple solution: Set the logcat filter :

How to use Monitor (DDMS) tool to debug application

风流意气都作罢 提交于 2019-12-31 08:34:47
问题 I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can

How to use Monitor (DDMS) tool to debug application

你。 提交于 2019-12-31 08:34:08
问题 I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can

Android Studio - Device is connected but 'offline'

跟風遠走 提交于 2019-12-31 08:09:44
问题 This is quite a common question, but none of the solutions appear to work for me. First time asker, so apologies if I get the conventions wrong. I am trying to connect my Galaxy S5 to my computer running Ubuntu 14.04 so I can do some android development. I have recently downloaded and installed Android Studio and the SDK and my device is detected when it's connected via USB but the device either appears as 'unauthorized' or 'offline'. I know I should be expecting the RSA key prompt but this

Android Studio - Device is connected but 'offline'

浪尽此生 提交于 2019-12-31 08:09:10
问题 This is quite a common question, but none of the solutions appear to work for me. First time asker, so apologies if I get the conventions wrong. I am trying to connect my Galaxy S5 to my computer running Ubuntu 14.04 so I can do some android development. I have recently downloaded and installed Android Studio and the SDK and my device is detected when it's connected via USB but the device either appears as 'unauthorized' or 'offline'. I know I should be expecting the RSA key prompt but this

'apkanalyzer' is not recognized as an internal or external command

橙三吉。 提交于 2019-12-31 07:31:28
问题 I often compare my new build apk size with the production build and I am looking for options to automate this activity such that it compares both new and prod apk sizes and reports me. I am aware of APK Analyzer of Android Studio but I want to do that using command-line tools. This doc lists the usage of apkanalyzer but upon running this command apkanalyzer -h apk file-size myapk.apk It says " 'apkanalyzer' is not recognized as an internal or external command, operable program or batch file .