Compare commits

..
8 Commits
Author SHA1 Message Date
Raya Mahardika e55975b0dc sepolicy: Drop vendor_fp_prop access for platform_app
vendor_fp_prop is declared as a vendor_internal_prop on surya,
which violates Treble sepolicy neverallow rules when accessed
by coredomain/platform_app:

  neverallow { coredomain -init -dumpstate } {
    vendor_property_type
    vendor_internal_property_type
    -vendor_restricted_property_type
    -vendor_public_property_type
  }:file no_rw_file_perms;

MiuiCamera does not require fingerprint property access.

Change-Id: Ia900a8e74dac400656dd79659a0c265bc3134e1b
2026-10-27 22:47:15 +00:00
Raya Mahardika f5792b7ed6 miuicamera-surya: Update Leica launcher icon assets
Change-Id: Ica3c16096568492b69130abf3ea896acbc1e7cd4
2026-10-27 18:43:14 +00:00
Raya Mahardika 4504ed5b75 miuicamera-surya: Assume that mod_device is global and drop CTA props
By patching MiuiCamera's Device.isGlobal() and Build.IS_INTERNATIONAL_BUILD
to unconditionally return true, the app always assumes it is running on a
global device. This prevents attempts to launch the custom permission
dialog from HyperOS Security Center, allowing the app to run seamlessly
on AOSP ROMs without requiring ro.product.mod_device=surya_global or CTA
spoofing properties.

Reference: https://github.com/kardebayan/Leica_Universal_5.0_Beta_8.3/commit/a36c2a77fb6753a119d77be0aee186031318556c
Change-Id: I3ffce0136d6777dc72c4ea01bb5b7c41d89af73f
2026-10-27 18:40:43 +00:00
Raya Mahardika 0c6761ce9a miuicamera-surya: Configure MIUI properties and bypass CTA checks
Change-Id: I9c2cc45646a2e93ccd30f8f40afc3519154db3c0
2026-09-29 16:47:20 +00:00
Raya Mahardika 9e84dd0435 miuicamera-surya: Grant default runtime and privileged permissions
Change-Id: I5d0df76ce416e87f55f3bbcf6798191aa15ea5fe
2026-09-29 15:52:40 +00:00
Raya Mahardika 0946b6a942 sepolicy: Drop platform_app_36 compatibility rules
Change-Id: I8c360a3c74bc5f951c594f35493ea4ceb88302e1
2026-09-29 14:09:44 +00:00
Raya Mahardika dcc07289e2 miuicamera-surya: Drop facedet blobs
Change-Id: Ibee425133632d5815f1a8d2970b5905e6f331a6c
2026-09-29 13:02:02 +00:00
Raya Mahardika 06447efcd2 miuicamera-surya: Initial commit
Change-Id: Ice15663a6672e74f365c61f436e10c16a736c4a6
2026-09-29 09:12:12 +00:00
57 changed files with 763 additions and 442 deletions

No files matched your search

