logcat

android adb常用指令

两盒软妹~` 提交于 2019-12-03 03:42:37
android adb常用指令 Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态。 可以通过下列几种方法加入adb: 在设备上运行shell命令 通过端口转发来管理模拟器或设备 从模拟器或设备上拷贝来或拷贝走文件 下面对adb进行了介绍并描述了常见的使用. Contents 概要 发出adb命令 查询模拟器/设备实例 给特定的模拟器/设备实例发送命令 安装软件 转发端口 从模拟器/设备中拷入或拷出文件 Adb命令列表 启动shell命令 通过远程shell端运行sqllite3连接数据库 UI/软件 试验程序 Monkey 其它的shell命令 启用logcat日志 使用logcat命令 过滤日志输出 控制日志输出格式 查看可用日志缓冲区 查看stdout 和stderr Logcat命令列表 停止adb服务 概要 Android 调试系统是一个面对客户服务系统,包括三个组成部分: 一个在你用于开发程序的电脑上运行的客户端。你可以通过shell端使用adb命令启动客户端。 其他Android工具比如说ADT插件和DDMS同样可以产生adb客户端. 在你用于发的机器上作为后台进程运行的服务器。该服务器负责管理客户端与运行于模拟器或设备上的adb守护程序(daemon)之间的通信。. 一个以后台进程的形式运行于模拟器或设备上的守护程序

Android adb常用命令

谁说我不能喝 提交于 2019-12-03 03:42:24
Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器 的状态。 可以通过下列几种方法加入adb: 在设备上运行shell命令 通过端口转发来管理模拟器或设备 从模拟器或设备上拷贝来或拷贝走文件 下面对adb进行了介绍并描述了常见的使用. Contents 概要 发出adb命令 查询模拟器/设备实例 给特定的模拟器/设备实例发送命令 安装软件 转发端口 从模拟器/设备中拷入或拷出文件 Adb命令列表 启动shell命令 通过远程shell端运行sqllite3连接数据库 UI/软件 试验程序 Monkey 其它的shell命令 启用logcat日志 使用logcat命令 过滤日志输出 控制日志输出格式 查看可用日志缓冲区 查看stdout 和stderr Logcat命令列表 停止adb服务 概要 Android 调试系统是一个面对客户服务系统,包括三个组成部分: 一个在你用于开发程序的电脑上运行的客户端。你可以通过shell端使用adb命令启动客户端。 其他Android工具比如说ADT插件和DDMS同样可以产生adb客户端. 在你用于发的机器上作为后台进程运行的服务器。该服务器负责管理客户端与运行于模拟器或设备上的adb守护程序(daemon)之间的通信。. 一个以后台进程的形式运行于模拟器或设备上的守护程序(daemon)。.

Remove Logging with Proguard

故事扮演 提交于 2019-12-03 03:12:10
I am trying to remove the log statements without success. Other SO answers to the same question refer to Eclipse or to an old Android Studio IDE (Intellij). build.gradle buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } ... proguard-rules.pro -assumenosideeffects class android.util.Log { public static *** d(...); public static *** v(...); public static *** i(...); public static *** w(...); public static *** e(...); } I can still see the log statements after getting the source code from the signed app-release.apk momo

adb logcat on a real phone using tcp/ip

匿名 (未验证) 提交于 2019-12-03 03:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can I dump logs from an android phone over wifi (using tcp/ip) using adb? adb connect can be used, but it needs some server to be running on the phone (at 5555 port). How do I start this server? Or the only way to get logs from a phone is by connecting it as a USB device? 回答1: Install adbWireless on your phone. Run the application and click on the big button (you cannot miss it!). It will activate ADB over Wifi and display the URL to use to connect to it with the adb command. On your computer, run the adb command with the connect parameter.

Android App crashes without any logcat or any exception

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Good day.I have very weird situation.The app crashes on some point but not as it usually will crash.The app goes back to previous activity or completelly quiting the application without showing the dialog "UNFORTUNATALLY APP CLOSED" and the android studio did not giving any exception log.This behaviour i assume is a crash...This happens on couple devices which are huaweu p8 lite with lollipop version(default kitkat) and sony xperia z with lollipop version (default 4.2.2).Im unable to debug the app at all and the crash at all...On the rest

logcat filled with message “Unexpected value from nativeGetEnabledTags: 0” - how to get rid of this? [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Possible Duplicate: Unexpected value from nativeGetEnabledTags: 0 I have just installed the latest version of SDK (r21) and ADT 21.0.0. I shifted my project from the eclipse, I was using previously to the newer version. After shifting the project i clicked on the Run button to test the application, and suddenly i found that the whole logcat was filled with the message Unexpected value from nativeGetEnabledTags: 0 I just 10 minutes the number of this kind of messages reached more than 10,000 and i am fed up with this. Please tell me how can i

Logcat cannot detect app or package names

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Android Studio (Beta) 0.8.7 and my logcat has been working fine for months. All of a sudden my logcat is unable to detect any app or package names. This means I cannot filter the messages for the particular app I'm testing which is very annoying. Typical logcat messages now look like this: Notice the question mark (?) where the app/package name should be... Originally I thought it was my device but I've tried it with another android device that I own and I get the same issue. This is what I've tried: Restarting Android Studio and

How can I stop the LogCat output from scrolling automatically in Eclipse?

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: UPDATE: This turned out to be a bug in R14 of the SDK tools. It has been fixed in R15 which was released on Oct/27/2013. Updating to the latest release solves the problem as suggested in the accepted answer. I use the LogCat window in the Debug view in Eclipse to diagnose and fix crashes in my code. I've noticed that the LogCat output will automatically scroll down anytime new lines are added (but only after you scroll to the bottom yourself). This is great if I'm waiting for an exception stacktrace to come up, but extremely annoying if I'm

Android Studio logger TextView TypeFace style 0

冷暖自知 提交于 2019-12-03 02:36:56
问题 In my project, I receive the following in a logcat message, for each TextView in all views of my app: D/TextView: setTypeface with style : 0 The theme I used in styles.xml : <style name="GreenTheme" parent="Base.Theme.AppCompat.Light"> <item name="colorPrimary">@color/primaryGreen</item> <item name="colorPrimaryDark">@color/primaryDarkGreen</item> <item name="colorAccent">@color/accentGreen</item> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> I also

logcat crashes with read: unexpected EOF

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: running some lengty calculations, and something goes wrong quite late, i tried with breakpoints, with no success so far, so i put into the loop a Log.d to monitor..... but quite soon logcat crashes with 02-08 16:35:42.820 2936-3402/com.nohkumado.geneticsolving.full D/BaseC: norm:BC sq:49.0 dis:0.0 con:50.0/BC sq:56.0 dis:4.0 con:94.0=1.4069148936170213 read: unexpected EOF! --------- beginning of crash and i need to restart studio to get logcat running again... i looked if i found some setting for buffer size for the logcat, but so far found