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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章