Skip to content

Commit b2b4622

Browse files
fix custom branding for YouTube
1 parent 56b834d commit b2b4622

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

magiskmodule/customize.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,21 @@ patchAPK() {
8181

8282
ui_print "- Patching $packagename"
8383

84+
set --
85+
[ "$packagename" = com.google.android.youtube ] && \
86+
set -- "$@" \
87+
--enable='Custom branding' \
88+
--options=usePremiumHeading=false \
89+
--options=customName=YouTube \
90+
--options=customIcon="$MODPATH/logo"
91+
8492
export MODPATH
8593
"$MODPATH"/system/bin/revancedcli \
8694
patch \
8795
--patches="$MODPATH"/patches.rvp \
8896
--out=out.apk \
8997
--disable='GmsCore support' \
90-
--enable='Custom branding' \
91-
--options=usePremiumHeading=false \
92-
--options=appName=YouTube \
93-
--options=iconPath="$MODPATH/logo" \
98+
"$@" \
9499
--purge \
95100
app.apk \
96101
2>&1 || abort "Patching failed! $?"

0 commit comments

Comments
 (0)