Add an inherit-package macro to the build system.
This lets you use the source code from one apk to build a new one with a new module name, a new android package name and optionally, a new certificate. To use this, in a makefile, add this: $(call inherit-package, \ packages/apps/Music/Android.mk, \ Music, \ MusicFork, \ my_cert, \ com.example.music) You don't need the LOCAL_PATH and CLEAR_VARS stuff. It will override only the packages that are defined in the makefile name you give, but if other modules of other types are defined, you will get an error saying that it's defined twice. In that case, you need to move the duplicate library (for example a .so) out into a different makefile. A LOCAL_OVERRIDES_PACKAGES entry is automatically created for the forked app.
Loading
Please register or sign in to comment