5 当手机是非root时,通过程序读取系统log是不可行的。读取自己系统应用的log是可以的。
即Process proc =Runtime.getRuntime().exec("logcat -d ");是读取不到的。因为
Jelly Bean doesn't support the logs reading permission (according to this google io 2012 video and this one too )
具体的权限配置:https://github.com/android/platform_frameworks_base/blob/master/core/res/AndroidManifest.xml
和解释http://developer.android.com/guide/topics/manifest/permission-element.html#plevel
可以通过
getPackageManager().checkPermission(android.Manifest.permission.READ_LOGS, getPackageName()) != 0) 来查看是否有权限。
6 anroid L preview nenux5烧写步骤和地址:
http://www.bgr.in/news/how-to-install-android-l-on-nexus-5-and-nexus-7-now-step-by-step-guide/
7 ubuntu下安装软件后如sudo dpkg -i WineQQ2012-20120531-Longene
但是想要卸载的时候,名字就不一定是这个了。
这个时候,需要查找出来具体的包名。
sudo dpkg -l |grep qq
ii wine-qq2012-longeneteam