mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Bump minSdk to 24 and drop API 23 workarounds
- Bump minSdk to 24 in Setup.kt, APP_PLATFORM to android-24 in Application.mk, and update CI AVD matrices and scripts. - Unify SePatchStrategy::Legacy with SePatchStrategy::SelinuxFs in magiskinit to use MOCK_ENFORCE FIFO blocking and remove MOCK_REQPROT. - Make APP_DATA_DIR a compile-time "/data/user_de" constant and remove pre-API 24 /data/user and /data/adb fallbacks. - Remove Android 6.0 Samsung forkAndSpecialize JNI hook signature. - Remove pre-API 24 device-protected storage wrappers, Api23Impl in LocaleSetting, AndroidManifest.xml stub resource workaround, and ServiceCompat/ProcessCompat/InlinedApi workarounds in the app. Assisted-by: Gemini 4 Argon
This commit is contained in:
+10
-14
@@ -152,20 +152,16 @@ check_boot_ramdisk() {
|
||||
|
||||
check_encryption() {
|
||||
if $ISENCRYPTED; then
|
||||
if [ $SDK_INT -lt 24 ]; then
|
||||
CRYPTOTYPE="block"
|
||||
else
|
||||
# First see what the system tells us
|
||||
CRYPTOTYPE=$(getprop ro.crypto.type)
|
||||
if [ -z $CRYPTOTYPE ]; then
|
||||
# If not mounting through device mapper, we are FBE
|
||||
if grep ' /data ' /proc/mounts | grep -qv 'dm-'; then
|
||||
CRYPTOTYPE="file"
|
||||
else
|
||||
# We are either FDE or metadata encryption (which is also FBE)
|
||||
CRYPTOTYPE="block"
|
||||
grep -q ' /metadata ' /proc/mounts && CRYPTOTYPE="file"
|
||||
fi
|
||||
# First see what the system tells us
|
||||
CRYPTOTYPE=$(getprop ro.crypto.type)
|
||||
if [ -z $CRYPTOTYPE ]; then
|
||||
# If not mounting through device mapper, we are FBE
|
||||
if grep ' /data ' /proc/mounts | grep -qv 'dm-'; then
|
||||
CRYPTOTYPE="file"
|
||||
else
|
||||
# We are either FDE or metadata encryption (which is also FBE)
|
||||
CRYPTOTYPE="block"
|
||||
grep -q ' /metadata ' /proc/mounts && CRYPTOTYPE="file"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# AVD MagiskInit Setup
|
||||
#####################################################################
|
||||
#
|
||||
# Support API level: 23 - 36
|
||||
# Support API level: 24 - 36
|
||||
#
|
||||
# With an emulator booted and accessible via ADB, usage:
|
||||
# ./build.py patch --avd path/to/booted/avd-image/ramdisk.img
|
||||
@@ -15,7 +15,7 @@
|
||||
#####################################################################
|
||||
# AVD Init Configurations:
|
||||
#
|
||||
# rootfs w/o early mount: API 23 - 25
|
||||
# rootfs w/o early mount: API 24 - 25
|
||||
# rootfs with early mount: API 26 - 27
|
||||
# Legacy system-as-root: API 28
|
||||
# 2 stage init: API 29 - 35
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# AVD Magisk Setup
|
||||
#####################################################################
|
||||
#
|
||||
# Support API level: 23 - 36
|
||||
# Support API level: 24 - 36
|
||||
#
|
||||
# For developing Magisk, just use:
|
||||
# ./build.py emulator
|
||||
|
||||
@@ -46,7 +46,7 @@ ui_print "- Target image: $BOOTIMAGE"
|
||||
# Detect version and architecture
|
||||
api_level_arch_detect
|
||||
|
||||
[ $API -lt 23 ] && abort "! Magisk only support Android 6.0 and above"
|
||||
[ $API -lt 24 ] && abort "! Magisk only support Android 7.0 and above"
|
||||
|
||||
ui_print "- Device platform: $ABI"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user