+1 -1
View File
@@ -1 +1 @@
proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk filter=lfs diff=lfs merge=lfs -text
*.apk filter=lfs diff=lfs merge=lfs -text
+3 -405
View File
@@ -1,410 +1,8 @@
//
// Automatically generated file. DO NOT MODIFY
// Copyright (C) 2024-2026 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
soong_namespace {
imports: [
"device/xiaomi/miuicamera-surya",
"vendor/xiaomi/surya",
],
}
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: [
"libgui_shim_miuicamera",
"libvndksupport",
"libcamera_client",
"libcamera_metadata",
"libgui",
"libbinder",
"libutils",
"libcutils",
"liblog",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libcamera_jpegutil_jni.xiaomi",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libcamera_jpegutil_jni.xiaomi.so",
],
shared_libs: [
"libion",
"libmedia",
"libcamera_client",
"libandroid_runtime",
"libnativehelper",
"libutils",
"libcutils",
"liblog",
"libgui",
"libui",
"libbinder",
"libhidlbase",
"libhidltransport",
"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: [
"libgui_shim_miuicamera",
"libvndksupport",
"libcamera_client",
"libcamera_metadata",
"libgui",
"libbinder",
"libutils",
"libcutils",
"liblog",
"libxml2",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libdoc_photo",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libdoc_photo.so",
],
shared_libs: [
"liblog",
"libOpenCL",
"libjnigraphics",
"libc",
"libz",
"libdl",
"libm",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libdoc_photo_c++_shared",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libdoc_photo_c++_shared.so",
],
shared_libs: [
"libc",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libgallery_arcsoft_dualcam_refocus",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libgallery_arcsoft_dualcam_refocus.so",
],
shared_libs: [
"libmpbase",
"liblog",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libgallery_arcsoft_portrait_lighting",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libgallery_arcsoft_portrait_lighting.so",
],
shared_libs: [
"libmpbase",
"libarcsoft_portrait_lighting_c",
"liblog",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libgallery_arcsoft_portrait_lighting_c",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libgallery_arcsoft_portrait_lighting_c.so",
],
shared_libs: [
"libOpenCL",
"liblog",
"libdl",
"libc",
"libm",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libgallery_mpbase",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libgallery_mpbase.so",
],
shared_libs: [
"libc",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libmibokeh_gallery",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libmibokeh_gallery.so",
],
shared_libs: [
"libOpenCL",
"liblog",
"libz",
"libm",
"libdl",
"libc",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "librefocus",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/librefocus.so",
],
shared_libs: [
"libmpbase",
"libarcsoft_dualcam_refocus",
"libarcsoft_portrait_lighting",
"libjnigraphics",
"liblog",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
check_elf_files: false,
prefer: true,
}
cc_prebuilt_library_shared {
name: "librefocus_mibokeh",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/librefocus_mibokeh.so",
],
shared_libs: [
"libmibokeh_gallery",
"libjnigraphics",
"liblog",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
android_app_import {
name: "MiuiCamera",
owner: "xiaomi",
apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
overrides: [
"Aperture",
"Camera2",
"Flash",
],
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}
android_app_import {
name: "MiuiExtraPhoto",
owner: "xiaomi",
apk: "proprietary/system/priv-app/MiuiExtraPhoto/MiuiExtraPhoto.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libdoc_photo_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libdoc_photo.so",
symlink_target: "/system/lib64/libdoc_photo.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libdoc_photo_c++_shared_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libdoc_photo_c++_shared.so",
symlink_target: "/system/lib64/libdoc_photo_c++_shared.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_arcsoft_dualcam_refocus_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libgallery_arcsoft_dualcam_refocus.so",
symlink_target: "/system/lib64/libgallery_arcsoft_dualcam_refocus.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_arcsoft_portrait_lighting_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libgallery_arcsoft_portrait_lighting.so",
symlink_target: "/system/lib64/libgallery_arcsoft_portrait_lighting.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_arcsoft_portrait_lighting_c_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libgallery_arcsoft_portrait_lighting_c.so",
symlink_target: "/system/lib64/libgallery_arcsoft_portrait_lighting_c.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_mpbase_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libgallery_mpbase.so",
symlink_target: "/system/lib64/libgallery_mpbase.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_libmibokeh_gallery_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/libmibokeh_gallery.so",
symlink_target: "/system/lib64/libmibokeh_gallery.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_librefocus_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/librefocus.so",
symlink_target: "/system/lib64/librefocus.so",
}
install_symlink {
name: "system_priv-app_MiuiExtraPhoto_lib_arm64_librefocus_mibokeh_so",
installed_location: "priv-app/MiuiExtraPhoto/lib/arm64/librefocus_mibokeh.so",
symlink_target: "/system/lib64/librefocus_mibokeh.so",
}
+19
View File
@@ -0,0 +1,19 @@
#
# Copyright (C) 2024-2026 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from the proprietary version
include vendor/xiaomi/miuicamera-surya/surya/BoardConfigVendor.mk
MIUICAMERA_PATH := vendor/xiaomi/miuicamera-surya
# Malloc
MALLOC_SVELTE := true
# Properties
TARGET_SYSTEM_PROP += $(MIUICAMERA_PATH)/system.prop
# Sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += $(MIUICAMERA_PATH)/sepolicy/vendor
+7
View File
@@ -0,0 +1,7 @@
#
# Copyright (C) 2024-2026 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
include vendor/xiaomi/miuicamera-surya/BoardConfig.mk
+7
View File
@@ -0,0 +1,7 @@
#
# Copyright (C) 2024-2026 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
$(call inherit-product, vendor/xiaomi/miuicamera-surya/device.mk)
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024-2026 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<exceptions>
<exception package="com.android.camera">
<!-- Camera -->
<permission name="android.permission.CAMERA" fixed="true" />
<!-- Location -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="true" />
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="true" />
<!-- Microphone -->
<permission name="android.permission.RECORD_AUDIO" fixed="true" />
<!-- Phone -->
<permission name="android.permission.READ_PHONE_STATE" fixed="true" />
<!-- Storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="true" />
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="true" />
<permission name="android.permission.ACCESS_MEDIA_LOCATION" fixed="true" />
<permission name="android.permission.WRITE_MEDIA_STORAGE" fixed="true" />
<permission name="android.permission.READ_MEDIA_IMAGES" fixed="true" />
<permission name="android.permission.READ_MEDIA_VIDEO" fixed="true" />
<permission name="android.permission.READ_MEDIA_AUDIO" fixed="true" />
<!-- System & UI -->
<permission name="android.permission.INTERACT_ACROSS_USERS" fixed="true" />
<permission name="android.permission.WRITE_SECURE_SETTINGS" fixed="true" />
<permission name="android.permission.PACKAGE_USAGE_STATS" fixed="true" />
<permission name="android.permission.CONTROL_DISPLAY_BRIGHTNESS" fixed="true" />
<permission name="android.permission.WRITE_SETTINGS" fixed="true" />
<permission name="android.permission.SYSTEM_ALERT_WINDOW" fixed="true" />
<permission name="android.permission.POST_NOTIFICATIONS" fixed="true" />
</exception>
</exceptions>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<hidden-api-whitelisted-app package="com.android.camera" />
</config>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024-2026 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<permissions>
<privapp-permissions package="com.android.camera">
<permission name="android.permission.WRITE_MEDIA_STORAGE" />
<permission name="android.permission.WRITE_SECURE_SETTINGS" />
<permission name="android.permission.INTERACT_ACROSS_USERS" />
<permission name="android.permission.PACKAGE_USAGE_STATS" />
<permission name="android.permission.CONTROL_DISPLAY_BRIGHTNESS" />
<permission name="mediatek.permission.ACCESS_APU_SYS" />
<permission name="android.permission.LOG_COMPAT_CHANGE" />
<permission name="android.permission.READ_COMPAT_CHANGE_CONFIG" />
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
<permission name="android.permission.SYSTEM_CAMERA" />
<permission name="android.permission.TURN_SCREEN_ON" />
<permission name="android.permission.CONTROL_DEVICE_STATE" />
<permission name="android.permission.DEVICE_POWER" />
<permission name="android.permission.INJECT_EVENTS" />
<permission name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<permission name="android.permission.WRITE_SETTINGS" />
</privapp-permissions>
</permissions>
+28
View File
@@ -0,0 +1,28 @@
#
# Copyright (C) 2024-2026 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/miuicamera-surya/surya/surya-vendor.mk)
# Overlays
PRODUCT_PACKAGES += \
MiuiCameraOverlay
# Default permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/default-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default-permissions/default-permissions-miuicamera.xml
# Priv-app permission
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Sysconfig
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/miuicamera-hiddenapi-package-allowlist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/miuicamera-hiddenapi-package-allowlist.xml
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024-2026 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.fixups_blob import (
blob_fixup,
blob_fixups_user_type,
)
from extract_utils.fixups_lib import (
lib_fixups,
lib_fixups_user_type,
)
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'vendor/xiaomi/miuicamera-surya',
]
lib_fixups: lib_fixups_user_type = {
**lib_fixups,
}
blob_fixups: blob_fixups_user_type = {
'system/lib64/libcamera_algoup_jni.xiaomi.so': blob_fixup()
.add_needed('libgui_shim_miuicamera.so'),
'system/lib64/libcamera_mianode_jni.xiaomi.so': blob_fixup()
.add_needed('libgui_shim_miuicamera.so'),
'system/priv-app/MiuiCamera/MiuiCamera.apk': blob_fixup()
.apktool_patch('patches'),
} # fmt: skip
module = ExtractUtilsModule(
'surya',
'xiaomi/miuicamera-surya',
device_rel_path='vendor/xiaomi/miuicamera-surya',
blob_fixups=blob_fixups,
lib_fixups=lib_fixups,
namespace_imports=namespace_imports,
)
if __name__ == '__main__':
utils = ExtractUtils.device(module)
utils.run()
-33
View File
@@ -1,33 +0,0 @@
#
# Automatically generated file. DO NOT MODIFY
#
PRODUCT_SOONG_NAMESPACES += \
vendor/xiaomi/miuicamera-surya
PRODUCT_PACKAGES += \
libcamera_algoup_jni.xiaomi \
libcamera_jpegutil_jni.xiaomi \
libcamera_mianode_jni.xiaomi \
libdoc_photo \
libdoc_photo_c++_shared \
libgallery_arcsoft_dualcam_refocus \
libgallery_arcsoft_portrait_lighting \
libgallery_arcsoft_portrait_lighting_c \
libgallery_mpbase \
libmibokeh_gallery \
librefocus \
librefocus_mibokeh \
MiuiCamera \
MiuiExtraPhoto
PRODUCT_PACKAGES += \
system_priv-app_MiuiExtraPhoto_lib_arm64_libdoc_photo_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_libdoc_photo_c++_shared_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_arcsoft_dualcam_refocus_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_arcsoft_portrait_lighting_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_arcsoft_portrait_lighting_c_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_libgallery_mpbase_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_libmibokeh_gallery_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_librefocus_so \
system_priv-app_MiuiExtraPhoto_lib_arm64_librefocus_mibokeh_so
+10
View File
@@ -0,0 +1,10 @@
//
// Copyright (C) 2023 Paranoid Android
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "MiuiCameraOverlay",
product_specific: true,
}
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.camera.memeoverlay">
<overlay
android:isStatic="true"
android:priority="1"
android:targetPackage="com.android.camera" />
</manifest>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="108.0dip" android:width="108.0dip" android:viewportWidth="512.0" android:viewportHeight="512.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<group android:pivotX="256.0" android:pivotY="256.0" android:scaleX="0.58" android:scaleY="0.58">
<group android:scaleX="0.061025" android:scaleY="-0.061025" android:translateX="0.0" android:translateY="512.0">
<path android:fillColor="#ff000000" android:pathData="M4188 6759 c-167 0 -310 -4 -318 -8 -8 -5 -64 -16 -123 -26 -60 -9 -164 -32 -232 -50 -67 -19 -167 -50 -221 -70 -55 -20 -162 -67 -239 -105 -77 -38 -189 -101 -250 -141 -60 -39 -148 -101 -195 -137 -47 -37 -141 -120 -209 -187 -68 -66 -160 -165 -204 -220 -44 -55 -116 -154 -159 -220 -44 -66 -110 -183 -148 -260 -38 -77 -85 -184 -105 -239 -20 -54 -51 -154 -70 -221 -18 -68 -41 -172 -50 -232 -10 -59 -21 -116 -26 -125 -5 -10 -9 -153 -9 -318 0 -165 4 -308 9 -318 5 -9 16 -66 26 -125 9 -60 32 -164 50 -232 19 -67 50 -167 70 -221 20 -55 67 -162 105 -239 38 -77 104 -194 148 -260 43 -66 115 -165 159 -220 44 -55 136 -154 204 -220 68 -67 162 -150 209 -187 47 -36 135 -98 195 -137 61 -40 173 -103 250 -141 77 -38 184 -85 239 -105 54 -20 154 -51 221 -70 68 -18 172 -41 232 -50 59 -10 116 -21 125 -26 10 -5 153 -9 318 -9 165 0 308 4 318 9 9 5 66 16 125 26 60 9 164 32 232 50 67 19 167 50 221 70 55 20 162 67 239 105 77 38 190 101 250 141 61 39 148 101 195 137 47 37 141 120 209 187 68 66 160 165 204 220 44 55 116 154 159 220 44 66 110 183 148 260 38 77 85 184 105 239 20 54 51 154 70 221 18 68 41 172 50 232 10 59 21 116 26 125 5 10 9 153 9 318 0 165 -4 308 -9 318 -5 9 -16 66 -26 125 -9 60 -32 164 -50 232 -19 67 -50 167 -70 221 -20 55 -67 162 -105 239 -38 77 -101 190 -141 250 -39 61 -101 148 -137 195 -37 47 -120 141 -187 209 -66 68 -165 160 -220 204 -55 44 -154 116 -220 159 -66 44 -183 110 -260 148 -77 38 -184 85 -239 105 -54 20 -154 51 -221 70 -68 18 -172 41 -232 50 -59 10 -116 21 -125 26 -10 5 -154 9 -320 8z m937 -1480 c11 0 39 -8 62 -18 30 -14 48 -31 62 -60 12 -22 21 -54 21 -71 0 -17 -7 -44 -15 -59 -8 -16 -28 -40 -45 -55 -25 -20 -42 -26 -81 -26 -28 0 -63 7 -79 15 -15 8 -38 30 -49 48 -13 21 -21 51 -21 76 0 23 6 54 14 69 8 15 23 35 34 45 11 10 33 22 48 27 16 4 38 9 49 9z m-880 -126 c44 -3 117 -13 163 -24 45 -10 114 -32 153 -49 39 -16 109 -55 155 -85 47 -30 115 -85 152 -123 38 -37 86 -94 109 -127 22 -33 54 -87 70 -120 17 -33 43 -98 57 -144 15 -46 32 -128 38 -182 9 -76 9 -123 0 -200 -7 -55 -21 -137 -33 -182 -11 -45 -40 -122 -63 -172 -24 -49 -64 -117 -89 -151 -25 -33 -74 -88 -109 -122 -35 -34 -92 -81 -128 -104 -36 -24 -95 -58 -131 -75 -36 -17 -99 -40 -140 -51 -41 -11 -92 -23 -114 -27 -22 -4 -88 -7 -147 -6 -60 0 -143 8 -185 17 -43 8 -96 21 -118 29 -22 7 -62 23 -90 36 -27 12 -81 42 -120 66 -38 25 -98 73 -133 107 -36 33 -89 93 -118 132 -29 39 -69 107 -90 150 -20 44 -47 118 -60 166 -12 48 -28 132 -34 188 -9 76 -9 124 0 201 6 56 25 142 41 192 16 49 45 120 64 157 20 36 64 102 99 146 35 43 92 102 127 130 35 28 90 68 122 88 32 21 88 50 125 66 37 15 96 36 131 45 35 9 98 20 140 24 42 5 112 7 156 4z M3963 4609 c-21 0 -45 -3 -53 -6 -8 -3 -26 -15 -38 -27 -13 -11 -30 -33 -38 -48 -8 -15 -14 -41 -14 -58 0 -18 7 -47 16 -66 9 -18 31 -43 49 -54 21 -13 50 -20 83 -20 43 0 57 5 87 31 20 18 39 47 45 70 6 21 8 51 4 66 -4 15 -16 40 -26 56 -11 15 -32 34 -48 42 -16 8 -46 15 -67 14z" />
</group>
</group>
</vector>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon
xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/launcher_ic_bg_cv" />
<foreground android:drawable="@mipmap/launcher_ic_fg_cv" />
<monochrome android:drawable="@drawable/launcher_cv_mono" />
</adaptive-icon>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon
xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/launcher_ic_bg_cv" />
<foreground android:drawable="@mipmap/launcher_ic_fg_cv" />
<monochrome android:drawable="@drawable/launcher_cv_mono" />
</adaptive-icon>
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

