mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-02 15:44:31 +02:00
remove mindetach
This commit is contained in:
parent
da38344cb5
commit
26f2a53741
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -1,4 +0,0 @@
|
|||||||
[submodule "mindetach-magisk"]
|
|
||||||
path = mindetach-magisk
|
|
||||||
url = https://github.com/j-hc/mindetach-magisk
|
|
||||||
ignore = dirty
|
|
@ -2,15 +2,13 @@
|
|||||||
|
|
||||||
# ReVanced Magisk Module
|
# ReVanced Magisk Module
|
||||||
[](https://t.me/rvc_magisk)
|
[](https://t.me/rvc_magisk)
|
||||||
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/build.yml)
|
|
||||||
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml)
|
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml)
|
||||||
|
|
||||||
Extensive ReVanced builder
|
Extensive ReVanced builder
|
||||||
|
|
||||||
Get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases).
|
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.
|
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.
|
||||||
[**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.
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* Support all present and future ReVanced and [ReVanced Extended](https://github.com/inotia00/revanced-patches) apps
|
* Support all present and future ReVanced and [ReVanced Extended](https://github.com/inotia00/revanced-patches) apps
|
||||||
|
14
build.sh
14
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."
|
pr "You are building locally. Magisk updates will not be enabled."
|
||||||
ENABLE_MAGISK_UPDATE=false
|
ENABLE_MAGISK_UPDATE=false
|
||||||
fi
|
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 ! PARALLEL_JOBS=$(toml_get "$main_config_t" parallel-jobs); then
|
||||||
if [ "$OS" = Android ]; then PARALLEL_JOBS=1; else PARALLEL_JOBS=$(nproc); fi
|
if [ "$OS" = Android ]; then PARALLEL_JOBS=1; else PARALLEL_JOBS=$(nproc); fi
|
||||||
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
|
mkdir -p $TEMP_DIR $BUILD_DIR
|
||||||
|
|
||||||
if ((COMPRESSION_LEVEL > 9)) || ((COMPRESSION_LEVEL < 0)); then abort "compression-level must be within 0-9"; fi
|
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
|
if [ "$LOGGING_F" = true ]; then mkdir -p logs; fi
|
||||||
|
|
||||||
#check_deps
|
#check_deps
|
||||||
@ -173,14 +167,6 @@ wait
|
|||||||
rm -rf temp/tmp.*
|
rm -rf temp/tmp.*
|
||||||
if [ -z "$(ls -A1 ${BUILD_DIR})" ]; then abort "All builds failed."; fi
|
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 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 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
|
if [ "$youtube_mode" != module ] || [ "$music_mode" != module ]; then
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
logging-to-file = true # enables logging of every patch process to a seperate file
|
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
|
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
|
# 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
|
# see https://github.com/j-hc/revanced-magisk-module/blob/main/CONFIG.md for more detailed explanations
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 41adbd8641c2b6e6476c42ebb86b64df634961e7
|
|
1
utils.sh
1
utils.sh
@ -448,7 +448,6 @@ build_rv() {
|
|||||||
local base_template
|
local base_template
|
||||||
base_template=$(mktemp -d -p $TEMP_DIR)
|
base_template=$(mktemp -d -p $TEMP_DIR)
|
||||||
cp -a $MODULE_TEMPLATE_DIR/. "$base_template"
|
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 upj="${table,,}-update.json"
|
||||||
|
|
||||||
local isbndl extrct stock_apk_module
|
local isbndl extrct stock_apk_module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user