Help building patched android framework

二次信任 提交于 2019-12-10 16:09:00

问题


I am new to Android platform development. I have just succeded building Cyanogenmod 7 sources after applying a patch, which adds extra jars to the system (fit into /system/framework directory).

After flashing the device and checking that the new custom jars are there, and decompiling (extracting classes.dex and running dex2jar) just to verify that the needed classes are there, I see my test program crashing due to ClassNotFound exceptions.

Since the compiled custom java sources seem ok, have I missed something in the building process so my applications can use these new framework classes?

UPDATE:

I realized that framework jars are included inside an environment variable called BOOTCLASSPATH, which is defined in init.rc. I modified it to include the new jars from SEEK project (smartcardapi.jar and org.simalliance.openmobileapi.jar). I rebuilt the image and flashed my phone.

The device now does not start. I have read something here about class optimizations that are run against BOOTCLASSPATH classes. The advice is not to mess with BOOTCLASSPATH.

But what can I do so my applications can use the extended API classes defined in the new jars?

来源:https://stackoverflow.com/questions/6613256/help-building-patched-android-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!