Skip to content

Commit ad4f7df

Browse files
v2.4.1-v29
1 parent dde6871 commit ad4f7df

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

META-INF/com/google/android/update-binary

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
#
77
##########################################################################################
88

9-
# Detect whether in boot mode
10-
ps | grep zygote | grep -v grep >/dev/null && BOOTMODE=true || BOOTMODE=false
11-
$BOOTMODE || ps -A 2>/dev/null | grep zygote | grep -v grep >/dev/null && BOOTMODE=true
12-
139
TMPDIR=/dev/tmp
1410
INSTALLER=$TMPDIR/install
15-
MAGISKBIN=/data/adb/magisk
11+
# Always mount under tmp
12+
MOUNTPATH=$TMPDIR/magisk_img
1613

1714
# Default permissions
1815
umask 022
@@ -26,7 +23,7 @@ ui_print() { echo "$1"; }
2623

2724
require_new_magisk() {
2825
ui_print "*******************************"
29-
ui_print " Please install Magisk v15.0+! "
26+
ui_print " Please install Magisk v17.0+! "
3027
ui_print "*******************************"
3128
exit 1
3229
}
@@ -40,18 +37,21 @@ ZIP=$3
4037

4138
mount /data 2>/dev/null
4239

43-
# Utility functions must exist
44-
[ -f $MAGISKBIN/util_functions.sh ] || require_new_magisk
45-
# Load utility fuctions
46-
. $MAGISKBIN/util_functions.sh
40+
# Load utility functions
41+
if [ -f /data/adb/magisk/util_functions.sh ]; then
42+
. /data/adb/magisk/util_functions.sh
43+
elif [ -f /data/magisk/util_functions.sh ]; then
44+
NVBASE=/data
45+
. /data/magisk/util_functions.sh
46+
else
47+
require_new_magisk
48+
fi
4749

48-
# We can't alter magisk image live, use alternative image if required
49-
$BOOTMODE && IMG=/data/adb/magisk_merge.img
50-
# Always mount under tmp
51-
MOUNTPATH=$TMPDIR/magisk_img
50+
# Use alternative image if in BOOTMODE
51+
$BOOTMODE && IMG=$NVBASE/magisk_merge.img
5252

5353
# Preperation for flashable zips
54-
get_outfd
54+
setup_flashable
5555

5656
# Mount partitions
5757
mount_partitions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ If you can't run the `props` script for some reason, the logs are also stored in
199199

200200

201201
## Changelog
202+
### v2.4.1
203+
- Updated to Magisk module template v17000. Compatible with Magisk v17+ only.
204+
202205
### v2.4.0
203206
- Added a check for if the download of the internal Busybox fails.
204207
- Added an option for picking what boot stage a custom prop should be set in.

module.prop

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=MagiskHidePropsConf
22
name=MagiskHide Props Config
3-
version=v2.4.0-v29
4-
versionCode=23
3+
version=v2.4.1-v29
4+
versionCode=24
55
author=Didgeridoohan
66
description=Change your device's fingerprint, to pass SafetyNet's CTS Profile check. Edit prop files for better root hiding. Set/reset prop values set by MagiskHide. Change any prop values easily.
7-
minMagisk=1500
7+
minMagisk=17000

0 commit comments

Comments
 (0)