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:
committed by
Fabian Leutenegger
parent
83dc0add9f
commit
882792d1d5
@@ -64,7 +64,12 @@ function blob_fixup() {
|
|||||||
system/priv-app/MiuiCamera/MiuiCamera.apk)
|
system/priv-app/MiuiCamera/MiuiCamera.apk)
|
||||||
tmp_dir="${EXTRACT_TMP_DIR}/MiuiCamera"
|
tmp_dir="${EXTRACT_TMP_DIR}/MiuiCamera"
|
||||||
$APKTOOL d -q "$2" -o "$tmp_dir" -f
|
$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'
|
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"
|
$APKTOOL b -q "$tmp_dir" -o "$2"
|
||||||
rm -rf "$tmp_dir"
|
rm -rf "$tmp_dir"
|
||||||
split --bytes=20M -d "$2" "$2".part
|
split --bytes=20M -d "$2" "$2".part
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ CAMERA_PACKAGE_NAME := com.android.camera
|
|||||||
|
|
||||||
# Overlays
|
# Overlays
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
MiuiCameraOverlayIcon \
|
|
||||||
MiuiCameraOverlayLeicaed
|
MiuiCameraOverlayLeicaed
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
|
|||||||
@@ -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 |
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.
Reference in New Issue
Block a user