mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-04-29 22:24:36 +02:00
docs: improve correctness
This commit is contained in:
parent
f8972eac3e
commit
47a20afd2d
@ -10,13 +10,14 @@ Learn how to ReVanced CLI.
|
|||||||
adb shell exit
|
adb shell exit
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to install the patched APK file on your device by mounting it on top of the original APK file, you will need root access. This is optional.
|
Optionally, you can install the patched APK file on your device by mounting it on top of the original APK file.
|
||||||
|
You will need root permissions for this. Check if you have root permissions by running the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
adb shell su -c exit
|
adb shell su -c exit
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Get the name of your device
|
2. Get your device serial
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
adb devices
|
adb devices
|
||||||
@ -37,22 +38,23 @@ Learn how to ReVanced CLI.
|
|||||||
--with-packages \
|
--with-packages \
|
||||||
--with-versions \
|
--with-versions \
|
||||||
--with-options \
|
--with-options \
|
||||||
revanced-patches.jar
|
revanced-patches.jar [<patch-bundle> ...]
|
||||||
```
|
```
|
||||||
|
|
||||||
- ### ⚙️ Generate options from patches using ReVanced CLI
|
- ### ⚙️ Generate options from patches using ReVanced CLI
|
||||||
|
|
||||||
Some patches accept options.
|
This will generate an `options.json` file for the patches from a list of supplied patch bundles.
|
||||||
|
The file can be supplied to ReVanced CLI later on.
|
||||||
|
|
||||||
- ```bash
|
- ```bash
|
||||||
java -jar revanced-cli.jar options \
|
java -jar revanced-cli.jar options \
|
||||||
|
--path options.json \
|
||||||
--overwrite \
|
--overwrite \
|
||||||
--update \
|
revanced-patches.jar [<patch-bundle> ...]
|
||||||
revanced-patches.jar
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: A default `options.json` file will be automatically generated, if it does not exist
|
> **Note**: A default `options.json` file will be automatically generated, if it does not exist
|
||||||
without any need of intervention.
|
without any need of intervention when using the `patch` command.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
@ -62,10 +64,10 @@ Learn how to ReVanced CLI.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar revanced-cli.jar patch \
|
java -jar revanced-cli.jar patch \
|
||||||
-b revanced-patches.jar \
|
--patch-bundle revanced-patches.jar \
|
||||||
-o patched-output.apk \
|
--out output.apk \
|
||||||
-d device-serial \
|
--device-serial <device-serial> \
|
||||||
input-apk
|
input.apk
|
||||||
```
|
```
|
||||||
|
|
||||||
- ### 👾 Use ReVanced CLI to patch an APK file but install with root permissions
|
- ### 👾 Use ReVanced CLI to patch an APK file but install with root permissions
|
||||||
@ -75,20 +77,23 @@ Learn how to ReVanced CLI.
|
|||||||
```bash
|
```bash
|
||||||
adb install input.apk
|
adb install input.apk
|
||||||
java -jar revanced-cli.jar patch \
|
java -jar revanced-cli.jar patch \
|
||||||
-o patched-output.apk \
|
--patch-bundle revanced-patches.jar \
|
||||||
-b revanced-patches.jar \
|
--include some-other-patch \
|
||||||
-e some-patch \
|
--exclude some-patch \
|
||||||
-d device-serial \
|
--out patched-output.apk \
|
||||||
|
--device-serial <device-serial> \
|
||||||
--mount \
|
--mount \
|
||||||
input-apk
|
input.apk
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: Some patches from [ReVanced Patches](https://github.com/revanced/revanced-patches) also require [ReVanced Integrations](https://github.com/revanced/revanced-integrations). Supply them with the option `-m`. ReVanced Patcher will merge ReVanced Integrations automatically, depending on if the supplied patches require them.
|
> **Note**: Some patches may require integrations
|
||||||
package
|
such as [ReVanced Integrations](https://github.com/revanced/revanced-integrations).
|
||||||
|
Supply them with the option `-m`. If any patches accepted by ReVanced Patcher require ReVanced Integrations,
|
||||||
|
they will be merged into the APK file automatically.
|
||||||
|
|
||||||
- ### 🗑️ Uninstall a patched
|
- ### 🗑️ Uninstall a patched
|
||||||
```bash
|
```bash
|
||||||
java -jar revanced-cli.jar uninstall \
|
java -jar revanced-cli.jar uninstall \
|
||||||
-p package-name \
|
--package-name <package-name> \
|
||||||
device-serial
|
<device-serial>
|
||||||
```
|
```
|
||||||
|
@ -7,7 +7,7 @@ import picocli.CommandLine.Help.Visibility.ALWAYS
|
|||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
name = "uninstall",
|
name = "uninstall",
|
||||||
description = ["Uninstall a patched package from the devices with the supplied ADB device serials"]
|
description = ["Uninstall a patched APK file from the devices with the supplied ADB device serials"]
|
||||||
)
|
)
|
||||||
internal object UninstallCommand : Runnable {
|
internal object UninstallCommand : Runnable {
|
||||||
@Parameters(
|
@Parameters(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user