|
|
|
@ -416,8 +416,8 @@ detect_arch () {
|
|
|
|
|
detect_sdk () {
|
|
|
|
|
SDK_VERSION=$(grep_prop ro.build.version.sdk)
|
|
|
|
|
|
|
|
|
|
[ "${SDK_VERSION}" -gt 33 ] && \
|
|
|
|
|
error "Android versions beyond Android 13 are not yet supported"
|
|
|
|
|
[ "${SDK_VERSION}" -gt 34 ] && \
|
|
|
|
|
error "Android versions beyond Android 14 are not yet supported"
|
|
|
|
|
|
|
|
|
|
[ "${SDK_VERSION}" -lt 16 ] && \
|
|
|
|
|
error "Android versions before Jelly Bean are not supported"
|
|
|
|
@ -455,10 +455,14 @@ detect_sdk () {
|
|
|
|
|
ui_print " > Android 12.0 - 12.1 (SDK ${SDK_VERSION}) detected"
|
|
|
|
|
PATCH_HOOK="${BASEDIR}/hook_12.0_services.jar.dex"
|
|
|
|
|
PATCH_CORE="${BASEDIR}/core_11.0-12.1_services.jar.dex"
|
|
|
|
|
else
|
|
|
|
|
ui_print " > Android 13.0+ (SDK ${SDK_VERSION}) detected"
|
|
|
|
|
elif [ "$SDK_VERSION" -lt 34 ]; then
|
|
|
|
|
ui_print " > Android 13.0 (SDK ${SDK_VERSION}) detected"
|
|
|
|
|
PATCH_HOOK="${BASEDIR}/hook_13.0_services.jar.dex"
|
|
|
|
|
PATCH_CORE="${BASEDIR}/core_13.0_services.jar.dex"
|
|
|
|
|
else
|
|
|
|
|
ui_print " > Android 14.0+ (SDK ${SDK_VERSION}) detected"
|
|
|
|
|
PATCH_HOOK="${BASEDIR}/hook_14.0_services.jar.dex"
|
|
|
|
|
PATCH_CORE="${BASEDIR}/core_14.0_services.jar.dex"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
[ "${SDK_VERSION}" -gt 21 ] && DEX_OPTS="--multi-dex-threaded"
|
|
|
|
@ -738,13 +742,26 @@ install_addond () {
|
|
|
|
|
rm -rf ${PATCHER_ADDOND_DATA}
|
|
|
|
|
mkdir -p ${PATCHER_ADDOND_DATA}
|
|
|
|
|
|
|
|
|
|
for file in core_services.jar.dex core_11.0-12.1_services.jar.dex \
|
|
|
|
|
core_13.0_services.jar.dex dexpatcher_19.dex dexpatcher_26.dex \
|
|
|
|
|
hook_4.1-6.0_services.jar.dex hook_7.0-10.0_services.jar.dex \
|
|
|
|
|
hook_11.0_services.jar.dex hook_12.0_services.jar.dex \
|
|
|
|
|
hook_13.0_services.jar.dex baksmali_19.dex baksmali_24.dex \
|
|
|
|
|
baksmali_26.dex smali_19.dex smali_24.dex smali_26.dex \
|
|
|
|
|
magic.mgc org.spoofing.apk; do
|
|
|
|
|
for file in core_services.jar.dex \
|
|
|
|
|
core_11.0-12.1_services.jar.dex \
|
|
|
|
|
core_13.0_services.jar.dex \
|
|
|
|
|
core_14.0_services.jar.dex \
|
|
|
|
|
dexpatcher_19.dex \
|
|
|
|
|
dexpatcher_26.dex \
|
|
|
|
|
hook_4.1-6.0_services.jar.dex \
|
|
|
|
|
hook_7.0-10.0_services.jar.dex \
|
|
|
|
|
hook_11.0_services.jar.dex \
|
|
|
|
|
hook_12.0_services.jar.dex \
|
|
|
|
|
hook_13.0_services.jar.dex \
|
|
|
|
|
hook_14.0_services.jar.dex \
|
|
|
|
|
baksmali_19.dex \
|
|
|
|
|
baksmali_24.dex \
|
|
|
|
|
baksmali_26.dex \
|
|
|
|
|
smali_19.dex \
|
|
|
|
|
smali_24.dex \
|
|
|
|
|
smali_26.dex \
|
|
|
|
|
magic.mgc \
|
|
|
|
|
org.spoofing.apk; do
|
|
|
|
|
cp "${BASEDIR}/${file}" ${PATCHER_ADDOND_DATA}/
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|