added youtube lite version

- Split APKs no longer use the Revanced CLI to split; they are now directly patched from split APKs created with APKEditor. This means a smaller APK file size.
- The added lite version is a version with unnecessary features removed. For example, it might only have an English interface and remove unused screen DPI from split APKs.
- Improve workflow
This commit is contained in:
Fioren
2024-10-27 21:12:30 +07:00
parent feb192f825
commit 5c08015e38
21 changed files with 481 additions and 394 deletions

View File

@@ -9,25 +9,25 @@ revanced_dl(){
revanced_dl
# Patch YouTube:
get_patches_key "youtube-revanced"
get_apk "com.google.android.youtube" "youtube" "youtube" "google-inc/youtube/youtube"
get_apk "com.google.android.youtube" "youtube" "youtube" "google-inc/youtube/youtube" "Bundle_extract"
split_editor "youtube" "youtube"
patch "youtube" "revanced"
# Patch YouTube Music:
# Arm64-v8a
get_patches_key "youtube-music-revanced"
get_apk "com.google.android.apps.youtube.music" "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "revanced"
# Armeabi-v7a
get_patches_key "youtube-music-revanced"
get_apk "com.google.android.apps.youtube.music" "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "revanced"
# Split architecture:
rm -f revanced-cli* revanced-patches*.jar *.json
dl_gh "revanced-cli" "inotia00" "latest"
dl_gh "revanced-patches" "inotia00" "latest"
# Split architecture Youtube:
for i in {0..3}; do
split_arch "youtube-revanced" "youtube-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
done
# Patch Youtube Arm64-v8a
get_patches_key "youtube-revanced"
split_editor "youtube" "youtube-arm64-v8a" "exclude" "split_config.armeabi_v7a split_config.x86 split_config.x86_64"
patch "youtube-arm64-v8a" "revanced"
# Patch Youtube Armeabi-v7a
get_patches_key "youtube-revanced"
split_editor "youtube" "youtube-armeabi-v7a" "exclude" "split_config.arm64_v8a split_config.x86 split_config.x86_64"
patch "youtube-armeabi-v7a" "revanced"
# Patch Youtube x86
get_patches_key "youtube-revanced"
split_editor "youtube" "youtube-x86" "exclude" "split_config.arm64_v8a split_config.armeabi_v7a split_config.x86_64"
patch "youtube-x86" "revanced"
# Patch Youtube x86_64
get_patches_key "youtube-revanced"
split_editor "youtube" "youtube-x86_64" "exclude" "split_config.arm64_v8a split_config.armeabi_v7a split_config.x86"
patch "youtube-x86_64" "revanced"
}
2() {
revanced_dl
@@ -53,7 +53,6 @@ revanced_dl(){
patch "gg-photos-arm64-v8a" "revanced"
# Armeabi-v7a
get_patches_key "gg-photos"
version="6.94.0.662644291"
get_apk "com.google.android.apps.photos" "gg-photos-armeabi-v7a" "photos" "google-inc/photos/photos" "armeabi-v7a" "nodpi"
patch "gg-photos-armeabi-v7a" "revanced"
}
@@ -102,6 +101,29 @@ revanced_dl(){
get_apk "com.adobe.lrmobile" "lightroom" "lightroom" "adobe/lightroom/lightroom" "Bundle"
patch "lightroom" "revanced"
}
8() {
revanced_dl
get_apk "com.google.android.youtube" "youtube-lite" "youtube" "google-inc/youtube/youtube" "Bundle_extract"
# Patch YouTube Lite Arm64-v8a:
get_patches_key "youtube-revanced"
split_editor "youtube-lite" "youtube-lite-arm64-v8a" "include" "split_config.arm64_v8a split_config.en split_config.xxxhdpi"
patch "youtube-lite-arm64-v8a" "revanced"
# Patch YouTube Lite Armeabi-v7a:
get_patches_key "youtube-revanced"
split_editor "youtube-lite" "youtube-lite-armeabi-v7a" "include" "split_config.armeabi_v7a split_config.en split_config.xxxhdpi"
patch "youtube-lite-armeabi-v7a" "revanced"
}
9() {
# Patch YouTube Music:
# Arm64-v8a
get_patches_key "youtube-music-revanced"
get_apk "com.google.android.apps.youtube.music" "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "revanced"
# Armeabi-v7a
get_patches_key "youtube-music-revanced"
get_apk "com.google.android.apps.youtube.music" "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "revanced"
}
case "$1" in
1)
1
@@ -124,4 +146,10 @@ case "$1" in
7)
7
;;
8)
8
;;
9)
9
;;
esac