mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
dont exclude spoof patches for modules
This commit is contained in:
parent
e65a2968ba
commit
2d8e1fbeae
15
utils.sh
15
utils.sh
@ -529,12 +529,6 @@ build_rv() {
|
|||||||
epr "You cant include/exclude microg patch as that's done by rvmm builder automatically."
|
epr "You cant include/exclude microg patch as that's done by rvmm builder automatically."
|
||||||
p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")
|
p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")
|
||||||
fi
|
fi
|
||||||
local spoof_streams_patch
|
|
||||||
spoof_streams_patch=$(grep "^Name: " <<<"$list_patches" | grep -i "spoof" | grep -i "streams" || :) spoof_streams_patch=${spoof_streams_patch#*: }
|
|
||||||
if [ -n "$spoof_streams_patch" ] && [[ ${p_patcher_args[*]} =~ $spoof_streams_patch ]]; then
|
|
||||||
epr "You cant include/exclude spoof stream patch as that's done by rvmm builder automatically."
|
|
||||||
p_patcher_args=("${p_patcher_args[@]//-[ei] ${spoof_streams_patch}/}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
local patcher_args patched_apk build_mode
|
local patcher_args patched_apk build_mode
|
||||||
local rv_brand_f=${args[rv_brand],,}
|
local rv_brand_f=${args[rv_brand],,}
|
||||||
@ -543,7 +537,7 @@ build_rv() {
|
|||||||
for build_mode in "${build_mode_arr[@]}"; do
|
for build_mode in "${build_mode_arr[@]}"; do
|
||||||
patcher_args=("${p_patcher_args[@]}")
|
patcher_args=("${p_patcher_args[@]}")
|
||||||
pr "Building '${table}' in '$build_mode' mode"
|
pr "Building '${table}' in '$build_mode' mode"
|
||||||
if [ -n "$microg_patch" ] || [ -n "$spoof_streams_patch" ]; then
|
if [ -n "$microg_patch" ]; then
|
||||||
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}-${build_mode}.apk"
|
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}-${build_mode}.apk"
|
||||||
else
|
else
|
||||||
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}.apk"
|
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}.apk"
|
||||||
@ -555,13 +549,6 @@ build_rv() {
|
|||||||
patcher_args+=("-d \"${microg_patch}\"")
|
patcher_args+=("-d \"${microg_patch}\"")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -n "$spoof_streams_patch" ]; then
|
|
||||||
if [ "$build_mode" = apk ]; then
|
|
||||||
patcher_args+=("-e \"${spoof_streams_patch}\"")
|
|
||||||
elif [ "$build_mode" = module ]; then
|
|
||||||
patcher_args+=("-d \"${spoof_streams_patch}\"")
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ "${args[riplib]}" = true ]; then
|
if [ "${args[riplib]}" = true ]; then
|
||||||
patcher_args+=("--rip-lib x86_64 --rip-lib x86")
|
patcher_args+=("--rip-lib x86_64 --rip-lib x86")
|
||||||
if [ "$build_mode" = module ]; then
|
if [ "$build_mode" = module ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user