@@ -0,0 +1,81 @@
From 52b30d5ff13b7e3eda2d784dab49144d65c2aeae Mon Sep 17 00:00:00 2001
From: Arian <arian.kulmer@web.de>
Date: Tue, 29 Sep 2026 08:00:36 +0000
Subject: [PATCH] ICustomCaptureResult: Add readout timestamp
Change-Id: Ib9a5c7b9f3ace8eae59c4d0d0d2628c4f34bb5b5
---
.../protocol/ICustomCaptureResult.smali | 36 +++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/smali_classes2/com/xiaomi/protocol/ICustomCaptureResult.smali b/smali_classes2/com/xiaomi/protocol/ICustomCaptureResult.smali
index 56ecf5af..c0f98a17 100644
--- a/smali_classes2/com/xiaomi/protocol/ICustomCaptureResult.smali
+++ b/smali_classes2/com/xiaomi/protocol/ICustomCaptureResult.smali
@@ -346,7 +346,7 @@
.end method
.method public static toTotalCaptureResult(Lcom/xiaomi/protocol/ICustomCaptureResult;IZ)Landroid/hardware/camera2/TotalCaptureResult;
- .locals 23
+ .locals 27
const-string v0, "android.hardware.camera2.impl.PhysicalCaptureResultInfo"
@@ -434,7 +434,7 @@
if-lt v7, v8, :cond_0
- const/16 v7, 0xb
+ const/16 v7, 0xd
:try_start_1
new-array v8, v7, [Ljava/lang/Class;
@@ -488,6 +488,18 @@
aput-object v19, v8, v21
+ sget-object v19, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
+
+ const/16 v23, 0xb
+
+ aput-object v19, v8, v23
+
+ sget-object v19, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
+
+ const/16 v24, 0xc
+
+ aput-object v19, v8, v24
+
.line 8
invoke-virtual {v1, v8}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
@@ -565,6 +577,26 @@
aput-object v19, v7, v21
+ const/16 v25, 0x0
+
+ invoke-static/range {v25 .. v25}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
+
+ move-result-object v19
+
+ const/16 v23, 0xb
+
+ aput-object v19, v7, v23
+
+ const-wide/16 v25, 0x0
+
+ invoke-static/range {v25 .. v26}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
+
+ move-result-object v19
+
+ const/16 v24, 0xc
+
+ aput-object v19, v7, v24
+
.line 11
invoke-virtual {v8, v7}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
--
2.43.0
+27
View File
@@ -0,0 +1,27 @@
From 18fc4af4bd78ab24e876c610cee3143028714cb0 Mon Sep 17 00:00:00 2001
From: Alexander Winkowski <dereference23@outlook.com>
Date: Thu, 18 Apr 2024 11:47:56 +0200
Subject: [PATCH 2/3] Disable `BackupAgent`
* Doesn't work on AOSP
Change-Id: I0be35e30009b6a3f1d3f0f2930a971c25a9f4182
---
AndroidManifest.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index fd193d06..8f59f1c6 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -68,7 +68,7 @@
</intent>
<package android:name="com.xiaomi.scanner"/>
</queries>
- <application android:allowBackup="true" android:appComponentFactory="androidx.core.app.CoreComponentFactory" android:backupAgent="com.android.camera.backup.CameraBackupAgent" android:extractNativeLibs="false" android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_camera" android:label="@string/camera_label" android:largeHeap="true" android:name="com.android.camera.CameraAppImpl" android:networkSecurityConfig="@xml/network_security_config" android:resizeableActivity="false" android:supportsRtl="true" android:theme="@style/ThemeCamera">
+ <application android:allowBackup="false" android:appComponentFactory="androidx.core.app.CoreComponentFactory" android:extractNativeLibs="false" android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher_camera" android:label="@string/camera_label" android:largeHeap="true" android:name="com.android.camera.CameraAppImpl" android:networkSecurityConfig="@xml/network_security_config" android:resizeableActivity="false" android:supportsRtl="true" android:theme="@style/ThemeCamera">
<uses-library android:name="micloud-sdk" android:required="false"/>
<meta-data android:name="required_permissions" android:value="@string/required_permissions_supportModifiable"/>
<meta-data android:name="miui.supportRequiredModifiable" android:value="true"/>
--
2.43.0
@@ -0,0 +1,132 @@
From 8945c1754d02a755260e26f8b6a322e981817dbc Mon Sep 17 00:00:00 2001
From: Arian <arian.kulmer@web.de>
Date: Tue, 29 Sep 2026 08:05:14 +0000
Subject: [PATCH] Redo shortcut icon drawables
Change-Id: I0702b41136fd66b061dc51179710b73b6a8e8811
---
res/drawable/shortcut_capture_mode.xml | 22 +++++++++++++++------
res/drawable/shortcut_document_mode.xml | 22 +++++++++++++++------
res/drawable/shortcut_professional_mode.xml | 22 +++++++++++++++------
res/drawable/shortcut_video_mode.xml | 22 +++++++++++++++------
4 files changed, 64 insertions(+), 24 deletions(-)
diff --git a/res/drawable/shortcut_capture_mode.xml b/res/drawable/shortcut_capture_mode.xml
index eccd7def..6640ce3f 100644
--- a/res/drawable/shortcut_capture_mode.xml
+++ b/res/drawable/shortcut_capture_mode.xml
@@ -1,6 +1,16 @@
-<?xml version="1.0" encoding="utf-8"?>
-<vector android:height="89.0dip" android:width="88.0dip" android:viewportWidth="88.0" android:viewportHeight="89.0"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <path android:fillColor="#ff000000" android:pathData="M44,44.5m-44,0a44,44 0,1 1,88 0a44,44 0,1 1,-88 0" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillAlpha="0.05935861" android:fillType="evenOdd" />
- <path android:fillColor="#ff000000" android:pathData="M52.3147,29.1434C52.7093,29.6722 52.9185,30.3163 52.9101,30.976L52.8011,39.5061L59.7661,44.4318C61.1189,45.3884 61.44,47.2606 60.4833,48.6133C60.1024,49.152 59.5545,49.5501 58.9245,49.7459L52.3972,51.7745L60.9608,60.3388C61.5466,60.9246 61.5466,61.8743 60.9608,62.4601C60.375,63.0459 59.4253,63.0459 58.8395,62.4601L50.2742,53.8955L48.2459,60.4245C47.7541,62.0066 46.0728,62.8905 44.4906,62.3987C43.8606,62.2029 43.3127,61.8048 42.9318,61.2661L38.0061,54.3011L29.476,54.4101C27.8193,54.4313 26.4591,53.1054 26.4375,51.4487C26.4295,50.789 26.6388,50.1449 27.0334,49.6161L32.1354,42.7792L29.3958,34.7003C28.8637,33.1312 29.7044,31.4279 31.2734,30.8958C31.8983,30.6839 32.5755,30.6839 33.2003,30.8958L41.2792,33.6354L48.1161,28.5334C49.444,27.5424 51.3237,27.8156 52.3147,29.1434ZM49.9103,30.9377L41.8094,36.983L32.2369,33.7369L35.483,43.3094L29.4377,51.4103L39.5448,51.2812L45.3811,59.5339L48.3816,49.8816L58.0339,46.8811L49.7812,41.0448L49.9103,30.9377Z" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillType="nonZero" />
-</vector>
\ No newline at end of file
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@android:color/white" />
+ <foreground>
+ <inset android:inset="10%">
+ <vector
+ android:width="88dp"
+ android:height="89dp"
+ android:viewportWidth="88"
+ android:viewportHeight="89">
+ <path
+ android:fillColor="@android:color/black"
+ android:pathData="M52.3147,29.1434C52.7093,29.6722 52.9185,30.3163 52.9101,30.976L52.8011,39.5061L59.7661,44.4318C61.1189,45.3884 61.44,47.2606 60.4833,48.6133C60.1024,49.152 59.5545,49.5501 58.9245,49.7459L52.3972,51.7745L60.9608,60.3388C61.5466,60.9246 61.5466,61.8743 60.9608,62.4601C60.375,63.0459 59.4253,63.0459 58.8395,62.4601L50.2742,53.8955L48.2459,60.4245C47.7541,62.0066 46.0728,62.8905 44.4906,62.3987C43.8606,62.2029 43.3127,61.8048 42.9318,61.2661L38.0061,54.3011L29.476,54.4101C27.8193,54.4313 26.4591,53.1054 26.4375,51.4487C26.4295,50.789 26.6388,50.1449 27.0334,49.6161L32.1354,42.7792L29.3958,34.7003C28.8637,33.1312 29.7044,31.4279 31.2734,30.8958C31.8983,30.6839 32.5755,30.6839 33.2003,30.8958L41.2792,33.6354L48.1161,28.5334C49.444,27.5424 51.3237,27.8156 52.3147,29.1434ZM49.9103,30.9377L41.8094,36.983L32.2369,33.7369L35.483,43.3094L29.4377,51.4103L39.5448,51.2812L45.3811,59.5339L48.3816,49.8816L58.0339,46.8811L49.7812,41.0448L49.9103,30.9377Z" />
+ </vector>
+ </inset>
+ </foreground>
+</adaptive-icon>
\ No newline at end of file
diff --git a/res/drawable/shortcut_document_mode.xml b/res/drawable/shortcut_document_mode.xml
index 040e92cb..b31409a4 100644
--- a/res/drawable/shortcut_document_mode.xml
+++ b/res/drawable/shortcut_document_mode.xml
@@ -1,6 +1,16 @@
-<?xml version="1.0" encoding="utf-8"?>
-<vector android:height="88.0dip" android:width="88.0dip" android:viewportWidth="88.0" android:viewportHeight="88.0"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <path android:fillColor="#ff000000" android:pathData="M44,44m-44,0a44,44 0,1 1,88 0a44,44 0,1 1,-88 0" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillAlpha="0.06361997" android:fillType="evenOdd" />
- <path android:fillColor="#ff000000" android:pathData="M58,26C60.2091,26 62,27.7909 62,30L62,58C62,60.2091 60.2091,62 58,62L30,62C27.7909,62 26,60.2091 26,58L26,30C26,27.7909 27.7909,26 30,26L58,26ZM57,29L31,29C29.9456,29 29.0818,29.8159 29.0055,30.8507L29,31L29,57C29,58.0544 29.8159,58.9182 30.8507,58.9945L31,59L57,59C58.0544,59 58.9182,58.1841 58.9945,57.1493L59,57L59,31C59,29.8954 58.1046,29 57,29ZM51.5,43C52.0523,43 52.5,43.4477 52.5,44L52.5,45C52.5,45.5523 52.0523,46 51.5,46L36.5,46C35.9477,46 35.5,45.5523 35.5,45L35.5,44C35.5,43.4477 35.9477,43 36.5,43L51.5,43ZM51.5,35C52.0523,35 52.5,35.4477 52.5,36L52.5,37C52.5,37.5523 52.0523,38 51.5,38L36.5,38C35.9477,38 35.5,37.5523 35.5,37L35.5,36C35.5,35.4477 35.9477,35 36.5,35L51.5,35Z" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillType="nonZero" />
-</vector>
\ No newline at end of file
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@android:color/white" />
+ <foreground>
+ <inset android:inset="10%">
+ <vector
+ android:width="88dp"
+ android:height="88dp"
+ android:viewportWidth="88"
+ android:viewportHeight="88">
+ <path
+ android:fillColor="@android:color/black"
+ android:pathData="M58,26C60.2091,26 62,27.7909 62,30L62,58C62,60.2091 60.2091,62 58,62L30,62C27.7909,62 26,60.2091 26,58L26,30C26,27.7909 27.7909,26 30,26L58,26ZM57,29L31,29C29.9456,29 29.0818,29.8159 29.0055,30.8507L29,31L29,57C29,58.0544 29.8159,58.9182 30.8507,58.9945L31,59L57,59C58.0544,59 58.9182,58.1841 58.9945,57.1493L59,57L59,31C59,29.8954 58.1046,29 57,29ZM51.5,43C52.0523,43 52.5,43.4477 52.5,44L52.5,45C52.5,45.5523 52.0523,46 51.5,46L36.5,46C35.9477,46 35.5,45.5523 35.5,45L35.5,44C35.5,43.4477 35.9477,43 36.5,43L51.5,43ZM51.5,35C52.0523,35 52.5,35.4477 52.5,36L52.5,37C52.5,37.5523 52.0523,38 51.5,38L36.5,38C35.9477,38 35.5,37.5523 35.5,37L35.5,36C35.5,35.4477 35.9477,35 36.5,35L51.5,35Z" />
+ </vector>
+ </inset>
+ </foreground>
+</adaptive-icon>
\ No newline at end of file
diff --git a/res/drawable/shortcut_professional_mode.xml b/res/drawable/shortcut_professional_mode.xml
index e65157e6..75327965 100644
--- a/res/drawable/shortcut_professional_mode.xml
+++ b/res/drawable/shortcut_professional_mode.xml
@@ -1,6 +1,16 @@
-<?xml version="1.0" encoding="utf-8"?>
-<vector android:height="89.0dip" android:width="88.0dip" android:viewportWidth="88.0" android:viewportHeight="89.0"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <path android:fillColor="#ff000000" android:pathData="M44,44.5m-44,0a44,44 0,1 1,88 0a44,44 0,1 1,-88 0" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillAlpha="0.05935861" android:fillType="evenOdd" />
- <path android:fillColor="#ff000000" android:pathData="M48.7352,25.5C50.1403,25.5 51.4423,26.2372 52.1652,27.442L53.7087,30.0145C53.8894,30.3157 54.2149,30.5 54.5662,30.5L59,30.5C61.7614,30.5 64,32.7386 64,35.5L64,56.5C64,59.2614 61.7614,61.5 59,61.5L29,61.5C26.2386,61.5 24,59.2614 24,56.5L24,35.5C24,32.7386 26.2386,30.5 29,30.5L33.4338,30.5C33.7851,30.5 34.1106,30.3157 34.2913,30.0145L35.8348,27.442C36.5577,26.2372 37.8597,25.5 39.2648,25.5L48.7352,25.5ZM48.7352,28.5L39.2648,28.5C38.9135,28.5 38.588,28.6843 38.4073,28.9855L36.8638,31.558C36.1409,32.7628 34.8389,33.5 33.4338,33.5L29,33.5C27.8954,33.5 27,34.3954 27,35.5L27,56.5C27,57.6046 27.8954,58.5 29,58.5L59,58.5C60.1046,58.5 61,57.6046 61,56.5L61,35.5C61,34.3954 60.1046,33.5 59,33.5L54.5662,33.5C53.1611,33.5 51.8591,32.7628 51.1362,31.558L49.5927,28.9855C49.412,28.6843 49.0865,28.5 48.7352,28.5ZM44,36C48.6944,36 52.5,39.8056 52.5,44.5C52.5,49.1944 48.6944,53 44,53C39.3056,53 35.5,49.1944 35.5,44.5C35.5,39.8056 39.3056,36 44,36ZM44,39C40.9624,39 38.5,41.4624 38.5,44.5C38.5,47.5376 40.9624,50 44,50C47.0376,50 49.5,47.5376 49.5,44.5C49.5,41.4624 47.0376,39 44,39Z" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillType="nonZero" />
-</vector>
\ No newline at end of file
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@android:color/white" />
+ <foreground>
+ <inset android:inset="10%">
+ <vector
+ android:width="88dp"
+ android:height="89dp"
+ android:viewportWidth="88"
+ android:viewportHeight="89">
+ <path
+ android:fillColor="@android:color/black"
+ android:pathData="M48.7352,25.5C50.1403,25.5 51.4423,26.2372 52.1652,27.442L53.7087,30.0145C53.8894,30.3157 54.2149,30.5 54.5662,30.5L59,30.5C61.7614,30.5 64,32.7386 64,35.5L64,56.5C64,59.2614 61.7614,61.5 59,61.5L29,61.5C26.2386,61.5 24,59.2614 24,56.5L24,35.5C24,32.7386 26.2386,30.5 29,30.5L33.4338,30.5C33.7851,30.5 34.1106,30.3157 34.2913,30.0145L35.8348,27.442C36.5577,26.2372 37.8597,25.5 39.2648,25.5L48.7352,25.5ZM48.7352,28.5L39.2648,28.5C38.9135,28.5 38.588,28.6843 38.4073,28.9855L36.8638,31.558C36.1409,32.7628 34.8389,33.5 33.4338,33.5L29,33.5C27.8954,33.5 27,34.3954 27,35.5L27,56.5C27,57.6046 27.8954,58.5 29,58.5L59,58.5C60.1046,58.5 61,57.6046 61,56.5L61,35.5C61,34.3954 60.1046,33.5 59,33.5L54.5662,33.5C53.1611,33.5 51.8591,32.7628 51.1362,31.558L49.5927,28.9855C49.412,28.6843 49.0865,28.5 48.7352,28.5ZM44,36C48.6944,36 52.5,39.8056 52.5,44.5C52.5,49.1944 48.6944,53 44,53C39.3056,53 35.5,49.1944 35.5,44.5C35.5,39.8056 39.3056,36 44,36ZM44,39C40.9624,39 38.5,41.4624 38.5,44.5C38.5,47.5376 40.9624,50 44,50C47.0376,50 49.5,47.5376 49.5,44.5C49.5,41.4624 47.0376,39 44,39Z" />
+ </vector>
+ </inset>
+ </foreground>
+</adaptive-icon>
\ No newline at end of file
diff --git a/res/drawable/shortcut_video_mode.xml b/res/drawable/shortcut_video_mode.xml
index a2e67750..c9b3c6ad 100644
--- a/res/drawable/shortcut_video_mode.xml
+++ b/res/drawable/shortcut_video_mode.xml
@@ -1,6 +1,16 @@
-<?xml version="1.0" encoding="utf-8"?>
-<vector android:height="88.0dip" android:width="88.0dip" android:viewportWidth="88.0" android:viewportHeight="88.0"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <path android:fillColor="#ff000000" android:pathData="M44,44m-44,0a44,44 0,1 1,88 0a44,44 0,1 1,-88 0" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillAlpha="0.05935861" android:fillType="evenOdd" />
- <path android:fillColor="#ff000000" android:pathData="M51,28.5C53.2091,28.5 55,30.2909 55,32.5L55,37.923L60.2924,34.2591C61.6546,33.316 63.5235,33.6558 64.4666,35.0181C64.8139,35.5198 65,36.1155 65,36.7257L65,51.2743C65,52.9311 63.6569,54.2743 62,54.2743C61.3898,54.2743 60.7941,54.0882 60.2924,53.7409L55,50.077L55,55.5C55,57.7091 53.2091,59.5 51,59.5L29,59.5C26.7909,59.5 25,57.7091 25,55.5L25,32.5C25,30.2909 26.7909,28.5 29,28.5L51,28.5ZM51,31.5L29,31.5C28.4477,31.5 28,31.9477 28,32.5L28,55.5C28,56.0523 28.4477,56.5 29,56.5L51,56.5C51.5523,56.5 52,56.0523 52,55.5L52,32.5C52,31.9477 51.5523,31.5 51,31.5ZM62,36.7257L55,41.5719L55,46.4281L62,51.2743L62,36.7257Z" android:strokeColor="#00000000" android:strokeWidth="1.0" android:fillType="nonZero" />
-</vector>
\ No newline at end of file
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@android:color/white" />
+ <foreground>
+ <inset android:inset="10%">
+ <vector
+ android:width="88dp"
+ android:height="88dp"
+ android:viewportWidth="88"
+ android:viewportHeight="88">
+ <path
+ android:fillColor="@android:color/black"
+ android:pathData="M51,28.5C53.2091,28.5 55,30.2909 55,32.5L55,37.923L60.2924,34.2591C61.6546,33.316 63.5235,33.6558 64.4666,35.0181C64.8139,35.5198 65,36.1155 65,36.7257L65,51.2743C65,52.9311 63.6569,54.2743 62,54.2743C61.3898,54.2743 60.7941,54.0882 60.2924,53.7409L55,50.077L55,55.5C55,57.7091 53.2091,59.5 51,59.5L29,59.5C26.7909,59.5 25,57.7091 25,55.5L25,32.5C25,30.2909 26.7909,28.5 29,28.5L51,28.5ZM51,31.5L29,31.5C28.4477,31.5 28,31.9477 28,32.5L28,55.5C28,56.0523 28.4477,56.5 29,56.5L51,56.5C51.5523,56.5 52,56.0523 52,55.5L52,32.5C52,31.9477 51.5523,31.5 51,31.5ZM62,36.7257L55,41.5719L55,46.4281L62,51.2743L62,36.7257Z" />
+ </vector>
+ </inset>
+ </foreground>
+</adaptive-icon>
\ No newline at end of file
--
2.43.0
@@ -0,0 +1,59 @@
From ced167d2b0f5dbda3b0ab57b80f7510bd804cbef Mon Sep 17 00:00:00 2001
From: Raya Mahardika <94042378+rktdnt@users.noreply.github.com>
Date: Tue, 27 Oct 2026 18:36:10 +0000
Subject: [PATCH] Assume that mod_device is global
Otherwise, the app tries to start a custom permissions dialog which
has dependencies on HyperOS Security Center app
Change-Id: I3ffce0136d6777dc72c4ea01bb5b7c41d89af73f
---
smali/OooO0O0/OooO0Oo/OooO00o/OooO0O0.smali | 18 +-----------------
smali_classes3/miuix/os/Build.smali | 2 +-
2 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/smali/OooO0O0/OooO0Oo/OooO00o/OooO0O0.smali b/smali/OooO0O0/OooO0Oo/OooO00o/OooO0O0.smali
index a35a4d4..f507b9a 100644
--- a/smali/OooO0O0/OooO0Oo/OooO00o/OooO0O0.smali
+++ b/smali/OooO0O0/OooO0Oo/OooO00o/OooO0O0.smali
@@ -1230,19 +1230,3 @@
.method public static OooO0o()Z
- .locals 2
-
- const-string/jumbo v0, "ro.product.mod_device"
-
- const-string v1, ""
-
- .line 1
- invoke-static {v0, v1}, Lcom/xiaomi/camera/util/SystemProperties;->get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
- move-result-object v0
-
- const-string v1, "_global"
-
- invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
-
- move-result v0
-
- return v0
+ .locals 1
+
+ const/4 v0, 0x1
+
+ return v0
.end method
diff --git a/smali_classes3/miuix/os/Build.smali b/smali_classes3/miuix/os/Build.smali
index 3d23089..f845309 100644
--- a/smali_classes3/miuix/os/Build.smali
+++ b/smali_classes3/miuix/os/Build.smali
@@ -24,7 +24,7 @@
invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
- move-result v0
+ const/4 v0, 0x1
sput-boolean v0, Lmiuix/os/Build;->IS_INTERNATIONAL_BUILD:Z
--
2.43.0
+5
View File
@@ -0,0 +1,5 @@
# All unpinned blobs below are extracted from surya V14.0.5.0.SJGEUXM
product/priv-app/MiuiCamera/MiuiCamera.apk:system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=Aperture
system/lib64/libcamera_algoup_jni.xiaomi.so
system/lib64/libcamera_mianode_jni.xiaomi.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+61
View File
@@ -0,0 +1,61 @@
/vendor/lib(64)?/libalAILDC\.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)?/libalhLDC\.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)?/libarcsoft_beautyshot\.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)?/libarcsoft_distortion_correction\.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_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\.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_low_light_hdr\.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_portrait_lighting\.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)?/libbeauty_face_interface\.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)?/libcvp_common\.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)?/lib_denoiser3\.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)?/libHalSuperSensorServerCWrapper\.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)?/libhvx_interface\.so 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)?/libmiai_portraitsupernight\.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)?/libmialgoengine\.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_utils\.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)?/libmiStereoFactoryRemapLib\.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)?/librelight_only\.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)?/libsnpe_dsp_domains_skel\.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)?/libsnpe_dsp_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)?/libSNPE\.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)?/libst_sr_models\.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)?/libSuperSensor_skel\.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)?/libsymphony-cpu\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libVDClearShot\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libVDDualCameraClearShot\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libVDSuperPhotoAPI\.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)?/libxmi_hdr_checker\.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)?/libxml2_vendor\.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)?/rfsa/adsp/libdspCV_skel\.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)?/st_sr_models\.bin u:object_r:same_process_hal_file:s0
+16
View File
@@ -0,0 +1,16 @@
attribute vendor_hal_camerapostproc_xiaomi;
attribute vendor_hal_camerapostproc_xiaomi_client;
attribute vendor_hal_camerapostproc_xiaomi_server;
type vendor_hal_camerapostproc_xiaomi_hwservice, hwservice_manager_type;
type vendor_hal_misys_hwservice, hwservice_manager_type;
hal_server_domain(hal_camera_default, vendor_hal_camerapostproc_xiaomi)
allow hal_camera_client vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
add_hwservice(hal_camera_server, vendor_hal_camerapostproc_xiaomi_hwservice)
binder_call(vendor_hal_camerapostproc_xiaomi_client, vendor_hal_camerapostproc_xiaomi_server)
binder_call(vendor_hal_camerapostproc_xiaomi_server, vendor_hal_camerapostproc_xiaomi_client)
binder_call(hal_camera_default, platform_app)
dontaudit hal_camera_default default_prop:file read;
+3
View File
@@ -0,0 +1,3 @@
# Camera
vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:vendor_hal_camerapostproc_xiaomi_hwservice:s0
vendor.xiaomi.hardware.misys::IMiSys u:object_r:vendor_hal_misys_hwservice:s0
+30
View File
@@ -0,0 +1,30 @@
hal_client_domain(platform_app, vendor_hal_camerapostproc_xiaomi)
binder_use(platform_app)
binder_call(platform_app, hal_camera_default)
binder_call(platform_app, vendor_hal_camerapostproc_xiaomi)
allow platform_app vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
allow platform_app vendor_hal_misys_hwservice:hwservice_manager find;
allow platform_app adsprpcd_file:dir { open read search };
allow platform_app vendor_xdsp_device:chr_file { ioctl open read write };
allow platform_app vendor_qdsp_device:chr_file { ioctl open read write };
allow platform_app vendor_camera_data_file:dir { append map r_dir_perms write };
allow platform_app vendor_camera_data_file:file { getattr open read };
allow platform_app app_data_file:file execute;
allow platform_app proc_stat:file { read };
# Properties
get_prop(platform_app, vendor_audio_prop)
get_prop(platform_app, vendor_display_prop)
+1
View File
@@ -0,0 +1 @@
#!./extract-files.py --regenerate_makefiles
+10
View File
@@ -0,0 +1,10 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
cc_library {
name: "libgui_shim_miuicamera",
srcs: ["libgui_shim_miuicamera.c"],
}
+9
View File
@@ -0,0 +1,9 @@
/*
* Copyright (C) 2023 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
void _ZN7android18BnProducerListener16onBufferDetachedEi() {
return;
}
+88
View File
@@ -0,0 +1,88 @@
//
// Automatically generated file. DO NOT MODIFY
//
soong_namespace {
imports: [
"vendor/xiaomi/miuicamera-surya",
],
}
cc_prebuilt_library_shared {
name: "libcamera_algoup_jni.xiaomi",
owner: "xiaomi/miuicamera-surya",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so",
],
shared_libs: [
"libgui_shim_miuicamera",
"libvndksupport",
"libcamera_client",
"libcamera_metadata",
"libgui",
"libbinder",
"libutils",
"libcutils",
"liblog",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
cc_prebuilt_library_shared {
name: "libcamera_mianode_jni.xiaomi",
owner: "xiaomi/miuicamera-surya",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so",
],
shared_libs: [
"libgui_shim_miuicamera",
"libvndksupport",
"libcamera_client",
"libcamera_metadata",
"libgui",
"libbinder",
"libutils",
"libcutils",
"liblog",
"libxml2",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
}
android_app_import {
name: "MiuiCamera",
owner: "xiaomi/miuicamera-surya",
apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
overrides: [
"Aperture",
],
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}
View File
File renamed without changes.
File renamed without changes.
+11
View File
@@ -0,0 +1,11 @@
#
# Automatically generated file. DO NOT MODIFY
#
PRODUCT_SOONG_NAMESPACES += \
vendor/xiaomi/miuicamera-surya/surya
PRODUCT_PACKAGES += \
libcamera_algoup_jni.xiaomi \
libcamera_mianode_jni.xiaomi \
MiuiCamera
+8
View File
@@ -0,0 +1,8 @@
# Google Lens
ro.com.google.lens.oem_camera_package=com.android.camera
# Framework allowlists
persist.vendor.camera.privapp.list=com.android.camera
# MiuiCamera
ro.miui.notch=1