这是做framework开发时我未team member写的training doc,与大家分享一下
1. compile froyo source code use make
#cdfroyo
#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.
分享到:
相关推荐
How to modify the source code of SAP ESS
TeeChart Pro source code, TeeChart Pro manual and help file or everything else contained in this software without receiving our written permission. You are NOT allowed to distribute the TeeChart ...
EUCALYPTUS 2.0.2在ECLIPSE下实现修改
EUCALYPTUS 2.0.2在ECLIPSE下实现修改.
iLBC is a VOIP codec originally created by Global IP Sound but made available (including its source code) under a restricted but free and fairly liberal license, including permission to modify....
Our company mission is to increase programming team productivity by clarifying source code, presenting information in a useful way, and allowing programmers to modify software in large, complex ...
修改代码 修改JavaScript代码,生成修改的源映射。 受到启发。 与以字符串或char分辨率生成源映射的magic-string不同,modify-code生成以token分辨率(由已修补的)的源映射... const result = modifyCode(...).repl
To build WinSCP from source by yourself, modify and use 'build.bat' in root folder of source code package. Directory structure: /source project files of all native libraries and executables /source/...
Bug with the "Cannot modify a read-only dataset" error in Android is fixed MySQL data provider Bug with setting the data type of the parameter to BOOLEAN for all TINYINT system data types in the ...
TeeChart Pro source code, TeeChart Pro manual and help file or everything else contained in this software without receiving our written permission. You are NOT allowed to distribute the TeeChart ...
END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE IMPORTANT - READ CAREFULLY: This End-User License Agreement (“EULA”) is a legal agreement between you (either an individual or a single entity) and...
Unlike other skin component that you must modify source code to build skinnable application, VCLskin can skin existing application using VCL components without source code modification.VclSkin ...
Unlike other skin component that you must modify source code to build skinnable application, VCLskin can skin existing application without source code modification. -Plug and Play, very easy to ...
NAME ESP MODIFY OLD SOURCE CODE FROM WARYAS
Unlike other skin component that you must modify source code to build skinnable application, VCLskin can skin existing application using VCL components without source code modification. VclSkin ...
If you modify TeeChart Pro source code or fix a bug, you can email us this info so we can apply the same changes for next coming upgrades if they can benefit to other programmers. Support: --------...
You are allowed to modify the source code in any way you want except you cannot modify the copyright details at the top of each module. If you want to distribute source code with your application, ...
GExperts License Agreement ... This license agreement only covers... The rules governing the use of GExperts and the GExperts source code are derived from the official Open Source Definition, available at ...
NULL 博文链接:https://czjxdm.iteye.com/blog/963704