Skip to content

Commit c9a9040

Browse files
v2.6.1-v33
1 parent 68982c9 commit c9a9040

File tree

5 files changed

+43
-44
lines changed

5 files changed

+43
-44
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,12 @@ If you can't run the `props` script for some reason, the logs are also stored in
244244

245245

246246
## Changelog
247+
### v2.6.1
248+
- Small fix (revert really) for possible issue with setting prop values (including fingerprint).
249+
247250
### v2.6.0
248-
- Updated the fingerprints list to load much, much faster.
249-
- Added and updated fingerprints for Huawei Mate 10, Nextbook Ares 8A, OnePlus 3, 3T, 5 and 5T, ZTE Axon 7. List updated to v33.
251+
- Updated the fingerprints list to load much, much faster.
252+
- Added and updated fingerprints for Huawei Mate 10, Nextbook Ares 8A, OnePlus 3, 3T, 5 and 5T, and ZTE Axon 7. List updated to v33.
250253
- The new and improved SafetyNet fix turns out to be not only for Android Pie. Gone through the entire list and added security patch dates where needed.
251254
- Fixed some seriously botched code in v2.5.0.
252255
- As usual, small bug fixes and improvemnts.

common/propsconf_conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CONFWEB=enabled
3333
# CONFFINGERPRINT should be set to the fingerprint of a ROM that passes
3434
# the ctsProfile check. See the prints.sh file for usable prints,
3535
# or the documentation for information on how to find one.
36-
# Note that Android Pie fingerprints often also need to match the Android
36+
# Note that Android builds after March 16 2018 often also need to match the Android
3737
# security patch date. Use the CONFPROPS setting to set ro.build.version.security_patch
3838
# to the matching date (example: 2018-10-05).
3939

common/propsconf_late

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# In that case, feel free to delete it.
1010

1111
# Script version
12-
SCRIPTV=15
12+
SCRIPTV=16
1313
SETTRANSF=2
1414
NOTTRANSF="OPTIONLATE"
1515

@@ -133,33 +133,31 @@ if [ -d "$MODPATH" ]; then
133133
SETFINGERPRINT=false
134134

135135
# Edits prop values if set for late_start service
136-
if [ "$OPTIONLATE" == 1 ] || [ "$CUSTOMPROPSLATE" -a "$CUSTOMEDIT" == 1 ] || [ "$PROPEDIT" == 1 ]; then
137-
echo -e "\n--------------------" >> $LOGFILE 2>&1
138-
log_handler "Editing prop values in late_start service mode."
139-
if [ "$OPTIONLATE" == 1 ]; then
140-
# ---Setting/Changing fingerprint---
141-
print_edit
142-
# ---Setting custom props---
143-
custom_edit "CUSTOMPROPS"
144-
fi
145-
# Edit custom props set for late_start service
146-
custom_edit "CUSTOMPROPSLATE"
147-
# Edit MagiskHide sensitive values
148-
if [ "$PROPEDIT" == 1 ]; then
149-
log_handler "Changing sensitive props."
150-
for ITEM in $PROPSLIST; do
151-
PROP=$(get_prop_type $ITEM)
152-
REPROP=$(echo "RE${PROP}" | tr '[:lower:]' '[:upper:]')
153-
MODULEPROP=$(echo "MODULE${PROP}" | tr '[:lower:]' '[:upper:]')
154-
if [ "$(eval "echo \$$REPROP")" == "true" ]; then
155-
log_handler "Changing/writing $ITEM."
156-
resetprop -v $ITEM >> $LOGFILE 2>&1
157-
resetprop -nv $ITEM $(eval "echo \$$MODULEPROP") >> $LOGFILE 2>&1
158-
fi
159-
done
160-
fi
161-
echo -e "\n--------------------" >> $LOGFILE 2>&1
136+
echo -e "\n--------------------" >> $LOGFILE 2>&1
137+
log_handler "Editing prop values in late_start service mode."
138+
if [ "$OPTIONLATE" == 1 ]; then
139+
# ---Setting/Changing fingerprint---
140+
print_edit
141+
# ---Setting custom props---
142+
custom_edit "CUSTOMPROPS"
162143
fi
144+
# Edit custom props set for late_start service
145+
custom_edit "CUSTOMPROPSLATE"
146+
# Edit MagiskHide sensitive values
147+
if [ "$PROPEDIT" == 1 ]; then
148+
log_handler "Changing sensitive props."
149+
for ITEM in $PROPSLIST; do
150+
PROP=$(get_prop_type $ITEM)
151+
REPROP=$(echo "RE${PROP}" | tr '[:lower:]' '[:upper:]')
152+
MODULEPROP=$(echo "MODULE${PROP}" | tr '[:lower:]' '[:upper:]')
153+
if [ "$(eval "echo \$$REPROP")" == "true" ]; then
154+
log_handler "Changing/writing $ITEM."
155+
resetprop -v $ITEM >> $LOGFILE 2>&1
156+
resetprop -nv $ITEM $(eval "echo \$$MODULEPROP") >> $LOGFILE 2>&1
157+
fi
158+
done
159+
fi
160+
echo -e "\n--------------------" >> $LOGFILE 2>&1
163161

164162
# ---Edits default.prop---
165163
if [ "$DEFAULTEDIT" == 1 ] && [ "$FILESAFE" == 0 ]; then

common/propsconf_post

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,19 @@ if [ -d "$MODPATH" ]; then
7979
config_file
8080

8181
# Edits prop values if set for post-fs-data
82-
if [ "$(get_file_value $LATEFILE "OPTIONLATE=")" == 0 ] || [ "$(get_file_value $LATEFILE "CUSTOMPROPSPOST=")" ] && [ "$(get_file_value $LATEFILE "CUSTOMEDIT=")" == 1 ]; then
83-
echo -e "\n--------------------" >> $LOGFILE 2>&1
84-
log_handler "Editing prop values in post-fs-data mode."
85-
if [ "$(get_file_value $LATEFILE "OPTIONLATE=")" == 0 ]; then
86-
# ---Setting/Changing fingerprint---
87-
print_edit
88-
# ---Setting custom props---
89-
custom_edit "CUSTOMPROPS"
90-
fi
91-
# Edit custom props set for post-fs-data
92-
custom_edit "CUSTOMPROPSPOST"
93-
echo -e "\n--------------------" >> $LOGFILE 2>&1
82+
echo -e "\n--------------------" >> $LOGFILE 2>&1
83+
log_handler "Editing prop values in post-fs-data mode."
84+
if [ "$(get_file_value $LATEFILE "OPTIONLATE=")" == 0 ]; then
85+
# ---Setting/Changing fingerprint---
86+
print_edit
87+
# ---Setting custom props---
88+
custom_edit "CUSTOMPROPS"
9489
fi
9590
# Deleting props
9691
prop_del
92+
# Edit custom props set for post-fs-data
93+
custom_edit "CUSTOMPROPSPOST"
94+
echo -e "\n--------------------" >> $LOGFILE 2>&1
9795

9896
# Edits build.prop
9997
if [ "$(get_file_value $LATEFILE "FILESAFE=")" == 0 ]; then

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=MagiskHidePropsConf
22
name=MagiskHide Props Config
3-
version=v2.6.0-v33
4-
versionCode=28
3+
version=v2.6.1-v33
4+
versionCode=29
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, and set your own custom props.
77
minMagisk=17000

0 commit comments

Comments
 (0)