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
Now I am trying to make the custom SDK with this modified AOSP code.
Note : Already tried and failed with the following solutions
Can anyone help to build custom SDK based on the modified AOSP code
Add the following in you root project's build.gradle. ${rootDir}/libs/framework.jar is the jar build from you aosp code.
subprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs.add("-Xbootclasspath/p:${rootDir}/libs/framework.jar")
}
}
}
There are red errors in the editor. But it can be build successful. Demo project: https://github.com/auxor/AppWithModifiedFramework/
我通过改变app.iml中sdk的orderEntry并在modules build.gradle中给出framework.jar的绝对路径解决了这个问题
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.