Closed xiaoleservice closed 7 years ago
You can push them in vendors and use Makefile to copy it, just like other vendor files.
@aviraxp oh, thanks and I think that will be worked, but is there any other solution?
excuse me ,yes or no xp for MIUI android 7.0 ?
@xiaoleservice Create a directory in prebuilts/misc/common
called XposedBridge
and copy XposedBridge.jar
to it. Then create an Android.mk
with the following content:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := XposedBridge
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := XposedBridge.jar
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)
And as the last step, edit build/target/product/base.mk
and add XpsoedBridge
to PRODUCT_PACKAGES
variable.
This way, when you run make
at the root of AOSP, make system automatically includes that XposedBridge.jar
to system/framework
. That's it.
@abforce I see. I did that yesterday, but I haven't tried to recompile it. By the way, will the xposed.prop
be in the System directory after this?
No, to copy xposed.prob
to the final image, you can add it to PROCUDT_COPY_FILES
.
@abforce Got it, Thanks.👍
The third step is "Create a prebuilt module that copies XposedBridge.jar to system/framework, or manually copy it and run make snod to include it in the system.img." and I'm confused that how to do it. I skip this step and when I flashed the ROM, there is no XposedBridge.jar in System/framework and no xposed.prop in System. I manually copy the xposed.prop and XposedBridge.jar to the System and then it worked. I wonder that how to perfect it so that everything can be done after the completion of the ROM flash.