Debug android framework

1.build the android sources

2.Copy the classpath

copy “froyo/development/ide/eclipse/.classpath”

parse to “froyo/.classpath”

3.import the android project to eclipse

4.Delete the missing jars

delete “out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates / javalib.jar”

delete “out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates / javalib.jar”

5.Satisfy the missing files with links to these files

out/target/common/obj/ JAVA_LIBRARIES/framework_intermediates/classes.jar

out/target/common/obj/ JAVA_LIBRARIES/android-common_intermediates/classes.jar :contain calss com.android.common.Search

out/target/common/obj/ JAVA_LIBRARIES/core_intermediates/classes.jar :contain class dalvik.system.VMRuntime

out/target/common/obj/APPS/ContactsProvider_intermediates/classes.jar

out/target/common/obj/APPS/CalendarProvider_intermediates/classes.jar

6. run {Android SDK}/tools / emulator.exe

7 . run {Android SDK}/tools / ddms.bat

8. in eclipse, Run->Debug Configuration->Remote Java Application->New

9. set the break point in the source code , then you can debug as usual

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值