Skip to content

Commit 4a2cdf6

Browse files
v5.0.1-v65
1 parent fbfdac6 commit 4a2cdf6

File tree

6 files changed

+25
-14
lines changed

6 files changed

+25
-14
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ Releases from v4.0.0 are compatible with Magisk v19+.
379379
Releases from v5.0.0 are recommended for Magisk v19.4+.
380380

381381
## Changelog
382+
### v5.0.1
383+
- Fixed issue with settings being cleared when updating from earlier module versions. Sorry if anyone got all their custom props removed...
384+
- Fixed issue with creating a custom prints list.
385+
- Fixed issue with saving Magisk log.
386+
- Added fingerprint for Xiaomi Note 7 Pro. Fingerprints list updated to v65.
387+
382388
### v5.0.0
383389
- Updated possible locations for both the configuration and reset files (can now be placed in the root of internal storage, in /data or in /cache).
384390
- Updated device simulation so that all props now are disabled by default. Should hopefully make a few less careless users experience issues caused by the feature. NOTE! All simulation prop values will be disabled with this update. If you did have basic simulation enabled prior to the update, you have to manually enable it again.

common/prints.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Copyright (c) 2018-2019 Didgeridoohan @ XDA Developers
55
# Licence: MIT
66

7-
PRINTSV=64
7+
PRINTSV=65
88
PRINTSTRANSF=350
99

1010
# Certified fingerprints
@@ -216,6 +216,7 @@ Xiaomi Redmi Note 5 Pro (8.1.0 & 9)=xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/V
216216
Xiaomi Redmi Note 5A Lite (7.1.2)=xiaomi/ugglite/ugglite:7.1.2/N2G47H/V9.1.2.0.NDFMIEI:user/release-keys
217217
Xiaomi Redmi Note 6 Pro (8.1.0)=xiaomi/tulip/tulip:8.1.0/OPM1.171019.011/V10.0.5.0.OEKMIFH:user/release-keys__2018-10-01
218218
Xiaomi Redmi Note 7 (9)=xiaomi/lavender/lavender:9/PKQ1.180904.001/V10.3.12.0.PFGMIXM:user/release-keys__2019-08-05
219+
Xiaomi Redmi Note 7 Pro (9)=xiaomi/violet/violet:9/PKQ1.181203.001/V10.3.13.0.PFHINXM:user/release-keys__2019-08-01
219220
Xiaomi Redmi Y1 (7.1.2)=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.6.2.0.NDKMIFD:user/release-keys__2018-07-01
220221
ZTE Axon 7 (7.1.1 & 8.0.0)=ZTE/P996A01_N/ailsa_ii:7.1.1/NMF26V/20171211.005949:user/release-keys;ZTE/P996A01_O/ailsa_ii:8.0.0/OPR1.170623.032/20180815.171922:user/release-keys__2018-07-01
221222
ZTE Blade (6.0.1)=ZTE/P809A50_MY_MAX/P809A50:6.0.1/MMB29M/20161017.095504:user/release-keys

common/util_functions.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ if [ "$INSTFN" ]; then
3838
$CACHELOC/propsconf_last.log
3939
"
4040
LOGFILE=$MHPCPATH/propsconf_install.log
41-
UPDATEV=$(get_file_value $UPDATELATEFILE "SCRIPTV=")
42-
UPDATETRANSF=$(get_file_value $UPDATELATEFILE "SETTRANSF=")
43-
NOTTRANSF=$(get_file_value $UPDATELATEFILE "NOTTRANSF=")
4441
SETTINGSLIST="
4542
FINGERPRINTENB
4643
PRINTMODULE
@@ -108,8 +105,8 @@ else
108105
TMPLOGLOC=$MHPCPATH/propslogs
109106
TMPLOGLIST="
110107
$MHPCPATH/defaultprops
111-
$MHPCPATH/magisk.log
112-
$MHPCPATH/magisk.log.bak
108+
$CACHELOC/magisk.log
109+
$CACHELOC/magisk.log.bak
113110
$MHPCPATH/propsconf*
114111
$MIRRORPATH/system/build.prop
115112
$MIRRORPATH/vendor/build.prop
@@ -140,7 +137,7 @@ PRINTSWWW="https://raw.githubusercontent.com/Magisk-Modules-Repo/MagiskHide-Prop
140137
PRINTSDEV="https://raw.githubusercontent.com/Didgeridoohan/Playground/master/prints.sh"
141138
PRINTFILES=$MODPATH/printfiles
142139
CSTMPRINTS=/sdcard/printslist
143-
CSTMFILE=$PRINTFILES/custom.sh
140+
CSTMFILE=$PRINTFILES/Custom.sh
144141

145142
# Known modules that edit device fingerprint
146143
USNFLIST="
@@ -882,6 +879,9 @@ system_prop_cont() {
882879
# ======================== Installation functions ========================
883880
# Places various module scripts in their proper places
884881
script_placement() {
882+
UPDATEV=$(get_file_value $UPDATELATEFILE "SCRIPTV=")
883+
UPDATETRANSF=$(get_file_value $UPDATELATEFILE "SETTRANSF=")
884+
NOTTRANSF=$(get_file_value $UPDATELATEFILE "NOTTRANSF=")
885885
if [ -f "$LATEFILE" ] && [ -d "$MODULESPATH/MagiskHidePropsConf" ]; then
886886
FILEV=$(get_file_value $LATEFILE "SCRIPTV=")
887887
FILETRANSF=$(get_file_value $LATEFILE "SETTRANSF=")
@@ -907,7 +907,7 @@ script_placement() {
907907
if [ "$FILEV" == 0 ]; then
908908
log_print "- Placing settings script"
909909
# Updated script with a required clearing of settings
910-
elif [ "$UPDATETRANSF" -gt "$FILETRANSF" ] && [ -z "$NOTTRANSF" ]; then
910+
elif [ "$UPDATETRANSF" -gt "$FILETRANSF" ] && [ ! "$NOTTRANSF" ]; then
911911
log_handler "Current transfer version - ${FILETRANSF}"
912912
log_handler "Update transfer version - ${UPDATETRANSF}"
913913
log_handler "No settings set to not transfer"
@@ -1027,7 +1027,7 @@ bin_check() {
10271027
mv -f $MODPATH/system/binpath $MODPATH/system/$BIN >> $LOGFILE 2>&1
10281028
}
10291029

1030-
# Check for late_start service boot script in post-fs-data.d, in case someone's moved it, delete the old propsconf_post boot script if present and remove a few old log files from /cache
1030+
# Function for removing screwed up and old files.
10311031
files_check() {
10321032
if [ -f "$POSTLATEFILE" ]; then
10331033
log_handler "Removing late_start service boot script from post-fs-data.d."
@@ -1043,6 +1043,10 @@ files_check() {
10431043
rm -f $ITEM
10441044
fi
10451045
done
1046+
if [ -f "" ]; then
1047+
log_handler "Removing broken custom.sh file."
1048+
$PRINTFILES/custom.sh
1049+
fi
10461050
}
10471051

10481052
# Update the device simulation variables if a fingerprint is set

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ print_modname() {
4444
# Load functions and variables
4545
INSTFN=true
4646
. $TMPDIR/util_functions.sh
47-
47+
4848
# Create install directory
4949
mkdir -pv $MHPCPATH
50-
50+
5151
# Start module installation log
5252
log_start
5353
# Check Magisk version

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=MagiskHidePropsConf
22
name=MagiskHide Props Config
3-
version=v5.0.0-v64
4-
versionCode=48
3+
version=v5.0.1-v65
4+
versionCode=49
55
author=Didgeridoohan
66
description=Change your device's fingerprint, to pass SafetyNet's CTS Profile check. Set/reset prop values set by MagiskHide. Change any prop values easily, and set your own custom props.

system/binpath/props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ menu_set_custprop() {
18821882
echo "Do you want to continue?"
18831883
echo ""
18841884
echo "Enter ${G}y${N}(es), ${G}n${N}(o), ${G}e${N}(xit)"
1885-
echo -n " or an option from above: "
1885+
echo -n "or an option from above: "
18861886
read -r INPUT5
18871887
fi
18881888
case "$INPUT5" in

0 commit comments

Comments
 (0)