使用AOSP更改构建自定义SDK [英] Build custom SDK with AOSP changes
问题描述
我正在尝试在android studio中构建我的应用程序(使用许多隐藏的api和属性).我已经修改了AOSP代码以暴露这些隐藏的api.为了使构建成功,我将classes.jar作为外部库添加到了我的项目中.但这不能解决问题.它仍然显示错误:
I am trying to build my app (uses many hidden api and properties) in android studio. I have modified the AOSP code to expose these hidden apis. In order to make the build successful I have added the classes.jar as the external lib to my project. But that doesn't resolve the issue. It was still showing errors :
error: cannot find symbol method getService()
error: cannot find symbol variable userSetLocale
error: cannot find symbol method getInstance()
error: cannot find symbol variable INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH
error: cannot find symbol variable INJECT_INPUT_EVENT_MODE_ASYNC
现在,我正在尝试使用修改后的AOSP代码制作自定义SDK.
Now I am trying to make the custom SDK with this modified AOSP code.
注意:已尝试以下解决方案并失败了
Note : Already tried and failed with the following solutions
如何使用可用的隐藏API和内部API构建Android SDK?
https://github.com/anggrayudi/android-hidden-api
任何人都可以帮助您基于修改后的AOSP代码构建自定义SDK
Can anyone help to build custom SDK based on the modified AOSP code
推荐答案
我通过在app.iml中更改sdk的orderEntry并在build.gradle模块中提供了framework.jar的绝对路径来解决了该问题
I solved the issue by changing the orderEntry of sdk in app.iml and giving the absolute path of framework.jar in modules build.gradle
这篇关于使用AOSP更改构建自定义SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!