diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 931a9a5..0000000 --- a/LICENSE +++ /dev/null @@ -1,17 +0,0 @@ -Morphe License -============== - -This project is licensed under the GNU General Public License version 3 (GPLv3). -You may obtain a copy of the full license text at: -https://www.gnu.org/licenses/gpl-3.0.html - - -Additional Terms under Section 7 --------------------------------- - - -7c. Project Name Restriction ----------------------------- -This license does *not* permit the usage of the project name "Morphe". -Derivative works must use their own completely different identity that is not related -to or similar to the name "Morphe". diff --git a/README.md b/README.md index d8ea0a7..bca140c 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Collection of all Morphe documentation.   ## 📖 Table of contents +- [Basic patching guide](docs/morphe-resources/guide.md) - [Frequently asked questions](docs/morphe-resources/questions.md) - [Troubleshooting](docs/morphe-resources/troubleshooting.md) diff --git a/docs/morphe-development/1_setup.md b/docs/morphe-development/1_setup.md index bc8fdb4..22d012e 100644 --- a/docs/morphe-development/1_setup.md +++ b/docs/morphe-development/1_setup.md @@ -30,7 +30,7 @@ A certain development environment is suggested to allow for streamlined developm > [!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. +> Create a personal access tokens with the scope `read:packages` [here](https://github.com/settings/tokens/new?scopes=read:packages&description=Morphe) and add your token to ~/.gradle/gradle.properties. Create the file if it does not exist. > > Example `gradle.properties` file: > @@ -93,7 +93,7 @@ Follow these steps to configure your development environment for the `morphe-cli 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: + - **Program arguments**: Specify the arguments you would use to run Morphe CLI from the command line. Example: ```sh patch @@ -151,7 +151,7 @@ Now that you have set up your development environment, verify that everything wo - 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 + - Continue and let Morphe CLI exit ## ⚠️ Troubleshoot your development environment diff --git a/docs/morphe-development/README.md b/docs/morphe-development/README.md index e19fae5..441f140 100644 --- a/docs/morphe-development/README.md +++ b/docs/morphe-development/README.md @@ -1,6 +1,6 @@ -# 🛠️ ReVanced Development +# 🛠️ Morphe Development -Documentation to start working with ReVanced. +Documentation to start working with Morphe. ### Note: This guide could be modernized and updated diff --git a/docs/morphe-resources/guide.md b/docs/morphe-resources/guide.md new file mode 100644 index 0000000..b178e8c --- /dev/null +++ b/docs/morphe-resources/guide.md @@ -0,0 +1,20 @@ +# Guide + +This page will demonstrate how to patch apps using Morphe Manager. + +Morphe Manager has two modes: [Simplified mode](guide.md#simplified-mode) is easy enough for your grandmother to use, while [advanced mode](guide.md#advanced-mode) gives you fine control over Morphe and the patching process, such as allowing you to customize the patch selection. + +### Prerequisites + +- A device running Android 8 or newer +- The latest version of [Morphe Manager](https://morphe.software/download) installed + +## Simplified mode + +1. Open Morphe and select the app you want to patch. +2. Follow the prompts to patch an APK of that app. +3. Install the patched APK when it's ready. You can also hit the save button to export the APK. That's all! + +## Advanced mode + +Instructions coming soon... diff --git a/docs/morphe-resources/questions.md b/docs/morphe-resources/questions.md index c73ec64..4370006 100644 --- a/docs/morphe-resources/questions.md +++ b/docs/morphe-resources/questions.md @@ -1,62 +1,131 @@ # Frequently asked questions -Please read them before asking questions that have been asked too many times. +## 1. What is Morphe? -## 2 Is Morphe available on iOS or TV? +Morphe is a patcher for Android apps. It can patch apps and add extra features and customization. -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. +## 2. What apps can Morphe patch? -## 3 How to get Morphe? +You can patch any app you want, as long as you want YouTube or YT Music. We're constantly working on expanding support to more apps. -Morphe is a patcher for Android apps. Getting Morphe means patching your app. To patch your apps, download Morphe Manager from [https://morphe.software](https://morphe.software) and Morphe CLI from [GitHub](https://github.com/MorpheApp/morphe-cli). +## 3. How to get Morphe? -## 6 How can I help? +[Download Morphe](https://morphe.software/download) and follow the prompts to patch your app. Alternatively, you can follow the [Morphe CLI documentation](https://github.com/MorpheApp/morphe-cli/tree/main/docs) to use Morphe CLI to patch using a computer. -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. If you are fluent in both English and another language, you can help imrpove the translations by visiting [https://translate.morphe.software](https://translate.morphe.software) and creating a Crowdin account. +## 4. Is Morphe safe? -And [financial donations](https://morphe.software/donate) are always welcomed. +As safe as modifying obfuscated bytecode can be. All source code for Morphe is open-source and free for anyone to inspect. Our community actively reviews and contributes to the codebase. -## 7 Can I patch the latest YouTube (Can I patch newer than the recommended version)? +## 5. Will Morphe brick my phone? -Morphe tries to support the very latest versions of YouTube. If you like exploring and are willing to accept that some unidentified bugs may exist, then you can try patching the latest YouTube with Morphe. If you don't like to tinker or repatch often, then always patch the version of YouTube recommended by Morphe. +Only if your phone decides to brick itself. Otherwise your device will be fine. Morphe only modifies app packages and doesn't touch system files. -Be aware that even if there are no unidentified bugs or issues with patching the latest YouTube, it will be full of [a/b tests](https://en.wikipedia.org/wiki/A/B_testing) that show up for some users as strange UI layouts and unreleased work in progress features. +## 6. Can I customize apps to my preference? -If Morphe Manager fails to patch the latest YouTube, or you find patch bugs present in the latest YouTube but the bugs are _not_ present in the recommended YouTube, then please open an issue in the [GitHub patches](https://github.com/MorpheApp/morphe-patches) repo (Be sure to search for duplicate issues before creating a new issue). +Yes, but don't blame Morphe if your app becomes too customized for you to handle. It's recommended to customize up to your preference level and no more. -## 9 Where to get (full) APKs +## 7. Is Morphe available on iOS or TV? -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`. +Morphe is a patcher for Android apps. Android is very different from iOS so it is not available on iOS. If your TV runs Android, it may be possible to use Morphe. -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. +## 20. Can I patch the latest YouTube version? (Can I patch newer than the recommended version?) -## 10 Capture logs +Morphe tries to support the very latest versions of YouTube. If you like exploring and are willing to accept that some unidentified bugs may exist, then you can try patching the latest YouTube with Morphe. If you do not like to experiment with software or repatch often, then always patch the version of YouTube recommended by Morphe. -1. Turn on `Miscellaneous > Debugging > Debug logging` in the settings. -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 (No ADB or computer setup is required). But due to clipboard limitations the log is limited to the most recent log data. Crash logs can only be collected using a computer and ADB. +Be aware that even if there are no unidentified bugs or issues with patching the latest YouTube, it may be full of [a/b tests](https://en.wikipedia.org/wiki/A/B_testing) that show up for some users as strange UI layouts and unreleased YouTube work-in-progress features. -## 12 Where to get microG? +If Morphe Manager fails to patch the latest YouTube, or you find patch bugs present in the latest YouTube that are _not_ present in the recommended YouTube, then please open an issue in the [GitHub patches](https://github.com/MorpheApp/morphe-patches/issues?q=is%3Aissue) repo (Be sure to search for duplicate issues before creating a new issue). -If you don't have microG installed, then the app will automatically redirect you to the correct [download page](https://morphe.software/microg). +## 21. What if I want to use an older version of YouTube? -## 13 Is Morphe affiliated with ReVanced? +Morphe supports patching some older versions of YouTube. At the present time the oldest versions that can be patched are: +- YouTube: `20.14.43` +- YT Music: `7.29.52` -Morphe is not affiliated with ReVanced. Morphe was created by a team of former ReVanced developers and contributors. +But always ensure you have the latest patches, even when patching older app versions. -## 14 How to update patched apps? +## 22. How to update patched apps? To update a patched app, you need to patch and install the app again. You do not need to uninstall your existing patched app to upgrade the patched app. 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. Check the `Settings > Morphe > About` screen to see if your patches are outdated. -## 15 How do I backup my YouTube Morphe settings? +## 23. Where to get (full) APKs? -Morphe personalized settings are handled using text copy paste. +You can get (full) APKs from sites such as [APKMirror](https://www.apkmirror.com/) or [APKPure](https://apkpure.net/). An APK ends with the extension `.apk`. + +If only split apks are available (`apkm` or `xapk` files), a tool like [AntiSplit M](https://github.com/AbdurazaaqMohammed/AntiSplit-M) can convert an `apkm`/`xapk` of your device architecture to a regular `apk` for use with Morphe Manager. + +## 24. I found a random website that offers YouTube APK's patched with Morphe. Are those safe to use? + +What you found is a "pre-patched" APK patched by someone else. + +Since there's no way to know if the APK was maliciously altered by someone else, +for the safety of your device and your online accounts **you should not use pre-patched APKs**. + +The official and only safe way to use Morphe is to patch yourself on your phone using the [Android Morphe app](https://morphe.software) or on your computer using [Morphe CLI](https://github.com/MorpheApp/morphe-cli/tree/main/docs). + +## 30. Where to get microG GmsCore? + +If microG is required for your patched app, you will be directed to the correct [microG download page](https://morphe.software/microg) upon opening the app. + +## 32. How do I backup my YouTube Morphe settings? + +Morphe uses a text configuration for personalized settings which can be copied and pasted. Go to: `Settings > Morphe > Miscellaneous > Import / Export` -Press the copy button to copy your settings to the clipboard. Paste your settings somewhere safe to save (Note app, email message, etc). +Press the copy button to copy your settings to the clipboard. Paste your settings somewhere safe to save them (Notes app, email message, etc). -To restore your settings, paste your settings into the same `Import / Export` Morphe menu and press `Import`. +To restore your settings, paste your settings into the same `Import / Export` textbox and press `Import`. + +## 33. How can I make links open in a patched app? + +> [!NOTE] +>
+> Information for MIUI users: +>
+> +> If you are using MIUI, you may need to use the `Manage applications` settings within the [Hidden Settings for MIUI](https://play.google.com/store/apps/details?id=com.ceyhan.sets) app in order to follow the steps below. +> +>
+ +1. If the unpatched version of the app is installed, open its App info and disable `Set as default/Open by default > Open supported links`. +2. Open the App info of the patched app and enable `Set as default/Open by default > Open supported links`. +3. Return to the previous page and enable all of the Supported web addresses. + +## 34. How do I use YT Music with Android Auto? + +1. Go to the [Android Auto](https://developer.android.com/training/cars/testing?utm_source=android-studio-app#developer-mode) settings on your device. +2. Scroll down to `Version and permission info`. +3. Tap on it 10 times to enter developer mode. +4. Tap the 3 dots in the upper-right corner of your screen and open the Developer settings. +5. Scroll down and enable `Unknown sources`. + +Be aware that most YT Music Android Auto features require a YouTube Premium subscription. + +## 40. Capture logs + +1. Turn on `Miscellaneous > Debugging > Debug logging` in the settings. +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 (No ADB or computer setup is required). But due to clipboard limitations the log is limited to the most recent log data. Crash logs can only be collected using a computer and ADB. + +## 50. 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. +You can also help with translations on [Crowdin](https://morphe.software/translate). + +Additionally, [financial donations](https://morphe.software/donate) are always welcome. + +## 51. Why the name Morphe? + +Because "Android App Modification And Transformation Tool" (AAMATT) is not very catchy. And because Morphe implies it morphs your apps into something better. + +## 52. Is Morphe affiliated with ReVanced? + +Morphe is not affiliated with ReVanced. Morphe was created by a team of former ReVanced developers and contributors. + +## 53. What is Morphe's privacy policy? + +The [website](https://morphe.software) uses [Umami](https://umami.is) for analytics: no cookies, no personal data, nothing sold, and nothing shared. Morphe does not add analytics or data collection to any patched apps. diff --git a/docs/morphe-resources/troubleshooting.md b/docs/morphe-resources/troubleshooting.md index 57cd087..ab73752 100644 --- a/docs/morphe-resources/troubleshooting.md +++ b/docs/morphe-resources/troubleshooting.md @@ -2,13 +2,13 @@ This is a collection of common errors and fixes. -## 4 YouTube Audio track menu is missing +## 4. YouTube Audio track menu is missing -Change: `Settings > Morphe > Miscellaneous > Spoof video streams > Client` to `Android No SDK` +Change: `Settings > Morphe > Miscellaneous > Spoof video streams > Default 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 +## 5. Videos play with auto-dubbed audio translations Ensure `Settings > Morphe > Video > Force original audio language` is enabled. @@ -16,59 +16,58 @@ You may also need to change to a spoof client that supports multiple audio track 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 +## 7. Stable volume is not available -Stable volume is not available when using most Spoof video streams. +Stable volume is not available when using most clients for spoofing the video streams. (See `Settings > Morphe > Miscellaneous > Spoof video streams > Default client`.) -## 8 Children/music videos do not play and an error is shown +## 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" +## 15. App shows "No internet connection" -This issue can happen after making changes to your Google account. Uninstall then reinstall microG. +This issue can happen after making changes to your Google account. Uninstall and reinstall [microG](https://morphe.software/microg). -## 18 YouTube Watch history is not being saved +## 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. +If you use a system ad-blocker, then whitelist `s.youtube.com`. Otherwise verify watch history works with unpatched YouTube, and 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 +## 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` +The only way to remove this delay is to disable `Settings > Morphe > Return YouTube Dislike > Show dislikes on Shorts`. -## 20 YouTube Shorts tab button is missing +## 20. YouTube Shorts tab button is missing -Disable `Settings > Morphe > General > Navigation buttons > Hide Shorts button` +Disable `Settings > Morphe > General > Navigation buttons > Hide Shorts button`. -## 22 Google login does not work +## 22. Google login does not work Use a username/password to log in. Some devices may require temporarily turning off 2 factor authentication. Certain managed accounts such as Google Workspace may not work. -## 23 Links don't open in a patched app +## 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. +Follow [this](questions.md#13-how-can-i-make-links-open-in-a-patched-app). -## 30 Installation is blocked due to conflicting with an existing installation +## 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 +## 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 and try again later. +This likely means that the SponsorBlock servers are having issues. You can check the server status [here](https://status.sponsor.ajay.app/) and try again later. -## 40 Patched app does not work with Android Auto +## 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. +See [here](questions.md#14-how-do-i-add-youtube-music-to-android-auto) -## 50 YouTube or YouTube Music playback does not work +## 50. YouTube or YT 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. +First ensure you are using the latest patches. You may be using outdated patches even if the app version has not changed. See [here](questions.md#11-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) 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. +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 pausing instantly when you press the play button, then you must disable Picture-in-picture due to an issue with your OS/YouTube.