Skip to content

Commit c5d5e06

Browse files
v3.0.3-v44
1 parent b85239a commit c5d5e06

File tree

5 files changed

+52
-26
lines changed

5 files changed

+52
-26
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ google/shamu/shamu:7.1.1/N8I11B/4171878:user/release-keys
112112
```
113113

114114
#### The getprop method
115-
If you don't want to use one of the provided fingerprints, you can get one for your device by running the getprop command below on a stock ROM/firmware/factory image that fully passes SafetyNet.
115+
You can get a certified fingerprint for your device by running the getprop command below on a stock ROM/firmware/factory image that fully passes SafetyNet.
116116
```
117117
getprop ro.build.fingerprint
118118
```
@@ -133,7 +133,6 @@ Once you have the file downloaded, there are several different ways that the fin
133133
- Sometimes there'll be a build.prop file directly in the zip/package. You might find the fingerprint in there.
134134
- For some devices you'll have to unpack the system.img to get to the build.prop or default.prop file, where you might find the info you want.This can sometimes be done with a simple archive app/program, but sometimes more advanced utilities are needed. On Windows, you can use something like [this tool](https://forum.xda-developers.com/showpost.php?p=57742855&postcount=42). You'll also find more info in the [main thread for that post](https://forum.xda-developers.com/android/software-hacking/how-to-conver-lollipop-dat-files-to-t2978952).
135135
- Other times you'll find the fingerprint in META-INF\com\google\android\updater-script. Look for "Target:" and you'll likely find the fingerprint there.
136-
137136
- Etc... Experiment, the fingerprint will be in there somewhere.
138137

139138
#### The firmware.mobi method
@@ -177,7 +176,7 @@ Just run the `props` command and the list will be updated automatically. Use the
177176

178177
If you already have a device fingerprint set by the module, and it has been updated in the current fingerprints list, it will be automatically updated when the prints list gets an update. Just reboot to apply. This function can be turned of in the script settings (see ["Prop script settings"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config#prop-script-settings) below)
179178

180-
**_Current fingerprints list version - v43_**
179+
**_Current fingerprints list version - v44_**
181180

182181

183182
## Please add support for device X
@@ -358,6 +357,10 @@ Releases from v2.4.1 are compatible with Magisk v17+.
358357

359358

360359
## Changelog
360+
### v3.0.3
361+
- Small update to the query for activating device simulation or not when picking a new fingerprint.
362+
- Updated the fingerprints list and added Asus Zenfone Max M1 and the Elephone U Pro to the list, and updated the OnePlus 5. List updated to v44.
363+
361364
### v3.0.2
362365
- Another quickfix, this time fixing editing already set custom props (a victim of slightly too heavy-handed optimisations of variable and settings retrieval in v3.0.0).
363366

@@ -574,10 +577,12 @@ Releases from v2.4.1 are compatible with Magisk v17+.
574577

575578

576579
## Current fingerprints list
577-
### List v43
580+
### List v44
578581
- Asus Zenfone 2 Laser (6.0.1)
579582
- Asus Zenfone 4 Max (7.1.1)
583+
- Asus Zenfone Max M1 (8.0.0)
580584
- Asus ZenPad S 8.0 (6.0.1)
585+
- Elephone U Pro (8.0.0)
581586
- Essential PH-1 (9)
582587
- Google Nexus 4 (5.1.1)
583588
- Google Nexus 5 (6.0.1)

common/prints.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
# Copyright (c) 2018-2019 Didgeridoohan @ XDA Developers
55
# Licence: MIT
66

7-
PRINTSV=43
7+
PRINTSV=44
88
PRINTSTRANSF=260
99

1010
# Certified fingerprints
1111
PRINTSLIST="
1212
Asus Zenfone 2 Laser (6.0.1)=asus/WW_Z00L/ASUS_Z00L_63:6.0.1/MMB29P/WW_user_21.40.1220.2196_20180308:user/release-keys
1313
Asus Zenfone 4 Max (7.1.1)=asus/WW_Phone/ASUS_X00HD_4:7.1.1/NMF26F/14.2016.1801.372-20180119:user/release-keys
14+
Asus Zenfone Max M1 (8.0.0)=asus/WW_X00PD/ASUS_X00P_4:8.0.0/OPR1.170623.032/15.00.1811.91:user/release-keys__2018-11-05
1415
Asus ZenPad S 8.0 (6.0.1)=asus/WW_P01M/P01M_3:6.0.1/MMB29P/WW_P01M-V5.6.0-20170608:user/release-keys
16+
Elephone U Pro (8.0.0)=Elephone/U_Pro/U_Pro:8.0.0/Elephone_U_Pro_20180917/09172123:user/release-keys__2018-09-05
1517
Essential PH-1 (9)=essential/mata/mata:9/PQ1A.190105.014/451:user/release-keys__2019-02-05
1618
Google Nexus 4 (5.1.1)=google/occam/mako:5.1.1/LMY48T/2237560:user/release-keys
1719
Google Nexus 5 (6.0.1)=google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys
@@ -72,7 +74,7 @@ OnePlus 2 (6.0.1)=OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447858500:user/release
7274
OnePlus X (6.0.1)=OnePlus/OnePlus/OnePlus:6.0.1/MMB29M/10281213:user/release-keys
7375
OnePlus 3 (8.0.0)=OnePlus/OnePlus3/OnePlus3:8.0.0/OPR1.170623.032/1809142047:user/release-keys__2018-09-01
7476
OnePlus 3T (8.0.0)=OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR1.170623.032/1812060016:user/release-keys__2018-11-01
75-
OnePlus 5 (8.1.0)=OnePlus/OnePlus5/OnePlus5:8.1.0/OPM1.171019.011/1809241512:user/release-keys__2018-09-01
77+
OnePlus 5 (9)=OnePlus/OnePlus5/OnePlus5:9/PKQ1.180716.001/1812102249:user/release-keys__2018-12-01
7678
OnePlus 5T (9)=OnePlus/OnePlus5T/OnePlus5T:9/PKQ1.180716.001/1901182129:user/release-keys__2018-12-01
7779
OnePlus 6 (9)=OnePlus/OnePlus6/OnePlus6:9/PKQ1.180716.001/1809150000:user/release-keys__2018-09-05
7880
OnePlus 6T (9)=OnePlus/OnePlus6T/OnePlus6T:9/PKQ1.180716.001/1811170214:user/release-keys__2018-11-01

common/util_functions.sh

+14
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,20 @@ format_file() {
249249
fi
250250
}
251251

252+
# Reboot the device
253+
force_reboot() {
254+
echo ""
255+
log_print "${C}Rebooting...${N}"
256+
setprop sys.powerctl reboot
257+
sleep 15
258+
log_handler "Rebooting failed."
259+
echo ""
260+
echo "That doesn't seem like it worked..."
261+
echo "Please reboot manually."
262+
echo ""
263+
exit 0
264+
}
265+
252266
# Updates placeholders
253267
placeholder_update() {
254268
FILEVALUE=$(get_file_value $1 "$2=")

module.prop

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=MagiskHidePropsConf
22
name=MagiskHide Props Config
3-
version=v3.0.2-v43
4-
versionCode=39
3+
version=v3.0.3-v44
4+
versionCode=40
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

system/binpath/props

+23-18
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ invalid_input() {
139139
;;
140140
4) INPMSG="Only enter '${G}y${N}', '${G}n${N}', '${G}r${N}' or '${G}e${N}'."
141141
;;
142-
5) INPMSG="Enter a fingerprint or pick from the options, one at a time."
142+
5) INPMSG="Only enter '${G}d${N}', '${G}y${N}', '${G}n${N}' or '${G}e${N}'."
143+
;;
144+
6) INPMSG="Enter a fingerprint or pick from the options, one at a time."
143145
;;
144146
esac
145147

@@ -197,16 +199,7 @@ reboot_fn() {
197199
fi
198200
case "$INPUT5" in
199201
y|Y)
200-
echo ""
201-
log_print "${C}Rebooting...${N}"
202-
setprop sys.powerctl reboot
203-
sleep 15
204-
log_handler "Rebooting failed."
205-
echo ""
206-
echo "That doesn't seem like it worked..."
207-
echo "Please reboot manually."
208-
echo ""
209-
exit 0
202+
force_reboot
210203
;;
211204
n|N)
212205
if [ "$2" == "p" ] || [ "$2" == "r" ] || [ "$2" == "reset-script" ]; then
@@ -327,7 +320,7 @@ menu_change_fingerprint() {
327320
if [ "$ORIGVENDPRINT" ]; then
328321
menu_vendor_print "$1"
329322
else
330-
invalid_input 5 2
323+
invalid_input 6 2
331324
fi
332325
;;
333326
u|U)
@@ -347,7 +340,7 @@ menu_change_fingerprint() {
347340
;;
348341
*)
349342
if [ "${#INPUT2}" -lt 10 ]; then
350-
invalid_input 5 2
343+
invalid_input 6 2
351344
else
352345
menu_new_print "$1" "$INPUT2" 2
353346
fi
@@ -552,21 +545,33 @@ menu_devsim_activate() {
552545
if [ -z "$INPUT6" ]; then
553546
menu_header "${C}$1${N}"
554547
echo ""
555-
echo "You have just chosen a new device fingerprint."
556-
echo "Would you like to activate device simulation?"
548+
echo "The device fingerprint has been updated."
557549
echo ""
558-
echo -n "Enter ${G}y${N}(es), ${G}n${N}(o) or ${G}e${N}(xit): "
550+
echo "Reboot for changes to take effect."
551+
echo ""
552+
echo "Do you want to reboot now (y/n)?"
553+
echo ""
554+
echo "You have just chosen a new device"
555+
echo "fingerprint. Enter ${G}d${N} to"
556+
echo "activate basic device simulation."
557+
echo "See the module documentation for"
558+
echo "details about this feature."
559+
echo ""
560+
echo -n "Enter ${G}d${N}, ${G}y${N}(es), ${G}n${N}(o) or ${G}e${N}(xit): "
559561
read -r INPUT6
560562
fi
561563
case "$INPUT6" in
562-
y|Y)
564+
d|D)
563565
INPUT2=""
564566
INPUT3=""
565567
INPUT4=""
566568
INPUT5=""
567569
change_dev_sim "Device simulation"
568570
break
569571
;;
572+
y|Y)
573+
force_reboot
574+
;;
570575
n|N)
571576
INPUT2=""
572577
INPUT3=""
@@ -577,7 +582,7 @@ menu_devsim_activate() {
577582
;;
578583
e|E) exit_fn
579584
;;
580-
*) invalid_input 3 6
585+
*) invalid_input 5 6
581586
;;
582587
esac
583588
done

0 commit comments

Comments
 (0)