Skip to content

Commit

Permalink
unica: patches: photoeditor: init
Browse files Browse the repository at this point in the history
Change-Id: I8ca1f48010edb4f939d689c1ae2506917203e30e
  • Loading branch information
salvogiangri committed Jun 16, 2024
1 parent 7dcb24b commit 07d0046
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/internal/update_prebuilt_blobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ case "$1" in
FW="SM-A736B/INS/352828291234563"
BLOBS="$(find "$SRC_DIR/unica/patches/nfc/system" -type f | sed "s.$SRC_DIR/unica/patches/nfc.system.")"
;;
"unica/patches/photoeditor")
MODULE="$1"
FW="SM-A736B/INS/352828291234563"
BLOBS="$(find "$SRC_DIR/unica/patches/photoeditor/system" -type f | sed "s.$SRC_DIR/unica/patches/photoeditor.system.")"
;;
"unica/patches/product_feature/fingerprint/optical_fod")
MODULE="$1"
FW="SM-X716B/EUX/353439961234567"
Expand Down
1 change: 1 addition & 0 deletions unica/patches/photoeditor/.current
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A736BXXS8EXE4/A736BODM8EXE4/A736BXXS8EXE4
10 changes: 10 additions & 0 deletions unica/patches/photoeditor/customize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SKIPUNZIP=1

TBF_TARGETS="a52q a71 a72q"

if echo "$TBF_TARGETS" | grep -q -w "$TARGET_CODENAME"; then
rm -rf "$WORK_DIR/system/system/priv-app/PhotoEditor_AIFull"
sed -i "s/PhotoEditor_AIFull/PhotoEditor_Full/g" "$WORK_DIR/configs/file_context-system"
sed -i "s/PhotoEditor_AIFull/PhotoEditor_Full/g" "$WORK_DIR/configs/fs_config-system"
cp -a --preserve=all "$SRC_DIR/unica/patches/photoeditor/system/"* "$WORK_DIR/system/system"
fi
4 changes: 4 additions & 0 deletions unica/patches/photoeditor/module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id=photoeditor
name=Non-AI Photo Editor app
author=BlackMesa123
description=TEMP: replace AI Photo Editor app for non-supported devices
Binary file not shown.

0 comments on commit 07d0046

Please sign in to comment.