Skip to content

Commit 2426da1

Browse files
add morphe-patcher-script
1 parent e0b24c9 commit 2426da1

File tree

9 files changed

+107
-2
lines changed

9 files changed

+107
-2
lines changed

morphe-patcher-script/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 LizenzFass78851
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

morphe-patcher-script/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# morphe-patcher-script
2+
Patch script to create the morphe apk including your own keystore to sign self-created updates to the apk
3+
4+
5+
- replace the "morphe-self-build.keystore" file with that of your own keystore and write the keystore's own password in the "morphe-self-build.password" file so that the script can use it with the keystore to sign the morphe apk
1010 KB
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# script.sh f
4+
forced=${1:-n}
5+
forcemark=""
6+
7+
if [ "$forced" = "f" ]; then
8+
forcemark="--force"
9+
fi
10+
11+
# youtube
12+
YOUTUBEAPKS="$(ls ./com.google.android.youtube*.apk)"
13+
14+
## patch apk
15+
for YOUTUBEAPK in ${YOUTUBEAPKS}; do
16+
echo patch $YOUTUBEAPK
17+
java \
18+
-jar $(ls ./morphe-cli*.jar) patch \
19+
--patches $(ls ./patches-*.mpp) \
20+
$forcemark \
21+
--disable "Swipe controls" \
22+
--disable "Hide autoplay button" \
23+
--disable "Always repeat" \
24+
--disable "Downloads" \
25+
--disable "Alternative thumbnails" \
26+
--enable "Custom branding" \
27+
--enable "Custom branding icon for YouTube" \
28+
--options=appIcon=afn_blue \
29+
--enable "Custom branding name for YouTube" \
30+
--out $(echo $YOUTUBEAPK)_youtube_morphe.apk \
31+
"$YOUTUBEAPK"
32+
33+
34+
## sign apk
35+
echo sign $YOUTUBEAPK
36+
java \
37+
-jar apksigner.jar sign \
38+
--ks "morphe-self-build.keystore" \
39+
--ks-pass pass:$(cat ./morphe-self-build.password.txt) \
40+
--out "$(echo $YOUTUBEAPK)_youtube_morphe_signed.apk" \
41+
"$(echo $YOUTUBEAPK)_youtube_morphe.apk"
42+
done
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
# script.sh f
4+
forced=${1:-n}
5+
forcemark=""
6+
7+
if [ "$forced" = "f" ]; then
8+
forcemark="--force"
9+
fi
10+
11+
# youtube
12+
## patch apk
13+
java \
14+
-jar $(ls ./morphe-cli*.jar) patch \
15+
--patches $(ls ./patches-*.mpp) \
16+
$forcemark \
17+
--disable "Swipe controls" \
18+
--disable "Hide autoplay button" \
19+
--disable "Always repeat" \
20+
--disable "Downloads" \
21+
--disable "Alternative thumbnails" \
22+
--enable "Custom branding" \
23+
--enable "Custom branding icon for YouTube" \
24+
--options=appIcon=afn_blue \
25+
--enable "Custom branding name for YouTube" \
26+
--out youtube_morphe.apk \
27+
"$(ls ./com.google.android.youtube*.apk)"
28+
29+
30+
## sign apk
31+
java \
32+
-jar apksigner.jar sign \
33+
--ks "morphe-self-build.keystore" \
34+
--ks-pass pass:$(cat ./morphe-self-build.password.txt) \
35+
--out "youtube_morphe_signed.apk" \
36+
"youtube_morphe.apk"
37+

morphe-patcher-script/morphe-self-build.keystore

Whitespace-only changes.

morphe-patcher-script/morphe-self-build.password.txt

Whitespace-only changes.

revanced-patcher-script/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## revanced-patcher-script
2-
- Patch script to create the revanced apk including your own keystore to sign self-created updates to the apk
1+
# revanced-patcher-script
2+
Patch script to create the revanced apk including your own keystore to sign self-created updates to the apk
33

44

55
- replace the "revanced-self-build.keystore" file with that of your own keystore and write the keystore's own password in the "revanced-self-build.password" file so that the script can use it with the keystore to sign the revanced apk
71.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)