Modify source code efficiency
来源:互联网 发布:泰国类似淘宝的网站 编辑:程序博客网 时间:2024/06/05 02:31
这是做framework开发时我未team member写的training doc,与大家分享一下
1. compile froyo source code use make
#cd froyo
#make #wait 3 hours
2. use the new system.img and userdata.img instead of the sdk's img,backup first
#mv /yournamedir/android-sdk-linux_86/platforms/android-8/images/system.img /yournamedir/android-sdk-linux_86/platforms/android-8/images/system.img.old
#mv /yournamedir/android-sdk-linux_86/platforms/android-8/images/userdata.img
/yournamedir/android-sdk-linux_86/platforms/android-8/images/userdata.img.old
#ln -s 7015/out/target/product/generic/system.img /yournamedir/android-sdk-linux_86/platforms/android-8/images/system.img
#ln -s 7015/out/target/product/generic/userdata.img /yournamedir/android-sdk-linux_86/platforms/android-8/images/userdata.img
then create a avd in eclipse, this avd will use the new system.img.
Start it!
3. modify apps
Change Contacts for example,change java files in packages and save.
#cd 7015
#mmm packages/apps/Contacts #wait sevaral minutes
#adb remount #after remount the /symstem in emulator will be mounted writable
use the new generated apk replace the same apk in emulator dir /system/app,you can use adb push command or push file in ddms.
#adb push out/target/product/generic/system/app/Contacts.apk /system/app
#adb push out/target/product/generic/data/app/ContactsTests.apk /system/app
4. modify framework files
Change frameworks/base/core/res/ for example
edit String.xml and save
#mmm frameworks/base/core/res/
this will generate out/target/product/generic/system/framework/framework-res.apk, then use mkyaffs2image make new system.img
#out/host/linux-x86/bin/mkyaffs2image -f out/target/product/generic/system out/target/product/generic/system.img
restart the emulator, the new system.img will be used.
- Modify source code efficiency
- Ubuntu mirror source modify
- Balance between code efficiency and code readability
- source code
- source code
- source code
- source code
- nasm : dynamically modify bin nasm code
- Source Code of exe2com.
- Source Code of exe2com
- HookAPI source code
- Source code of CIH
- Microsoft CLI source code
- PHPfileNavigator source code
- Linux source code
- about packer source code
- Source Code Search Engine?
- source code generators.
- Windows7下面安装SAP Ecc6
- SAP学习的一个“自作聪明”
- SAP消息呈现
- MySql不能远程访问的原因,
- SAP中数值显示的问题
- Modify source code efficiency
- SAP中修改默认Client
- The 3n + 1 problem
- 成功搞定了在Windows7中安装SAP了
- 当你拿了一本好东东
- 设置使存储过程自动启动
- Client 800系统进入方法
- SAP如何自定义客户编码
- 线程探讨