chore: Initial commit of documentation only non programming source from https://github.com/ReVanced/revanced-documentation

This commit is contained in:
LisoUseInAIKyrios committed 2026-01-07 11:28:26 +01:00
commit 32ebf6aac5
8 files changed
+358

No files matched your search

@@ -0,0 +1,15 @@
# 💼 Prerequisites
Certain requirements are needed to be able to develop with Morphe.
## 🤝 Requirements
- A Java/ Kotlin IDE such as [Android Studio](https://developer.android.com/studio) or [IntelliJ IDEA](https://www.jetbrains.com/idea/) with the Android plugin.
- Java Development Kit 17 (e.g. [OpenJDK](https://jdk.java.net/archive/))
- Basic knowledge of Git and Gradle
## ⏭️ Whats next
The next section explains, how to set up a suitable development environment for Morphe with [IntelliJ IDEA](https://www.jetbrains.com/idea/)
Continue: [👨‍💻 Setup a development environment for Morphe](1_setup.md)
+169
View File
@@ -0,0 +1,169 @@
# 👨‍💻 Setup a development environment for Morphe
A certain development environment is suggested to allow for streamlined development on Morphe.
## 🚀 Get started
1. **Clone repositories**
```bash
mkdir morphe
cd morphe
git clone -b dev https://github.com/MorpheApp/morphe-cli
git clone -b dev https://github.com/MorpheApp/morphe-patches
```
2. **Build**
To build patches:
```bash
cd morphe-cli
./gradlew build
cd ..
cd morphe-paches
./gradlew buildAndroid
cd ..
```
> [!NOTE]
> If the build fails due to authentication, you may need to authenticate to GitHub Packages.
> Create a personal access tokens with the scope `read:packages` [here](https://github.com/settings/tokens/new?scopes=read:packages&description=ReVanced) and add your token to ~/.gradle/gradle.properties. Create the file if it does not exist.
>
> Example `gradle.properties` file:
>
> ```properties
> gpr.user = <GitHub username>
> gpr.key = <Personal access token>
> ```
## ⌨️ Simple terminal patching with CLI and custom patches
Copy paste the following to terminal, or add all of this to a script file:
```bash
#!/bin/sh
cd morphe-cli
./gradlew build
cd ..
cd morphe-patches
rm patches/build/libs/patches*.mpp
./gradlew buildAndroid
cd..
# replace $1 with your input apk if not using a bash script
java -Xms152m -jar morphe-cli/build/libs/morphe-cli*-all.jar patch --patches patches/build/libs/patches*.mpp --out morphe.apk $1 --install
```
Then run using: `./patch input.apk` where `input.apk` is the unmodified apk you are patching.
## ⚙️ Setting up your workspace in IntelliJ IDEA
### ⚠️ Warning: Intellij complexity ahead
If setting up Intellij in this way is to complex for your liking, then consider using the terminal approach described above.
Follow these steps to configure your development environment for the `morphe-cli` project in IntelliJ IDEA:
1. **Open the `morphe-cli` project**:
- Open the `morphe-cli` project in IntelliJ IDEA
- Ensure you are using the correct JDK as specified in [💼 Prerequisites](0_prerequisites.md)
2. **Import projects**:
Import the projects you cloned as modules into the `morphe-cli` project:
1. Open the **Project Structure** dialog by pressing **Ctrl + Alt + Shift + S**
2. Navigate to the **Modules** section
3. Import each additional project as a module under the `morphe-cli` project
3. **Synchronize Gradle projects**:
- Click on the **Sync All Gradle Projects** button in the Gradle tool window
- Verify that all Gradle projects are imported successfully without errors
4. **Configure the Run Configuration for `morphe-cli`**:
1. Locate the `app.morphe.cli.command.MainCommandKt` class in the `morphe-cli` project
2. Click the green **Play** button next to the `main` function. This will generate a new run configuration
3. Edit the run configuration as follows:
- **Program arguments**: Specify the arguments you would use to run ReVanced CLI from the command line. Example:
```sh
patch
--patches morphe-patches\patches\build\libs\patches-<version>.mpp
binaries\some.apk
--install # Install the patched APK to a device connected via ADB after patching
```
- **Working directory**: Set to the parent directory of the `morphe-cli` project:
```sh
$ProjectFileDir$/..
```
- **Before launch**: Add a Gradle task to build `morphe-patches:patches`:
1. Click the **+** button and select **Run Gradle Task**
2. Choose the `morphe-patches:patches` project and add the `build` task
> [!WARNING]
> The MPP file names in `morphe-patches` change with each release.
> **Ensure you update the path to the patches in the run configuration program arguments whenever you pull new commits.**
### 🥼 Working on `morphe-patcher` and `morphe-library` (Extremely optional)
1. **Import as modules**: Import `morphe-patcher` and `morphe-library` as modules in the `morphe-cli` project
2**Configure module dependencies**:
- Go to **Project Structure**
- Select the `main` module of your project
- Under the **Dependencies** tab, remove the existing dependencies to `morphe-patcher` or `morphe-library`
- Add new dependencies by clicking `+` > **Module Dependency**
- Select `morphe-patcher.main` or `morphe-library.jvmMain`
6. **Set up local publication**:
- Add **Before launch** tasks in the `morphe-cli` run configuration
- Use the `publishToMavenLocal` Gradle task to publish the `morphe-patcher` and `morphe-library` projects to your local Maven repository
## ✅ Verify your setup
Now that you have set up your development environment, verify that everything works as intended:
1. **Run Morphe CLI**:
- Run the `morphe-cli` project with the run configuration you created
- Confirm that the CLI starts and executes the command you specified in the program arguments
2. **Edit the projects**:
Make a small change in the projects and confirm that the changes are reflected, when you run the project
3. **Test debugging**:
- Set a breakpoint in the projects
- Run the project in debug mode and confirm that the breakpoint is hit
- Continue and let ReVanced CLI exit
## ⚠️ Troubleshoot your development environment
- **Projects fail to build**: Ensure that you have the correct JDK version installed. Check the `JAVA_HOME` environment variable and the JDK version in IntelliJ IDEA. Make sure you are authenticated to GitHub Packages if the build fails due to authentication issues
- **Run configuration fails**: Check the program arguments and working directory in the run configuration. Ensure that the paths are correct and up to date with the latest changes in the repositories
- **Breakpoints are not hit**: Ensure that you are running the project in debug mode and that the paths are correct in the run configuration
- **Dependencies are not resolved**: Make sure, the dependencies are published to the local Maven repository
- **Changes in projects are not reflected**: Ensure, that after making changes in the projects, the `morphe-patches` project is built, and the run configuration is updated with the latest path to the patches file.
## 📜 Project specific documentations
To learn more about the individual projects, refer to their respective documentations:
- [Morphe CLI](https://github.com/MorpheApp/morphe-cli/tree/main/docs)
- [Morphe Patcher](https://github.com/MorpheApp/morphe-patcher/tree/main/docs)
+12
View File
@@ -0,0 +1,12 @@
# 🛠️ ReVanced Development
Documentation to start working with ReVanced.
### Note: This guide could be modernized and updated
## 📖 Table of contents
- [💼 Prerequisites](0_prerequisites.md)
- [👨‍💻 Setup a development environment for Morphe](1_setup.md)
+52
View File
@@ -0,0 +1,52 @@
# Frequently asked questions
Please read them before asking questions that have been asked too many times.
## 2 Is Morphe available on iOS or TV?
Morphe is a patcher for Android apps. Android is very different from iOS. Therefore, Morphe is not available on iOS. The nearest equivalent to Morphe on iOS is [Theos](https://theos.dev/). If your TV runs Android, it may be possible to use Morphe.
## 3 How to get Morphe?
Morphe is a patcher for Android apps. Getting Morphe means patching your app. Follow the [Morphe Manager documentation](https://github.com/MorpheApp/morphe-manager/tree/main/docs) to use Morphe Manager or the [Morphe CLI documentation](https://github.com/MorpheApp/morphe-cli/tree/main/docs) to use Morphe CLI.
## 4 Does Morphe support non-rooted devices?
Yes! Morphe supports non-root and rooted devices.
## 6 How can I help?
Since we are an open-source community and depend on outside help, you can always check out [our GitHub repositories](https://github.com/MorpheApp) and contribute to Morphe by creating an issue or pull request.
Additional, [financial donations](https://morphe.software/donate) are always welcomed.
## 7 Does Morphe always stay up to date with X?
Morphe Patcher allows you to use patches on any app version. However, please note that patches may not work if you're not using the versions suggested by Morphe Manager.
## 9 Where to get (full) APKs
You can get (full) APKs from sites such as [APKMirror](https://www.apkmirror.com/) or [APKPure](https://apkpure.net/de). An APK ends with the extension `.apk`.
If only split apks are available (`apkm` or `xapk` files), then tools like [AntiSplit M](https://github.com/AbdurazaaqMohammed/AntiSplit-M) can convert `apkm`/`xapk` of your device architecture to regular `apk` for use with Morphe Manager.
## 10 Capture logs
1. (Only if the setting exists) Turn on `Miscellaneous > Debugging > Debug logging` in the settings (Ensure you have included the `Enable debugging` patch).
2. Install the [Android developer tools](https://developer.android.com/tools/releases/platform-tools) on a computer, open a command prompt, and capture the logs using the command `adb logcat | grep 'morphe\|AndroidRuntime` to log both Morphe and crash logs. To save the logs to a file use `adb logcat | grep 'morphe\|AndroidRuntime' > logs.txt`
3. Alternatively, you can use any Android app capable of [capturing logs](https://play.google.com/store/apps/details?id=com.dp.logcatapp) (to use these apps a one time setup is required using a computer and ADB).
4. Alternatively, in YouTube you can copy the most recent logs directly from the Debug settings menu (due to clipboard limitations the log is limited to the most recent log data). No ADB or computer setup is required. Crash logs can only be collected using ADB.
## 12 Where to get microG GmsCore?
If you patched your app with the `GmsCore support` patch, opening your app will redirect you automatically to the correct download page.
## 13 Is Morphe affiliated with ReVanced?
Morphe is not affiliated with ReVanced. Morphe was created by a team of former ReVanced developers and contributors.
## 14 How to update patched apps?
To update a patched app, you need to patch and install the app again.
Patch versions are completely different from the app version, and newer patches can exist even if the app version is the same as your currently patched app. See #3 in [Questions](questions.md).
+78
View File
@@ -0,0 +1,78 @@
# Troubleshooting
This is a collection of common errors and fixes.
## 4 YouTube Audio track menu is missing
Change: `Settings > Morphe > Miscellaneous > Spoof video streams > Client` to `Android No SDK`
If the audio track menu is still not available or playback buffers at 1 minute, then currently there is no solution.
## 5 Videos play with auto-dubbed audio translations
Ensure `Settings > Morphe > Video > Force original audio language` is enabled.
You may also need to change to a spoof client that supports multiple audio tracks (see item 4 above).
If the audio is still auto-dubbed and "Stats for nerds" always shows `Android Studio`, then the original audio cannot be forced and currently there is no solution.
## 7 Stable volume is not available
Stable volume is not available when using most Spoof video streams.
## 8 Children/music videos do not play and an error is shown
A YouTube account is required to play most children's videos. Ensure you are logged into a YouTube account and incognito mode is not enabled.
## 15 App shows "No internet connection"
This issue can happen after making changes to your Google account. Uninstall then reinstall microG.
## 18 YouTube Watch history is not being saved
If you use a system ad-blocker, then whitelist `s.youtube.com`. Otherwise check your YouTube/Google account permissions and ensure your account watch history is enabled.
## 19 The first Short opened has a delay before playback starts
Showing Shorts dislikes requires fetching dislikes before the first Short starts playing. This limitation only applies to the first Short opened and does not occur when swiping to other Shorts.
The only way to remove this delay is to turn off `Settings > Morphe > Return YouTube Dislike > Show dislikes on Shorts`
## 20 YouTube Shorts tab button is missing
Disable `Settings > Morphe > General > Navigation buttons > Hide Shorts button`
## 21 ReVanced Manager is crashing/not working
ReVanced Manager is still a work in progress. Before submitting an issue, ensure it is not duplicating an existing issue.
## 22 Google login does not work
Use a username/password to log in. Some devices may require temporarily turning off 2 factor authentication.
## 23 Links don't open in a patched app
Follow [this](https://support.google.com/pixelphone/answer/6271667). The process may vary for your device. You may need to disable or uninstall the unpatched app that occupies the links to set them for the patched app.
## 30 Installation is blocked due to conflicting with an existing installation
This implies that you must remove the previous installation to solve the conflict.
This error can be caused by 'hidden' apps (Samsung Secure Folder, Android Work Profile, Xiaomi Hidden Apps, etc). If the same app is already installed but set hidden, then it needs to be unhidden and uninstalled before the patched app can be installed.
## 35 SponsorBlock does not work
The servers of SponsorBlock are likely having issues right now. Review the [current status](https://status.sponsor.ajay.app/) of SponsorBlock.
## 40 Patched app does not work with Android Auto
Enable [Android Auto developer mode](https://developer.android.com/training/cars/testing#developer-mode), then enable "Unknown sources" in the Android Auto developer menu.
## 50 YouTube or YouTube Music playback does not work
First ensure you are using the latest patches. You may be using outdated patches even if the app version has not changed. See [here](https://github.com/MorpheApp/morphe-documentation/blob/main/docs/morphe-resources/questions.md#14-how-to-update-patched-apps) for additional information on updating.
Search for existing issues [here](https://github.com/MorpheApp/morphe-patches/issues?q=is%3Aissue%20state%3Aopen) as all known issues will have an existing issue.
If videos on YouTube are instantly paused when you press the play button, then you must disable Picture in Picture due to an issue with your OS/YouTube.