Compare commits

..

10 commits

Author SHA1 Message Date
DigiGoon
500f76350f camera: Remove LFS 2025-04-08 00:08:56 +00:00
Arian
946593174e Patch libcamera_algoup_jni.xiaomi.so to work with A15 QPR1 libgui
Commit [1] removed the `connect` function from `Surface` class, changing
the order of the functions. This causes the function `getANativeWindow`
to run `detachNextBuffer` instead of `connect`.

Before:
        0010923c 08 ad 40 f9     ldr        x8,[x8, #0x158]

After:
        0010923c 08 a9 40 f9     ldr        x8,[x8, #0x150]

[1] I8c4cc702726e12b169fc4fa0b158623d0a47913a

Also update blobs from V816.0.6.0.UKKMIXM

Signed-off-by: 1xtAsh <ashraykrsingh321@gmail.com>
2025-03-04 10:55:24 +05:30
1xtAsh
a88b0685d9 Override Gallery3D 2025-03-04 10:43:49 +05:30
1xtAsh
326294f4cf camera: Patch apk to change default gallery
Use Google Photos instead of MIUI Gallery.
2025-03-04 10:43:46 +05:30
1xtAsh
e87a6cc29d Change system default gallery 2025-03-04 10:43:45 +05:30
1xtAsh
277fc80c04 Drop Miui Gallery & VideoEditor 2025-03-04 10:43:45 +05:30
Alucard-Storm
adf164aa35 Override FossifyGallery 2024-06-19 20:08:21 +00:00
Alucard-Storm
1dbd6fe3b9 MlkitBarcode: Set apk as preprocessed to fix qpr2 compile error
error: Prebuilt, presigned apks with targetSdkVersion >= 30 (or a codename targetSdkVersion) must set preprocessed: true in the Android.bp definition (because they must be signed with signature v2, and the build system would wreck that signature otherwise)
2024-03-23 15:35:26 +00:00
Akshay Sagar
96b89c09f2 Override Glimpse 2024-02-20 16:45:38 +00:00
Alucard_Storm
525791eb8c Added HyperOS Gallery 3.7 and HyperOS Gallery Editor
source : https://t.me/llionsmods
2024-02-10 21:41:46 +05:30
17 changed files with 24 additions and 37 deletions

View file

@ -9,33 +9,10 @@ android_app_import {
name: "MiuiCamera",
owner: "xiaomi",
apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
overrides: ["GrapheneCamera", "Camera", "Camera2", "Flash", "Aperture"],
overrides: ["GrapheneCamera", "Camera", "Camera2", "Flash", "Aperture", "Glimpse", "FossifyGallery", "Gallery2", "Gallery3D"],
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}
android_app_import {
name: "MiuiGallery",
owner: "xiaomi",
apk: "proprietary/system/priv-app/MiuiGallery/MiuiGallery.apk",
overrides: ["Gallery2", "Photos"],
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}
android_app_import {
name: "MiuiVideoPlayer",
owner: "xiaomi",
apk: "proprietary/system/priv-app/MiuiVideoPlayer/MiuiVideoPlayer.apk",
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}

View file

@ -14,6 +14,4 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/haydn-miuicamera/common/proprietary/system/lib64/libSNPE.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libSNPE.so
PRODUCT_PACKAGES += \
MiuiCamera \
MiuiGallery \
MiuiVideoPlayer
MiuiCamera

Binary file not shown.

View file

@ -11,4 +11,9 @@
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
</privapp-permissions>
<privapp-permissions package="com.miui.mediaeditor">
<permission name="android.permission.WRITE_MEDIA_STORAGE" />
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
</privapp-permissions>
</permissions>

View file

@ -55,11 +55,15 @@ fi
function blob_fixup() {
case "${1}" in
system/lib64/libcamera_algoup_jni.xiaomi.so|system/lib64/libcamera_mianode_jni.xiaomi.so)
patchelf --add-needed libgui_shim_leicamera.so "${2}"
system/lib64/libcamera_mianode_jni.xiaomi.so)
"${PATCHELF}" --add-needed libgui_shim_leicamera.so "${2}"
;;
system/lib64/libcamera_algoup_jni.xiaomi.so)
"${PATCHELF}" --add-needed libgui_shim_leicamera.so "${2}"
sed -i "s/\x08\xad\x40\xf9/\x08\xa9\x40\xf9/" "${2}"
;;
system/lib64/libmicampostproc_client.so)
patchelf --remove-needed libhidltransport.so "${2}"
"${PATCHELF}" --remove-needed libhidltransport.so "${2}"
;;
esac
}

View file

@ -3,6 +3,7 @@ android_app_import {
owner: "google",
apk: "MlkitBarcodeUI.apk",
presigned: true,
preprocessed: true,
dex_preopt: {
enabled: false,
},
@ -21,6 +22,7 @@ android_app_import {
owner: "google",
apk: "VisionBarcode.apk",
presigned: true,
preprocessed: true,
dex_preopt: {
enabled: false,
},

Binary file not shown.

Binary file not shown.

View file

@ -17,5 +17,5 @@
<string name="config_defaultQrCodeComponent" translatable="false">com.google.android.gms/.mlkit.barcode.ui.PlatformBarcodeScanningActivityProxy</string>
<!-- The name of the package that will hold the system gallery role. -->
<string name="config_systemGallery" translatable="false">com.miui.gallery</string>
<string name="config_systemGallery" translatable="false">com.google.android.apps.photos</string>
</resources>

View file

@ -1,11 +1,9 @@
# All unpinned blobs below are extracted from miui_HAYDNGlobal_V14.0.3.0.TKKMIXM
product/priv-app/MiuiCamera/MiuiCamera.apk:system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=GrapheneCamera,Camera,Camera2,Flash,Aperture|1eb82ca99df9a4442133cdc6573491b8ca092740
system/priv-app/MiuiGallery/MiuiGallery.apk;OVERRIDES=Gallery2,Photos
system/priv-app/MiuiVideoPlayer/MiuiVideoPlayer.apk
system/lib64/libcamera_algoup_jni.xiaomi.so
system/lib64/libcamera_mianode_jni.xiaomi.so
system/lib64/libmicampostproc_client.so
system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
system_ext/lib64/libcamera_algoup_jni.xiaomi.so:system/lib64/libcamera_algoup_jni.xiaomi.so
system_ext/lib64/libcamera_mianode_jni.xiaomi.so:system/lib64/libcamera_mianode_jni.xiaomi.so
system_ext/lib64/libmicampostproc_client.so:system/lib64/libmicampostproc_client.so
system_ext/lib64/vendor.xiaomi.hardware.campostproc@1.0.so:system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
vendor/lib64/libSNPE.so:system/lib64/libSNPE.so
system_ext/lib64/libopencl-camera.so:system/lib64/libOpenCL.so