update readme

This commit is contained in:
j-hc 2022-07-27 00:32:16 +03:00
parent b8edb62ffe
commit 3ec5883e09
No known key found for this signature in database
GPG Key ID: 242B44D16774A2ED
2 changed files with 12 additions and 11 deletions

View File

@ -4,30 +4,30 @@
This repo includes a simple script that downloads all the latest version of necessary prebuilt revanced tools and the stock APKs of YouTube and YouTube Music from APKMirror, applies the patches and creates magisk modules. This repo includes a simple script that downloads all the latest version of necessary prebuilt revanced tools and the stock APKs of YouTube and YouTube Music from APKMirror, applies the patches and creates magisk modules.
You will need to **install the stock YouTube (or YT Music) app matching with the module's version on your phone**, there is no need for the split APKs or SAI anymore, the regular APK is just fine. The link is also provided in release notes. You will need to **install the stock YouTube (or YT Music) app matching with the module's version on your phone**. The link is also provided in release notes.
You can get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases) from here. You can get the [latest CI release from here](https://github.com/j-hc/revanced-magisk-module/releases).
## Updating ## Updating
The modules support Magisk update which means you will receive updates from your Magisk app, downloading from github releases and reflashing is not necessary. The modules support Magisk update which means you will receive updates from your Magisk app, downloading from github releases and reflashing is not necessary.
To be able to update YouTube when the patches support a higher version, you will need to: To be able to update YouTube version, you will need to:
* Disable the module * Disable the module
* Reboot * Reboot
* Install the APK of the new version * Install the APK of the new YouTube
* Update the module and reboot again * Update the module and reboot again
Or you can manually unmount the app.
## Note ## Note
If you wish to include/exclude some patches to your liking: If you wish to include/exclude some patches:
* Star the repo :eyes: * Star the repo :eyes:
* Fork the repo * Use the repo as template *or fork it* (if you choose the repo to be private, you won't receive updates from Magisk app)
* Edit the patcher args in [`build.conf`](./build.conf) * Edit the patcher args in [`build.conf`](./build.conf)
* Run the [workflow](../../actions/workflows/build.yml) * Run the [workflow](../../actions/workflows/build.yml)
* Grab your modules from [releases](../../releases) * Grab your modules from [releases](../../releases)
### **Note that the [CI workflow](../../actions/workflows/ci.yml) is scheduled to build the modules and APKs everyday if there is a change. You may want to disable it.**
# Building the Magisk Modules # Building the Magisk Modules Locally
If you are going to build locally, make sure you have [Azul Zulu distribution of OpenJDK 17](https://www.azul.com/downloads/?version=java-17-lts&os=linux&architecture=x86-64-bit&package=jdk) Make sure you have [Azul Zulu distribution of OpenJDK 17](https://www.azul.com/downloads/?version=java-17-lts&os=linux&architecture=x86-64-bit&package=jdk) and run:
```console ```console
$ ./build.sh build $ ./build.sh build

View File

@ -85,6 +85,7 @@ get_patch_last_supported_ver() {
patch_apk() { patch_apk() {
local stock_input=$1 patched_output=$2 patcher_args=$3 local stock_input=$1 patched_output=$2 patcher_args=$3
#shellcheck disable=SC2086
java -jar "$RV_CLI_JAR" -a "$stock_input" -c -o "$patched_output" -b "$RV_PATCHES_JAR" -m "$RV_INTEGRATIONS_APK" --keystore=ks.keystore $patcher_args java -jar "$RV_CLI_JAR" -a "$stock_input" -c -o "$patched_output" -b "$RV_PATCHES_JAR" -m "$RV_INTEGRATIONS_APK" --keystore=ks.keystore $patcher_args
} }
@ -96,7 +97,6 @@ zip_module() {
cd .. cd ..
} }
build_twitter() { build_twitter() {
echo "Building Twitter" echo "Building Twitter"
local last_ver local last_ver
@ -187,6 +187,7 @@ build_music() {
} }
service_sh() { service_sh() {
#shellcheck disable=SC2016
local s='while [ "$(getprop sys.boot_completed)" != 1 ]; do local s='while [ "$(getprop sys.boot_completed)" != 1 ]; do
sleep 1 sleep 1
done done