miuicamera-dipper: Initial commit
Change-Id: I1c627b4fba6ac42a97b7fa4b5dba922435f83af9
This commit is contained in:
45 files changed
+784
No files matched your search
@@ -0,0 +1 @@
|
||||
*.apk filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1,8 @@
|
||||
//
|
||||
// Copyright (C) 2024-2026 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
soong_namespace {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# Copyright (C) 2024-2026 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Inherit from the proprietary version
|
||||
include vendor/xiaomi/miuicamera-dipper/dipper/BoardConfigVendor.mk
|
||||
|
||||
MIUICAMERA_PATH := vendor/xiaomi/miuicamera-dipper
|
||||
|
||||
# Properties
|
||||
TARGET_SYSTEM_PROP += $(MIUICAMERA_PATH)/system.prop
|
||||
|
||||
# Sepolicy
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += $(MIUICAMERA_PATH)/sepolicy/vendor
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Copyright (C) 2024-2026 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
include vendor/xiaomi/miuicamera-dipper/BoardConfig.mk
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Copyright (C) 2024-2026 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
$(call inherit-product, vendor/xiaomi/miuicamera-dipper/device.mk)
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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.READ_MEDIA_IMAGES" fixed="true" />
|
||||
<permission name="android.permission.READ_MEDIA_VIDEO" fixed="true" />
|
||||
<permission name="android.permission.READ_MEDIA_AUDIO" fixed="true" />
|
||||
<!-- Notifications -->
|
||||
<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,24 @@
|
||||
<?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" />
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
@@ -0,0 +1,10 @@
|
||||
libCameraEffectJNI.so
|
||||
libcamera_960_mpbase.so
|
||||
libcom.xiaomi.camera.requestutil.so
|
||||
libdualcameraddm.so
|
||||
libjni_dualcamera.so
|
||||
libjni_jpegutil_xiaomi.so
|
||||
libmorpho_memory_allocator.so
|
||||
libmorpho_panorama_gp3.so
|
||||
libmorpho_sensor_fusion.so
|
||||
libmulti-wakeup-engine.so
|
||||
@@ -0,0 +1,32 @@
|
||||
#
|
||||
# Copyright (C) 2024-2026 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Inherit from the proprietary version
|
||||
$(call inherit-product, vendor/xiaomi/miuicamera-dipper/dipper/dipper-vendor.mk)
|
||||
|
||||
# Overlays
|
||||
PRODUCT_PACKAGES += \
|
||||
MiuiCameraOverlay
|
||||
|
||||
# Public libraries
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/public.libraries-xiaomi.txt:$(TARGET_COPY_OUT_SYSTEM)/etc/public.libraries-xiaomi.txt
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,285 @@
|
||||
//
|
||||
// Automatically generated file. DO NOT MODIFY
|
||||
//
|
||||
|
||||
soong_namespace {
|
||||
imports: [
|
||||
"vendor/xiaomi/miuicamera-dipper",
|
||||
],
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libCameraEffectJNI",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libCameraEffectJNI.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libcutils",
|
||||
"libGLESv2",
|
||||
"libGLESv3",
|
||||
"libEGL",
|
||||
"libandroid",
|
||||
"libui",
|
||||
"libjnigraphics",
|
||||
"libgui",
|
||||
"libjpeg",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libcamera_960_mpbase",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libcamera_960_mpbase.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libc",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libcom.xiaomi.camera.requestutil",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libcom.xiaomi.camera.requestutil.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libcrypto",
|
||||
"libssl",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libdualcameraddm",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libdualcameraddm.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libz",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libm",
|
||||
"libstdc++",
|
||||
"libc",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libjni_dualcamera",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libjni_dualcamera.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libdualcameraddm",
|
||||
"libjnigraphics",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libjni_jpegutil_xiaomi",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libjni_jpegutil_xiaomi.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libion",
|
||||
"libmedia",
|
||||
"libcamera_client",
|
||||
"libandroid_runtime",
|
||||
"libnativehelper",
|
||||
"libutils",
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"libgui",
|
||||
"libui",
|
||||
"libbinder",
|
||||
"libhidlbase",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libmorpho_memory_allocator",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libmorpho_memory_allocator.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libmorpho_panorama_gp3",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libmorpho_panorama_gp3.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libjnigraphics",
|
||||
"libGLESv1_CM",
|
||||
"liblog",
|
||||
"libandroid",
|
||||
"libEGL",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libmorpho_sensor_fusion",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libmorpho_sensor_fusion.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libmulti-wakeup-engine",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libmulti-wakeup-engine.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libm",
|
||||
"libdl",
|
||||
"libc",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
android_app_import {
|
||||
name: "MiuiCamera",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
|
||||
overrides: [
|
||||
"Aperture",
|
||||
],
|
||||
certificate: "platform",
|
||||
dex_preopt: {
|
||||
enabled: false,
|
||||
},
|
||||
privileged: true,
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Automatically generated file. DO NOT MODIFY
|
||||
#
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
@@ -0,0 +1,3 @@
|
||||
#
|
||||
# Automatically generated file. DO NOT MODIFY
|
||||
#
|
||||
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# Automatically generated file. DO NOT MODIFY
|
||||
#
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
vendor/xiaomi/miuicamera-dipper/dipper
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libCameraEffectJNI \
|
||||
libcamera_960_mpbase \
|
||||
libcom.xiaomi.camera.requestutil \
|
||||
libdualcameraddm \
|
||||
libjni_dualcamera \
|
||||
libjni_jpegutil_xiaomi \
|
||||
libmorpho_memory_allocator \
|
||||
libmorpho_panorama_gp3 \
|
||||
libmorpho_sensor_fusion \
|
||||
libmulti-wakeup-engine \
|
||||
MiuiCamera
|
||||
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3c5b8520c85cce54e006814cfda4c97b1c51ab81998f969c45c7291bd207604d
|
||||
size 40335979
|
||||
Executable
+46
@@ -0,0 +1,46 @@
|
||||
#!/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_fixup_remove,
|
||||
lib_fixups,
|
||||
lib_fixups_user_type,
|
||||
)
|
||||
from extract_utils.main import (
|
||||
ExtractUtils,
|
||||
ExtractUtilsModule,
|
||||
)
|
||||
|
||||
namespace_imports = [
|
||||
'vendor/xiaomi/miuicamera-dipper',
|
||||
]
|
||||
|
||||
lib_fixups: lib_fixups_user_type = {
|
||||
**lib_fixups,
|
||||
'libhidltransport': lib_fixup_remove,
|
||||
}
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
'system/priv-app/MiuiCamera/MiuiCamera.apk': blob_fixup()
|
||||
.apktool_patch('patches'),
|
||||
} # fmt: skip
|
||||
|
||||
module = ExtractUtilsModule(
|
||||
'dipper',
|
||||
'xiaomi/miuicamera-dipper',
|
||||
device_rel_path='vendor/xiaomi/miuicamera-dipper',
|
||||
blob_fixups=blob_fixups,
|
||||
lib_fixups=lib_fixups,
|
||||
namespace_imports=namespace_imports,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
utils = ExtractUtils.device(module)
|
||||
utils.run()
|
||||
@@ -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,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="351dp"
|
||||
android:height="351dp"
|
||||
android:viewportWidth="351"
|
||||
android:viewportHeight="351">
|
||||
<path
|
||||
android:fillColor="#F4F5F6"
|
||||
android:pathData="M 0 0 L 351 0 L 351 351 L 0 351 Z" />
|
||||
</vector>
|
||||
@@ -0,0 +1,38 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:name="vector"
|
||||
android:width="351dp"
|
||||
android:height="351dp"
|
||||
android:viewportWidth="351"
|
||||
android:viewportHeight="351">
|
||||
<path
|
||||
android:name="path"
|
||||
android:pathData="M 174 109 C 155.972 109 138.664 116.169 125.917 128.917 C 113.169 141.664 106 158.972 106 177 C 106 195.028 113.169 212.336 125.917 225.083 C 138.664 237.831 155.972 245 174 245 C 192.028 245 209.336 237.831 222.083 225.083 C 234.831 212.336 242 195.028 242 177 C 242 158.972 234.831 141.664 222.083 128.917 C 209.336 116.169 192.028 109 174 109 Z"
|
||||
android:fillColor="#000000"
|
||||
android:strokeWidth="1"/>
|
||||
<path
|
||||
android:name="path_1"
|
||||
android:pathData="M 174.5 125 C 160.847 125 147.738 130.43 138.084 140.084 C 128.43 149.738 123 162.847 123 176.5 C 123 190.153 128.43 203.262 138.084 212.916 C 147.738 222.57 160.847 228 174.5 228 C 188.153 228 201.262 222.57 210.916 212.916 C 220.57 203.262 226 190.153 226 176.5 C 226 162.847 220.57 149.738 210.916 140.084 C 201.262 130.43 188.153 125 174.5 125 Z"
|
||||
android:fillColor="#383838"
|
||||
android:strokeWidth="1"/>
|
||||
<path
|
||||
android:name="path_2"
|
||||
android:pathData="M 174 133 C 164.71 133 155.654 135.942 148.137 141.403 C 140.621 146.864 135.024 154.568 132.154 163.403 C 129.283 172.239 129.283 181.761 132.154 190.597 C 135.024 199.432 140.621 207.136 148.137 212.597 C 155.654 218.058 164.71 221 174 221 C 183.29 221 192.346 218.058 199.863 212.597 C 207.379 207.136 212.976 199.432 215.846 190.597 C 218.717 181.761 218.717 172.239 215.846 163.403 C 212.976 154.568 207.379 146.864 199.863 141.403 C 192.346 135.942 183.29 133 174 133 Z"
|
||||
android:fillColor="#000000"
|
||||
android:strokeWidth="1"/>
|
||||
<path
|
||||
android:name="path_3"
|
||||
android:pathData="M 174.5 140 C 166.777 139.976 159.243 142.403 152.986 146.93 C 146.73 151.457 142.069 157.856 139.678 165.199 C 137.287 172.542 137.287 180.458 139.678 187.801 C 142.069 195.144 146.73 201.543 152.986 206.07 C 159.243 210.597 166.777 213.024 174.5 213 C 182.223 213.024 189.757 210.597 196.014 206.07 C 202.27 201.543 206.931 195.144 209.322 187.801 C 211.713 180.458 211.713 172.542 209.322 165.199 C 206.931 157.856 202.27 151.457 196.014 146.93 C 189.757 142.403 182.223 139.976 174.5 140 Z"
|
||||
android:fillColor="#5d5d5d"
|
||||
android:strokeWidth="1"/>
|
||||
<path
|
||||
android:name="path_4"
|
||||
android:pathData="M 175 152 C 169.922 151.984 164.968 153.58 160.854 156.557 C 156.74 159.534 153.676 163.741 152.103 168.569 C 150.531 173.398 150.531 178.602 152.103 183.431 C 153.676 188.259 156.74 192.466 160.854 195.443 C 164.968 198.42 169.922 200.016 175 200 C 180.078 200.016 185.032 198.42 189.146 195.443 C 193.26 192.466 196.324 188.259 197.897 183.431 C 199.469 178.602 199.469 173.398 197.897 168.569 C 196.324 163.741 193.26 159.534 189.146 156.557 C 185.032 153.58 180.078 151.984 175 152 Z"
|
||||
android:fillColor="#000000"
|
||||
android:strokeWidth="1"/>
|
||||
<path
|
||||
android:name="path_5"
|
||||
android:pathData="M 236 105 C 233.349 105 230.804 106.054 228.929 107.929 C 227.054 109.804 226 112.349 226 115 C 226 117.651 227.054 120.196 228.929 122.071 C 230.804 123.946 233.349 125 236 125 C 238.651 125 241.196 123.946 243.071 122.071 C 244.946 120.196 246 117.651 246 115 C 246 112.349 244.946 109.804 243.071 107.929 C 241.196 106.054 238.651 105 236 105 Z"
|
||||
android:fillColor="#ff0000"
|
||||
android:strokeWidth="1"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,19 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:name="vector"
|
||||
android:width="351dp"
|
||||
android:height="351dp"
|
||||
android:viewportWidth="351"
|
||||
android:viewportHeight="351">
|
||||
<path
|
||||
android:name="path"
|
||||
android:pathData="M 201 174 C 201 187.255 190.255 198 177 198 C 163.745 198 153 187.255 153 174 C 153 160.745 163.745 150 177 150 C 190.255 150 201 160.745 201 174 Z M 246 115 C 246 120.523 241.523 125 236 125 C 230.477 125 226 120.523 226 115 C 226 109.477 230.477 105 236 105 C 241.523 105 246 109.477 246 115 Z"
|
||||
android:fillColor="#000000"
|
||||
android:strokeWidth="1"/>
|
||||
<path
|
||||
android:name="path_1"
|
||||
android:pathData="M 244 175 C 244 212.555 213.555 243 176 243 C 138.445 243 108 212.555 108 175 C 108 137.445 138.445 107 176 107 C 213.555 107 244 137.445 244 175 Z M 228 174.5 C 228 202.943 204.943 226 176.5 226 C 148.057 226 125 202.943 125 174.5 C 125 146.057 148.057 123 176.5 123 C 204.943 123 228 146.057 228 174.5 Z M 176 219 C 200.301 219 220 199.301 220 175 C 220 150.699 200.301 131 176 131 C 151.699 131 132 150.699 132 175 C 132 199.301 151.699 219 176 219 Z M 176.5 211 C 196.658 211 213 194.658 213 174.5 C 213 154.342 196.658 138 176.5 138 C 156.342 138 140 154.342 140 174.5 C 140 194.658 156.342 211 176.5 211 Z M 201 174 C 201 187.255 190.255 198 177 198 C 163.745 198 153 187.255 153 174 C 153 160.745 163.745 150 177 150 C 190.255 150 201 160.745 201 174 Z"
|
||||
android:fillColor="#000000"
|
||||
android:strokeWidth="1"
|
||||
android:fillType="evenOdd"/>
|
||||
</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="@drawable/ic_launcher_camera_cv_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_camera_cv_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_camera_cv_monochrome" />
|
||||
</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="@drawable/ic_launcher_camera_cv_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_camera_cv_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_camera_cv_monochrome" />
|
||||
</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="@drawable/ic_launcher_camera_cv_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_camera_cv_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_camera_cv_monochrome" />
|
||||
</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="@drawable/ic_launcher_camera_cv_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_camera_cv_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_camera_cv_monochrome" />
|
||||
</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="@drawable/ic_launcher_camera_cv_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_camera_cv_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_camera_cv_monochrome" />
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,72 @@
|
||||
From 37db552c87f0cf585629cd8522dc4086699c31c5 Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Thu, 1 Oct 2026 18:28:47 +0000
|
||||
Subject: [PATCH 1/2] ICustomCaptureResult: Add readout timestamp
|
||||
|
||||
Change-Id: I352266c9bbe17a693b19f9bc4861ea31ad405dcc
|
||||
---
|
||||
.../protocol/ICustomCaptureResult.smali | 34 ++++++++++++++++++-
|
||||
1 file changed, 33 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/smali_classes8/com/xiaomi/protocol/ICustomCaptureResult.smali b/smali_classes8/com/xiaomi/protocol/ICustomCaptureResult.smali
|
||||
index 1bf935b..53eab94 100644
|
||||
--- a/smali_classes8/com/xiaomi/protocol/ICustomCaptureResult.smali
|
||||
+++ b/smali_classes8/com/xiaomi/protocol/ICustomCaptureResult.smali
|
||||
@@ -314,7 +314,7 @@
|
||||
|
||||
if-lt v5, v6, :cond_0
|
||||
|
||||
- const/16 v5, 0xb
|
||||
+ const/16 v5, 0xd
|
||||
|
||||
:try_start_2
|
||||
new-array v6, v5, [Ljava/lang/Class;
|
||||
@@ -368,6 +368,18 @@
|
||||
|
||||
aput-object v17, v6, v19
|
||||
|
||||
+ sget-object v17, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
||||
+
|
||||
+ const/16 v19, 0xb
|
||||
+
|
||||
+ aput-object v17, v6, v19
|
||||
+
|
||||
+ sget-object v17, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
|
||||
+
|
||||
+ const/16 v19, 0xc
|
||||
+
|
||||
+ aput-object v17, v6, v19
|
||||
+
|
||||
.line 7
|
||||
invoke-virtual {v0, v6}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
||||
|
||||
@@ -443,6 +455,26 @@
|
||||
|
||||
aput-object v17, v5, v19
|
||||
|
||||
+ const/16 v17, 0x0
|
||||
+
|
||||
+ invoke-static/range {v17 .. v17}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||||
+
|
||||
+ move-result-object v17
|
||||
+
|
||||
+ const/16 v19, 0xb
|
||||
+
|
||||
+ aput-object v17, v5, v19
|
||||
+
|
||||
+ const-wide/16 v17, 0x0
|
||||
+
|
||||
+ invoke-static/range {v17 .. v18}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
||||
+
|
||||
+ move-result-object v17
|
||||
+
|
||||
+ const/16 v19, 0xc
|
||||
+
|
||||
+ aput-object v17, v5, v19
|
||||
+
|
||||
.line 10
|
||||
invoke-virtual {v6, v5}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 1634b445f4e7ede6b938750dcafdc9c5070012b0 Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Thu, 1 Oct 2026 18:28:47 +0000
|
||||
Subject: [PATCH 2/2] Disable BackupAgent
|
||||
|
||||
Change-Id: I463d199d2020589bb420d35798c70b5b5790af17
|
||||
---
|
||||
AndroidManifest.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
||||
index 7d857e0..cf5c390 100644
|
||||
--- a/AndroidManifest.xml
|
||||
+++ b/AndroidManifest.xml
|
||||
@@ -49,7 +49,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
|
||||
<uses-permission android:name="android.permission.INJECT_EVENTS"/>
|
||||
- <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: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:supportsRtl="true" android:theme="@style/ThemeCamera">
|
||||
<meta-data android:name="required_permissions" android:value="@string/required_permissions"/>
|
||||
<meta-data android:name="android.max_aspect" android:value="2.3"/>
|
||||
<uses-library android:name="zxing.jar" android:required="false"/>
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# All unpinned blobs below are extracted from dipper V12.5.2.0.QEACNXM
|
||||
|
||||
product/priv-app/MiuiCamera/MiuiCamera.apk:system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=Aperture
|
||||
system/lib64/libCameraEffectJNI.so
|
||||
system/lib64/libcamera_960_mpbase.so
|
||||
system/lib64/libcom.xiaomi.camera.requestutil.so
|
||||
system/lib64/libdualcameraddm.so
|
||||
system/lib64/libjni_dualcamera.so
|
||||
system/lib64/libjni_jpegutil_xiaomi.so
|
||||
system/lib64/libmorpho_memory_allocator.so
|
||||
system/lib64/libmorpho_panorama_gp3.so
|
||||
system/lib64/libmorpho_sensor_fusion.so
|
||||
system/lib64/libmulti-wakeup-engine.so
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
/vendor/lib(64)?/libarcsoft_beautyshot\.so u:object_r:same_process_hal_file:s0
|
||||
/vendor/lib(64)?/libarcsoft_dualcam_image_optical_zoom\.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_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_video_optical_zoom\.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\.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_supernight\.so u:object_r:same_process_hal_file:s0
|
||||
/vendor/lib(64)?/libmibokeh_845\.so u:object_r:same_process_hal_file:s0
|
||||
/vendor/lib(64)?/libSNPE\.so u:object_r:same_process_hal_file:s0
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
allow platform_app app_data_file:file execute;
|
||||
allow platform_app proc_stat:file { read };
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
#!./extract-files.py --regenerate_makefiles
|
||||
@@ -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"],
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright (C) 2023 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
void _ZN7android18BnProducerListener16onBufferDetachedEi() {
|
||||
return;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
# Google Lens
|
||||
ro.com.google.lens.oem_camera_package=com.android.camera
|
||||
|
||||
# Framework allowlists
|
||||
persist.vendor.camera.privapp.list=org.codeaurora.snapcam,com.android.camera,org.lineageos.snap,org.lineageos.aperture
|
||||
|
||||
# MiuiCamera
|
||||
ro.miui.notch=1
|
||||
ro.miui.support.cta=0
|
||||
ro.miui.customized.region=
|
||||
ro.miui.region=Global
|
||||
ro.miui.build.region=global
|
||||
ro.miui.cust_variant=en
|
||||
ro.product.mod_device=dipper_global
|
||||
Reference in new issue
Block a user