-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c682c56
commit 88f6564
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/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 \ | ||
--patches $(ls ./patches-*.rvp) \ | ||
$forcemark \ | ||
--disable "Swipe controls" \ | ||
--disable "Hide autoplay button" \ | ||
--disable "Always autorepeat" \ | ||
--disable "Downloads" \ | ||
--disable "Alternative thumbnails" \ | ||
--out $(echo $YOUTUBEAPK)_youtube_revanced.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 \ | ||
--patches $(ls ./patches-*.rvp) \ | ||
$forcemark \ | ||
--disable "Show deleted messages" \ | ||
--out $(echo $TWITCHAPK)_twitch_revanced.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
|
||
# script.sh f | ||
forced=${1:-n} | ||
forcemark="" | ||
|
||
if [ "$forced" = "f" ]; then | ||
forcemark="--force" | ||
fi | ||
|
||
# youtube | ||
## patch apk | ||
java \ | ||
-jar $(ls ./revanced-cli*.jar) patch \ | ||
--patches $(ls ./patches-*.rvp) \ | ||
$forcemark \ | ||
--disable "Swipe controls" \ | ||
--disable "Hide autoplay button" \ | ||
--disable "Always autorepeat" \ | ||
--disable "Downloads" \ | ||
--disable "Alternative thumbnails" \ | ||
--out youtube_revanced.apk \ | ||
"$(ls ./com.google.android.youtube*.apk)" | ||
|
||
|
||
## sign apk | ||
java \ | ||
-jar apksigner.jar sign \ | ||
--ks "revanced-self-build.keystore" \ | ||
--ks-pass pass:$(cat ./revanced-self-build.password.txt) \ | ||
--out "youtube_revanced_signed.apk" \ | ||
"youtube_revanced.apk" | ||
|
||
|
||
|
||
# twitch | ||
## patch apk | ||
java \ | ||
-jar $(ls ./revanced-cli*.jar) patch \ | ||
--patches $(ls ./patches-*.rvp) \ | ||
$forcemark \ | ||
--disable "Show deleted messages" \ | ||
--out twitch_revanced.apk \ | ||
"$(ls ./tv.twitch.android.app*.apk)" | ||
|
||
|
||
## sign apk | ||
java \ | ||
-jar apksigner.jar sign \ | ||
--ks "revanced-self-build.keystore" \ | ||
--ks-pass pass:$(cat ./revanced-self-build.password.txt) \ | ||
--out "twitch_revanced_signed.apk" \ | ||
"twitch_revanced.apk" | ||
|