AutoReVanced is a Python script designed to automate the process of downloading and patching APKs (Android application packages) with ReVanced patches. This tool simplifies the process of fetching the necessary files, downloading the desired APK, and applying patches to create a customized APK.
- Automatically download the latest ReVanced patches, integrations, and CLI tools.
- Download APKs directly from ApkPure.
- Apply ReVanced patches to the downloaded APK.
- Supports custom package names and versions.
- Python 3.6 or higher
- Requests library
- tqdm library
- apkpure library
- Java Runtime Environment (JRE)
-
Clone this repository:
git clone https://github.com/anishomsy/autorevanced.git cd autorevanced
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required Python libraries:
pip install -r requirements.txt
-
Ensure that Java is installed on your system and is available in your PATH.
To use AutoReVanced, you can run the index.py
script to automatically build YouTube ReVanced:
python index.py
This will download and patch the YouTube APK with the latest ReVanced patches.
Alternatively, you can call the autorevanced function with the name of the desired APK. By default, it targets the YouTube app.
Example:
from autorevanced.util import autorevanced
output = autorevanced("youtube")
print(output)
Main function to automate the process of downloading and patching an APK.
name
: The name of the application to download and patch. Default is "youtube".
Fetches the latest ReVanced patches, integrations, and CLI tools.
Downloads the specified APK from ApkPure.
name
: The package name of the APK. Default is "com.google.android.youtube".version
: The version of the APK to download. Default is "Latest".
Applies ReVanced patches to the specified APK.
apk
: The path to the APK file.revanced_files
: A list of paths to the ReVanced patch files.
Downloads a file from the specified URL and returns the local file path.
url
: The URL of the file to download.
This project is licensed under the MIT License. See the LICENSE file for details.