Skip to content

Commit 423ad13

Browse files
v1.2.1-v4
1 parent 2f117b7 commit 423ad13

File tree

6 files changed

+56
-22
lines changed

6 files changed

+56
-22
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The current release is always attached to the OP of the [module support thread](
1212

1313

1414
## Usage
15-
After installing the module and rebooting, run the command `props` (as su) in a terminal emulator (you can find one on [F-Droid](https://f-droid.org/) or in the [Play Store](https://play.google.com/store/apps)), and follow the instructions to set your desired options.
15+
After installing the module and rebooting, run the command `props` (as su) in a terminal emulator (you can find a one on [F-Droid](https://f-droid.org/) or in the [Play Store](https://play.google.com/store/apps)), and follow the instructions to set your desired options.
1616
```
1717
su
1818
props
@@ -37,7 +37,7 @@ getprop ro.build.fingerprint
3737
If you're already on a custom ROM that can't pass the CTS profile check, this might not be an option... Head over to your device's forum and ask for help. If someone can run the getprop command on their device for you, you're good to go.
3838

3939
### Custom fingerprints list
40-
You can add your own fingerprint to the list by placing a file, named `printslis`, in the root of your internal storage with the fingerprint. It needs to be formated as follows:`device name=fingerprint`.
40+
You can add your own fingerprint to the list by placing a file, named `printslist`, in the root of your internal storage with the fingerprint. It needs to be formated as follows:`device name=fingerprint`.
4141
Here's an example:
4242
```
4343
Google Nexus 6=google/shamu/shamu:7.1.1/N8I11B/4171878:user/release-keys
@@ -49,7 +49,7 @@ The fingerprints list will update without the need to update the entire module.
4949

5050
Just run the `props` command and the list will be updated automatically.
5151

52-
**_Current fingerprints list version - v3_**
52+
**_Current fingerprints list version - v4_**
5353

5454

5555
## Editing build.prop and default.prop
@@ -90,9 +90,14 @@ In case of issues, please provide the logs, saved in /cache, "propsconf.log" and
9090

9191

9292
## Changelog
93+
### v1.2.1
94+
- Fixed logic for checking the original prop values.
95+
- New fingerprints (Xiaomi Mi 5, ZTE Axon 7), list v4.
96+
- Minor fixes.
97+
9398
### v1.2.0
9499
- Now in the Magisk repo. Updated to match.
95-
- New fingerprint, list v3.
100+
- New fingerprint (Pixel 2), list v3.
96101
- Show info when checking for fingerprint updates.
97102
- Minor changes and improvements.
98103

@@ -105,7 +110,7 @@ In case of issues, please provide the logs, saved in /cache, "propsconf.log" and
105110

106111

107112
## Current fingerprints list
108-
### List v3
113+
### List v4
109114
- Google Nexus 6 (7.1.1)
110115
- Google Pixel 2 (P DP1)
111116
- Google Pixel 2 XL (8.1.0)
@@ -114,4 +119,6 @@ In case of issues, please provide the logs, saved in /cache, "propsconf.log" and
114119
- Samsung Galaxy Grand Prime (5.0.2)
115120
- Samsung Galaxy S8 Plus (7.0)
116121
- Sony Xperia Z3 (6.0.1)
122+
- Xiaomi Mi 5 (7.0)
117123
- Xiaomi Mi6 (7.1.1)
124+
- ZTE Axon 7 (7.1.1)

common/post-fs-data.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ ORIGTYPE=$(resetprop ro.build.type)
8585
ORIGTAGS=$(resetprop ro.build.tags)
8686
ORIGSELINUX=$(resetprop ro.build.selinux)
8787
ORIGFINGERPRINT=$(resetprop ro.build.fingerprint)
88+
if [ ! "$ORIGFINGERPRINT" ]; then
89+
ORIGFINGERPRINT=$(resetprop ro.bootimage.build.fingerprint)
90+
fi
8891

8992
# Save defatul prop values in propsconf_late
9093
sed -i "s/ORIGDEBUGGABLE=$LATEDEBUGGABLE/ORIGDEBUGGABLE=$ORIGDEBUGGABLE/" $LATEFILE

common/prints.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# MagiskHide Props Config
44
# By Didgeridoohan @ XDA-Developers
55

6-
PRINTSV=3
6+
PRINTSV=4
77
PRINTSTRANSF=1
88

99
PRINTSFILE=/sdcard/printslist
@@ -18,7 +18,9 @@ OnePlus 5T (7.1.1)=OnePlus/OnePlus5T/OnePlus5T:7.1.1/NMF26X/12152312:user/releas
1818
Samsung Galaxy Grand Prime (5.0.2)=samsung/fortuna3gdtvvj/fortuna3gdtv:5.0.2/LRX22G/G530BTVJU1BPH4:user/release-keys
1919
Samsung Galaxy S8 Plus (7.0)=samsung/dream2ltexx/dream2lte:7.0/NRD90M/G955FXXU1AQGB:user/release-keys
2020
Sony Xperia Z3 (6.0.1)=Sony/D6633/D6633:6.0.1/23.5.A.1.291/2769308465:user/release-keys
21-
Xiaomi Mi6 (7.1.1)=Xiaomi/sagit/sagit:7.1.1/NMF26X/V8.2.17.0.NCACNEC:user/release-keys
21+
Xiaomi Mi 5 (7.0)=Xiaomi/gemini/gemini:7.0/NRD90M/V9.2.1.0.NAAMIEK:user/release-keys
22+
Xiaomi Mi 6 (7.1.1)=Xiaomi/sagit/sagit:7.1.1/NMF26X/V8.2.17.0.NCACNEC:user/release-keys
23+
ZTE Axon 7 (7.1.1)=ZTE/P996A01_N/ailsa_ii:7.1.1/NMF26V/20171211.005949:user/release-keys
2224
"
2325

2426
if [ -f "$PRINTSFILE" ]; then

common/util_functions.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,19 @@ download_prints() {
138138
else
139139
log_print "No connection."
140140
fi
141-
}
141+
}
142+
143+
orig_check() {
144+
PROPSTMPLIST=$PROPSLIST"
145+
ro.build.fingerprint
146+
"
147+
ORIGLOAD=0
148+
for PROPTYPE in $PROPSTMPLIST; do
149+
PROP=$(get_prop_type $PROPTYPE)
150+
ORIGPROP=$(echo "ORIG$PROP" | tr '[:lower:]' '[:upper:]')
151+
ORIGVALUE=$(get_file_value $LATEFILE "$ORIGPROP=")
152+
if [ "$ORIGVALUE" ]; then
153+
ORIGLOAD=1
154+
fi
155+
done
156+
}

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=v1.2.0-v3
4-
versionCode=3
3+
version=v1.2.1-v4
4+
versionCode=4
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.
77
minMagisk=1500

system/binpath/props

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ curr_values() {
4949
CURRTAGS=$(resetprop ro.build.tags)
5050
CURRSELINUX=$(resetprop ro.build.selinux)
5151
CURRFINGERPRINT=$(resetprop ro.build.fingerprint)
52+
if [ ! "$CURRFINGERPRINT" ]; then
53+
CURRFINGERPRINT=$(resetprop ro.bootimage.build.fingerprint)
54+
fi
5255
}
5356

5457
# File values
@@ -227,7 +230,6 @@ reset_print() {
227230
log_handler "Resetting device fingerprint."
228231

229232
SUBA=$(get_file_value $LATEFILE "MODULEFINGERPRINT=")
230-
PRINTA=$(echo $(cat $LATEFILE | grep "resetprop -v ro.build.fingerprint"))
231233

232234
# Saves new module value
233235
sed -i "s@MODULEFINGERPRINT=$SUBA@MODULEFINGERPRINT=@" $LATEFILE
@@ -298,11 +300,16 @@ menu_change_fingerprint() {
298300
else
299301
PRINTMODULETXT=""
300302
fi
301-
echo "Currently set to$PRINTMODULETXT:"
302-
echo ${C}$2${N}
303-
if [ "$2" != "$3" ]; then
304-
echo "The original value is:"
305-
echo ${C}$3${N}
303+
if [ "$2" ]
304+
echo "Currently set to$PRINTMODULETXT:"
305+
echo ${C}$2${N}
306+
if [ "$2" != "$3" ]; then
307+
echo "The original value is:"
308+
echo ${C}$3${N}
309+
fi
310+
else
311+
echo "ro.build.fingerprint doesn't seem to"
312+
echo "currently exist on your system."
306313
fi
307314
echo ""
308315
echo "Enter the new fingerprint or"
@@ -1008,10 +1015,10 @@ if [ ! -f "$LATEFILE" ]; then
10081015
reboot_fn "The module boot script can't be found.\n Please reboot your device to reset." "reset-script"
10091016
fi
10101017

1011-
ORIGCHECK=$(get_file_value $LATEFILE "ORIGFINGERPRINT=")
1012-
if [ ! "$ORIGCHECK" ]; then
1018+
orig_check
1019+
if [ "$ORIGLOAD" == 0 ]; then
10131020
log_handler "Original values are not loaded in propsconf_late."
1014-
reboot_fn "The original prop values are not loaded,\n possibly due to a full reset.\n\n Please reboot your device to reset." "reset-script"
1021+
reboot_fn "The original prop values are not loaded,\n possibly due to a full reset of the module.\n\n Please reboot your device to reset." "reset-script"
10151022
fi
10161023

10171024
# ====================================================
@@ -1072,10 +1079,10 @@ log_handler "Running props script."
10721079

10731080
while true
10741081
do
1075-
ORIGCHECK=$(get_file_value $LATEFILE "ORIGFINGERPRINT=")
1076-
if [ ! "$ORIGCHECK" ]; then
1082+
orig_check
1083+
if [ "$ORIGLOAD" == 0 ]; then
10771084
log_handler "Original values are not loaded in propsconf_late."
1078-
reboot_fn "The original prop values are not loaded,\n possibly due to a full reset.\n\n Please reboot your device to reset." "reset-script"
1085+
reboot_fn "The original prop values are not loaded,\n possibly due to a full reset of the module.\n\n Please reboot your device to reset." "reset-script"
10791086
else
10801087
INPUT=""
10811088
ACTIVE="${G} (active)${N}"

0 commit comments

Comments
 (0)