diff --git a/Android.bp b/Android.bp
index 89b9f98..bd2b050 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,622 +1,1235 @@
+//
// Automatically generated file. DO NOT MODIFY
//
-// This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
soong_namespace {
- imports: [
- "vendor/xiaomi/alioth",
- "vendor/xiaomi/sm8250-common",
- "hardware/qcom-caf/sm8250",
- "hardware/xiaomi",
- "vendor/qcom/opensource/commonsys/display",
- "vendor/qcom/opensource/commonsys-intf/display",
- "vendor/qcom/opensource/dataservices",
- "vendor/qcom/opensource/display",
- ],
+ imports: [
+ "hardware/qcom-caf/common/libqti-perfd-client",
+ "vendor/qcom/opensource/display",
+ "vendor/xiaomi/alioth",
+ "vendor/xiaomi/sm8250-common",
+ ],
}
cc_prebuilt_library_shared {
- name: "libmisys_jni.xiaomi",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/system/lib/libmisys_jni.xiaomi.so"],
- shared_libs: ["liblog", "libutils", "libcutils", "libnativehelper", "libhidlmemory", "libhidlbase", "libhidltransport", "android.hidl.memory@1.0", "android.hidl.allocator@1.0", "vendor.xiaomi.hardware.misys@1.0_system", "vendor.xiaomi.hardware.misys@2.0_system", "vendor.xiaomi.hardware.misys@3.0_system", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/system/lib64/libmisys_jni.xiaomi.so"],
- shared_libs: ["liblog", "libutils", "libcutils", "libnativehelper", "libhidlmemory", "libhidlbase", "libhidltransport", "android.hidl.memory@1.0", "android.hidl.allocator@1.0", "vendor.xiaomi.hardware.misys@1.0_system", "vendor.xiaomi.hardware.misys@2.0_system", "vendor.xiaomi.hardware.misys@3.0_system", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
+ name: "libmisys_jni.xiaomi",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/system/lib/libmisys_jni.xiaomi.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libnativehelper",
+ "libhidlmemory",
+ "libhidlbase",
+ "libhidltransport",
+ "android.hidl.memory@1.0",
+ "android.hidl.allocator@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@2.0",
+ "vendor.xiaomi.hardware.misys@3.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/libmisys_jni.xiaomi.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libnativehelper",
+ "libhidlmemory",
+ "libhidlbase",
+ "libhidltransport",
+ "android.hidl.memory@1.0",
+ "android.hidl.allocator@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@2.0",
+ "vendor.xiaomi.hardware.misys@3.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@1.0_system",
- stem: "vendor.xiaomi.hardware.misys@1.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/system/lib/vendor.xiaomi.hardware.misys@1.0.so"],
- shared_libs: ["libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/system/lib64/vendor.xiaomi.hardware.misys@1.0.so"],
- shared_libs: ["libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
+ name: "vendor.xiaomi.hardware.misys@1.0_system",
+ stem: "vendor.xiaomi.hardware.misys@1.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/system/lib/vendor.xiaomi.hardware.misys@1.0.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/vendor.xiaomi.hardware.misys@1.0.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@2.0_system",
- stem: "vendor.xiaomi.hardware.misys@2.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/system/lib/vendor.xiaomi.hardware.misys@2.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0_system", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/system/lib64/vendor.xiaomi.hardware.misys@2.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0_system", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
+ name: "vendor.xiaomi.hardware.misys@2.0_system",
+ stem: "vendor.xiaomi.hardware.misys@2.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/system/lib/vendor.xiaomi.hardware.misys@2.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/vendor.xiaomi.hardware.misys@2.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@3.0_system",
- stem: "vendor.xiaomi.hardware.misys@3.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/system/lib/vendor.xiaomi.hardware.misys@3.0.so"],
- shared_libs: ["android.hidl.allocator@1.0", "android.hidl.memory.block@1.0", "android.hidl.memory.token@1.0", "vendor.xiaomi.hardware.misys@1.0_system", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/system/lib64/vendor.xiaomi.hardware.misys@3.0.so"],
- shared_libs: ["android.hidl.allocator@1.0", "android.hidl.memory.block@1.0", "android.hidl.memory.token@1.0", "vendor.xiaomi.hardware.misys@1.0_system", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
+ name: "vendor.xiaomi.hardware.misys@3.0_system",
+ stem: "vendor.xiaomi.hardware.misys@3.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/system/lib/vendor.xiaomi.hardware.misys@3.0.so",
+ ],
+ shared_libs: [
+ "android.hidl.allocator@1.0",
+ "android.hidl.memory.block@1.0",
+ "android.hidl.memory.token@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/vendor.xiaomi.hardware.misys@3.0.so",
+ ],
+ shared_libs: [
+ "android.hidl.allocator@1.0",
+ "android.hidl.memory.block@1.0",
+ "android.hidl.memory.token@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@4.0_system",
- stem: "vendor.xiaomi.hardware.misys@4.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/system/lib/vendor.xiaomi.hardware.misys@4.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0_system", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/system/lib64/vendor.xiaomi.hardware.misys@4.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0_system", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
+ name: "vendor.xiaomi.hardware.misys@4.0_system",
+ stem: "vendor.xiaomi.hardware.misys@4.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/system/lib/vendor.xiaomi.hardware.misys@4.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/vendor.xiaomi.hardware.misys@4.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "libcamera_algoup_jni.xiaomi",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: ["proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so"],
- shared_libs: ["libandroid", "libandroid_runtime", "libbase", "libbinder", "libcamera_client", "libcamera_metadata", "libcutils", "libgui", "liblog", "libmedia_jni_utils", "libnativehelper", "libnativewindow", "libui", "libutils", "libvndksupport", "android.hidl.token@1.0-utils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- prefer: true,
+ name: "libcamera_algoup_jni.xiaomi",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so",
+ ],
+ shared_libs: [
+ "libandroid",
+ "libandroid_runtime",
+ "libbase",
+ "libbinder",
+ "libcamera_client",
+ "libcamera_metadata",
+ "libcutils",
+ "libgui",
+ "liblog",
+ "libmedia_jni_utils",
+ "libnativehelper",
+ "libnativewindow",
+ "libui",
+ "libutils",
+ "libvndksupport",
+ "android.hidl.token@1.0-utils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "libcamera_mianode_jni.xiaomi",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: ["proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so"],
- shared_libs: ["libandroid", "libbinder", "libcamera_client", "libcamera_metadata", "libcutils", "libgui", "liblog", "libmedia_jni_utils", "libui", "libutils", "libvndksupport", "libxml2", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- prefer: true,
+ name: "libcamera_mianode_jni.xiaomi",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so",
+ ],
+ shared_libs: [
+ "libandroid",
+ "libbinder",
+ "libcamera_client",
+ "libcamera_metadata",
+ "libcutils",
+ "libgui",
+ "liblog",
+ "libmedia_jni_utils",
+ "libui",
+ "libutils",
+ "libvndksupport",
+ "libxml2",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "libmicampostproc_client",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: ["proprietary/system/lib64/libmicampostproc_client.so"],
- shared_libs: ["liblog", "libutils", "libcutils", "libhardware", "libnativewindow", "libEGL", "libGLESv2", "libfmq", "libgui", "libui", "libcamera_client", "libcamera_metadata", "libmedia_jni_utils", "libnativehelper", "libhidlbase", "vendor.xiaomi.hardware.campostproc@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- prefer: true,
+ name: "libmicampostproc_client",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/libmicampostproc_client.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libhardware",
+ "libnativewindow",
+ "libEGL",
+ "libGLESv2",
+ "libfmq",
+ "libgui",
+ "libui",
+ "libcamera_client",
+ "libcamera_metadata",
+ "libmedia_jni_utils",
+ "libnativehelper",
+ "libhidlbase",
+ "vendor.xiaomi.hardware.campostproc@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.campostproc@1.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: ["proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so"],
- shared_libs: ["android.hardware.camera.common@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- prefer: true,
+ name: "vendor.xiaomi.hardware.campostproc@1.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so",
+ ],
+ shared_libs: [
+ "android.hardware.camera.common@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@1.0-impl",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@1.0-impl.so"],
- shared_libs: ["libhidlbase", "libutils", "liblog", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so"],
- shared_libs: ["libhidlbase", "libutils", "liblog", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- relative_install_path: "hw",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@1.0-impl",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@1.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libutils",
+ "liblog",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libutils",
+ "liblog",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ relative_install_path: "hw",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@2.0-impl",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@2.0-impl.so"],
- shared_libs: ["libhidlbase", "libutils", "liblog", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@2.0", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so"],
- shared_libs: ["libhidlbase", "libutils", "liblog", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@2.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- relative_install_path: "hw",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@2.0-impl",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@2.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libutils",
+ "liblog",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@2.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libutils",
+ "liblog",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@2.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ relative_install_path: "hw",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@3.0-impl",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@3.0-impl.so"],
- shared_libs: ["libhidlbase", "libcutils", "libutils", "liblog", "libcheckpid", "liblogwrap_vendor", "libhidlmemory", "vendor.xiaomi.hardware.misys@3.0", "android.hidl.memory@1.0", "android.hidl.allocator@1.0", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so"],
- shared_libs: ["libhidlbase", "libcutils", "libutils", "liblog", "libcheckpid", "liblogwrap_vendor", "libhidlmemory", "vendor.xiaomi.hardware.misys@3.0", "android.hidl.memory@1.0", "android.hidl.allocator@1.0", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- relative_install_path: "hw",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@3.0-impl",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@3.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libcutils",
+ "libutils",
+ "liblog",
+ "libcheckpid",
+ "liblogwrap_vendor",
+ "libhidlmemory",
+ "vendor.xiaomi.hardware.misys@3.0",
+ "android.hidl.memory@1.0",
+ "android.hidl.allocator@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libcutils",
+ "libutils",
+ "liblog",
+ "libcheckpid",
+ "liblogwrap_vendor",
+ "libhidlmemory",
+ "vendor.xiaomi.hardware.misys@3.0",
+ "android.hidl.memory@1.0",
+ "android.hidl.allocator@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ relative_install_path: "hw",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@4.0-impl",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@4.0-impl.so"],
- shared_libs: ["libhidlbase", "libutils", "liblog", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@4.0", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so"],
- shared_libs: ["libhidlbase", "libutils", "liblog", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@4.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- relative_install_path: "hw",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@4.0-impl",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/hw/vendor.xiaomi.hardware.misys@4.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libutils",
+ "liblog",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@4.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libutils",
+ "liblog",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@4.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ relative_install_path: "hw",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "libcheckpid",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/libcheckpid.so"],
- shared_libs: ["libhidlbase", "libcutils", "libutils", "liblog", "liblogwrap_vendor", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/libcheckpid.so"],
- shared_libs: ["libhidlbase", "libcutils", "libutils", "liblog", "liblogwrap_vendor", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- soc_specific: true,
+ name: "libcheckpid",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/libcheckpid.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libcutils",
+ "libutils",
+ "liblog",
+ "liblogwrap_vendor",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/libcheckpid.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "libcutils",
+ "libutils",
+ "liblog",
+ "liblogwrap_vendor",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "liblogwrap_vendor",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/liblogwrap_vendor.so"],
- shared_libs: ["libcutils", "liblog", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/liblogwrap_vendor.so"],
- shared_libs: ["libcutils", "liblog", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- soc_specific: true,
+ name: "liblogwrap_vendor",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/liblogwrap_vendor.so",
+ ],
+ shared_libs: [
+ "libcutils",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/liblogwrap_vendor.so",
+ ],
+ shared_libs: [
+ "libcutils",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@1.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/vendor.xiaomi.hardware.misys@1.0.so"],
- shared_libs: ["libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@1.0.so"],
- shared_libs: ["libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@1.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/vendor.xiaomi.hardware.misys@1.0.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@1.0.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@2.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/vendor.xiaomi.hardware.misys@2.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@2.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@2.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/vendor.xiaomi.hardware.misys@2.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@2.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@3.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/vendor.xiaomi.hardware.misys@3.0.so"],
- shared_libs: ["android.hidl.allocator@1.0", "android.hidl.memory.block@1.0", "android.hidl.memory.token@1.0", "vendor.xiaomi.hardware.misys@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@3.0.so"],
- shared_libs: ["android.hidl.allocator@1.0", "android.hidl.memory.block@1.0", "android.hidl.memory.token@1.0", "vendor.xiaomi.hardware.misys@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@3.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/vendor.xiaomi.hardware.misys@3.0.so",
+ ],
+ shared_libs: [
+ "android.hidl.allocator@1.0",
+ "android.hidl.memory.block@1.0",
+ "android.hidl.memory.token@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@3.0.so",
+ ],
+ shared_libs: [
+ "android.hidl.allocator@1.0",
+ "android.hidl.memory.block@1.0",
+ "android.hidl.memory.token@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "vendor.xiaomi.hardware.misys@4.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/vendor/lib/vendor.xiaomi.hardware.misys@4.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@4.0.so"],
- shared_libs: ["vendor.xiaomi.hardware.misys@1.0", "libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@4.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/vendor/lib/vendor.xiaomi.hardware.misys@4.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@4.0.so",
+ ],
+ shared_libs: [
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "libarcsat",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/libarcsat.so"],
- shared_libs: ["libcamera_metadata", "libcom.qti.chinodeutils", "libtriplecam_video_optical_zoom", "libcutils", "libmpbase", "libz", "liblog", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- prefer: true,
- soc_specific: true,
+ name: "libarcsat",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/libarcsat.so",
+ ],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcom.qti.chinodeutils",
+ "libtriplecam_video_optical_zoom",
+ "libcutils",
+ "libmpbase",
+ "libz",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "libsupermoon",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/lib64/libsupermoon.so"],
- shared_libs: ["libSNPE", "libc++_shared", "libc", "libm", "libdl", "libz", "liblog", ],
- },
- },
- compile_multilib: "64",
- prefer: true,
- soc_specific: true,
+ name: "libsupermoon",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/libsupermoon.so",
+ ],
+ shared_libs: [
+ "libSNPE",
+ "libc++_shared",
+ "libc",
+ "libm",
+ "libdl",
+ "libz",
+ "liblog",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_library_shared {
- name: "libOpenCL_system",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm: {
- srcs: ["proprietary/system_ext/lib/libOpenCL_system.so"],
- shared_libs: ["libcutils", "liblog", "libvndksupport", "libc++", "libc", "libm", "libdl", ],
- },
- android_arm64: {
- srcs: ["proprietary/system_ext/lib64/libOpenCL_system.so"],
- shared_libs: ["libcutils", "liblog", "libvndksupport", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "both",
- prefer: true,
- system_ext_specific: true,
+ name: "libOpenCL_system",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm: {
+ srcs: [
+ "proprietary/system_ext/lib/libOpenCL_system.so",
+ ],
+ shared_libs: [
+ "libcutils",
+ "liblog",
+ "libvndksupport",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libOpenCL_system.so",
+ ],
+ shared_libs: [
+ "libcutils",
+ "liblog",
+ "libvndksupport",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "both",
+ prefer: true,
+ system_ext_specific: true,
}
android_app_import {
- name: "MiuiCamera",
- owner: "xiaomi",
- apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
- overrides: ["GrapheneCamera", "Camera", "Camera2", "Aperture", "GoogleCameraGo"],
- certificate: "platform",
- dex_preopt: {
- enabled: false,
- },
- privileged: true,
+ name: "MiuiCamera",
+ owner: "xiaomi",
+ apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
+ overrides: [
+ "GrapheneCamera",
+ "Camera",
+ "Camera2",
+ "Aperture",
+ "GoogleCameraGo",
+ ],
+ certificate: "platform",
+ dex_preopt: {
+ enabled: false,
+ },
+ privileged: true,
}
dex_import {
- name: "vendor.xiaomi.hardware.misys-V1.0-java",
- owner: "xiaomi",
- jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar"],
+ name: "vendor.xiaomi.hardware.misys-V1.0-java",
+ owner: "xiaomi",
+ jars: [
+ "proprietary/system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar",
+ ],
}
dex_import {
- name: "vendor.xiaomi.hardware.misys-V2.0-java",
- owner: "xiaomi",
- jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar"],
+ name: "vendor.xiaomi.hardware.misys-V2.0-java",
+ owner: "xiaomi",
+ jars: [
+ "proprietary/system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar",
+ ],
}
dex_import {
- name: "vendor.xiaomi.hardware.misys-V4.0-java",
- owner: "xiaomi",
- jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar"],
+ name: "vendor.xiaomi.hardware.misys-V4.0-java",
+ owner: "xiaomi",
+ jars: [
+ "proprietary/system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar",
+ ],
}
dex_import {
- name: "vendor.xiaomi.hardware.misys.V3_0",
- owner: "xiaomi",
- jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys.V3_0.jar"],
+ name: "vendor.xiaomi.hardware.misys.V3_0",
+ owner: "xiaomi",
+ jars: [
+ "proprietary/system/framework/vendor.xiaomi.hardware.misys.V3_0.jar",
+ ],
}
dex_import {
- name: "camerax-vendor-extensions",
- owner: "xiaomi",
- jars: ["proprietary/system_ext/framework/camerax-vendor-extensions.jar"],
- system_ext_specific: true,
+ name: "camerax-vendor-extensions",
+ owner: "xiaomi",
+ jars: [
+ "proprietary/system_ext/framework/camerax-vendor-extensions.jar",
+ ],
+ system_ext_specific: true,
}
prebuilt_etc_xml {
- name: "vendor.xiaomi.hardware.misys@1.0.xml",
- owner: "xiaomi",
- src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@1.0.xml",
- filename_from_src: true,
- sub_dir: "vintf/manifest",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@1.0.xml",
+ owner: "xiaomi",
+ src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@1.0.xml",
+ filename_from_src: true,
+ sub_dir: "vintf/manifest",
+ soc_specific: true,
}
prebuilt_etc_xml {
- name: "vendor.xiaomi.hardware.misys@2.0.xml",
- owner: "xiaomi",
- src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@2.0.xml",
- filename_from_src: true,
- sub_dir: "vintf/manifest",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@2.0.xml",
+ owner: "xiaomi",
+ src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@2.0.xml",
+ filename_from_src: true,
+ sub_dir: "vintf/manifest",
+ soc_specific: true,
}
prebuilt_etc_xml {
- name: "vendor.xiaomi.hardware.misys@3.0.xml",
- owner: "xiaomi",
- src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@3.0.xml",
- filename_from_src: true,
- sub_dir: "vintf/manifest",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@3.0.xml",
+ owner: "xiaomi",
+ src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@3.0.xml",
+ filename_from_src: true,
+ sub_dir: "vintf/manifest",
+ soc_specific: true,
}
prebuilt_etc_xml {
- name: "vendor.xiaomi.hardware.misys@4.0.xml",
- owner: "xiaomi",
- src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@4.0.xml",
- filename_from_src: true,
- sub_dir: "vintf/manifest",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@4.0.xml",
+ owner: "xiaomi",
+ src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@4.0.xml",
+ filename_from_src: true,
+ sub_dir: "vintf/manifest",
+ soc_specific: true,
}
cc_prebuilt_binary {
- name: "f2player",
- owner: "xiaomi",
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/bin/f2player"],
- shared_libs: ["libc++", "libcutils", "liblog", "libofflinelog", "libsync", "com.qti.feature2.gs", "com.qti.feature2.generic", "com.qti.feature2.mfsr", "com.qti.feature2.rt", "libcamera_metadata", "libchilog", "libhardware", "libhidlbase", "libhidltransport", "libqdMetaData", "libutils", "libui", "vendor.qti.hardware.vpp@1.1", "vendor.qti.hardware.vpp@1.2", "vendor.qti.hardware.camera.postproc@1.0-service-impl", "libxml", "libz", "libdl", "libc", "libm", ],
- },
- },
- compile_multilib: "64",
- strip: {
- none: true,
- },
- prefer: true,
- soc_specific: true,
+ name: "f2player",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/bin/f2player",
+ ],
+ shared_libs: [
+ "libc++",
+ "libcutils",
+ "liblog",
+ "libofflinelog",
+ "libsync",
+ "com.qti.feature2.gs",
+ "com.qti.feature2.generic",
+ "com.qti.feature2.mfsr",
+ "com.qti.feature2.rt",
+ "libcamera_metadata",
+ "libchilog",
+ "libhardware",
+ "libhidlbase",
+ "libhidltransport",
+ "libqdMetaData",
+ "libutils",
+ "libui",
+ "vendor.qti.hardware.vpp@1.1",
+ "vendor.qti.hardware.vpp@1.2",
+ "vendor.qti.hardware.camera.postproc@1.0-service-impl",
+ "libxml",
+ "libz",
+ "libdl",
+ "libc",
+ "libm",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ soc_specific: true,
}
cc_prebuilt_binary {
- name: "vendor.xiaomi.hardware.misys@1.0-service",
- owner: "xiaomi",
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service"],
- shared_libs: ["liblog", "libcutils", "libbase", "libutils", "libhardware", "libhidlbase", "vendor.xiaomi.hardware.misys@1.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- strip: {
- none: true,
- },
- prefer: true,
- relative_install_path: "hw",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@1.0-service",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service",
+ ],
+ shared_libs: [
+ "liblog",
+ "libcutils",
+ "libbase",
+ "libutils",
+ "libhardware",
+ "libhidlbase",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ relative_install_path: "hw",
+ soc_specific: true,
}
cc_prebuilt_binary {
- name: "vendor.xiaomi.hardware.misys@2.0-service",
- owner: "xiaomi",
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service"],
- shared_libs: ["liblog", "libcutils", "libbase", "libutils", "libhardware", "libhidlbase", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@2.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- strip: {
- none: true,
- },
- prefer: true,
- relative_install_path: "hw",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@2.0-service",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service",
+ ],
+ shared_libs: [
+ "liblog",
+ "libcutils",
+ "libbase",
+ "libutils",
+ "libhardware",
+ "libhidlbase",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@2.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ relative_install_path: "hw",
+ soc_specific: true,
}
cc_prebuilt_binary {
- name: "vendor.xiaomi.hardware.misys@3.0-service",
- owner: "xiaomi",
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service"],
- shared_libs: ["liblog", "liblogwrap_vendor", "libcheckpid", "libbase", "libutils", "libcutils", "libhardware", "libhidlbase", "libhidlmemory", "android.hidl.memory@1.0", "android.hidl.allocator@1.0", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@2.0", "vendor.xiaomi.hardware.misys@3.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- strip: {
- none: true,
- },
- prefer: true,
- relative_install_path: "hw",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@3.0-service",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service",
+ ],
+ shared_libs: [
+ "liblog",
+ "liblogwrap_vendor",
+ "libcheckpid",
+ "libbase",
+ "libutils",
+ "libcutils",
+ "libhardware",
+ "libhidlbase",
+ "libhidlmemory",
+ "android.hidl.memory@1.0",
+ "android.hidl.allocator@1.0",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@2.0",
+ "vendor.xiaomi.hardware.misys@3.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ relative_install_path: "hw",
+ soc_specific: true,
}
cc_prebuilt_binary {
- name: "vendor.xiaomi.hardware.misys@4.0-service",
- owner: "xiaomi",
- target: {
- android_arm64: {
- srcs: ["proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service"],
- shared_libs: ["liblog", "libcutils", "libbase", "libutils", "libhardware", "libhidlbase", "vendor.xiaomi.hardware.misys@1.0", "vendor.xiaomi.hardware.misys@4.0", "libc++", "libc", "libm", "libdl", ],
- },
- },
- compile_multilib: "64",
- strip: {
- none: true,
- },
- prefer: true,
- relative_install_path: "hw",
- soc_specific: true,
+ name: "vendor.xiaomi.hardware.misys@4.0-service",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service",
+ ],
+ shared_libs: [
+ "liblog",
+ "libcutils",
+ "libbase",
+ "libutils",
+ "libhardware",
+ "libhidlbase",
+ "vendor.xiaomi.hardware.misys@1.0",
+ "vendor.xiaomi.hardware.misys@4.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ relative_install_path: "hw",
+ soc_specific: true,
}
-
diff --git a/Android.mk b/Android.mk
index 82bdeec..362133d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,9 +1,5 @@
+#
# Automatically generated file. DO NOT MODIFY
#
-# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
LOCAL_PATH := $(call my-dir)
-
-ifneq ($(filter alioth,$(TARGET_DEVICE)),)
-
-endif
diff --git a/BoardConfigVendor.mk b/BoardConfigVendor.mk
index 59d0ce1..18ed0ae 100644
--- a/BoardConfigVendor.mk
+++ b/BoardConfigVendor.mk
@@ -1,4 +1,3 @@
+#
# Automatically generated file. DO NOT MODIFY
#
-# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
-
diff --git a/README.md b/README.md
index e4b75e1..9f25bce 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,15 @@
# proprietary_vendor_xiaomi_camera
-Prebuilt stock MIUI/Leica Camera for Poco F3/Redmi K40/Mi 11x (alioth), to include in custom ROM builds.
+Prebuilt modded MIUI/Leica Camera 5.0 for Poco F3/Redmi K40/Mi 11x (alioth), to include in custom ROM builds.
### How to use?
1. Clone this repo to `vendor/xiaomi/camera`
-
-2. Inherit it from `device.mk` in device tree:
-
+2. Clone https://github.com/PocoF3Releases/device_xiaomi_camera to 'device/xiaomi/camera'
+3. Inherit it from `device.mk` in device tree:
```
# Camera
-$(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
+$(call inherit-product-if-exists, device/xiaomi/camera/miuicamera.mk)
```
3. Ensure that you added misys vintf dependencies in your framework_compatibility_matrix.xml:
@@ -28,4 +27,4 @@ $(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
```
-3.1 Reference - https://github.com/VoidUI-Devices/device_xiaomi_sm8250-common/commit/c8ae872b8fdbc682da0f98a2031125d68ef0afe9
+3.1 Reference - https://github.com/PocoF3Releases/device_xiaomi_sm8250-common/commit/26b57664835c487db278dbda83fe936ceb831c63
diff --git a/camera-vendor.mk b/camera-vendor.mk
index de4ec47..c3d3ef9 100644
--- a/camera-vendor.mk
+++ b/camera-vendor.mk
@@ -1,6 +1,6 @@
+#
# Automatically generated file. DO NOT MODIFY
#
-# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
PRODUCT_SOONG_NAMESPACES += \
vendor/xiaomi/camera
diff --git a/configs/camera/camxoverridesettings.txt b/configs/camera/camxoverridesettings.txt
deleted file mode 100644
index 7b547d7..0000000
--- a/configs/camera/camxoverridesettings.txt
+++ /dev/null
@@ -1,73 +0,0 @@
-multiCameraEnable=TRUE
-logInfoMask=0x0
-overrideLogLevels=0x1
-logConfigMask=0x0
-logWarningMask=0x0
-logVerboseMask=0x0
-logDRQEnable=0x0
-logMetaEnable=0x0
-logRequestMapping=0x0
-systemLogEnable=TRUE
-logCoreCfgMask=0
-enableAsciiLogging=FALSE
-enableTxtLogging=0
-traceGroupsEnable=0
-enable3ADebugData=FALSE
-enableTuningMetadata=FALSE
-MPMSizeThresToDisableDelayedUnmap=0
-MPMForceDisableDelayedUnmap=TRUE
-#pdafHWEnable=TRUE
-oisMaxWaitingTime=50
-enableOISOptimization=TRUE
-enableResourceManager=TRUE
-enableRawHDR=0
-#forceHWMFFixedNumOfFrames=5
-enableICAInGrid=1
-enableNCSService=1
-iseispreviewSupported=TRUE
-ismfnrbokehsupported=TRUE
-isBeautyMakeupSupported=TRUE
-isVideoBeautifierSupported=TRUE
-isSuperPortraitSupported=TRUE
-is3rdLightWeightSupported=TRUE
-raiserecoverysigabrt=FALSE
-minReprocessInputWidth=8000
-minReprocessInputHeight=6000
-gyroSensitivityLLS=0.04
-gyroSensitivityLLSEnable=FALSE
-disableFocusIndication=TRUE
-overrideFlashTorchCurrent=380
-overrideFlashlightCurrent=130
-enableSensorHWSync=1
-enableSensorFpsMatch=TRUE
-isVideoBokehSupported=TRUE
-isVideoMimovieSupported=TRUE
-isVideoLogformatSupported=TRUE
-isFrontVideoBokehSupported=TRUE
-isColorRetentionSupported=TRUE
-isVideoFilterSupported=TRUE
-AIEnhancementVersion=2
-multiCameraFrameSync=1
-#isParallelCameraDeviceSupported=TRUE
-FDFilterEngine=FD_Standard_ARM
-isVideoColorRetentionBackSupported=TRUE
-fovcEnable=1
-vsquality=5@30|6@30
-FDPreprocessing=GTM
-#miIfeCamnocBandwidthMBytes=4317
-#miIfeExternalBandwidthMBytes=3746
-#miIfeBandwidthBoostCount=1
-algoNormalSupportedValue=0:99|21:99|1:39|G:33
-algoHQSupportedValue=0:66|21:66|1:6|G:0
-algoSuperNightSupportedValue=0:8|1:8|21:0|G:0
-algoEISSupportedValue=0:16|1:0|21:16|G:0
-algoCameraXEnabled=TRUE
-sessionMaxFlushWaitTime=2000
-algoSDKEnabled=TRUE
-enableCHIPartialData=1
-quickviewsupport=TRUE
-enableGPURotation=TRUE
-colorBokehVersion=0
-AIEnhancementVideoSupportVersion=1
-superVideoFilterVersion=1
-isVideoBeautyScreenshotSupported=TRUE
diff --git a/configs/device_features/alioth.xml b/configs/device_features/alioth.xml
deleted file mode 100644
index 4a9adbf..0000000
--- a/configs/device_features/alioth.xml
+++ /dev/null
@@ -1,625 +0,0 @@
-
-
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- false
-
- true
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- false
-
- false
-
- true
-
- false
-
- true
-
- 1
-
- true
-
- false
-
- true
-
- false
-
- false
-
- false
-
- 7
-
- true
-
- true
-
- false
-
- false
-
- false
-
- false
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- false
-
- true
-
- false
-
-
- true
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- true
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- 4520
-
- qcom
-
- 1473868800000
-
- 1
-
- 255.0
-
- 58.0
-
- 14
-
- 100
-
- 11
-
- false
-
- 320
-
- 2
-
- 12.0
-
- -0.5573
- false
- $
- true
-
- 1
- 0
- 0
- 1080
- 1920
-
-
- - uinput-fpc
- - uinput-goodix
-
- false
-
- 2
-
- 1
-
- 3
-
- true
-
- 44
- 9
- 9
-
- false
-
- false
-
- 0.86
-
- 1.05
-
- 1.25
-
- 1.40
-
- 1.40
-
- true
-
- true
-
- false
-
-
- - org.codeaurora.snapcam
- - com.android.camera
- - com.miui.cit
- - com.qualcomm.qti.qmmi
- - com.android.keyguard
- - com.android.systemui
- - com.phonetest.application
- - com.phonetest.application.test
- - com.ss.android.ugc.aweme
- - com.xiaomi.cameratest
- - com.xiaomi.cameratools
- - com.blink.academy.protake
- - com.xiaomi.camera.mivi
- - com.xiaomi.camera.sample
- - com.smile.gifmaker
- - com.snapchat.android
-
-
-
- - com.blink.academy.protake
- - com.xiaomi.camera.mivi
- - com.xiaomi.camera.sample
- - com.smile.gifmaker
- - com.snapchat.android
-
-
-
-
- - com.ludashi:0, add, 8000, 6000, 33,false
- - com.ludashi:1, add, 5184, 3880, 33,false
-
- - com.antutu:0, ssize, 8000, 6000;1, ssize, 5184, 3880
-
- - com.tencent.mobileqq:1,limit,1920, 1080
-
-
- i:2
-
- 921600
-
- false
- false
- true
- true
-
- true
-
- true
-
-
- - com.xiaomi.pass
- - com.xiaomi.scanner
- - com.xiaomi.gamecenter
- - com.miui.weather2
- - com.miui.notes
- - com.miui.compass
- - com.miui.calculator
- - com.android.email
- - com.miui.cleanmaster
- - com.mi.misupport
- - com.mfashiongallery.emag
- - com.miui.personalassistant
- - com.miui.voip
- - com.miui.yellowpage
- - com.xiaomi.midrop
- - com.android.midrive
- - com.xiaomi.drivemode
- - com.miui.smarttravel
-
-
-
- - /system/data-app/XMPass/XMPass.apk
- - /system/data-app/MiuiScanner/MiuiScanner.apk
- - /system/data-app/GameCenter/GameCenter.apk
- - /system/data-app/Weather/Weather.apk
- - /system/data-app/Notes/Notes.apk
- - /system/data-app/MiuiCompass/MiuiCompass.apk
- - /system/data-app/Calculator/Calculator.apk
- - /system/data-app/Email/Email.apk
- - /system/data-app/CleanMaster/CleanMaster.apk
- - /system/data-app/MiSupport/MiSupport.apk
- - /system/data-app/MiGalleryLockscreen/MiGalleryLockscreen.apk
- - /system/data-app/PersonalAssistant/PersonalAssistant.apk
- - /system/data-app/MiuiVoip/MiuiVoip.apk
- - /system/data-app/YellowPage/YellowPage.apk
- - /system/data-app/MiDrop/MiDrop.apk
- - /system/data-app/MiDrive/MiDrive.apk
- - /system/data-app/MiuiDriveMode/MiuiDriveMode.apk
- - /system/data-app/SmartTravel/SmartTravel.apk
-
-
- true
-
- true
-
- true
-
- true
-
- false
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
- 0x000011C0
-
- true
-
- true
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
-
- - 120
- - 60
-
- 60
-
- true
-
- true
-
- false
-
-
- - ALL
-
-
-
- - CN
-
-
- true
- true
-
- 0
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- 0
-
- 0
-
- 3
-
- 255
-
- 50
-
- 255
-
- 0
-
- -180
-
- 180
-
- 0
-
- -50
-
- 50
-
- 0
-
- -255
-
- 255
-
- 0
-
- -100
-
- 100
-
- 220
-
- 170
-
- 270
-
- 1.037
-
- 0.718
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- 3
-
- false
-
- true
-
- true
-
-
-
-
- - 50
- - 2
- - 4
- - 6
- - 8
- - 10
-
-
-
- - 0
- - 3
- - 5
- - 8
- - 10
-
-
-
- - 150
- - 300
- - 170
- - 170
-
-
-
- - 12
- - 96
-
-
- true
-
- 91.0
-
- 18
-
- 0
-
- 35
-
- true
-
- true
-
- true
-
- true
-
- 1000
-
- true
- true
-
- true
-
-
- - /system
- - /system_ext
- - /product
- - /vendor
- - /odm
- - /mi_ext
-
-
- - rescue
- - oops
- - minidump
- - rawdump
- - crash_history
- - expdb
-
- /dev/block/by-name/
-
diff --git a/configs/device_features/aliothin.xml b/configs/device_features/aliothin.xml
deleted file mode 100644
index c4e1a72..0000000
--- a/configs/device_features/aliothin.xml
+++ /dev/null
@@ -1,621 +0,0 @@
-
-
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- false
-
- true
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- false
-
- false
-
- true
-
- false
-
- true
-
- 1
-
- true
-
- false
-
- true
-
- false
-
- false
-
- false
-
- 7
-
- true
-
- true
-
- false
-
- false
-
- false
-
- false
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- false
-
- true
-
- false
-
-
- true
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- true
-
- true
-
- false
-
- true
-
- false
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- 4520
-
- qcom
-
- 1473868800000
-
- 1
-
- 255.0
-
- 58.0
-
- 14
-
- 100
-
- 11
-
- false
-
- 320
-
- 2
-
- 12.0
-
- -0.5573
- false
- $
- true
-
- 1
- 0
- 0
- 1080
- 1920
-
-
- - uinput-fpc
- - uinput-goodix
-
- false
-
- 2
-
- 1
-
- 3
-
- true
-
- 44
- 9
- 9
-
- false
-
- false
-
- 0.86
-
- 1.05
-
- 1.25
-
- 1.40
-
- 1.40
-
- true
-
- true
-
- false
-
-
- - org.codeaurora.snapcam
- - com.android.camera
- - com.miui.cit
- - com.qualcomm.qti.qmmi
- - com.android.keyguard
- - com.android.systemui
- - com.phonetest.application
- - com.phonetest.application.test
- - com.ss.android.ugc.aweme
- - com.xiaomi.cameratest
- - com.xiaomi.cameratools
- - com.blink.academy.protake
- - com.xiaomi.camera.mivi
- - com.xiaomi.camera.sample
- - com.smile.gifmaker
- - com.snapchat.android
-
-
-
- - com.blink.academy.protake
- - com.xiaomi.camera.mivi
- - com.xiaomi.camera.sample
- - com.smile.gifmaker
- - com.snapchat.android
-
-
-
-
- - com.ludashi:0, add, 8000, 6000, 33,false
- - com.ludashi:1, add, 5184, 3880, 33,false
-
- - com.antutu:0, ssize, 8000, 6000;1, ssize, 5184, 3880
-
- - com.tencent.mobileqq:1,limit,1920, 1080
-
-
- i:2
-
- 921600
-
- false
- false
- true
- true
-
- true
-
- true
-
-
- - com.xiaomi.pass
- - com.xiaomi.scanner
- - com.xiaomi.gamecenter
- - com.miui.weather2
- - com.miui.notes
- - com.miui.compass
- - com.miui.calculator
- - com.android.email
- - com.miui.cleanmaster
- - com.mi.misupport
- - com.duokan.reader
- - com.mfashiongallery.emag
- - com.miui.personalassistant
- - com.miui.voip
- - com.miui.yellowpage
- - com.xiaomi.midrop
- - com.android.midrive
- - com.xiaomi.drivemode
- - com.miui.smarttravel
-
-
-
- - /system/data-app/XMPass/XMPass.apk
- - /system/data-app/MiuiScanner/MiuiScanner.apk
- - /system/data-app/GameCenter/GameCenter.apk
- - /system/data-app/Weather/Weather.apk
- - /system/data-app/Notes/Notes.apk
- - /system/data-app/MiuiCompass/MiuiCompass.apk
- - /system/data-app/Calculator/Calculator.apk
- - /system/data-app/Email/Email.apk
- - /system/data-app/CleanMaster/CleanMaster.apk
- - /system/data-app/MiSupport/MiSupport.apk
- - /system/data-app/com.duokan.reader/com.duokan.reader.apk
- - /system/data-app/MiGalleryLockscreen/MiGalleryLockscreen.apk
- - /system/data-app/PersonalAssistant/PersonalAssistant.apk
- - /system/data-app/MiuiVoip/MiuiVoip.apk
- - /system/data-app/YellowPage/YellowPage.apk
- - /system/data-app/MiDrop/MiDrop.apk
- - /system/data-app/MiDrive/MiDrive.apk
- - /system/data-app/MiuiDriveMode/MiuiDriveMode.apk
- - /system/data-app/SmartTravel/SmartTravel.apk
-
-
- true
-
- true
-
- true
-
- true
-
- false
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
- true
- 0x000011C0
-
- true
-
- true
- true
-
- false
-
- true
-
- true
-
- true
-
- true
-
-
- - 120
- - 60
-
- 60
-
- true
-
- true
-
- false
-
-
- - ALL
-
-
-
- - CN
-
-
- true
- true
-
- 0
-
- true
-
- true
-
- true
-
- false
-
- true
-
- true
-
- true
-
- 0
-
- 0
-
- 3
-
- 255
-
- 50
-
- 255
-
- 0
-
- -180
-
- 180
-
- 0
-
- -50
-
- 50
-
- 0
-
- -255
-
- 255
-
- 0
-
- -100
-
- 100
-
- 220
-
- 170
-
- 270
-
- 0.860
-
- 0.694
-
- true
-
- true
-
- true
-
- true
-
- true
-
- true
-
- 3
-
- false
-
- true
-
- true
-
-
-
-
- - 50
- - 2
- - 4
- - 6
- - 8
- - 10
-
-
-
- - 0
- - 3
- - 5
- - 8
- - 10
-
-
-
- - 150
- - 300
- - 170
- - 170
-
-
-
- - 12
- - 96
-
-
- true
-
- 91.0
-
- 18
-
- 0
-
- 35
-
- true
-
- true
-
- true
-
- true
- true
-
-
- - /system
- - /system_ext
- - /product
- - /vendor
- - /odm
- - /mi_ext
-
-
- - rescue
- - oops
- - minidump
- - rawdump
- - crash_history
- - expdb
-
- /dev/block/by-name/
-
diff --git a/configs/permissions/default-permissions/default-permissions-miuicamera.xml b/configs/permissions/default-permissions/default-permissions-miuicamera.xml
deleted file mode 100644
index 8083da8..0000000
--- a/configs/permissions/default-permissions/default-permissions-miuicamera.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/permissions/extensions/camerax-vendor-extensions.xml b/configs/permissions/extensions/camerax-vendor-extensions.xml
deleted file mode 100644
index 3cd6e55..0000000
--- a/configs/permissions/extensions/camerax-vendor-extensions.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
diff --git a/configs/permissions/permissions/android.hardware.camera.flash-autofocus.xml b/configs/permissions/permissions/android.hardware.camera.flash-autofocus.xml
deleted file mode 100644
index 64052aa..0000000
--- a/configs/permissions/permissions/android.hardware.camera.flash-autofocus.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/permissions/permissions/android.hardware.camera.front.xml b/configs/permissions/permissions/android.hardware.camera.front.xml
deleted file mode 100644
index 73fcb68..0000000
--- a/configs/permissions/permissions/android.hardware.camera.front.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/configs/permissions/permissions/android.hardware.camera.full.xml b/configs/permissions/permissions/android.hardware.camera.full.xml
deleted file mode 100644
index dc24c11..0000000
--- a/configs/permissions/permissions/android.hardware.camera.full.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/permissions/permissions/android.hardware.camera.raw.xml b/configs/permissions/permissions/android.hardware.camera.raw.xml
deleted file mode 100644
index ea6b1fd..0000000
--- a/configs/permissions/permissions/android.hardware.camera.raw.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/configs/permissions/permissions/privapp-permissions-miuicamera.xml b/configs/permissions/permissions/privapp-permissions-miuicamera.xml
deleted file mode 100644
index 00ccd3f..0000000
--- a/configs/permissions/permissions/privapp-permissions-miuicamera.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/permissions/sysconfig/miuicamera-hiddenapi-package-whitelist.xml b/configs/permissions/sysconfig/miuicamera-hiddenapi-package-whitelist.xml
deleted file mode 100644
index 2bd7d33..0000000
--- a/configs/permissions/sysconfig/miuicamera-hiddenapi-package-whitelist.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/extract-files.sh b/extract-files.sh
deleted file mode 100755
index f6599b9..0000000
--- a/extract-files.sh
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/bash
-#
-# Copyright (C) 2016 The CyanogenMod Project
-# Copyright (C) 2017-2020 The LineageOS Project
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-
-set -e
-
-DEVICE=camera
-VENDOR=xiaomi
-
-# Load extract_utils and do some sanity checks
-MY_DIR="${BASH_SOURCE%/*}"
-if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
-
-ANDROID_ROOT="${MY_DIR}/../../.."
-
-export TARGET_ENABLE_CHECKELF=true
-
-HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
-if [ ! -f "${HELPER}" ]; then
- echo "Unable to find helper script at ${HELPER}"
- exit 1
-fi
-source "${HELPER}"
-
-# Default to sanitizing the vendor folder before extraction
-CLEAN_VENDOR=true
-
-KANG=
-SECTION=
-
-while [ "${#}" -gt 0 ]; do
- case "${1}" in
- -n | --no-cleanup )
- CLEAN_VENDOR=false
- ;;
- -k | --kang )
- KANG="--kang"
- ;;
- -s | --section )
- SECTION="${2}"; shift
- CLEAN_VENDOR=false
- ;;
- * )
- SRC="${1}"
- ;;
- esac
- shift
-done
-
-if [ -z "${SRC}" ]; then
- SRC="adb"
-fi
-
-function blob_fixup() {
- case "${1}" in
- system/lib64/libmicampostproc_client.so)
- patchelf --remove-needed libhidltransport.so "${2}"
- ;;
- system/lib64/libcamera_algoup_jni.xiaomi.so)
- [ "$2" = "" ] && return 0
- sed -i "s/\x08\xad\x40\xf9/\x08\xa9\x40\xf9/" "${2}"
- ;;
- esac
-}
-
-# Initialize the helper
-setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
-
-extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
-
-"${MY_DIR}/setup-makefiles.sh"
diff --git a/miuicamera.mk b/miuicamera.mk
deleted file mode 100644
index 7b86373..0000000
--- a/miuicamera.mk
+++ /dev/null
@@ -1,83 +0,0 @@
-#
-# Copyright (C) 2024 VoidUI Project
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-
-CAMERA_PATH := vendor/xiaomi/camera
-
-# Permissions
-PRODUCT_COPY_FILES += \
- $(call find-copy-subdir-files,*,$(CAMERA_PATH)/configs/permissions/,$(TARGET_COPY_OUT_SYSTEM)/etc)
-
-# CameraX Config Overwrite
-PRODUCT_COPY_FILES += \
- $(CAMERA_PATH)/configs/camera/camxoverridesettings.txt:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camxoverridesettings.txt
-
-# Camera Extensions
-PRODUCT_SYSTEM_PROPERTIES += \
- ro.camerax.extensions.enabled=true
-
-# Camera Extensions permissions
-PRODUCT_COPY_FILES += \
- $(CAMERA_PATH)/configs/permissions/extensions/camerax-vendor-extensions.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/camerax-vendor-extensions.xml
-
-# Device-Features
-PRODUCT_COPY_FILES += \
- $(CAMERA_PATH)/configs/device_features/alioth.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/device_features/alioth.xml \
- $(CAMERA_PATH)/configs/device_features/aliothin.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/device_features/aliothin.xml
-
-# Properties
-PRODUCT_SYSTEM_PROPERTIES += \
- ro.com.google.lens.oem_camera_package=com.android.camera \
- ro.miui.notch=1 \
- persist.sys.cam.skip_detach_image=true
-
-# Logging
-PRODUCT_SYSTEM_PROPERTIES += \
- log.tag.CHIUSECASE=ERROR
-
-PRODUCT_VENDOR_PROPERTIES += \
- persist.vendor.camera.logInfoMask=false
-
-# Sepolicy Camera
-BOARD_VENDOR_SEPOLICY_DIRS += \
- $(CAMERA_PATH)/sepolicy/camera/vendor
-
-SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
- $(CAMERA_PATH)/sepolicy/camera/private
-
-# Sepolicy MiSys
-BOARD_VENDOR_SEPOLICY_DIRS += \
- $(CAMERA_PATH)/sepolicy/misys/vendor
-
-SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
- $(CAMERA_PATH)/sepolicy/misys/private
-
-SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
- $(CAMERA_PATH)/sepolicy/misys/public
-
-# Qualcomm Gralloc
-PRODUCT_PACKAGES += \
- gralloc.qcom
-
-# MiSys HIDL deps
-PRODUCT_PACKAGES += \
- android.hidl.manager@1.0 \
- android.hidl.manager@1.0.vendor \
- android.hidl.memory.block@1.0 \
- android.hidl.memory.block@1.0.vendor \
- android.hidl.memory@1.0-impl
-
-# RRO Overlays
-PRODUCT_PACKAGES += \
- MiuiCameraOverlay \
- MiuiCameraOverlayLos \
- MiuiCameraOverlayAosp
-
-# System Properties
-PRODUCT_SYSTEM_PROPERTIES += \
- persist.vendor.camera.privapp.list=com.android.camera \
- ro.com.google.lens.oem_camera_package=com.android.camera
-
-$(call inherit-product, $(CAMERA_PATH)/camera-vendor.mk)
diff --git a/proprietary-files.txt b/proprietary-files.txt
deleted file mode 100644
index 64ac04f..0000000
--- a/proprietary-files.txt
+++ /dev/null
@@ -1,103 +0,0 @@
-# From Alioth MIUI V14.0.8.0.TKHMIXM package
-# Leica App Mod
-system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=GrapheneCamera,Camera,Camera2,Aperture,GoogleCameraGo
-
-# Device Prebuilts
-system/etc/public.libraries-xiaomi.txt
-system/lib64/libcamera_algoup_jni.xiaomi.so
-system/lib64/libcamera_mianode_jni.xiaomi.so
-system/lib64/libmicampostproc_client.so
-system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
-
-# Device OpenCL Prebuilts
-system_ext/lib/libOpenCL_system.so
-system_ext/lib64/libOpenCL_system.so
-
-# Device Camera Deps
-vendor/bin/f2player
-vendor/lib64/libarcsat.so
-vendor/lib64/libsupermoon.so
-
-# MiSys
-system/etc/permissions/vendor.xiaomi.hardware.misys-V1.0-java-permission.xml
-system/etc/permissions/vendor.xiaomi.hardware.misys-V2.0-java-permission.xml
-system/etc/permissions/vendor.xiaomi.hardware.misys-V4.0-java-permission.xml
-system/etc/permissions/vendor.xiaomi.hardware.misys.V3_0-permission.xml
-system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar
-system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar
-system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar
-system/framework/vendor.xiaomi.hardware.misys.V3_0.jar
-system/lib/libmisys_jni.xiaomi.so
-system/lib/vendor.xiaomi.hardware.misys@1.0.so;MODULE_SUFFIX=_system
-system/lib/vendor.xiaomi.hardware.misys@2.0.so;MODULE_SUFFIX=_system
-system/lib/vendor.xiaomi.hardware.misys@3.0.so;MODULE_SUFFIX=_system
-system/lib/vendor.xiaomi.hardware.misys@4.0.so;MODULE_SUFFIX=_system
-system/lib64/libmisys_jni.xiaomi.so
-system/lib64/vendor.xiaomi.hardware.misys@1.0.so;MODULE_SUFFIX=_system
-system/lib64/vendor.xiaomi.hardware.misys@2.0.so;MODULE_SUFFIX=_system
-system/lib64/vendor.xiaomi.hardware.misys@3.0.so;MODULE_SUFFIX=_system
-system/lib64/vendor.xiaomi.hardware.misys@4.0.so;MODULE_SUFFIX=_system
-vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
-vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
-vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
-vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
-vendor/etc/init/vendor.xiaomi.hardware.misys@1.0-service.rc
-vendor/etc/init/vendor.xiaomi.hardware.misys@2.0-service.rc
-vendor/etc/init/vendor.xiaomi.hardware.misys@3.0-service.rc
-vendor/etc/init/vendor.xiaomi.hardware.misys@4.0-service.rc
-vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@1.0.xml
-vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@2.0.xml
-vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@3.0.xml
-vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@4.0.xml
-vendor/lib/hw/vendor.xiaomi.hardware.misys@1.0-impl.so
-vendor/lib/hw/vendor.xiaomi.hardware.misys@2.0-impl.so
-vendor/lib/hw/vendor.xiaomi.hardware.misys@3.0-impl.so
-vendor/lib/hw/vendor.xiaomi.hardware.misys@4.0-impl.so
-vendor/lib/vendor.xiaomi.hardware.misys@1.0.so
-vendor/lib/vendor.xiaomi.hardware.misys@2.0.so
-vendor/lib/vendor.xiaomi.hardware.misys@3.0.so
-vendor/lib/vendor.xiaomi.hardware.misys@4.0.so
-vendor/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so
-vendor/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so
-vendor/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so
-vendor/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so
-vendor/lib64/vendor.xiaomi.hardware.misys@1.0.so
-vendor/lib64/vendor.xiaomi.hardware.misys@2.0.so
-vendor/lib64/vendor.xiaomi.hardware.misys@3.0.so
-vendor/lib64/vendor.xiaomi.hardware.misys@4.0.so
-
-# MiSys Deps
-vendor/lib/libcheckpid.so
-vendor/lib/liblogwrap_vendor.so
-vendor/lib64/libcheckpid.so
-vendor/lib64/liblogwrap_vendor.so
-
-# Camera Dependencies
-vendor/camera/fonts/FZMiaoWuJW.ttf
-vendor/camera/fonts/MFYueYuan-Regular.ttf
-vendor/camera/fonts/MI+LanTing_GB+Outside+YS_V2.3_20160322.ttf
-vendor/camera/fonts/MIUI_Time.ttf
-vendor/etc/camera/102_SummerDay.png
-vendor/etc/camera/103_Fantasy.png
-vendor/etc/camera/104_Meet.png
-vendor/etc/camera/105_WindSing.png
-vendor/etc/camera/106_Lost.png
-vendor/etc/camera/107_Central.png
-vendor/etc/camera/108_NorthernEurope.png
-vendor/etc/camera/109_Rome.png
-vendor/etc/camera/110_BlackGold.png
-vendor/etc/camera/111_GreenOrange.png
-vendor/etc/camera/112_CyberPunk.png
-vendor/etc/camera/113_BlackIce.png
-vendor/etc/camera/121_Bleach.png
-vendor/etc/camera/122_Thriller.png
-vendor/etc/camera/123_TealOrange.png
-vendor/etc/camera/124_JapaneseStyle.png
-vendor/etc/camera/125_Latin.png
-vendor/etc/camera/126_Fantasy2.png
-vendor/etc/camera/127_Creamy.png
-vendor/etc/camera/128_Sepia.png
-vendor/etc/camera/sceneDetection.xml
-
-# Camera Extensions
-system_ext/framework/camerax-vendor-extensions.jar
diff --git a/proprietary/vendor/bin/f2player b/proprietary/vendor/bin/f2player
old mode 100644
new mode 100755
diff --git a/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service b/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
old mode 100644
new mode 100755
diff --git a/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service b/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
old mode 100644
new mode 100755
diff --git a/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service b/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
old mode 100644
new mode 100755
diff --git a/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service b/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
old mode 100644
new mode 100755
diff --git a/reorder-libs.py b/reorder-libs.py
deleted file mode 100755
index 82388d1..0000000
--- a/reorder-libs.py
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (C) 2021 The LineageOS Project
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-
-from functools import cmp_to_key
-from locale import LC_ALL, setlocale, strcoll
-from pathlib import Path
-
-FILES = [Path(file) for file in [
- "proprietary-files.txt",
-]]
-
-setlocale(LC_ALL, "C")
-
-def strcoll_extract_utils(string1: str, string2: str) -> int:
- # Skip logic if one of the string if empty
- if not string1 or not string2:
- return strcoll(string1, string2)
-
- # Remove '-' from strings if there,
- # it is used to indicate a build target
- string1 = string1.removeprefix('-')
- string2 = string2.removeprefix('-')
-
- # If no directories, compare normally
- if not "/" in string1 and not "/" in string2:
- return strcoll(string1, string2)
-
- string1_dir = string1.rsplit("/", 1)[0] + "/"
- string2_dir = string2.rsplit("/", 1)[0] + "/"
- if string1_dir == string2_dir:
- # Same directory, compare normally
- return strcoll(string1, string2)
-
- if string1_dir.startswith(string2_dir):
- # First string dir is a subdirectory of the second one,
- # return string1 > string2
- return -1
-
- if string2_dir.startswith(string1_dir):
- # Second string dir is a subdirectory of the first one,
- # return string2 > string1
- return 1
-
- # Compare normally
- return strcoll(string1, string2)
-
-for file in FILES:
- if not file.is_file():
- print(f"File {str(file)} not found")
- continue
-
- with open(file, 'r') as f:
- sections = f.read().split("\n\n")
-
- ordered_sections = []
- for section in sections:
- section_list = [line.strip() for line in section.splitlines()]
- section_list.sort(key=cmp_to_key(strcoll_extract_utils))
- ordered_sections.append("\n".join(section_list))
-
- with open(file, 'w') as f:
- f.write("\n\n".join(ordered_sections).strip() + "\n")
diff --git a/rro_overlays/MiuiCameraOverlay/Android.bp b/rro_overlays/MiuiCameraOverlay/Android.bp
deleted file mode 100644
index 52160c9..0000000
--- a/rro_overlays/MiuiCameraOverlay/Android.bp
+++ /dev/null
@@ -1,5 +0,0 @@
-runtime_resource_overlay {
- name: "MiuiCameraOverlay",
- product_specific: true,
-}
-
diff --git a/rro_overlays/MiuiCameraOverlay/AndroidManifest.xml b/rro_overlays/MiuiCameraOverlay/AndroidManifest.xml
deleted file mode 100644
index c31f5f8..0000000
--- a/rro_overlays/MiuiCameraOverlay/AndroidManifest.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/rro_overlays/MiuiCameraOverlay/res/values/config.xml b/rro_overlays/MiuiCameraOverlay/res/values/config.xml
deleted file mode 100644
index ef544ac..0000000
--- a/rro_overlays/MiuiCameraOverlay/res/values/config.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
- true
-
-
-
- false
-
-
- false
-
-
- true
-
-
- true
-
-
- true
-
-
- true
-
-
- true
-
-
- true
-
-
-
- true
-
-
-
- 2
-
-
- true
-
-
-
- 1
-
-
diff --git a/rro_overlays/MiuiCameraOverlayAosp/Android.bp b/rro_overlays/MiuiCameraOverlayAosp/Android.bp
deleted file mode 100644
index a70a631..0000000
--- a/rro_overlays/MiuiCameraOverlayAosp/Android.bp
+++ /dev/null
@@ -1,4 +0,0 @@
-runtime_resource_overlay {
- name: "MiuiCameraOverlayAosp",
- product_specific: true,
-}
diff --git a/rro_overlays/MiuiCameraOverlayAosp/AndroidManifest.xml b/rro_overlays/MiuiCameraOverlayAosp/AndroidManifest.xml
deleted file mode 100644
index 50663be..0000000
--- a/rro_overlays/MiuiCameraOverlayAosp/AndroidManifest.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
diff --git a/rro_overlays/MiuiCameraOverlayAosp/res/values/config.xml b/rro_overlays/MiuiCameraOverlayAosp/res/values/config.xml
deleted file mode 100644
index ff6ac47..0000000
--- a/rro_overlays/MiuiCameraOverlayAosp/res/values/config.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- - com.android.camera
- - org.lineageos.aperture
- - org.lineageos.aperture.dev
- - com.crdroid.faceunlock
- - org.pixelexperience.faceunlock
-
-
diff --git a/rro_overlays/MiuiCameraOverlayLos/Android.bp b/rro_overlays/MiuiCameraOverlayLos/Android.bp
deleted file mode 100644
index cf6721d..0000000
--- a/rro_overlays/MiuiCameraOverlayLos/Android.bp
+++ /dev/null
@@ -1,4 +0,0 @@
-runtime_resource_overlay {
- name: "MiuiCameraOverlayLos",
- product_specific: true,
-}
diff --git a/rro_overlays/MiuiCameraOverlayLos/AndroidManifest.xml b/rro_overlays/MiuiCameraOverlayLos/AndroidManifest.xml
deleted file mode 100644
index f6650d6..0000000
--- a/rro_overlays/MiuiCameraOverlayLos/AndroidManifest.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
diff --git a/rro_overlays/MiuiCameraOverlayLos/res/values/config.xml b/rro_overlays/MiuiCameraOverlayLos/res/values/config.xml
deleted file mode 100644
index ff6ac47..0000000
--- a/rro_overlays/MiuiCameraOverlayLos/res/values/config.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- - com.android.camera
- - org.lineageos.aperture
- - org.lineageos.aperture.dev
- - com.crdroid.faceunlock
- - org.pixelexperience.faceunlock
-
-
diff --git a/sepolicy/camera/private/cameraserver.te b/sepolicy/camera/private/cameraserver.te
deleted file mode 100644
index 1aca86c..0000000
--- a/sepolicy/camera/private/cameraserver.te
+++ /dev/null
@@ -1,3 +0,0 @@
-allow cameraserver property_socket:sock_file write;
-allow cameraserver init:unix_stream_socket connectto;
-set_prop(cameraserver, exported_system_prop)
diff --git a/sepolicy/camera/private/platform_app.te b/sepolicy/camera/private/platform_app.te
deleted file mode 100644
index 1b8fe5c..0000000
--- a/sepolicy/camera/private/platform_app.te
+++ /dev/null
@@ -1,6 +0,0 @@
-allow platform_app {
- DisplayFeatureControl
- miui_multi_display
- perfshielder
- ProcessManager
-}:service_manager find;
diff --git a/sepolicy/camera/private/priv_app.te b/sepolicy/camera/private/priv_app.te
deleted file mode 100644
index e53a1d0..0000000
--- a/sepolicy/camera/private/priv_app.te
+++ /dev/null
@@ -1,5 +0,0 @@
-allow priv_app DisplayFeatureControl:service_manager find;
-allow priv_app miui_multi_display:service_manager find;
-allow priv_app perfshielder:service_manager find;
-allow priv_app ProcessManager:service_manager find;
-
diff --git a/sepolicy/camera/private/property_contexts b/sepolicy/camera/private/property_contexts
deleted file mode 100644
index 0cae346..0000000
--- a/sepolicy/camera/private/property_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-# Miui Camera
-sys.camera.miui.apk u:object_r:exported_system_prop:s0
diff --git a/sepolicy/camera/private/service.te b/sepolicy/camera/private/service.te
deleted file mode 100644
index 398eb74..0000000
--- a/sepolicy/camera/private/service.te
+++ /dev/null
@@ -1,4 +0,0 @@
-type DisplayFeatureControl, service_manager_type;
-type perfshielder, service_manager_type;
-type miui_multi_display, service_manager_type;
-type ProcessManager, service_manager_type;
diff --git a/sepolicy/camera/private/service_contexts b/sepolicy/camera/private/service_contexts
deleted file mode 100644
index 9bcaa25..0000000
--- a/sepolicy/camera/private/service_contexts
+++ /dev/null
@@ -1,4 +0,0 @@
-DisplayFeatureControl u:object_r:DisplayFeatureControl:s0
-perfshielder u:object_r:perfshielder:s0
-miui_multi_display u:object_r:miui_multi_display:s0
-ProcessManager u:object_r:ProcessManager:s0
diff --git a/sepolicy/camera/vendor/attributes b/sepolicy/camera/vendor/attributes
deleted file mode 100644
index 0475a9e..0000000
--- a/sepolicy/camera/vendor/attributes
+++ /dev/null
@@ -1,4 +0,0 @@
-# Camera
-attribute vendor_hal_camerapostproc_xiaomi;
-attribute vendor_hal_camerapostproc_xiaomi_client;
-attribute vendor_hal_camerapostproc_xiaomi_server;
diff --git a/sepolicy/camera/vendor/file_contexts b/sepolicy/camera/vendor/file_contexts
deleted file mode 100644
index 9181216..0000000
--- a/sepolicy/camera/vendor/file_contexts
+++ /dev/null
@@ -1,111 +0,0 @@
-# PostProcessing
-/(vendor|system/vendor)/bin/hw/vendor\.xiaomi\.hardware\.campostproc@1\.0-service u:object_r:hal_camerapostproc_xiaomi_default_exec:s0
-
-# General Rules
-/vendor/lib(64)?/libmialgoengine\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmpbase\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmibokeh_855\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmialgo_image_colourkeeping\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libSuperSensor\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libSuperSensorCPU\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libHalSuperSensorServer\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libSuperSensor_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmorpho_HDSR\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libHalSuperSensorServerCWrapper\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_beautyshot\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_dualcam_refocus\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_dualcam_refocus_rear_t\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_dualcam_refocus_rear_w\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_dualcam_refocus_front\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_dualcam_refocus_image\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_dualcam_refocus_video\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_portrait_lighting\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_portrait_lighting_c\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_mf_superresolution\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsupermoon\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_high_dynamic_range\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_high_dynamic_range_v5\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_low_light_hdr\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libalCFR\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libalCFRLV\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_distortion_correction\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_bodyslim\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcvp2\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcvp2_hfi\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcvp\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcvp_stub\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcvp_common\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libalhLDC\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libalAILDC\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libwa_widelens_undistort\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libflaw\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsdk_sr\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libst_sr_models\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/lib_sr_models\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libarcsoft_superportrait\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmialgo_ie_capture\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmialgo_basic\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmialgo_utils\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiphone_bokeh_effect\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiphone_bokeh_rectify\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiphone_bokeh_proc\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiphone_bokeh_gpf\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmialgo_bokeh\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiphone_bokeh_depth\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcamera_scene_dxo\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcamera_scene\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libportrait_blur\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmibokeh_mask\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/librelight_only\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libFaceDetLmd\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/rfsa/adsp(/.*)? u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libMIAIHDRhvx_interface\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/rfsa/adsp/libMIAIHDR_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/rfsa/adsp/libapps_mem_heap\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libxmi_high_dynamic_range\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libxmi_high_dynamic_range_cdsp\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/rfsa/adsp/libhdr_cdsp_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsymphony-cpu\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libc\+\+_shared\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libwa_opticalzoom_fusion\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiStereoFactoryRemapLib\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmibokeh_712\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libbeauty_face_interface\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiai_portraitsupernight\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libxml2_vendor\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiphone_capture_ldc\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libSNPE\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsnpe_dsp_domains_v2\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libPlatformValidatorShared\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiai_deblur\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmialgoengine2\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libcom.xiaomi.pluginutils\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.memcpy\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.hdr\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.skinbeautifier\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.aiasd\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.depurple\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.ldc\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.dc\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.mibokeh\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.miaiie\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.capbokeh\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.sr\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.qcom.plugin.gpu\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.miflaw\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.misegment\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.mifragment\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.bodyslim\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.superportrait\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.supernight\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/com.xiaomi.plugin.miaideblur\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsnpe_dsp_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsnpe_dsp_domains_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsnpe_dsp_v65_domains_v2_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libsnpe_dsp_v66_domains_v2_skel\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libanc_dc_base\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libwa_dof\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libwa_refocus\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libwa_depth\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libxmi_hdr_checker\.so u:object_r:same_process_hal_file:s0
-/vendor/lib(64)?/libmiStereoFactoryRemapBasicLib\.so u:object_r:same_process_hal_file:s0
diff --git a/sepolicy/camera/vendor/hal_camera_default.te b/sepolicy/camera/vendor/hal_camera_default.te
deleted file mode 100644
index d870dcb..0000000
--- a/sepolicy/camera/vendor/hal_camera_default.te
+++ /dev/null
@@ -1,24 +0,0 @@
-binder_call(hal_camera_default, platform_app)
-
-allow hal_camera_default mnt_vendor_file:dir { search };
-allow hal_camera_default proc_stat:file { open read };
-allow hal_camera_default vendor_xdsp_device:chr_file { read };
-
-# Allow Camera to access system_server
-allow hal_camera_default system_server:binder { call transfer };
-
-# Camera Post Processing
-type vendor_hal_camerapostproc_xiaomi_hwservice, hwservice_manager_type;
-
-hal_server_domain(hal_camera_default, vendor_hal_camerapostproc_xiaomi)
-add_hwservice(hal_camera_server, vendor_hal_camerapostproc_xiaomi_hwservice)
-
-allow hal_camera_client vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
-
-# Allow camera to access /data/misc
-typeattribute hal_camera_default data_between_core_and_vendor_violators;
-
-# Allow camera to access /data/misc
-allow hal_camera_default camera_data_file:sock_file write;
-allow hal_camera_default camera_data_file:dir create_dir_perms;
-allow hal_camera_default camera_data_file:file create_file_perms;
diff --git a/sepolicy/camera/vendor/hal_camerapostproc_xiaomi.te b/sepolicy/camera/vendor/hal_camerapostproc_xiaomi.te
deleted file mode 100644
index a636d76..0000000
--- a/sepolicy/camera/vendor/hal_camerapostproc_xiaomi.te
+++ /dev/null
@@ -1,8 +0,0 @@
-type hal_camerapostproc_xiaomi_default_exec, exec_type, vendor_file_type, file_type;
-
-add_hwservice(vendor_hal_camerapostproc_xiaomi_server, vendor_hal_camerapostproc_xiaomi_hwservice)
-
-allow vendor_hal_camerapostproc_xiaomi_client vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
-
-binder_call(vendor_hal_camerapostproc_xiaomi_client, vendor_hal_camerapostproc_xiaomi_server)
-binder_call(vendor_hal_camerapostproc_xiaomi_server, vendor_hal_camerapostproc_xiaomi_client)
diff --git a/sepolicy/camera/vendor/hwservice.te b/sepolicy/camera/vendor/hwservice.te
deleted file mode 100644
index 3f06847..0000000
--- a/sepolicy/camera/vendor/hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-type hal_xiaomi_camera_hwservice, hwservice_manager_type;
diff --git a/sepolicy/camera/vendor/hwservice_contexts b/sepolicy/camera/vendor/hwservice_contexts
deleted file mode 100644
index 44d20f5..0000000
--- a/sepolicy/camera/vendor/hwservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-# Camera
-vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:hal_xiaomi_camera_hwservice:s0
diff --git a/sepolicy/camera/vendor/platform_app.te b/sepolicy/camera/vendor/platform_app.te
deleted file mode 100644
index 384394c..0000000
--- a/sepolicy/camera/vendor/platform_app.te
+++ /dev/null
@@ -1,30 +0,0 @@
-# Allow to execute data files
-allow platform_app app_data_file:file execute;
-
-# Allow to find camera hal
-allow platform_app hal_xiaomi_camera_hwservice:hwservice_manager find;
-
-# Allow to call camera hidl
-binder_call(platform_app, hal_camera_default)
-
-# Allow to read camera props
-get_prop(platform_app, vendor_camera_prop)
-get_prop(platform_app, vendor_camera_sensor_prop)
-
-allow platform_app cgroup:file r_file_perms;
-
-# Allow to read display props
-get_prop(platform_app, vendor_display_prop)
-
-# Allow to read audio props
-get_prop(platform_app, vendor_audio_prop)
-
-# Allow to access proc/stat
-allow platform_app proc_stat:file read;
-
-# Camera Post Processing
-typeattribute platform_app halclientdomain;
-typeattribute platform_app vendor_hal_camerapostproc_xiaomi_client;
-
-allow platform_app { vendor_hal_camerapostproc_xiaomi_hwservice hal_misys_hwservice }:hwservice_manager find;
-
diff --git a/sepolicy/camera/vendor/property.te b/sepolicy/camera/vendor/property.te
deleted file mode 100644
index b71f07c..0000000
--- a/sepolicy/camera/vendor/property.te
+++ /dev/null
@@ -1 +0,0 @@
-vendor_public_prop(vendor_camera_sensor_prop)
diff --git a/sepolicy/camera/vendor/property_contexts b/sepolicy/camera/vendor/property_contexts
deleted file mode 100644
index 87d1841..0000000
--- a/sepolicy/camera/vendor/property_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-# Camera Vendor Props
-persist.vendor.low.cutoff u:object_r:vendor_camera_prop:s0
diff --git a/sepolicy/camera/vendor/vendor_hal_camerapostproc_xiaomi.te b/sepolicy/camera/vendor/vendor_hal_camerapostproc_xiaomi.te
deleted file mode 100644
index efd1884..0000000
--- a/sepolicy/camera/vendor/vendor_hal_camerapostproc_xiaomi.te
+++ /dev/null
@@ -1 +0,0 @@
-allow vendor_hal_camerapostproc_xiaomi platform_app:binder transfer;
diff --git a/sepolicy/misys/private/platform_app.te b/sepolicy/misys/private/platform_app.te
deleted file mode 100644
index 6ad7e7f..0000000
--- a/sepolicy/misys/private/platform_app.te
+++ /dev/null
@@ -1 +0,0 @@
-hal_client_domain(platform_app, hal_misys)
diff --git a/sepolicy/misys/private/priv_app.te b/sepolicy/misys/private/priv_app.te
deleted file mode 100644
index 315f42d..0000000
--- a/sepolicy/misys/private/priv_app.te
+++ /dev/null
@@ -1 +0,0 @@
-hal_client_domain(priv_app, hal_misys)
diff --git a/sepolicy/misys/public/attributes b/sepolicy/misys/public/attributes
deleted file mode 100644
index 1da9f0e..0000000
--- a/sepolicy/misys/public/attributes
+++ /dev/null
@@ -1,4 +0,0 @@
-# Misys
-attribute hal_misys;
-attribute hal_misys_client;
-attribute hal_misys_server;
diff --git a/sepolicy/misys/vendor/file_contexts b/sepolicy/misys/vendor/file_contexts
deleted file mode 100644
index c3e74cc..0000000
--- a/sepolicy/misys/vendor/file_contexts
+++ /dev/null
@@ -1,5 +0,0 @@
-# MiSys
-/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@1\.0-service u:object_r:hal_misys_default_exec:s0
-/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@2\.0-service u:object_r:hal_misys_default_exec:s0
-/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@3\.0-service u:object_r:hal_misys_default_exec:s0
-/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@4\.0-service u:object_r:hal_misys_default_exec:s0
diff --git a/sepolicy/misys/vendor/hal_misys.te b/sepolicy/misys/vendor/hal_misys.te
deleted file mode 100644
index 2072c83..0000000
--- a/sepolicy/misys/vendor/hal_misys.te
+++ /dev/null
@@ -1,5 +0,0 @@
-# HwBinder IPC from client to server
-binder_call(hal_misys_client, hal_misys_server)
-
-add_hwservice(hal_misys_server, hal_misys_hwservice)
-allow hal_misys_client hal_misys_hwservice:hwservice_manager find;
diff --git a/sepolicy/misys/vendor/hal_misys_default.te b/sepolicy/misys/vendor/hal_misys_default.te
deleted file mode 100644
index 4b910de..0000000
--- a/sepolicy/misys/vendor/hal_misys_default.te
+++ /dev/null
@@ -1,11 +0,0 @@
-type hal_misys_default, domain;
-hal_server_domain(hal_misys_default, hal_misys)
-
-type hal_misys_default_exec, exec_type, vendor_file_type, file_type;
-
-init_daemon_domain(hal_misys_default)
-
-r_dir_file(hal_misys_default, firmware_file)
-r_dir_file(hal_misys_default, mnt_vendor_file)
-
-get_prop(hal_misys_default, vendor_camera_prop)
diff --git a/sepolicy/misys/vendor/hwservice.te b/sepolicy/misys/vendor/hwservice.te
deleted file mode 100644
index 2c2c9e9..0000000
--- a/sepolicy/misys/vendor/hwservice.te
+++ /dev/null
@@ -1,2 +0,0 @@
-# MiSys
-type hal_misys_hwservice, hwservice_manager_type;
diff --git a/sepolicy/misys/vendor/hwservice_contexts b/sepolicy/misys/vendor/hwservice_contexts
deleted file mode 100644
index d1dd6b0..0000000
--- a/sepolicy/misys/vendor/hwservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-# MiSys
-vendor.xiaomi.hardware.misys::IMiSys u:object_r:hal_misys_hwservice:s0
diff --git a/sepolicy/misys/vendor/platform_app.te b/sepolicy/misys/vendor/platform_app.te
deleted file mode 100644
index a373dc5..0000000
--- a/sepolicy/misys/vendor/platform_app.te
+++ /dev/null
@@ -1,2 +0,0 @@
-allow platform_app hal_misys_hwservice:hwservice_manager find;
-binder_call(platform_app, hal_misys_default)
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
deleted file mode 100755
index 3962f5a..0000000
--- a/setup-makefiles.sh
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/bash
-#
-# Copyright (C) 2016 The CyanogenMod Project
-# Copyright (C) 2017-2020 The LineageOS Project
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-
-set -e
-
-DEVICE=camera
-DEVICE_COMMON=camera
-VENDOR=xiaomi
-
-# Load extract_utils and do some sanity checks
-MY_DIR="${BASH_SOURCE%/*}"
-if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
-
-ANDROID_ROOT="${MY_DIR}/../../.."
-
-export TARGET_ENABLE_CHECKELF=true
-
-HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
-if [ ! -f "${HELPER}" ]; then
- echo "Unable to find helper script at ${HELPER}"
- exit 1
-fi
-source "${HELPER}"
-
-function vendor_imports() {
- cat <>"$1"
- "device/xiaomi/alioth",
- "device/xiaomi/sm8250-common",
- "hardware/qcom-caf/sm8250",
- "hardware/xiaomi",
- "vendor/qcom/opensource/commonsys/display",
- "vendor/qcom/opensource/commonsys-intf/display",
- "vendor/qcom/opensource/dataservices",
- "vendor/qcom/opensource/display",
-EOF
-}
-
-function lib_to_package_fixup_system_variants() {
- if [ "$2" != "system" ]; then
- return 1
- fi
- case "$1" in
- libmisys_jni.xiaomi | \
- vendor.xiaomi.hardware.misys@1.0 | \
- vendor.xiaomi.hardware.misys@2.0 | \
- vendor.xiaomi.hardware.misys@3.0 | \
- vendor.xiaomi.hardware.misys@4.0)
- echo "${1}_system"
- ;;
- *)
- return 1
- ;;
- esac
-}
-function lib_to_package_fixup() {
- lib_to_package_fixup_clang_rt_ubsan_standalone "$1" ||
- lib_to_package_fixup_proto_3_9_1 "$1" ||
- lib_to_package_fixup_system_variants "$@"
-}
-
-# Initialize the helper
-setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true
-
-# Warning headers and guards
-write_headers "alioth"
-sed -i 's|device/|vendor/|g' "$ANDROIDBP" "$ANDROIDMK" "$BOARDMK" "$PRODUCTMK"
-
-write_makefiles "${MY_DIR}/proprietary-files.txt" true
-
-# Finish
-write_footers