Skip to content

Commit a9b0be7

Browse files
v2.5.0-v31
1 parent f2203f9 commit a9b0be7

File tree

11 files changed

+145
-251
lines changed

11 files changed

+145
-251
lines changed

META-INF/com/google/android/update-binary

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ mount_magisk_img
104104
log_start
105105
# Check for fresh Magisk installation
106106
install_check
107-
# Check busybox version
108-
check_bb
109107

110108
# Create mod paths
111109
rm -rf $MODPATH 2>/dev/null

README.md

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ This might be because your device simply hasn't been certified or that the ROM y
3030

3131
To fix this, you can use a known working fingerprint (one that has been certified by Google), usually from a stock ROM/firmware/factory image, and replace your device's current fingerprint with this. You can also use a fingerprint from another device, but this will change how your device is perceived.
3232

33-
There are a few pre-configured certified fingerprints available in the module, just in case you can't get a hold of one for your device. If you have a working fingerprint that could be added to the list, or an updated one for one already on there, please post that in the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228) toghether with device details.
33+
There are a few pre-configured certified fingerprints available in the module, just in case you can't get a hold of one for your device. If you have a working fingerprint that could be added to the list, or an updated one for one already on there, please post that in the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228) toghether with device details. If it's a fingerprint for Android Pie (9), please also include the Android security patch date that corresponds to the fingerprint.
34+
35+
### Matching the Android security patch date
36+
For some devices, if the fingerprint is for Android Pie (9), it is necessary to use a security patch date that matches the fingerprint used. For the module provided fingerprints this is done automatically, but if you enter a fingerprint manually you will have to update the security patch date yourself (if they don't already match). Use the [Custom prop](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#changeset-custom-prop-values) function of this module to change `ro.build.version.security_patch` to the desired date.
3437

3538
### Can I use any fingerprint?
3639
It's possible to use any fingerprint that's certified for your device. It doesn't have to match, either device or Android version. If you don't use a fingerprint for your device, the device might be percieved as the device that the fingerprint belongs to, in certain situations (Play Store, etc). The Android version doesn't matter much, and if you're using a ROM with an Android version much newer than what is officially available for your device, you are going to have to use an older fingerprint if you want to use the one for your device. But, like already stated, that doesn't really matter.
@@ -65,11 +68,12 @@ Take a look below for an example of what a device fingerprint looks like.
6568
Sometimes you can also find up to date and certified fingerprints at [firmware.mobi](https://desktop.firmware.mobi/).
6669

6770
### Custom fingerprints list
68-
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`.
71+
You can add your own fingerprint to the list by placing a file, named `printslist` (no file extension), in the root of your internal storage with the fingerprint. It needs to be formated as follows: `device name=fingerprint`.
6972
Here's an example:
7073
```
7174
Google Nexus 6=google/shamu/shamu:7.1.1/N8I11B/4171878:user/release-keys
7275
```
76+
NOTE: If you're using a fingerprint for Android Pie (9) you might have to change the security patch date to one that matches the fingerprint used. This can be done directly in the fingerprints list, by adding a paragraph sign (`§`) at the end of the fingerprint directly followed by the date (`§2018-09-05`). You can also use the [Custom prop](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#changeset-custom-prop-values) function of this module to change `ro.build.version.security_patch` to the desired date.
7377

7478

7579
### I still can't pass the ctsProfile check
@@ -98,13 +102,13 @@ The fingerprints list will update without the need to update the entire module.
98102

99103
Just run the `props` command and the list will be updated automatically. Use the -nw option to disable or disable it completely in the script settings (see ["Prop script settings"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config#prop-script-settings) below). If you've disabled the this setting you can update the list manually in the `Edit device fingerprint` menu.
100104

101-
**_Current fingerprints list version - v30_**
105+
**_Current fingerprints list version - v31_**
102106

103107

104108
## Please add support for device X
105109
Adding device fingerprints to the list relies heavily on the users. You guys. I've looked up a fingerprint from time to time, but it is a bit time consuming and I don't have that time...
106-
107-
If you want a specific device fingerprint to be added to the module, take a look in the docs, under [Finding a certified fingerprint](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#finding-a-certified-fingerprint). If you can find a fingerprint for the device you have in mind, post it in the thread. I'll test it out and if it passes the ctsProfile check I'll add it to the list.
110+
111+
If you want a specific device fingerprint to be added to the module, take a look in the docs, under [Finding a certified fingerprint](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#finding-a-certified-fingerprint). If you can find a fingerprint for the device you have in mind, post it in the thread. I'll test it out and if it passes the ctsProfile check I'll add it to the list. If it's a fingerprint for Android Pie (9), please also include the Android security patch date that corresponds to the fingerprint.
108112

109113

110114
## Improved root hiding - Editing build.prop and default.prop
@@ -126,10 +130,12 @@ If, for some reason, you need one or more of these to be kept as their original
126130
It's quite easy to change prop values with Magisk. With this module it's even easier. Just enter the prop you want to change and the new value and the module does the rest, nice and systemless. Any changes that you've previously done directly to build.prop, default.prop, etc, you can now do with this module instead.
127131

128132
When setting a custom prop you can also pick in what boot stage it should be set in. This can also be changed later for each individual custom prop. There are three options:
129-
- Default - The main module option will decide (see Prop script settings below).
133+
- Default - The main module option will decide (see [Prop script settings](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#boot-stage) below).
130134
- post-fs-data - The prop will always be set in post-fs-data, regardless of the main module option.
131135
- late_start service - The prop will always be set in late_start service, regardless of the main module option.
132136

137+
Note: post-fs-data runs earlier than late_start service.
138+
133139
### My build.prop doesn't change after setting a custom prop
134140
Magisk doesn't alter the build.prop file when changing a custom prop value, it simply loads the new value instead of the one in build.prop. If you want to check if the new value has been loaded you can see this by selecting the prop in the "Add/edit custom props" menu of the `props` script.
135141

@@ -156,6 +162,8 @@ There are a couple of persistent options that you can set for the `props` script
156162
### Boot stage
157163
It's possible to move the execution of the boot script from the default post-fs-data to late_start service. Running the script in post-fs-data is required for the SafetyNet fix and custom props to work on some ROM/device combinations, and is also more reliable overall. If there are any kind of issues during boot, try changing the boot stage to late_start service instead. Just keep in mind that this might cause setting the build fingerprint to fail.
158164

165+
Note: post-fs-data runs earlier than late_start service.
166+
159167
### Script colours
160168
This option will disable or enable colours for the `props` script.
161169

@@ -182,7 +190,7 @@ But first: have you tried turning it off and on again? Toggling MagiskHide off a
182190
If you have questions, suggestions or are experiencing some kind of issue, visit the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228) @ XDA.
183191

184192
### Known issues
185-
- Xiaomi devices (MIUI) often have issues passing the ctsProfile check, particularly China releases. This is under investigation...
193+
- Xiaomi devices (MIUI) often have issues passing the ctsProfile check, particularly China releases. Try using [ShellHide](https://forum.xda-developers.com/apps/magisk/magisk-shellhide-t3855616) by @JayminSuthar together with this module. They might work in conjunction to get the device to pass SafetyNet.
186194
- If you're on Android Pie you will have to use Magisk v17.2+. Any version prior to that will not be able to change the required prop values. This is because of a change in Android Pie, and in Magisk v17.2 the resetprop tool has been updated for this change.
187195

188196
### An option is marked as "disabled"
@@ -201,6 +209,9 @@ This module can only really help with the ctsProfile check, by spoofing the devi
201209
### Props don't seem to set properly
202210
If it seems like props you're trying to set with the module don't get set properly (ctsProfile still doesn't pass, custom props don't work, etc), go into the script options and change the execution of the boot script to post-fs-data. See ["Boot stage"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config#boot-stage) above.
203211

212+
### My device's Android security patch date changed
213+
For some devices, when using an Android Pie fingerprint, it is necessary to also change the security patch date to match the fingerprint. This is automatically done by the module when using a Pie fingerprint. If you do not want this to happen you can manually add `ro.build.version.security_patch` to the custom props and add back the original date.
214+
204215
### Device issues because of the module
205216
In case of issues, if you've set a prop value that doesn't work on your device causing it not to boot, etc, don't worry. There are options. You can follow the advice in the [Magisk troubleshooting guide](https://www.didgeridoohan.com/magisk/Magisk#hn_Module_causing_issues_Magisk_functionality_bootloop_loss_of_root_etc) to remove or disable the module, or you can use the module's built-in options to reset all module settings to the defaults.
206217

@@ -225,12 +236,18 @@ If you can't run the `props` script for some reason, the logs are also stored in
225236

226237

227238
## Credits
228-
@topjohnwu @ XDA Developers, for Magisk
229-
@osm0sis, for his Busybox binaries
239+
@topjohnwu @ XDA Developers, for Magisk
230240
@Zackptg5, @veez21 and @jenslody @ XDA Developers, for help and inspiration
231241

232242

233243
## Changelog
244+
### v2.5.0
245+
- Improved/fixed the SafetyNet fix when using Android Pie fingerprints.
246+
- Updated/changed Busybox logic.
247+
- It is sometimes an appropriate response to reality to go insane.
248+
- Added and updated fingerprints for Essential PH-1, Google Pixel and Pixel XL (all three variants) and Nokia 7 Plus. Fingerprints list v31.
249+
- Various bugfixes and improvements.
250+
234251
### v2.4.3
235252
- Another small update, fixing my bad memory (I wish).
236253

@@ -288,7 +305,7 @@ If you can't run the `props` script for some reason, the logs are also stored in
288305
- Updated and clarified the documentation on how to use the configuration file.
289306
- A bunch of improvements and tweaks. Several of which may go horribly wrong.
290307
- Updated and added bunch of new fingerprints (Asus ZenPad S 8.0, Huawei P20 Pro, Samsung Galaxy S8, Sony Xperia XZ1 Dual and XZ1 Compact, Xiaomi Mi 4C and Redmi Note 3 Pro SE), list v19.
291-
- Dont turn your back, dont look away, and *dont blink!* Good luck.
308+
- Don't turn your back, don't look away, and *don't blink!* Good luck.
292309

293310
### v2.2.2
294311
- This is not the changelog you're looking for. You can go about your business. Move along.
@@ -375,10 +392,11 @@ If you can't run the `props` script for some reason, the logs are also stored in
375392

376393

377394
## Current fingerprints list
378-
### List v30
395+
### List v31
379396
- Asus Zenfone 2 Laser (6.0.1)
380397
- Asus Zenfone 4 Max (7.1.1)
381398
- Asus ZenPad S 8.0 (6.0.1)
399+
- Essential PH-1 (9)
382400
- Google Nexus 4 (5.1.1)
383401
- Google Nexus 5 (6.0.1)
384402
- Google Nexus 6 (7.1.1)
@@ -388,6 +406,8 @@ If you can't run the `props` script for some reason, the logs are also stored in
388406
- Google Pixel XL (9)
389407
- Google Pixel 2 (9)
390408
- Google Pixel 2 XL (9)
409+
- Google Pixel 3 (9)
410+
- Google Pixel 3 XL (9)
391411
- HTC 10 (6.0.1)
392412
- HTC U11 (8.0.0)
393413
- Huawei Honor 6X (8.0.0)
@@ -408,6 +428,7 @@ If you can't run the `props` script for some reason, the logs are also stored in
408428
- Motorola Moto G6 Play (8.0.0)
409429
- Motorola Moto X4 (8.0.0)
410430
- Motorola Moto Z2 Play (8.0.0)
431+
- Nokia 7 Plus (9)
411432
- Nvidia Shield K1 (7.0)
412433
- Nvidia Shield Tablet (7.0)
413434
- OnePlus 2 (6.0.1)

common/post-fs-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ fi
4949
log_handler "post-fs-data.sh finished.\n\n===================="
5050

5151
# Deletes the post-fs-data control file
52-
rm -f $POSTCHKFILE
52+
rm -f $POSTCHKFILE

common/prints.sh

Lines changed: 10 additions & 6 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=30
6+
PRINTSV=31
77
PRINTSTRANSF=1
88

99
PRINTSFILE=/sdcard/printslist
@@ -13,15 +13,18 @@ PRINTSLIST="
1313
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
1414
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
1515
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+
Essential PH-1 (9)=essential/mata/mata:9/PPR1.180610.091/249:user/release-keys§2018-07-05
1617
Google Nexus 4 (5.1.1)=google/occam/mako:5.1.1/LMY48T/2237560:user/release-keys
1718
Google Nexus 5 (6.0.1)=google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys
1819
Google Nexus 6 (7.1.1)=google/shamu/shamu:7.1.1/N6F27M/4299435:user/release-keys
1920
Google Nexus 5X (8.1.0)=google/bullhead/bullhead:8.1.0/OPM2.171019.029/4657601:user/release-keys
2021
Google Nexus 6P (8.1.0)=google/angler/angler:8.1.0/OPM5.171019.019/4619337:user/release-keys
21-
Google Pixel (9)=google/sailfish/sailfish:9/PPR2.180905.006/4945130:user/release-keys
22-
Google Pixel XL (9)=google/marlin/marlin:9/PPR2.180905.006/4945130:user/release-keys
23-
Google Pixel 2 (9)=google/walleye/walleye:9/PPR2.180905.005/4928864:user/release-keys
24-
Google Pixel 2 XL (9)=google/taimen/taimen:9/PPR2.180905.005/4928864:user/release-keys
22+
Google Pixel (9)=google/sailfish/sailfish:9/PPR2.181005.003/4984323:user/release-keys§2018-10-05
23+
Google Pixel XL (9)=google/marlin/marlin:9/PPR2.181005.003/4984323:user/release-keys§2018-10-05
24+
Google Pixel 2 (9)=google/walleye/walleye:9/PPR2.181005.003/4984323:user/release-keys§2018-10-05
25+
Google Pixel 2 XL (9)=google/taimen/taimen:9/PPR2.181005.003/4984323:user/release-keys§2018-10-05
26+
Google Pixel 3 (9)=google/blueline/blueline:9/PD1A.180720.030/4972053:user/release-keys§2018-09-05
27+
Google Pixel 3 XL (9)=google/crosshatch/crosshatch:9/PD1A.180720.030/4972053:user/release-keys§2018-09-05
2528
HTC 10 (6.0.1)=htc/HTCOneM10vzw/htc_pmewl:6.0.1/MMB29M/774095.8:user/release-keys
2629
HTC U11 (8.0.0)=htc/ocndtwl_01405/htc_ocndtwl:8.0.0/OPR6.170623.013/1017190.2:user/release-keys
2730
Huawei Honor 6X (8.0.0)=HONOR/BLN-AL10/HWBLN-H:8.0.0/HONORBLN-AL10/528(C00):user/release-keys
@@ -42,6 +45,7 @@ Motorola Moto G5S (7.1.1)=motorola/montana/montana:7.1.1/NPPS26.102-49-8/6:user/
4245
Motorola Moto G6 Play (8.0.0)=motorola/jeter_sprint/jeter:8.0.0/OCP27.91-23/23:user/release-keys
4346
Motorola Moto X4 (8.0.0)=motorola/payton/payton:8.0.0/OPWS27.57-25-6-10/12:user/release-keys
4447
Motorola Moto Z2 Play (8.0.0)=motorola/albus/albus:8.0.0/OPS27.76-12-25/26:user/release-keys
48+
Nokia 7 Plus (9)=Nokia/Onyx_00WW/B2N_sprout:9/PPR1.180610.011/00WW_3_22C:user/release-keys§2018-09-01
4549
Nvidia Shield K1 (7.0)=nvidia/sb_na_wf/shieldtablet:7.0/NRD90M/1928188_1065.2559:user/release-keys
4650
Nvidia Shield Tablet (7.0)=nvidia/wx_na_wf/shieldtablet:7.0/NRD90M/1928188_904.2811:user/release-keys
4751
OnePlus 2 (6.0.1)=OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447858500:user/release-keys
@@ -50,7 +54,7 @@ OnePlus 3 (8.0.0)=OnePlus/OnePlus3/OnePlus3:8.0.0/OPR1.170623.032/05171653:user/
5054
OnePlus 3T (8.0.0)=OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR1.170623.032/05171658:user/release-keys
5155
OnePlus 5 (8.1.0)=OnePlus/OnePlus5/OnePlus5:8.1.0/OPM1.171019.011/06131715:user/release-keys
5256
OnePlus 5T (8.1.0)=OnePlus/OnePlus5T/OnePlus5T:8.1.0/OPM1.171019.011/06131716:user/release-keys
53-
OnePlus 6 (9)=OnePlus/OnePlus6/OnePlus6:9/PKQ1.180716.001/1809150000:user/release-keys
57+
OnePlus 6 (9)=OnePlus/OnePlus6/OnePlus6:9/PKQ1.180716.001/1809150000:user/release-keys§2018-09-05
5458
Samsung Galaxy A8 Plus (7.1.1)=samsung/jackpot2ltexx/jackpot2lte:7.1.1/NMF26X/A730FXXU2ARD1:user/release-keys
5559
Samsung Galaxy Grand Prime (5.0.2)=samsung/fortuna3gdtvvj/fortuna3gdtv:5.0.2/LRX22G/G530BTVJU1BPH4:user/release-keys
5660
Samsung Galaxy J2 (5.1.1)=samsung/j23gdd/j23g:5.1.1/LMY48B/J200HXXU0AQK2:user/release-keys

common/propsconf_conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ 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
37+
# security patch date. Use the CONFPROPS setting to set ro.build.version.security_patch
38+
# to the matching date (example: 2018-10-05).
3639

3740
# CONFPROPFILES should be set to "true" if you want to mask the file
3841
# values in build.prop and default.prop. For better root hiding.
@@ -88,7 +91,7 @@ CONFWEB=enabled
8891
# useful if the module's boot script seems to be causing issues during boot.
8992
#
9093
# CONFCOLOUR and CONFWEB are the options for colour and automatic fingerprints
91-
# list update. See the module documentation for more details.
94+
# list update. See the module documentation for more details. Set to "enabled" or "disabled".
9295

9396
# If any variables are left unset, that particular prop/configuration
9497
# will be cleared and the device/MagiskHide default values will be used.

common/propsconf_late

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,6 @@ if [ -d "$MODPATH" ]; then
8383
log_start
8484
log_handler "Module disabled."
8585
else
86-
# Checks for the Universal SafetyNet Fix module and similar modules editing the device fingerprint
87-
PRINTMODULE=false
88-
for USNF in $USNFLIST; do
89-
if [ -d "$IMGPATH/$USNF" ]; then
90-
NAME=$(get_file_value $IMGPATH/$USNF/module.prop "name=")
91-
log_handler "'$NAME' installed (modifies the device fingerprint)."
92-
PRINTMODULE=true
93-
fi
94-
done
95-
if [ "$PRINTMODULE" == "true" ]; then
96-
replace_fn FINGERPRINTENB 1 0 $LATEFILE
97-
log_handler "Fingerprint modification disabled."
98-
else
99-
replace_fn FINGERPRINTENB 0 1 $LATEFILE
100-
fi
10186

10287
# Check the reboot variable
10388
if [ "$(get_file_value $LATEFILE "REBOOTCHK\=")" == 1 ]; then
@@ -203,3 +188,27 @@ else
203188
# Cleanup
204189
cleanup
205190
fi
191+
s /
192+
else
193+
log_handler "Default.prop editing disabled."
194+
fi
195+
fi
196+
197+
# Get currently saved values
198+
log_handler "Checking current values."
199+
curr_values
200+
201+
# Check if the late_start service log file exists.
202+
if [ -f "$LATELOGFILE" ]; then
203+
log_handler "Removing late_start service log ($LATELOGFILE)."
204+
rm -f $LATELOGFILE >> $LOGFILE 2>&1
205+
fi
206+
207+
log_script_chk "Boot script finished.\n\n=================="
208+
fi
209+
else
210+
echo "$MODPATH not found." >> $LATELOGFILE 2>&1
211+
echo "Module no longer installed." >> $LATELOGFILE 2>&1
212+
# Cleanup
213+
cleanup
214+
fi

0 commit comments

Comments
 (0)