Android 初学

来源:互联网 发布:发型设计软件破解版 编辑:程序博客网 时间:2024/09/21 08:57

1. adb用来安装、卸载软件,烧写、抓取log信息都工具。


2. 编译android源码时,lunch [目标序号|目标产品-目标版本] ,其中目标版本有user、userdebug、eng。

user 是指在user模式下编译,发布版本时选择此项进行编译,进adb shell,默认是$,即,没有权限删除手机中的固定软件;

userdebug  也是user模式,为你打印出kernel信息,用于调试,进adb shell,默认是$,即,没有权限删除手机中的固定软件;

eng 是engineer模式,即工程模式,进adb shell,默认是#,即,随便删除或卸载所有应用.


3. adb push 电脑路径 手机路径

user mode: system等权限为readonly,无法push文件到手机

userdebug mode: system等权限是打开的,可以push文件到手机

eng mode: system等权限是打开的,可以push文件到手机

如果在userdebug mode 无法 push文件,显示readonly,需要进行remount操作,具体如下:

adb root

adb remount

adb push filename  /system/


4. 查看调试信息的方法:(1)通过debug工具和minicom查看

                                            (2)通过adb shell cat /proc/kmesg 查看

0 0
原创粉丝点击