diff --git a/.gitmodules b/.gitmodules deleted file mode 100755 index 0019fb8..0000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "mindetach-magisk"] -path = mindetach-magisk -url = https://github.com/j-hc/mindetach-magisk -ignore = dirty diff --git a/README.md b/README.md index dd71286..d7d3bd5 100755 --- a/README.md +++ b/README.md @@ -2,15 +2,13 @@ # ReVanced Magisk Module [![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/rvc_magisk) -[![Build Modules](https://github.com/j-hc/revanced-magisk-module/actions/workflows/build.yml/badge.svg)](https://github.com/j-hc/revanced-magisk-module/actions/workflows/build.yml) [![CI](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml/badge.svg?event=schedule)](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml) Extensive ReVanced builder Get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases). -[**mindetach module**](https://github.com/j-hc/mindetach-magisk) in the releases section detaches YouTube and YouTube Music from Play Store and blocks their forced updates. -[**zygisk-detach**](https://github.com/j-hc/zygisk-detach) is another detach module I made which is more powerful than mindetach. You can use it if you have zygisk enabled. +Use [**zygisk-detach**](https://github.com/j-hc/zygisk-detach) to detach YouTube and YT Music from Play Store if you are using magisk modules. ## Features * Support all present and future ReVanced and [ReVanced Extended](https://github.com/inotia00/revanced-patches) apps diff --git a/build.sh b/build.sh index bb756f7..ac9d5b8 100755 --- a/build.sh +++ b/build.sh @@ -22,11 +22,6 @@ if [ "$ENABLE_MAGISK_UPDATE" = true ] && [ -z "${GITHUB_REPOSITORY:-}" ]; then pr "You are building locally. Magisk updates will not be enabled." ENABLE_MAGISK_UPDATE=false fi -BUILD_MINDETACH_MODULE=$(toml_get "$main_config_t" build-mindetach-module) || BUILD_MINDETACH_MODULE=false -if [ "$BUILD_MINDETACH_MODULE" = true ] && [ ! -f "mindetach-magisk/mindetach/detach.txt" ]; then - pr "mindetach module was not found." - BUILD_MINDETACH_MODULE=false -fi if ! PARALLEL_JOBS=$(toml_get "$main_config_t" parallel-jobs); then if [ "$OS" = Android ]; then PARALLEL_JOBS=1; else PARALLEL_JOBS=$(nproc); fi fi @@ -42,7 +37,6 @@ DEF_RV_BRAND=$(toml_get "$main_config_t" rv-brand) || DEF_RV_BRAND="ReVanced" mkdir -p $TEMP_DIR $BUILD_DIR if ((COMPRESSION_LEVEL > 9)) || ((COMPRESSION_LEVEL < 0)); then abort "compression-level must be within 0-9"; fi -if [ "$BUILD_MINDETACH_MODULE" = true ]; then : >$PKGS_LIST; fi if [ "$LOGGING_F" = true ]; then mkdir -p logs; fi #check_deps @@ -173,14 +167,6 @@ wait rm -rf temp/tmp.* if [ -z "$(ls -A1 ${BUILD_DIR})" ]; then abort "All builds failed."; fi -if [ "$BUILD_MINDETACH_MODULE" = true ]; then - pr "Building mindetach module" - cp -f $PKGS_LIST mindetach-magisk/mindetach/detach.txt - pushd mindetach-magisk/mindetach/ - zip -qr ../../build/mindetach-"$(grep version= module.prop | cut -d= -f2)".zip . - popd -fi - if youtube_t=$(toml_get_table "YouTube"); then youtube_mode=$(toml_get "$youtube_t" "build-mode") || youtube_mode="apk"; else youtube_mode="module"; fi if music_t=$(toml_get_table "Music"); then music_mode=$(toml_get "$music_t" "build-mode") || music_mode="apk"; else music_mode="module"; fi if [ "$youtube_mode" != module ] || [ "$music_mode" != module ]; then diff --git a/config.toml b/config.toml index cbb9b3a..ffaf5b0 100755 --- a/config.toml +++ b/config.toml @@ -1,6 +1,5 @@ logging-to-file = true # enables logging of every patch process to a seperate file enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app -build-mindetach-module = true # add 'enabled = false' for not patching a specific app or remove it from the config # see https://github.com/j-hc/revanced-magisk-module/blob/main/CONFIG.md for more detailed explanations diff --git a/mindetach-magisk b/mindetach-magisk deleted file mode 160000 index 41adbd8..0000000 --- a/mindetach-magisk +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 41adbd8641c2b6e6476c42ebb86b64df634961e7 diff --git a/utils.sh b/utils.sh index 9d066d2..019ea76 100755 --- a/utils.sh +++ b/utils.sh @@ -448,7 +448,6 @@ build_rv() { local base_template base_template=$(mktemp -d -p $TEMP_DIR) cp -a $MODULE_TEMPLATE_DIR/. "$base_template" - if [ "$BUILD_MINDETACH_MODULE" = true ] && ! grep -q "$pkg_name" $PKGS_LIST; then echo "$pkg_name" >>$PKGS_LIST; fi local upj="${table,,}-update.json" local isbndl extrct stock_apk_module