diff --git a/Android.bp b/Android.bp index 517f894..8df6bd8 100644 --- a/Android.bp +++ b/Android.bp @@ -159,6 +159,86 @@ cc_prebuilt_library_shared { system_ext_specific: true, } +cc_prebuilt_library_shared { + name: "vendor.xiaomi.hardware.aidlbgservice-V1-ndk", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/system_ext/lib/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so", + ], + shared_libs: [ + "libbinder_ndk", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/system_ext/lib64/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so", + ], + shared_libs: [ + "libbinder_ndk", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + system_ext_specific: true, +} + +cc_prebuilt_library_shared { + name: "vendor.xiaomi.hardware.bgservice@1.0", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/system_ext/lib/vendor.xiaomi.hardware.bgservice@1.0.so", + ], + shared_libs: [ + "libhidlbase", + "liblog", + "libutils", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/system_ext/lib64/vendor.xiaomi.hardware.bgservice@1.0.so", + ], + shared_libs: [ + "libhidlbase", + "liblog", + "libutils", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + system_ext_specific: true, +} + cc_prebuilt_library_shared { name: "vendor.xiaomi.hardware.misys@1.0", owner: "xiaomi", @@ -551,6 +631,24 @@ dex_import { ], } +dex_import { + name: "vendor.xiaomi.hardware.aidlbgservice-V1-java", + owner: "xiaomi", + jars: [ + "proprietary/system_ext/framework/vendor.xiaomi.hardware.aidlbgservice-V1-java.jar", + ], + system_ext_specific: true, +} + +dex_import { + name: "vendor.xiaomi.hardware.bgservice-V1.0-java", + owner: "xiaomi", + jars: [ + "proprietary/system_ext/framework/vendor.xiaomi.hardware.bgservice-V1.0-java.jar", + ], + system_ext_specific: true, +} + dex_import { name: "vendor.xiaomi.hardware.misys-V1.0-java", owner: "xiaomi", diff --git a/klee-miuicamera-vendor.mk b/klee-miuicamera-vendor.mk index 71b4135..b5b29b6 100644 --- a/klee-miuicamera-vendor.mk +++ b/klee-miuicamera-vendor.mk @@ -283,6 +283,8 @@ PRODUCT_PACKAGES += \ vendor.xiaomi.hardware.mtkblackbox-V3-ndk \ libmisys_jni.xiaomi \ libmqsas \ + vendor.xiaomi.hardware.aidlbgservice-V1-ndk \ + vendor.xiaomi.hardware.bgservice@1.0 \ vendor.xiaomi.hardware.misys@1.0 \ vendor.xiaomi.hardware.misys@3.0 \ libcamera_algoup_jni.xiaomi \ @@ -296,6 +298,8 @@ PRODUCT_PACKAGES += \ vendor.xiaomi.hardware.misys.core-V1-ndk-system_ext \ MiuiCamera \ mediatek-framework \ + vendor.xiaomi.hardware.aidlbgservice-V1-java \ + vendor.xiaomi.hardware.bgservice-V1.0-java \ vendor.xiaomi.hardware.misys-V1.0-java \ vendor.xiaomi.hardware.misys-V2.0-java \ vendor.xiaomi.hardware.misys-V4.0-java \ diff --git a/proprietary/system_ext/framework/vendor.xiaomi.hardware.aidlbgservice-V1-java.jar b/proprietary/system_ext/framework/vendor.xiaomi.hardware.aidlbgservice-V1-java.jar new file mode 100644 index 0000000..94d4c21 Binary files /dev/null and b/proprietary/system_ext/framework/vendor.xiaomi.hardware.aidlbgservice-V1-java.jar differ diff --git a/proprietary/system_ext/framework/vendor.xiaomi.hardware.bgservice-V1.0-java.jar b/proprietary/system_ext/framework/vendor.xiaomi.hardware.bgservice-V1.0-java.jar new file mode 100644 index 0000000..66133d8 Binary files /dev/null and b/proprietary/system_ext/framework/vendor.xiaomi.hardware.bgservice-V1.0-java.jar differ diff --git a/proprietary/system_ext/lib/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so b/proprietary/system_ext/lib/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so new file mode 100644 index 0000000..20d3b98 Binary files /dev/null and b/proprietary/system_ext/lib/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so differ diff --git a/proprietary/system_ext/lib/vendor.xiaomi.hardware.bgservice@1.0.so b/proprietary/system_ext/lib/vendor.xiaomi.hardware.bgservice@1.0.so new file mode 100644 index 0000000..c5b3b40 Binary files /dev/null and b/proprietary/system_ext/lib/vendor.xiaomi.hardware.bgservice@1.0.so differ diff --git a/proprietary/system_ext/lib64/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so b/proprietary/system_ext/lib64/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so new file mode 100644 index 0000000..7c23112 Binary files /dev/null and b/proprietary/system_ext/lib64/vendor.xiaomi.hardware.aidlbgservice-V1-ndk.so differ diff --git a/proprietary/system_ext/lib64/vendor.xiaomi.hardware.bgservice@1.0.so b/proprietary/system_ext/lib64/vendor.xiaomi.hardware.bgservice@1.0.so new file mode 100644 index 0000000..ac9c1f3 Binary files /dev/null and b/proprietary/system_ext/lib64/vendor.xiaomi.hardware.bgservice@1.0.so differ