This commit is contained in:
Fioren
2023-05-26 00:42:18 +07:00
parent 22aae5acdf
commit 912d9cd1a5
6 changed files with 176 additions and 169 deletions

View File

@@ -1,8 +1,8 @@
name: Patch name: Patch
on: on:
# push: # push:
schedule: # schedule:
- cron: "0 9 * * *" # - cron: "0 9 * * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
patch1: patch1:

View File

@@ -30,9 +30,9 @@ All the code is open-source, clearly, and the APK files used for patching are do
Download Download
</h1> </h1>
## [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.youtube) [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge&logo=YouTube&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.youtube)
## Revanced: ### Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced.apk)
@@ -44,7 +44,7 @@ Download
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced.apk) [x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced.apk)
## Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225) ### Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225)
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended.apk)
@@ -56,7 +56,7 @@ Download
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced-extended.apk) [x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced-extended.apk)
## Revanced Extended For Android 6 & 7: ### Revanced Extended For Android 6 & 7:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended-android-6-7.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended-android-6-7.apk)
@@ -70,19 +70,15 @@ Download
--- ---
## [![YouTube Music](https://img.shields.io/badge/YouTube_Music-FF0000?style=for-the-badge&logo=youtube-music&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.apps.youtube.music) [![YouTube Music](https://img.shields.io/badge/YouTube_Music-FF0000?style=for-the-badge&logo=youtube-music&logoColor=white)](https://play.google.com/store/apps/details?id=com.google.android.apps.youtube.music)
## Revanced: ### Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-revanced.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-arm64-v8a-revanced.apk) [Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-arm64-v8a-revanced.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-armeabi-v7a-revanced.apk) [Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-armeabi-v7a-revanced.apk)
## Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225) ### Revanced Extended: [Support dropped on 14/05/2023](https://t.me/revanced_extended/225)
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-revanced-extended.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-arm64-v8a-revanced-extended.apk) [Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-arm64-v8a-revanced-extended.apk)
@@ -105,18 +101,12 @@ Download
[![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://play.google.com/store/apps/details?id=com.twitter.android) [![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=for-the-badge&logo=Twitter&logoColor=white)](https://play.google.com/store/apps/details?id=com.twitter.android)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/twitter-revanced.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/twitter-revanced.apk)
--- ---
[![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white)](https://play.google.com/store/apps/details?id=com.instagram.android) [![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white)](https://play.google.com/store/apps/details?id=com.instagram.android)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-revanced.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-arm64-v8a-revanced.apk) [Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-arm64-v8a-revanced.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-armeabi-v7a-revanced.apk) [Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/instagram-armeabi-v7a-revanced.apk)
@@ -125,10 +115,6 @@ Download
[![Messenger](https://img.shields.io/badge/Messenger-00B2FF?style=for-the-badge&logo=messenger&logoColor=white)](https://play.google.com/store/apps/details?id=com.facebook.orca) [![Messenger](https://img.shields.io/badge/Messenger-00B2FF?style=for-the-badge&logo=messenger&logoColor=white)](https://play.google.com/store/apps/details?id=com.facebook.orca)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-revanced.apk)
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-arm64-v8a-revanced.apk) [Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-arm64-v8a-revanced.apk)
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-armeabi-v7a-revanced.apk) [Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/messenger-armeabi-v7a-revanced.apk)
@@ -137,28 +123,26 @@ Download
[![TikTok](https://img.shields.io/badge/TikTok-%23000000.svg?style=for-the-badge&logo=TikTok&logoColor=white)](https://play.google.com/store/apps/details?id=com.ss.android.ugc.trill) [![TikTok](https://img.shields.io/badge/TikTok-%23000000.svg?style=for-the-badge&logo=TikTok&logoColor=white)](https://play.google.com/store/apps/details?id=com.ss.android.ugc.trill)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/tiktok-revanced.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/tiktok-revanced.apk)
--- ---
[![Twitch](https://img.shields.io/badge/Twitch-%239146FF.svg?style=for-the-badge&logo=Twitch&logoColor=white)](https://play.google.com/store/apps/details?id=tv.twitch.android.app) [![Twitch](https://img.shields.io/badge/Twitch-%239146FF.svg?style=for-the-badge&logo=Twitch&logoColor=white)](https://play.google.com/store/apps/details?id=tv.twitch.android.app)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/twitch-revanced.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/twitch-revanced.apk)
--- ---
[![Reddit](https://img.shields.io/badge/Reddit-%23FF4500.svg?style=for-the-badge&logo=Reddit&logoColor=white)](https://play.google.com/store/apps/details?id=com.reddit.frontpage) [![Reddit](https://img.shields.io/badge/Reddit-%23FF4500.svg?style=for-the-badge&logo=Reddit&logoColor=white)](https://play.google.com/store/apps/details?id=com.reddit.frontpage)
## Revanced:
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced.apk) [All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/reddit-revanced.apk)
--- ---
### [Windy:](https://play.google.com/store/apps/details?id=co.windyapp.android)
[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/windy-revanced.apk)
# ⚠️ License: # ⚠️ License:
[@luxysiv](https://github.com/luxysiv/yt-revanced-nonroot) - [GPL-3.0](https://github.com/luxysiv/revanced-nonroot/blob/main/LICENSE) [@luxysiv](https://github.com/luxysiv/yt-revanced-nonroot) - [GPL-3.0](https://github.com/luxysiv/revanced-nonroot/blob/main/LICENSE)
@@ -185,6 +169,4 @@ Download
[Revanced Extended for Android 6 & 7 Integrations](https://github.com/kitadai31/revanced-integrations) - [GPL-3.0](https://github.com/kitadai31/revanced-integrations/blob/revanced-extended/LICENSE) [Revanced Extended for Android 6 & 7 Integrations](https://github.com/kitadai31/revanced-integrations) - [GPL-3.0](https://github.com/kitadai31/revanced-integrations/blob/revanced-extended/LICENSE)
[APKEditor](https://github.com/REAndroid/APKEditor) - [Apache-2.0](https://github.com/REAndroid/APKEditor/blob/master/LICENSE)
[Revanced CLI - j-hc](https://github.com/j-hc/revanced-cli) - [GPL-3.0](https://github.com/j-hc/revanced-cli/blob/main/LICENSE) [Revanced CLI - j-hc](https://github.com/j-hc/revanced-cli) - [GPL-3.0](https://github.com/j-hc/revanced-cli/blob/main/LICENSE)

View File

@@ -16,9 +16,13 @@ exit 0
else else
rm -f *.txt rm -f *.txt
#################################################
dl_gh "revanced-patches-android6-7 revanced-integrations" "kitadai31" "latest" dl_gh "revanced-patches-android6-7 revanced-integrations" "kitadai31" "latest"
dl_gh "revanced-cli" "inotia00" "latest" dl_gh "revanced-cli" "inotia00" "latest"
#################################################
# Patch YouTube Extended: # Patch YouTube Extended:
get_patches_key "youtube-revanced-extended-6-7" get_patches_key "youtube-revanced-extended-6-7"
version="17.34.36" version="17.34.36"
@@ -26,6 +30,8 @@ version="17.34.36"
get_apk "youtube" "youtube" "google-inc/youtube/youtube" get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "youtube-revanced-extended-android-6-7" patch "youtube" "youtube-revanced-extended-android-6-7"
#################################################
# Split architecture: # Split architecture:
rm -f revanced-cli* rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest" dl_gh "revanced-cli" "j-hc" "latest"
@@ -34,5 +40,7 @@ for i in {0..3}; do
split_arch "youtube-revanced-extended-android-6-7" "youtube-${archs[i]}-revanced-extended-android-6-7" "$(gen_rip_libs ${libs[i]})" split_arch "youtube-revanced-extended-android-6-7" "youtube-${archs[i]}-revanced-extended-android-6-7" "$(gen_rip_libs ${libs[i]})"
done done
#################################################
ls revanced-patches*.jar >> revanced-extended-android-6-7-version.txt ls revanced-patches*.jar >> revanced-extended-android-6-7-version.txt
fi fi

View File

@@ -16,17 +16,25 @@ exit 0
else else
rm -f *.txt rm -f *.txt
#################################################
dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest" dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
#################################################
# Patch YouTube Music Extended: # Patch YouTube Music Extended:
# Arm64-v8a
get_patches_key "youtube-music-revanced-extended" get_patches_key "youtube-music-revanced-extended"
version="6.01.55" version="6.01.55"
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a" get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "youtube-music/youtube-music-arm64-v8a-revanced-extended" patch "youtube-music-arm64-v8a" "youtube-music-arm64-v8a-revanced-extended"
# Armeabi-v7a
get_patches_key "youtube-music-revanced-extended" get_patches_key "youtube-music-revanced-extended"
version="6.01.55" version="6.01.55"
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a" get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "youtube-music/youtube-music-armeabi-v7a-revanced-extended" patch "youtube-music-armeabi-v7a" "youtube-music-armeabi-v7a-revanced-extended"
#################################################
# Patch YouTube Extended: # Patch YouTube Extended:
get_patches_key "youtube-revanced-extended" get_patches_key "youtube-revanced-extended"
@@ -35,7 +43,9 @@ version="18.17.43"
get_apk "youtube" "youtube" "google-inc/youtube/youtube" get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "youtube-revanced-extended" patch "youtube" "youtube-revanced-extended"
# Split architecture Youtube: #################################################
# Split architecture:
rm -f revanced-cli* rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest" dl_gh "revanced-cli" "j-hc" "latest"
# Split architecture Youtube: # Split architecture Youtube:
@@ -43,10 +53,7 @@ for i in {0..3}; do
split_arch "youtube-revanced-extended" "youtube-${archs[i]}-revanced-extended" "$(gen_rip_libs ${libs[i]})" split_arch "youtube-revanced-extended" "youtube-${archs[i]}-revanced-extended" "$(gen_rip_libs ${libs[i]})"
done done
# Merge architecture: #################################################
dl_gh "APKEditor" "REAndroid" "latest"
# Merge architecture YouTube Music:
merge_arch "youtube-music" "revanced-extended"
ls revanced-patches*.jar >> revanced-extended-version.txt ls revanced-patches*.jar >> revanced-extended-version.txt
fi fi

View File

@@ -16,35 +16,51 @@ exit 0
else else
rm -f *.txt rm -f *.txt
#################################################
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest" dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
#################################################
# Patch Instagram: # Patch Instagram:
# Arm64-v8a
get_patches_key "instagram" get_patches_key "instagram"
version="271.1.0.21.84" version="271.1.0.21.84"
get_apk "instagram-arm64-v8a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "arm64-v8a" get_apk "instagram-arm64-v8a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "arm64-v8a"
patch "instagram-arm64-v8a" "instagram/instagram-arm64-v8a-revanced" patch "instagram-arm64-v8a" "instagram-arm64-v8a-revanced"
# Armeabi-v7a
get_patches_key "instagram" get_patches_key "instagram"
version="271.1.0.21.84" version="271.1.0.21.84"
get_apk "instagram-armeabi-v7a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "armeabi-v7a" get_apk "instagram-armeabi-v7a" "instagram-instagram" "instagram/instagram-instagram/instagram-instagram" "armeabi-v7a"
patch "instagram-armeabi-v7a" "instagram/instagram-armeabi-v7a-revanced" patch "instagram-armeabi-v7a" "instagram-armeabi-v7a-revanced"
#################################################
# Patch Messenger: # Patch Messenger:
# Arm64-v8a
get_patches_key "messenger" get_patches_key "messenger"
get_apk "messenger-arm64-v8a" "messenger" "facebook-2/messenger/messenger" "arm64-v8a" get_apk "messenger-arm64-v8a" "messenger" "facebook-2/messenger/messenger" "arm64-v8a"
patch "messenger-arm64-v8a" "messenger/messenger-arm64-v8a-revanced" patch "messenger-arm64-v8a" "messenger-arm64-v8a-revanced"
# Armeabi-v7a
get_patches_key "messenger" get_patches_key "messenger"
get_apk "messenger-armeabi-v7a" "messenger" "facebook-2/messenger/messenger" "armeabi-v7a" get_apk "messenger-armeabi-v7a" "messenger" "facebook-2/messenger/messenger" "armeabi-v7a"
patch "messenger-armeabi-v7a" "messenger/messenger-armeabi-v7a-revanced" patch "messenger-armeabi-v7a" "messenger-armeabi-v7a-revanced"
#################################################
# Patch YouTube Music: # Patch YouTube Music:
# Arm64-v8a
get_patches_key "youtube-music-revanced" get_patches_key "youtube-music-revanced"
get_ver "hide-get-premium" "com.google.android.apps.youtube.music" get_ver "hide-get-premium" "com.google.android.apps.youtube.music"
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a" get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "youtube-music/youtube-music-arm64-v8a-revanced" patch "youtube-music-arm64-v8a" "youtube-music-arm64-v8a-revanced"
# Armeabi-v7a
get_ver "hide-get-premium" "com.google.android.apps.youtube.music" get_ver "hide-get-premium" "com.google.android.apps.youtube.music"
get_patches_key "youtube-music-revanced" get_patches_key "youtube-music-revanced"
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a" get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "youtube-music/youtube-music-armeabi-v7a-revanced" patch "youtube-music-armeabi-v7a" "youtube-music-armeabi-v7a-revanced"
#################################################
# Patch YouTube: # Patch YouTube:
get_patches_key "youtube-revanced" get_patches_key "youtube-revanced"
@@ -52,17 +68,15 @@ get_ver "video-ads" "com.google.android.youtube"
get_apk "youtube" "youtube" "google-inc/youtube/youtube" get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "youtube-revanced" patch "youtube" "youtube-revanced"
#################################################
# Patch Twitter: # Patch Twitter:
get_patches_key "twitter" get_patches_key "twitter"
version="9.86.0-release.0" version="9.86.0-release.0"
get_apk "twitter" "twitter" "twitter-inc/twitter/twitter" get_apk "twitter" "twitter" "twitter-inc/twitter/twitter"
patch "twitter" "twitter-revanced" patch "twitter" "twitter-revanced"
# Patch Reddit: #################################################
get_patches_key "reddit"
get_ver "general-reddit-ads" "com.reddit.frontpage"
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
patch "reddit" "reddit-revanced"
# Patch Twitch: # Patch Twitch:
get_patches_key "twitch" get_patches_key "twitch"
@@ -70,11 +84,22 @@ get_ver "block-video-ads" "tv.twitch.android.app"
get_apk "twitch" "twitch" "twitch-interactive-inc/twitch/twitch" get_apk "twitch" "twitch" "twitch-interactive-inc/twitch/twitch"
patch "twitch" "twitch-revanced" patch "twitch" "twitch-revanced"
#################################################
# Patch Reddit:
get_patches_key "reddit"
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
patch "reddit" "reddit-revanced"
#################################################
# Patch Windy: # Patch Windy:
get_patches_key "windy" get_patches_key "windy"
get_apk "windy" "windy-wind-weather-forecast" "windy-weather-world-inc/windy-wind-weather-forecast/windy-wind-weather-forecast" get_apk "windy" "windy-wind-weather-forecast" "windy-weather-world-inc/windy-wind-weather-forecast/windy-wind-weather-forecast"
patch "windy" "windy-revanced" patch "windy" "windy-revanced"
#################################################
# Patch Tiktok: # Patch Tiktok:
rm -f patches*.json revanced-patches*.jar revanced-integrations*.apk revanced-cli*.jar rm -f patches*.json revanced-patches*.jar revanced-integrations*.apk revanced-cli*.jar
dl_gh "revanced-patches" "revanced" "tags/v2.173.0" dl_gh "revanced-patches" "revanced" "tags/v2.173.0"
@@ -85,6 +110,8 @@ version="27.8.3"
get_apk "tiktok" "tik-tok-including-musical-ly" "tiktok-pte-ltd/tik-tok-including-musical-ly/tik-tok-including-musical-ly" get_apk "tiktok" "tik-tok-including-musical-ly" "tiktok-pte-ltd/tik-tok-including-musical-ly/tik-tok-including-musical-ly"
patch "tiktok" "tiktok-revanced" patch "tiktok" "tiktok-revanced"
#################################################
# Split architecture: # Split architecture:
rm -f revanced-cli* rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest" dl_gh "revanced-cli" "j-hc" "latest"
@@ -92,31 +119,8 @@ dl_gh "revanced-cli" "j-hc" "latest"
for i in {0..3}; do for i in {0..3}; do
split_arch "youtube-revanced" "youtube-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})" split_arch "youtube-revanced" "youtube-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
done done
# Split architecture Reddit:
#for i in 0 1; do
# split_arch "reddit-revanced" "reddit-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Split architecture Twitch:
#for i in 0 1; do
# split_arch "twitch-revanced" "twitch-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Split architecture Tiktok:
#for i in 0 1; do
# split_arch "tiktok-revanced" "tiktok-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Split architecture Twitter:
#for i in 0 1; do
# split_arch "twitter-revanced" "twitter-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
#done
# Merge architecture: #################################################
dl_gh "APKEditor" "REAndroid" "latest"
# Merge architecture Messenger:
merge_arch "messenger" "revanced"
# Merge architecture Instagram:
merge_arch "instagram" "revanced"
# Merge architecture YouTube Music:
merge_arch "youtube-music" "revanced"
ls revanced-patches*.jar >> revanced-version.txt ls revanced-patches*.jar >> revanced-version.txt
fi fi

View File

@@ -1,127 +1,133 @@
#!/bin/bash #!/bin/bash
#################################################
dl_gh() { dl_gh() {
for repo in $1 ; do for repo in $1 ; do
wget -qO- "https://api.github.com/repos/$2/$repo/releases/$3" \ wget -qO- "https://api.github.com/repos/$2/$repo/releases/$3" \
| jq -r '.assets[] | "\(.browser_download_url) \(.name)"' \ | jq -r '.assets[] | "\(.browser_download_url) \(.name)"' \
| while read -r url names; do | while read -r url names; do
echo "Downloading $names from $url" echo "Downloading $names from $url"
wget -q -O "$names" $url wget -q -O "$names" $url
done done
done done
echo "All assets downloaded" echo "All assets downloaded"
} }
#################################################
get_patches_key() { get_patches_key() {
EXCLUDE_PATCHES=() EXCLUDE_PATCHES=()
for word in $(cat src/patches/$1/exclude-patches) ; do for word in $(cat src/patches/$1/exclude-patches) ; do
EXCLUDE_PATCHES+=("-e $word") EXCLUDE_PATCHES+=("-e $word")
done done
INCLUDE_PATCHES=() INCLUDE_PATCHES=()
for word in $(cat src/patches/$1/include-patches) ; do for word in $(cat src/patches/$1/include-patches) ; do
INCLUDE_PATCHES+=("-i $word") INCLUDE_PATCHES+=("-i $word")
done done
} }
#################################################
get_ver() {
version=$(jq -r --arg patch_name "$1" --arg pkg_name "$2" '
.[]
| select(.name == $patch_name)
| .compatiblePackages[]
| select(.name == $pkg_name)
| .versions[-1]
' patches.json)
}
#################################################
req() { req() {
wget -nv -O "$2" -U "Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0" "$1" wget -nv -O "$2" -U "Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0" "$1"
} }
get_apk_vers() { get_apk_vers() {
req "$1" - | sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p' req "$1" - | sed -n 's;.*Version:</span><span class="infoSlide-value">\(.*\) </span>.*;\1;p'
} }
get_largest_ver() { get_largest_ver() {
local max=0 local max=0
while read -r v || [ -n "$v" ]; do while read -r v || [ -n "$v" ]; do
if [[ ${v//[!0-9]/} -gt ${max//[!0-9]/} ]]; then max=$v; fi if [[ ${v//[!0-9]/} -gt ${max//[!0-9]/} ]]; then max=$v; fi
done done
if [[ $max = 0 ]]; then echo ""; else echo "$max"; fi if [[ $max = 0 ]]; then echo ""; else echo "$max"; fi
} }
dl_apk() { dl_apk() {
local url=$1 regexp=$2 output=$3 local url=$1 regexp=$2 output=$3
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n "s/href=\"/@/g; s;.*${regexp}.*;\1;p")" url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n "s/href=\"/@/g; s;.*${regexp}.*;\1;p")"
echo "$url" echo "$url"
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')" url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')" url="https://www.apkmirror.com$(req "$url" - | tr '\n' ' ' | sed -n 's;.*href="\(.*key=[^"]*\)">.*;\1;p')"
req "$url" "$output" req "$url" "$output"
} }
get_apk() { get_apk() {
if [[ -z $4 ]]; then if [[ -z $4 ]]; then
url_regexp='APK</span>[^@]*@\([^#]*\)' url_regexp='APK</span>[^@]*@\([^#]*\)'
else else
case $4 in case $4 in
arm64-v8a) url_regexp='arm64-v8a</div>[^@]*@\([^"]*\)' ;; arm64-v8a) url_regexp='arm64-v8a</div>[^@]*@\([^"]*\)' ;;
armeabi-v7a) url_regexp='armeabi-v7a</div>[^@]*@\([^"]*\)' ;; armeabi-v7a) url_regexp='armeabi-v7a</div>[^@]*@\([^"]*\)' ;;
x86) url_regexp='x86</div>[^@]*@\([^"]*\)' ;; x86) url_regexp='x86</div>[^@]*@\([^"]*\)' ;;
x86_64) url_regexp='x86_64</div>[^@]*@\([^"]*\)' ;; x86_64) url_regexp='x86_64</div>[^@]*@\([^"]*\)' ;;
*) return 1 ;; *) return 1 ;;
esac esac
fi fi
export version="$version" export version="$version"
if [[ -z $version ]]; then if [[ -z $version ]]; then
version=${version:-$(get_apk_vers "https://www.apkmirror.com/uploads/?appcategory=$2" | get_largest_ver)} version=${version:-$(get_apk_vers "https://www.apkmirror.com/uploads/?appcategory=$2" | get_largest_ver)}
fi fi
local base_apk="$1.apk" local base_apk="$1.apk"
local dl_url=$(dl_apk "https://www.apkmirror.com/apk/$3-${version//./-}-release/" \ local dl_url=$(dl_apk "https://www.apkmirror.com/apk/$3-${version//./-}-release/" \
"$url_regexp" \ "$url_regexp" \
"$base_apk") "$base_apk")
} }
get_ver() { #################################################
version=$(jq -r --arg patch_name "$1" --arg pkg_name "$2" '
.[]
| select(.name == $patch_name)
| .compatiblePackages[]
| select(.name == $pkg_name)
| .versions[-1]
' patches.json)
}
patch() { patch() {
if [ -f "$1.apk" ]; then if [ -f "$1.apk" ]; then
java -jar revanced-cli*.jar \ java -jar revanced-cli*.jar \
-m revanced-integrations*.apk \ -m revanced-integrations*.apk \
-b revanced-patches*.jar \ -b revanced-patches*.jar \
-a $1.apk \ -a $1.apk \
${EXCLUDE_PATCHES[@]} \ ${EXCLUDE_PATCHES[@]} \
${INCLUDE_PATCHES[@]} \ ${INCLUDE_PATCHES[@]} \
--keystore=./src/ks.keystore \ --keystore=./src/ks.keystore \
-o ./build/$2.apk -o ./build/$2.apk
if grep -q "/" <<< "$2"; then unset version
local name=$(basename “$2) unset EXCLUDE_PATCHES
cp ./build/$2.apk ./build/$name.apk unset INCLUDE_PATCHES
fi else
unset version exit 1
unset EXCLUDE_PATCHES fi
unset INCLUDE_PATCHES
else
exit 1
fi
} }
merge_arch() { #################################################
java -jar APKEditor*.jar m \
-i ./build/$1
mv -i ./build/"$1"_merged.apk ./build/"$1"-"$2".apk
}
archs=("arm64-v8a" "armeabi-v7a" "x86_64" "x86") archs=("arm64-v8a" "armeabi-v7a" "x86_64" "x86")
libs=("x86_64 x86 armeabi-v7a" "x86_64 x86 arm64-v8a" "x86 armeabi-v7a arm64-v8a" "x86_64 armeabi-v7a arm64-v8a") libs=("x86_64 x86 armeabi-v7a" "x86_64 x86 arm64-v8a" "x86 armeabi-v7a arm64-v8a" "x86_64 armeabi-v7a arm64-v8a")
gen_rip_libs() { gen_rip_libs() {
for lib in $@; do for lib in $@; do
echo -n "--rip-lib $lib " echo -n "--rip-lib $lib "
done done
} }
split_arch() { split_arch() {
if [ -f "./build/$1.apk" ]; then if [ -f "./build/$1.apk" ]; then
java -jar revanced-cli*.jar \ java -jar revanced-cli*.jar \
-b revanced-patches*.jar \ -b revanced-patches*.jar \
-a ./build/$1.apk \ -a ./build/$1.apk \
--keystore=./src/ks.keystore \ --keystore=./src/ks.keystore \
$3 \ $3 \
-o ./build/$2.apk -o ./build/$2.apk
else else
exit 1 exit 1
fi fi
} }
#################################################