diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f6efd8..71640af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,13 +52,28 @@ jobs: outputs: check_rve67: ${{ steps.check-rve67.outputs.new_patch }} + check-rve5: + name: Check new patch Revanced For Android 5 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Check new patch Revanced For Android 5 + id: check-rve5 + run: bash src/build/ci.sh d4n3436/revanced-patches-android5 youtube-revanced-extended-android-5.apk + env: + repository: ${{ github.repository }} + + outputs: + check_rve5: ${{ steps.check-rve5.outputs.new_patch }} + Patch-Revanced: name: Patch Revanced permissions: write-all needs: check-rv uses: ./.github/workflows/patch-revanced.yml if: ${{ needs.check-rv.outputs.check_rv == 1 }} - secrets: inherit Patch-Revanced-Extended: name: Patch Revanced Extended @@ -66,7 +81,6 @@ jobs: needs: check-rve uses: ./.github/workflows/patch-revanced-extended.yml if: ${{ needs.check-rve.outputs.check_rve == 1 }} - secrets: inherit Patch-Revanced-For-Android-6-7: name: Patch Revanced Extended For Android 6 & 7 @@ -74,4 +88,10 @@ jobs: needs: check-rve67 uses: ./.github/workflows/patch-revanced-extended-android-6-7.yml if: ${{ needs.check-rve67.outputs.check_rve67 == 1 }} - secrets: inherit \ No newline at end of file + + Patch-Revanced-For-Android-5: + name: Patch Revanced Extended For Android 5 + permissions: write-all + needs: check-rve5 + uses: ./.github/workflows/patch-revanced-extended-android-5.yml + if: ${{ needs.check-rve5.outputs.check_rve5 == 1 }} \ No newline at end of file diff --git a/.github/workflows/patch-revanced-extended-android-5.yml b/.github/workflows/patch-revanced-extended-android-5.yml new file mode 100644 index 0000000..60dfed2 --- /dev/null +++ b/.github/workflows/patch-revanced-extended-android-5.yml @@ -0,0 +1,40 @@ +name: Patch Revanced Extended Android 5 +on: + workflow_dispatch: + workflow_call: +jobs: + patch: + name: Patch Revanced Extended for Android 5 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up jdk + uses: actions/setup-java@v3.11.0 + with: + distribution: 'zulu' + java-version: '17' + + - name: Patch apk + run: bash src/build/Revanced-Extended-Android-5.sh + env: + repository: ${{ github.repository }} + + - name: Generate release info + run: | + echo " + **Change log** :point_down: + [Revanced](https://github.com/revanced/revanced-patches/releases/latest) + [Revanced Extended](https://github.com/inotia00/revanced-patches/releases/latest) + [Revanced Extended for Android 6 & 7](https://github.com/kitadai31/revanced-patches-android6-7/releases/latest) + "> ${{ github.workspace }}-CHANGELOG.txt + + - name: Release + uses: softprops/action-gh-release@v0.1.15 + with: + files: | + ./release/* + name: Revanced & Revanced Extended + tag_name: all + body_path: ${{ github.workspace }}-CHANGELOG.txt \ No newline at end of file diff --git a/README.md b/README.md index 9b46bba..59d1b9a 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,19 @@ Download [x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced-extended-android-6-7.apk) + +### [Revanced Extended For Android 5:](https://github.com/d4n3436/revanced-patches-android5) + +[All Architecture](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended-android-5.apk) + +[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-arm64-v8a-revanced-extended-android-5.apk) + +[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-armeabi-v7a-revanced-extended-android-5.apk) + +[x86](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86-revanced-extended-android-5.apk) + +[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-revanced-extended-android-5.apk) + --- [![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) @@ -222,6 +235,8 @@ Download [Revanced Extended for Android 6 & 7 Patches](https://github.com/kitadai31/revanced-patches-android6-7/tree/revanced-extended) - [GPL-3.0](https://github.com/kitadai31/revanced-patches-android6-7/blob/revanced-extended/LICENSE) +[Revanced Extended For Android 5 Patches](https://github.com/d4n3436/revanced-patches-android5) - [GPL-3.0](https://github.com/d4n3436/revanced-patches-android5/blob/revanced-extended/LICENSE) + [Markdown Badges](https://github.com/Ileriayo/markdown-badges) - [MIT](https://github.com/Ileriayo/markdown-badges/blob/master/LICENSE) [Revanced CLI](https://github.com/revanced/revanced-cli) - [GPL-3.0](https://github.com/revanced/revanced-cli/blob/main/LICENSE) @@ -234,4 +249,6 @@ 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 5 Integrations](https://github.com/d4n3436/revanced-integrations) - [GPL-3.0](https://github.com/d4n3436/revanced-integrations/blob/revanced-extended/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) diff --git a/src/build/Revanced-Extended-Android-5.sh b/src/build/Revanced-Extended-Android-5.sh new file mode 100644 index 0000000..d9bb877 --- /dev/null +++ b/src/build/Revanced-Extended-Android-5.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Revanced Extended for android 5 +source src/build/utils.sh + +################################################# + +# Download requirements +dl_gh "revanced-patches-android5 revanced-integrations" "d4n3436" "latest" +dl_gh "revanced-cli" "revanced" "tags/v3.1.1" + +################################################# + +# Patch YouTube Extended: +get_patches_key "youtube-revanced-extended-5" +version="16.40.36" +get_apk "youtube" "youtube" "google-inc/youtube/youtube" +patch "youtube" "revanced-extended-android-5" + +################################################# + +# Split architecture: +rm -f revanced-cli* revanced-patches*.jar patches.json +dl_gh "revanced-cli" "j-hc" "latest" +dl_gh "revanced-patches" "revanced" "latest" +# Split architecture Youtube: +for i in {0..3}; do + split_arch "youtube-revanced-extended-android-5" "youtube-${archs[i]}-revanced-extended-android-5" "$(gen_rip_libs ${libs[i]})" +done + +################################################# \ No newline at end of file diff --git a/src/patches/youtube-revanced-extended-5/exclude-patches b/src/patches/youtube-revanced-extended-5/exclude-patches new file mode 100644 index 0000000..3522a43 --- /dev/null +++ b/src/patches/youtube-revanced-extended-5/exclude-patches @@ -0,0 +1,26 @@ +custom-branding-icon-afn-red +debugging +custom-seekbar-color +disable-startup-shorts-player +disable-quic-protocol +disable-hdr-video +enable-old-quality-layout +force-premium-heading +force-vp9-codec +header-switch +hide-cast-button +hide-account-menu +hide-auto-captions +hide-autoplay-button +hide-autoplay-preview +hide-captions-button +hide-email-address +hide-endscreen-cards +hide-endscreen-overlay +hide-filmstrip-overlay +hide-mix-playlists +hide-seekbar +hide-search-terms +optimize-resource +spoof-app-version +theme diff --git a/src/patches/youtube-revanced-extended-5/include-patches b/src/patches/youtube-revanced-extended-5/include-patches new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/patches/youtube-revanced-extended-5/include-patches @@ -0,0 +1 @@ +