Patcher android 14

Add patcher support for android 14 using updated signature
spoofing haystack patches for android 14.
merge-requests/47/head
Lachlan Shambrook 6 months ago
parent 6e7a7dba8d
commit 018fb483a6

@ -99,11 +99,13 @@ update_patches () {
grab_patches sigspoof-core/services.jar.dex core_services.jar.dex
grab_patches sigspoof-core-11.0-12.1/services.jar.dex core_11.0-12.1_services.jar.dex
grab_patches sigspoof-core-13.0/services.jar.dex core_13.0_services.jar.dex
grab_patches sigspoof-core-14.0/services.jar.dex core_14.0_services.jar.dex
grab_patches sigspoof-hook-4.1-6.0/services.jar.dex hook_4.1-6.0_services.jar.dex
grab_patches sigspoof-hook-7.0-9.0/services.jar.dex hook_7.0-9.0_services.jar.dex
grab_patches sigspoof-hook-11.0/services.jar.dex hook_11.0_services.jar.dex
grab_patches sigspoof-hook-12.0-12.1 /services.jar.dex hook_12.0_services.jar.dex
grab_patches sigspoof-hook-13.0 /services.jar.dex hook_13.0_services.jar.dex
grab_patches sigspoof-hook-14.0 /services.jar.dex hook_14.0_services.jar.dex
}
progress () {

@ -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

Loading…
Cancel
Save