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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user