Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1629097
  • 博文数量: 126
  • 博客积分: 1541
  • 博客等级: 上尉
  • 技术积分: 1914
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-20 11:14
文章分类

全部博文(126)

文章存档

2014年(21)

2013年(42)

2012年(63)

分类: 嵌入式

2013-01-06 22:19:16

1.删除系统apk
 adb shell
 su或者surl phd(获得root权限)mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
 
2.make snod - 快速打包system.img
 应该把zproject 下对应的去掉
 (with this command, it will build a new system.img very quickly.
  well, you cannot use “make snod” for all the situations. it would not check the dependences. 
if you change some code in the framework which will effect other applications) 
system.img 是 從 out/target/product/xxxx/system 做出來的。
如果改了 這個 folder 的內容,想要重新產生 system.img。不要管 system folde 裡面的 file 的 dependency,  可      以用 snod 這個 target:

3.adb logcat的使用
             adb logcat >1.txt
4.  22.>&2 即 1>&2也就是把结果输出到和标准错误一样;之前如果标准错误重定向到某log文件,那么标准输出也重定向到这个log文件
 如:ls 2>a1>&2 (等同ls >a1 2>&1) 
阅读(4073) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~