From :
Using internal (com.android.internal) and hidden (@hide) APIs [Part 1, Introduction], devmaze
HowTo
// new sdk version
- extract from framework.jar of my handset using adb
- convert classes.dex to .jar file with dex2jar
- duplicate the android.jar to make new one.
- copy all the classes from converted .jar to android.jar of sdk
- rename it to org-android.jar
- duplicate the android-17 folder as android-17-internals
- switch android-17-internals/anroid.jar to org-anroid.jar
- modify android-17-internals/build.prop
// confirm
- see the android_project >> property >> android
// modify adt
- bakup elcipse/plugins/com.android.ide.eclipse.adt_22.0.1.v201305230001--685705.jar
- modifty com/android/ide/eclipse/adt/internal/project/AndroidClasspathContainerInitializer.class
- in the .class file change com/android/internal/** --> com/android/internax/**
- make .jar with this .class file
- replace existing one with this new .jar
// confirm
- see the android_project >> property >> java build path
android.jar
download modified .jar files(android 7 ~android 10)
- https://github.com/inazaruk/android-sdk/tree/master/platforms
댓글 없음:
댓글 쓰기