|
|
|
@ -250,6 +250,8 @@ detect_arch () {
|
|
|
|
|
detect_sdk () {
|
|
|
|
|
SDK_VERSION=$(grep_prop ro.build.version.sdk)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ "${SDK_VERSION}" -gt 28 ] && \
|
|
|
|
|
error "Android versions beyond Pie are not yet supported"
|
|
|
|
|
|
|
|
|
@ -268,7 +270,6 @@ detect_sdk () {
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
PATCH_CORE="${BASEDIR}/core_services.jar.dex"
|
|
|
|
|
PATCH_UNLP="${BASEDIR}/unifiednlp_services.jar.dex"
|
|
|
|
|
|
|
|
|
|
if [ "${SDK_VERSION}" -lt 24 ]; then
|
|
|
|
|
ui_print " > Android 4.1 - 6.0 (SDK ${SDK_VERSION}) detected"
|
|
|
|
@ -483,14 +484,13 @@ patch_services () {
|
|
|
|
|
|
|
|
|
|
if [ "${ROM_DEX_STATUS}" = "VDEX" ]; then
|
|
|
|
|
deodex_vdex
|
|
|
|
|
|
|
|
|
|
elif [ "${ROM_DEX_STATUS}" = "ODEX" ]; then
|
|
|
|
|
deodex_odex
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mkdir -p "${BASEDIR}/services.jar-mod"
|
|
|
|
|
|
|
|
|
|
PATCHES="${PATCH_HOOK} ${PATCH_CORE} ${PATCH_UNLP}"
|
|
|
|
|
PATCHES="${PATCH_HOOK} ${PATCH_CORE}"
|
|
|
|
|
|
|
|
|
|
ui_print " >> patching services.jar"
|
|
|
|
|
|
|
|
|
@ -562,9 +562,11 @@ install_addond () {
|
|
|
|
|
/system/addon.d/75-nanodroidpatcher.sh \
|
|
|
|
|
/system/addon.d/999-nanodroidpatcher.sh
|
|
|
|
|
|
|
|
|
|
for file in core_services.jar.dex unifiednlp_services.jar.dex dexpatcher.dex \
|
|
|
|
|
for file in core_services.jar.dex dexpatcher.dex \
|
|
|
|
|
hook_4.1-6.0_services.jar.dex hook_7.0-9.0_services.jar.dex \
|
|
|
|
|
baksmali_25.dex smali_25.dex baksmali_26.dex smali_26.dex magic.mgc; do
|
|
|
|
|
baksmali_23.dex baksmali_25.dex baksmali_26.dex \
|
|
|
|
|
smali_23.dex smali_25.dex smali_26.dex \
|
|
|
|
|
magic.mgc; do
|
|
|
|
|
cp "${BASEDIR}/${file}" ${PATCHER_ADDOND_DATA}/
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|