Skip to content

Commit

Permalink
patch youtube app from magisk mirror
Browse files Browse the repository at this point in the history
this prevents repatching an already patched app on reinstall
  • Loading branch information
programminghoch10 committed Jun 17, 2023
1 parent 18c3d81 commit 25f4832
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magiskmodule/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ ui_print "- Found YouTube $installedyoutubeversion"
youtubeapkpath=$(pm path "$YOUTUBE_PACKAGE" | grep -E 'package:.*/base\.apk' | cut -d':' -f2)
ui_print "- Found YouTube APK at $youtubeapkpath"

MAGISKTMP="$(magisk --path)" || MAGISKTMP=/sbin
MIRROR="$MAGISKTMP"/.magisk/mirror
ui_print "- Found Magisk mirror at $MIRROR"
youtubeapkpath="$MIRROR"/"$youtubeapkpath"

ui_print "- Preparing Patching Process"

cp -v wrapper.apk patches.jar integrations.apk "$TMPDIR"
Expand Down

0 comments on commit 25f4832

Please sign in to comment.