Skip to content

Commit 88db095

Browse files
v2.2.1
1 parent 330b1a0 commit 88db095

File tree

3 files changed

+53
-6
lines changed

3 files changed

+53
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ If you have the latest beta release of Magisk installed, the "magisk_debug.log"
160160

161161

162162
## Changelog
163+
### v2.2.1
164+
- Added a check for entering empty values for fingerprint and custom props.
165+
- Added a command option to go directly to the settings menu. Run `props` with the -h option for details.
166+
163167
### v2.2.0
164168
- Added an option to set prop values earlier in the boot process.
165169
- Moved module setup from post-fs-data.sh to post-fs-data.d.

module.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=MagiskHidePropsConf
22
name=MagiskHide Props Config
33
version=v2.2.0-v17
4-
versionCode=13
4+
versionCode=14
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.
77
minMagisk=1500

system/binpath/props

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ esac
4848
# Load functions
4949
. $MODPATH/util_functions.sh
5050

51+
blank_input() {
52+
# Find menu level
53+
case $1 in
54+
1) INPUT=""
55+
;;
56+
2) INPUT2=""
57+
;;
58+
3) INPUT3=""
59+
;;
60+
4) INPUT4=""
61+
;;
62+
5) INPUT5=""
63+
;;
64+
esac
65+
66+
echo ""
67+
echo "${R}Don't enter an empty value${N}."
68+
echo "Try again."
69+
sleep 2
70+
}
71+
5172
invalid_input() {
5273
INPMSG=""
5374

@@ -229,6 +250,10 @@ menu_change_fingerprint() {
229250
;;
230251
e) exit_fn
231252
;;
253+
"") blank_input 2
254+
;;
255+
*[[:blank:]]*) blank_input 2
256+
;;
232257
*) menu_new_print "$1" "$INPUT2" 2
233258
;;
234259
esac
@@ -934,6 +959,10 @@ menu_new_custprop() {
934959
;;
935960
e) exit_fn
936961
;;
962+
"") blank_input 3
963+
;;
964+
*[[:blank:]]*) blank_input 3
965+
;;
937966
*)
938967
if [ "$(echo $PROPSLIST | grep -o $INPUT3)" ]; then
939968
menu_magiskhide_custprop "$INPUT3"
@@ -1041,6 +1070,10 @@ menu_set_new_custprop() {
10411070
;;
10421071
e) exit_fn
10431072
;;
1073+
"") blank_input 4
1074+
;;
1075+
*[[:blank:]]*) blank_input 4
1076+
;;
10441077
*)
10451078
menu_set_custprop "$1" "$INPUT4"
10461079
INPUT2=""
@@ -1156,7 +1189,9 @@ menu_options() {
11561189
echo "${G}2${N} - Script colours ${CC}(${COLOURTXT})${N}"
11571190
echo "${G}3${N} - Fingerprints list check ${CP}(${PRINTSCHKTXT})${N}"
11581191
echo "${G}r${N} - Reset all settings"
1159-
echo "${G}b${N} - Go back to main menu"
1192+
if [ "$2" != "s" ]; then
1193+
echo "${G}b${N} - Go back to main menu"
1194+
fi
11601195
echo ""
11611196
echo "See the module readme or the"
11621197
echo "support thread @ XDA for details."
@@ -1174,8 +1209,12 @@ menu_options() {
11741209
r) menu_options_reset "Reset all settings"
11751210
;;
11761211
b)
1177-
INPUT=""
1178-
break
1212+
if [ "$2" == "s" ]; then
1213+
invalid_input 1 2
1214+
else
1215+
INPUT=""
1216+
break
1217+
fi
11791218
;;
11801219
e) exit_fn
11811220
;;
@@ -1471,6 +1510,7 @@ case "$1" in
14711510
echo " -nw Turn off fingerprint startup check."
14721511
echo " -p Improved hiding (edit prop files)."
14731512
echo " -r Reset all options/settings."
1513+
echo " -s Open script settings menu."
14741514
echo ""
14751515
echo "See the module readme or the"
14761516
echo "support thread @ XDA for details."
@@ -1492,6 +1532,9 @@ case "$1" in
14921532
*r*) # Reset all settings
14931533
reset_everything "Reset all settings" "r"
14941534
;;
1535+
*s*) # Open settings menu
1536+
menu_options "Script settings" "s"
1537+
;;
14951538
esac
14961539

14971540
if [ "$(get_file_value $LATEFILE "OPTIONWEB=")" == 0 ]; then
@@ -1508,15 +1551,15 @@ esac
15081551

15091552
if [ "$1" ]; then
15101553
case "$1" in
1511-
*d*|*f*|*h*|*nc*|*nw*|*p*|*r*) # Do nothing
1554+
*d*|*f*|*h*|*nc*|*nw*|*p*|*r*|*s*) # Do nothing
15121555
;;
15131556
*)
15141557
menu_header "${C}Help${N}"
15151558
echo ""
15161559
echo "${R}Invalid option.${N}"
15171560
echo ""
15181561
echo "Try again without options,"
1519-
echo "or use -h for details."
1562+
echo "or use -h for help and details."
15201563
echo ""
15211564
exit 0
15221565
;;

0 commit comments

Comments
 (0)