This commit is contained in:
Didgeridoohan 2020-09-23 10:30:49 +02:00 committed by GitHub
parent 7178ed5e6f
commit 1671e0c4e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 13 deletions

View File

@ -504,6 +504,11 @@ Releases from v5.0.0 are recommended for Magisk v19.4+.
Releases from v5.2.5 will only install on Magisk v20+. Releases from v5.2.5 will only install on Magisk v20+.
## Changelog ## Changelog
### v5.3.5
- Fixed issue with partition model props not being set correctly.
- Make sure that simulating ro.product.model is completely disabled when enabling "Force BASIC key attestation".
- Removed Android versions from the device list when picking a model for "Force BASIC key attestation".
### v5.3.4 ### v5.3.4
- Added a module update check option. See the documentation for details. - Added a module update check option. See the documentation for details.
- Added `system_ext` to the list of partitions used for certain props (thank you @simonsmh). - Added `system_ext` to the list of partitions used for certain props (thank you @simonsmh).

View File

@ -1259,7 +1259,7 @@ print_edit() {
if [ "$1" != "none" ]; then if [ "$1" != "none" ]; then
echo "ro.build.fingerprint=${PRINTCHNG}" >> $1 echo "ro.build.fingerprint=${PRINTCHNG}" >> $1
else else
resetprop -nv ro.build.fingerprint $PRINTCHNG >> $LOGFILE 2>&1 resetprop -nv ro.build.fingerprint "$PRINTCHNG" >> $LOGFILE 2>&1
fi fi
else else
log_handler "ro.build.fingerprint not currently set on device. Skipping." log_handler "ro.build.fingerprint not currently set on device. Skipping."
@ -1295,7 +1295,7 @@ patch_edit() {
if [ "$1" != "none" ]; then if [ "$1" != "none" ]; then
echo "ro.build.version.security_patch=${SECPATCH}" >> $1 echo "ro.build.version.security_patch=${SECPATCH}" >> $1
else else
resetprop -nv ro.build.version.security_patch $SECPATCH >> $LOGFILE 2>&1 resetprop -nv ro.build.version.security_patch "$SECPATCH" >> $LOGFILE 2>&1
fi fi
fi fi
;; ;;
@ -1616,7 +1616,7 @@ set_partition_props() {
if [ "$1" != "none" ]; then if [ "$1" != "none" ]; then
echo "${TMPPROP}=${3}" >> $1 echo "${TMPPROP}=${3}" >> $1
else else
resetprop -nv $TMPPROP $3 >> $LOGFILE 2>&1 resetprop -nv $TMPPROP "$3" >> $LOGFILE 2>&1
fi fi
else else
log_handler "$TMPPROP not currently set on device. Skipping." log_handler "$TMPPROP not currently set on device. Skipping."
@ -1640,15 +1640,15 @@ forced_basic() {
else else
BASICATTDEV="$(getprop ro.product.brand)" BASICATTDEV="$(getprop ro.product.brand)"
fi fi
if [ "$BASICATTCUST" ]; then if [ "$BASICATTCUST" ]; then
BASICATTMODEL=$BASICATTCUST BASICATTMODEL=$BASICATTCUST
elif [ "$BASICATTLIST" ]; then elif [ "$BASICATTLIST" ]; then
BASICATTMODEL=$BASICATTLIST BASICATTMODEL=$BASICATTLIST
else else
# Find the OEM print file # Find the OEM print file
TMPFILE="$(ls $MODPATH/printfiles | grep -i $BASICATTDEV)" TMPFILE="$(ls $MODPATH/printfiles | grep -i $BASICATTDEV)"
BASICATTMODEL="$(get_file_value "$MODPATH/printfiles/$TMPFILE" "BASICATTMODEL=")" BASICATTMODEL="$(get_file_value "$MODPATH/printfiles/$TMPFILE" "BASICATTMODEL=")"
fi fi
# Write or load values # Write or load values
if [ "$1" != "none" ]; then if [ "$1" != "none" ]; then
if [ "$1" == "$MODPATH/system.prop" ]; then if [ "$1" == "$MODPATH/system.prop" ]; then
@ -1663,6 +1663,8 @@ forced_basic() {
TMPVAL=1 TMPVAL=1
if [ "$BASICATTEST" == 0 ]; then if [ "$BASICATTEST" == 0 ]; then
log_handler "Enabling forced basic attestation." log_handler "Enabling forced basic attestation."
# Disabling ro.product.model simulation
replace_fn "MODELSET" $MODELSET 0 $LATEFILE
elif [ "$BASICATTEST" == 1 ] && [ -z "$2" ] && [ -z "$3" ] && [ "$4" != "reset" ]; then elif [ "$BASICATTEST" == 1 ] && [ -z "$2" ] && [ -z "$3" ] && [ "$4" != "reset" ]; then
TMPVAL=0 TMPVAL=0
log_handler "Disabling forced basic attestation." log_handler "Disabling forced basic attestation."
@ -1681,7 +1683,7 @@ forced_basic() {
else else
TMPVAL="$(getprop ro.product.device)" TMPVAL="$(getprop ro.product.device)"
fi fi
resetprop -nv ro.product.model $TMPVAL >> $LOGFILE 2>&1 resetprop -nv ro.product.model "$TMPVAL" >> $LOGFILE 2>&1
set_partition_props "none" "ro.product.model" "$TMPVAL" set_partition_props "none" "ro.product.model" "$TMPVAL"
fi fi
} }
@ -1744,13 +1746,13 @@ dev_sim_edit() {
if [ "$1" != "none" ]; then if [ "$1" != "none" ]; then
echo "${ITEM}=${TMPVALUE}" >> $1 echo "${ITEM}=${TMPVALUE}" >> $1
else else
resetprop -nv $ITEM $TMPVALUE >> $LOGFILE 2>&1 resetprop -nv $ITEM "$TMPVALUE" >> $LOGFILE 2>&1
fi fi
else else
log_handler "$ITEM not currently set on device. Skipping." log_handler "$ITEM not currently set on device. Skipping."
fi fi
if [ "$PARTPROPSSET" == 1 ]; then if [ "$PARTPROPSSET" == 1 ]; then
set_partition_props $1 $ITEM $TMPVALUE set_partition_props "$1" $ITEM "$TMPVALUE"
fi fi
else else
log_handler "Changing/writing $ITEM is disabled." log_handler "Changing/writing $ITEM is disabled."

View File

@ -1,6 +1,6 @@
id=MagiskHidePropsConf id=MagiskHidePropsConf
name=MagiskHide Props Config name=MagiskHide Props Config
version=v5.3.4-v104 version=v5.3.5-v104
versionCode=65 versionCode=66
author=Didgeridoohan author=Didgeridoohan
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. 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.

View File

@ -109,7 +109,7 @@ if [ "$PROPEDIT" == 1 ]; then
MODULEPROP=$(echo "MODULE${PROP}" | tr '[:lower:]' '[:upper:]') MODULEPROP=$(echo "MODULE${PROP}" | tr '[:lower:]' '[:upper:]')
if [ "$(eval "echo \$$REPROP")" == "true" ]; then if [ "$(eval "echo \$$REPROP")" == "true" ]; then
log_handler "Changing/writing $ITEM." log_handler "Changing/writing $ITEM."
resetprop -nv $ITEM $(eval "echo \$$MODULEPROP") >> $LOGFILE 2>&1 resetprop -nv $ITEM "$(eval "echo \$$MODULEPROP")" >> $LOGFILE 2>&1
fi fi
done done
stop stop

Binary file not shown.