camera: Switch to adaptive launcher icon

Adaptive icon is already present inside apk, just use that one.
Required for themed icon.
This commit is contained in:
Adithya R
2024-08-08 08:11:53 +05:30
committed by Fabian Leutenegger
parent 83dc0add9f
commit 882792d1d5
16 changed files with 5 additions and 21 deletions
+5
View File
@@ -64,7 +64,12 @@ function blob_fixup() {
system/priv-app/MiuiCamera/MiuiCamera.apk)
tmp_dir="${EXTRACT_TMP_DIR}/MiuiCamera"
$APKTOOL d -q "$2" -o "$tmp_dir" -f
echo " - Patching apk..."
# Use Google photos instead of MIUI gallery
grep -rl "com.miui.gallery" "$tmp_dir" | xargs sed -i 's|"com.miui.gallery"|"com.google.android.apps.photos"|g'
# Use the correct launcher icon
sed -i "s/ic_launcher_camera_cv/ic_launcher_camera/" "$tmp_dir/AndroidManifest.xml"
echo " - Rebuilding apk..."
$APKTOOL b -q "$tmp_dir" -o "$2"
rm -rf "$tmp_dir"
split --bytes=20M -d "$2" "$2".part
-1
View File
@@ -8,7 +8,6 @@ CAMERA_PACKAGE_NAME := com.android.camera
# Overlays
PRODUCT_PACKAGES += \
MiuiCameraOverlayIcon \
MiuiCameraOverlayLeicaed
# Permissions
-10
View File
@@ -1,10 +0,0 @@
//
// Copyright (C) 2023 Paranoid Android
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "MiuiCameraOverlayIcon",
product_specific: true,
}
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.camera.overlay.icon">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="com.android.camera" />
</manifest>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB