Skip to content

Commit 1671e0c

Browse files
v5.3.5
1 parent 7178ed5 commit 1671e0c

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,11 @@ Releases from v5.0.0 are recommended for Magisk v19.4+.
504504
Releases from v5.2.5 will only install on Magisk v20+.
505505

506506
## Changelog
507+
### v5.3.5
508+
- Fixed issue with partition model props not being set correctly.
509+
- Make sure that simulating ro.product.model is completely disabled when enabling "Force BASIC key attestation".
510+
- Removed Android versions from the device list when picking a model for "Force BASIC key attestation".
511+
507512
### v5.3.4
508513
- Added a module update check option. See the documentation for details.
509514
- Added `system_ext` to the list of partitions used for certain props (thank you @simonsmh).

common/util_functions.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ print_edit() {
12591259
if [ "$1" != "none" ]; then
12601260
echo "ro.build.fingerprint=${PRINTCHNG}" >> $1
12611261
else
1262-
resetprop -nv ro.build.fingerprint $PRINTCHNG >> $LOGFILE 2>&1
1262+
resetprop -nv ro.build.fingerprint "$PRINTCHNG" >> $LOGFILE 2>&1
12631263
fi
12641264
else
12651265
log_handler "ro.build.fingerprint not currently set on device. Skipping."
@@ -1295,7 +1295,7 @@ patch_edit() {
12951295
if [ "$1" != "none" ]; then
12961296
echo "ro.build.version.security_patch=${SECPATCH}" >> $1
12971297
else
1298-
resetprop -nv ro.build.version.security_patch $SECPATCH >> $LOGFILE 2>&1
1298+
resetprop -nv ro.build.version.security_patch "$SECPATCH" >> $LOGFILE 2>&1
12991299
fi
13001300
fi
13011301
;;
@@ -1616,7 +1616,7 @@ set_partition_props() {
16161616
if [ "$1" != "none" ]; then
16171617
echo "${TMPPROP}=${3}" >> $1
16181618
else
1619-
resetprop -nv $TMPPROP $3 >> $LOGFILE 2>&1
1619+
resetprop -nv $TMPPROP "$3" >> $LOGFILE 2>&1
16201620
fi
16211621
else
16221622
log_handler "$TMPPROP not currently set on device. Skipping."
@@ -1640,15 +1640,15 @@ forced_basic() {
16401640
else
16411641
BASICATTDEV="$(getprop ro.product.brand)"
16421642
fi
1643-
if [ "$BASICATTCUST" ]; then
1643+
if [ "$BASICATTCUST" ]; then
16441644
BASICATTMODEL=$BASICATTCUST
1645-
elif [ "$BASICATTLIST" ]; then
1645+
elif [ "$BASICATTLIST" ]; then
16461646
BASICATTMODEL=$BASICATTLIST
1647-
else
1647+
else
16481648
# Find the OEM print file
16491649
TMPFILE="$(ls $MODPATH/printfiles | grep -i $BASICATTDEV)"
16501650
BASICATTMODEL="$(get_file_value "$MODPATH/printfiles/$TMPFILE" "BASICATTMODEL=")"
1651-
fi
1651+
fi
16521652
# Write or load values
16531653
if [ "$1" != "none" ]; then
16541654
if [ "$1" == "$MODPATH/system.prop" ]; then
@@ -1663,6 +1663,8 @@ forced_basic() {
16631663
TMPVAL=1
16641664
if [ "$BASICATTEST" == 0 ]; then
16651665
log_handler "Enabling forced basic attestation."
1666+
# Disabling ro.product.model simulation
1667+
replace_fn "MODELSET" $MODELSET 0 $LATEFILE
16661668
elif [ "$BASICATTEST" == 1 ] && [ -z "$2" ] && [ -z "$3" ] && [ "$4" != "reset" ]; then
16671669
TMPVAL=0
16681670
log_handler "Disabling forced basic attestation."
@@ -1681,7 +1683,7 @@ forced_basic() {
16811683
else
16821684
TMPVAL="$(getprop ro.product.device)"
16831685
fi
1684-
resetprop -nv ro.product.model $TMPVAL >> $LOGFILE 2>&1
1686+
resetprop -nv ro.product.model "$TMPVAL" >> $LOGFILE 2>&1
16851687
set_partition_props "none" "ro.product.model" "$TMPVAL"
16861688
fi
16871689
}
@@ -1744,13 +1746,13 @@ dev_sim_edit() {
17441746
if [ "$1" != "none" ]; then
17451747
echo "${ITEM}=${TMPVALUE}" >> $1
17461748
else
1747-
resetprop -nv $ITEM $TMPVALUE >> $LOGFILE 2>&1
1749+
resetprop -nv $ITEM "$TMPVALUE" >> $LOGFILE 2>&1
17481750
fi
17491751
else
17501752
log_handler "$ITEM not currently set on device. Skipping."
17511753
fi
17521754
if [ "$PARTPROPSSET" == 1 ]; then
1753-
set_partition_props $1 $ITEM $TMPVALUE
1755+
set_partition_props "$1" $ITEM "$TMPVALUE"
17541756
fi
17551757
else
17561758
log_handler "Changing/writing $ITEM is disabled."

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.3.4-v104
4-
versionCode=65
3+
version=v5.3.5-v104
4+
versionCode=66
55
author=Didgeridoohan
66
description=Change your device's fingerprint, and/or force basic attestation, 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.

service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ if [ "$PROPEDIT" == 1 ]; then
109109
MODULEPROP=$(echo "MODULE${PROP}" | tr '[:lower:]' '[:upper:]')
110110
if [ "$(eval "echo \$$REPROP")" == "true" ]; then
111111
log_handler "Changing/writing $ITEM."
112-
resetprop -nv $ITEM $(eval "echo \$$MODULEPROP") >> $LOGFILE 2>&1
112+
resetprop -nv $ITEM "$(eval "echo \$$MODULEPROP")" >> $LOGFILE 2>&1
113113
fi
114114
done
115115
stop

system/binpath/props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ forced_list_pick_menu() {
11551155
IFS=$(echo -en "\n\b")
11561156
for ITEM in $PRINTSLIST; do
11571157
if [ "$(get_first $ITEM)" == "$2" ]; then
1158-
echo -e "${G}$ITEMCOUNT${N} - $(get_device "$ITEM")"
1158+
echo -e "${G}$ITEMCOUNT${N} - $(get_device "$ITEM" | sed "s| (.*)||")"
11591159
ITEMCOUNT=$(($ITEMCOUNT+1))
11601160
fi
11611161
done
@@ -1541,7 +1541,8 @@ menu_dev_sim() {
15411541
if [ "$BASICATTEST" == 0 ]; then
15421542
echo -e "${G}10${N} - ro.product.model${MODELTXT}"
15431543
else
1544-
echo "(Simulating ro.product.model is currently disabled.)"
1544+
echo -e " (Simulating ro.product.model is currently ${R}disabled${N}.)"
1545+
echo ""
15451546
fi
15461547
MANMODEN=true
15471548
else

0 commit comments

Comments
 (0)