-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrevanced-multipatcher-v4.sh
66 lines (55 loc) · 1.6 KB
/
revanced-multipatcher-v4.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
# script.sh f
forced=${1:-n}
forcemark=""
if [ "$forced" = "f" ]; then
forcemark="--force"
fi
# youtube
YOUTUBEAPKS="$(ls ./com.google.android.youtube*.apk)"
## patch apk
for YOUTUBEAPK in ${YOUTUBEAPKS}; do
echo patch $YOUTUBEAPK
java \
-jar $(ls ./revanced-cli*.jar) patch \
--patch-bundle $(ls ./revanced-patches*.jar) \
$forcemark \
--exclude "Swipe controls" \
--exclude "Hide autoplay button" \
--exclude "Always autorepeat" \
--exclude "Downloads" \
--exclude "Alternative thumbnails" \
--out $(echo $YOUTUBEAPK)_youtube_revanced.apk \
--merge $(ls ./revanced-integrations*.apk) \
"$YOUTUBEAPK"
## sign apk
echo sign $YOUTUBEAPK
java \
-jar apksigner.jar sign \
--ks "revanced-self-build.keystore" \
--ks-pass pass:$(cat ./revanced-self-build.password.txt) \
--out "$(echo $YOUTUBEAPK)_youtube_revanced_signed.apk" \
"$(echo $YOUTUBEAPK)_youtube_revanced.apk"
done
# twitch
TWITCHAPKS="$(ls ./tv.twitch.android.app*.apk)"
## patch apk
for TWITCHAPK in ${TWITCHAPKS}; do
echo patch $TWITCHAPK
java \
-jar $(ls ./revanced-cli*.jar) patch \
--patch-bundle $(ls ./revanced-patches*.jar) \
$forcemark \
--exclude "Show deleted messages" \
--out $(echo $TWITCHAPK)_twitch_revanced.apk \
--merge $(ls ./revanced-integrations*.apk) \
"$TWITCHAPK"
## sign apk
echo sign $TWITCHAPK
java \
-jar apksigner.jar sign \
--ks "revanced-self-build.keystore" \
--ks-pass pass:$(cat ./revanced-self-build.password.txt) \
--out "$(echo $TWITCHAPK)_twitch_revanced_signed.apk" \
"$(echo $TWITCHAPK)_twitch_revanced.apk"
done