miuicamera-surya: Initial commit
Change-Id: Ice15663a6672e74f365c61f436e10c16a736c4a6
This commit is contained in:
41 files changed
+833
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,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
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Copyright (C) 2024-2026 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
include vendor/xiaomi/miuicamera-surya/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-surya/device.mk)
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<config>
|
||||
<hidden-api-whitelisted-app package="com.android.camera" />
|
||||
</config>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="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" />
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
# 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
|
||||
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#!/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'),
|
||||
('vendor/lib64/hw/camera.qcom.so', 'vendor/lib64/libFaceDetectpp-0.5.2.so', 'vendor/lib64/libfacedet.so'): blob_fixup()
|
||||
.binary_regex_replace(b'libmegface.so', b'libfacedet.so')
|
||||
.binary_regex_replace(b'libMegviiFacepp-0.5.2.so', b'libFaceDetectpp-0.5.2.so')
|
||||
.binary_regex_replace(b'megviifacepp_0_5_2_model', b'facedetectpp_0_5_2_model'),
|
||||
} # 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()
|
||||
@@ -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,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
|
||||
|
||||
@@ -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,8 @@
|
||||
# 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
|
||||
vendor/etc/camera/megviifacepp_0_5_2_model:vendor/etc/camera/facedetectpp_0_5_2_model
|
||||
vendor/lib64/libMegviiFacepp-0.5.2.so:vendor/lib64/libFaceDetectpp-0.5.2.so;FIX_SONAME
|
||||
vendor/lib64/libmegface.so:vendor/lib64/libfacedet.so;FIX_SONAME
|
||||
Vendored
+61
@@ -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
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
binder_call(hal_camera_default, platform_app_36)
|
||||
dontaudit hal_camera_default default_prop:file read;
|
||||
Vendored
+3
@@ -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
|
||||
Vendored
+48
@@ -0,0 +1,48 @@
|
||||
hal_client_domain(platform_app, vendor_hal_camerapostproc_xiaomi)
|
||||
hal_client_domain(platform_app_36, vendor_hal_camerapostproc_xiaomi)
|
||||
|
||||
binder_use(platform_app)
|
||||
binder_use(platform_app_36)
|
||||
|
||||
binder_call(platform_app, hal_camera_default)
|
||||
binder_call(platform_app_36, hal_camera_default)
|
||||
|
||||
binder_call(platform_app, vendor_hal_camerapostproc_xiaomi)
|
||||
binder_call(platform_app_36, vendor_hal_camerapostproc_xiaomi)
|
||||
|
||||
allow platform_app vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
|
||||
allow platform_app_36 vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
|
||||
|
||||
allow platform_app vendor_hal_misys_hwservice:hwservice_manager find;
|
||||
allow platform_app_36 vendor_hal_misys_hwservice:hwservice_manager find;
|
||||
|
||||
allow platform_app adsprpcd_file:dir { open read search };
|
||||
allow platform_app_36 adsprpcd_file:dir { open read search };
|
||||
|
||||
allow platform_app vendor_xdsp_device:chr_file { ioctl open read write };
|
||||
allow platform_app_36 vendor_xdsp_device:chr_file { ioctl open read write };
|
||||
|
||||
allow platform_app vendor_qdsp_device:chr_file { ioctl open read write };
|
||||
allow platform_app_36 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_36 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_36 vendor_camera_data_file:file { getattr open read };
|
||||
|
||||
allow platform_app app_data_file:file execute;
|
||||
allow platform_app_36 app_data_file:file execute;
|
||||
|
||||
allow platform_app proc_stat:file { read };
|
||||
allow platform_app_36 proc_stat:file { read };
|
||||
|
||||
# Properties
|
||||
get_prop(platform_app, vendor_audio_prop)
|
||||
get_prop(platform_app_36, vendor_audio_prop)
|
||||
|
||||
get_prop(platform_app, vendor_display_prop)
|
||||
get_prop(platform_app_36, vendor_display_prop)
|
||||
|
||||
get_prop(platform_app, vendor_fp_prop)
|
||||
get_prop(platform_app_36, vendor_fp_prop)
|
||||
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;
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
//
|
||||
// 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,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libFaceDetectpp-0.5.2",
|
||||
owner: "xiaomi/miuicamera-surya",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib64/libFaceDetectpp-0.5.2.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libfacedet",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
"liblog",
|
||||
"libEGL",
|
||||
"libGLESv2",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libfacedet",
|
||||
owner: "xiaomi/miuicamera-surya",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib64/libfacedet.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libm",
|
||||
"liblog",
|
||||
"libdl",
|
||||
"libc",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
soc_specific: 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,
|
||||
}
|
||||
@@ -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
|
||||
#
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# Automatically generated file. DO NOT MODIFY
|
||||
#
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
vendor/xiaomi/miuicamera-surya/surya
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/xiaomi/miuicamera-surya/surya/proprietary/vendor/etc/camera/facedetectpp_0_5_2_model:$(TARGET_COPY_OUT_VENDOR)/etc/camera/facedetectpp_0_5_2_model
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libcamera_algoup_jni.xiaomi \
|
||||
libcamera_mianode_jni.xiaomi \
|
||||
libFaceDetectpp-0.5.2 \
|
||||
libfacedet \
|
||||
MiuiCamera
|
||||
@@ -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
|
||||
Reference in new issue
Block a user