我如何隐藏和内部API可构建一个Android SDK? [英] How do I build the Android SDK with hidden and internal APIs available?
问题描述
我要重塑了Android SDK(或者说只有的android.jar),包括隐藏的内部API。
I want to rebuild the Android SDK (or rather only the android.jar) to include hidden and internal APIs.
我无法找到如何去这个问题的任何文件或讨论做什么。我有一个Ubuntu的CyanogenMod构建环境已经设置即能打造CM7。
I could not find any documentation or discussion doing on how to go about this. I have an Ubuntu CyanogenMod build environment already setup that is able to build cm7.
现在,我读,使SDK将建立SDK,但我想建立一个SDK,其中包括被标记为使用@hide隐藏方法和字段。这可能吗?
Now, I read that make SDK will build the SDK but I want to build an SDK that includes methods and fields that are marked as hidden using @hide. Is this possible?
我想要做的就是进行更改使用隐藏API的应用程序,并以重建它,我想用修改后的SDK。
What I want to do is make changes to an application that uses hidden API and in order to rebuild it I would like to use the modified SDK.
推荐答案
这是我一直做的使用隐藏的API。
This is what I always do to use hidden api.
- 建立从<一个回购或下载罐href="https://sites.google.com/site/hippunosource/home/android/androidnohide-apiwo-shi-yongsuru-rifurekushonha-wei-shi-yong">https://sites.google.com/site/hippunosource/home/android/androidnohide-apiwo-shi-yongsuru-rifurekushonha-wei-shi-yong
- 复制出来了/目标/普通/ OBJ / JAVA_LIBRARIES / framework_intermediates / classes.jar(最好将其重命名为类似framework_all.jar)
- 在配置你的项目构建路径 - >库 - >添加这个外部罐子。为了和导出,移动起来的android.jar 前
这篇关于我如何隐藏和内部API可构建一个Android SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!