Skip to content

Commit b022128

Browse files
Update to v6.0.2-v132
1 parent 78b998d commit b022128

File tree

9 files changed

+242
-270
lines changed

9 files changed

+242
-270
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ You can enter the fingerprint manually in the `Edit device fingerprint` menu in
290290

291291

292292
## Force BASIC key attestation
293-
Google now enforces the use of hardware backed key attestation on devices that has the necessary hardware (all devices that shipped with Android 8+ and even some older devices). Up until mid January 2021 you could work around this by changing the model props to something other than the actual device. This might still be necessary, and can be done with this feature of the module, but you most likely also need to trick keystore further than that.
293+
Google now enforces the use of hardware backed key attestation on devices that has the necessary hardware (all devices that shipped with Android 8+ and even some older devices).This can be circumvented by tricking the device into not using the hardware attestation, and it might also be needed to change the prop models (`ro.product.model`) to something other than your devices actual model. This feature can help with that.
294294

295295
@kdrag0n over on XDA Developers have a Magsk module that will trick keystore into thinking that the hardware isn't available and this will then force basic attestation. You can find that module together with details on how it works here:
296296
https://forum.xda-developers.com/t/magisk-module-universal-safetynet-fix-1-1-0.4217823/
297297

298-
These two things in combination might be required to pass CTS.
298+
The Universal SafetyNet fix not only trickes the keystore into using basic attestation, from v2.1.0 it also changes prop values that might be necessary to trick Google Play Services into letting you pass the CTS profile check, so if you're using that module you most likely will not need to use the Force BASIC key attestation feature of this module.
299299

300300
If you aren't successful in passing CTS by changing the model, you could try using the Xposed (although it is recommended to use LSPosed if you want to have the best chance of passing SafetyNet) module XprivacyLua and restrict Google Play Services. Instructions on how to install LSPosed and XprivacyLua and how to use that module can be found with a simple web search, I won't cover that here.
301301

@@ -355,7 +355,7 @@ The props in question are:
355355
- ro.vendor.warranty_bit
356356
- vendor.boot.vbmeta.device_state
357357

358-
There are a few props that will only change if a triggering value is detected, and these are:
358+
There are a few props that will only change if a triggering value is detected, and these are (these will always be set in the post-fs-data boot stage):
359359
- ro.bootmode
360360
- ro.boot.mode
361361
- vendor.boot.mode
@@ -614,6 +614,12 @@ Releases from v5.4.0 will only install on Magisk v20.4+.
614614

615615

616616
## Changelog
617+
### v6.0.2
618+
- Fix problems when trying to disable/enable sensitive props.
619+
- Fix typo when checking for triggering prop values (meant that props wouldn't set properly during boot).
620+
- Fix UI info for if a sensitive prop has been set by the module or not.
621+
- More optimisations of the new code (but it's by no means optimised).
622+
617623
### v6.0.1
618624
- Quickfix update to make the soft reboot when setting props in the late_start service boot stage an option. It has the potential for causing issues it seems (mainly on Samsung devices apparently). See the documentation for details.
619625
- Minor UI fixes and optimisations.

common/propsconf_conf

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ CONFPARTPROPS=true
3838
CONFSIMBOOT=default
3939

4040
# MagiskHide sensitive props
41-
CONFDEBUGGABLE=""
42-
CONFSECURE=""
43-
CONFTYPE=""
44-
CONFTAGS=""
45-
CONFBOOTMODE=""
46-
CONFMODE=""
47-
CONFVENDORMODE=""
48-
CONFHWC=""
49-
CONFHWCOUNTRY=""
50-
CONFSTATE=""
51-
CONFVERIFIEDBOOTSTATE=""
52-
CONFVENDORVERIFIEDBOOTSTATE=""
53-
CONFLOCKED=""
54-
CONFVERITYMODE=""
55-
CONFBOOTWARRANTY_BIT=""
56-
CONFBIT=""
57-
CONFVENDORBOOTWARRANTY_BIT=""
58-
CONFVENDORWARRANTY_BIT=""
59-
CONFVENDORDEVICE_STATE=""
41+
CONFDEBUGGABLE=true
42+
CONFSECURE=true
43+
CONFTYPE=true
44+
CONFTAGS=true
45+
CONFBOOTMODE=true
46+
CONFMODE=true
47+
CONFVENDORMODE=true
48+
CONFHWC=true
49+
CONFHWCOUNTRY=true
50+
CONFSTATE=true
51+
CONFVERIFIEDBOOTSTATE=true
52+
CONFVENDORVERIFIEDBOOTSTATE=true
53+
CONFLOCKED=true
54+
CONFVERITYMODE=true
55+
CONFBOOTWARRANTY_BIT=true
56+
CONFBIT=true
57+
CONFVENDORBOOTWARRANTY_BIT=true
58+
CONFVENDORWARRANTY_BIT=true
59+
CONFVENDORDEVICE_STATE=true
6060

6161
# Set custom props
6262
CONFPROPS=""
@@ -155,27 +155,12 @@ CONFBACK=false
155155
# post-fs-data or late_start service mode. This is useful if props don't seem to set
156156
# propely or the module's boot script seems to be causing issues during boot.
157157

158-
# The MagiskHide prop variables can be set as follows
159-
# (note that these props are by default set to the safe value):
160-
# CONFDEBUGGABLE - 0 or 1 (sensitive value is "1")
161-
# CONFSECURE - 0 or 1 (sensitive value is "0")
162-
# CONFTYPE - user or userdebug (sensitive value is "userdebug")
163-
# CONFTAGS - release-keys or test-keys (sensitive value is "test-keys")
164-
# CONFBOOTMODE - unknown or recovery (sensitive value is "recovery")
165-
# CONFMODE - unknown or recovery (sensitive value is "recovery")
166-
# CONFVENDORMODE - unknown or recovery (sensitive value is "recovery")
167-
# CONFHWC - GLOBAL or CN (sensitive value is CN)
168-
# CONFHWCOUNTRY - GLOBAL or China (sensitive value is China)
169-
# CONFSTATE - locked or unlocked (sensitive value is unlocked)
170-
# CONFVERIFIEDBOOTSTATE - green or orange (sensitive value is orange)
171-
# CONFVENDORVERIFIEDBOOTSTATE - green or orange (sensitive value is orange)
172-
# CONFLOCKED - 1 or 0 (sensitive value is 0)
173-
# CONFVERITYMODE - enforcing or permissive (sensitive value is permissive)
174-
# CONFBOOTWARRANTY_BIT - 0 or 1 (sensitive value is "1")
175-
# CONFBIT - 0 or 1 (sensitive value is "1")
176-
# CONFVENDORBOOTWARRANTY_BIT - 0 or 1 (sensitive value is "1")
177-
# CONFVENDORWARRANTY_BIT - 0 or 1 (sensitive value is "1")
178-
# CONFVENDORDEVICE_STATE - locked or unlocked (sensitive value is unlocked)
158+
# The MagiskHide prop variables, CONFDEBUGGABLE, CONFSECURE, CONFTYPE, CONFBOOTMODE, CONFMODE,
159+
# CONFVENDORMODE, CONFHWC, CONFHWCOUNTRY, CONFSTATE, CONFVERIFIEDBOOTSTATE, CONFVENDORVERIFIEDBOOTSTATE,
160+
# CONFLOCKED, CONFVERITYMODE, CONFBOOTWARRANTY_BIT, CONFBIT, CONFVENDORBOOTWARRANTY_BIT,
161+
# CONFVENDORWARRANTY_BIT and CONFVENDORDEVICE_STATE can be either enabled or disabled (enabled by default).
162+
# If set to true, these props will be changed known safe values if found to contain sensitive values.
163+
# Helps with hiding root.
179164

180165
# CONFPROPS should contain any custom props and the value you want the module to set.
181166
# Any props you've previously edited in build.prop, and more, can be set like this.

common/propsconf_late

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
# In that case, feel free to delete it.
99

1010
# Script version
11-
SCRIPTV=39
12-
SETTRANSF=4
13-
NOTTRANSF="PROPCOUNT;PROPEDIT;REDEBUGGABLE;RESECURE;RETYPE;RETAGS;REBOOTMODE;REMODE"
11+
SCRIPTV=40
12+
SETTRANSF=5
13+
NOTTRANSF="PROPCOUNT;PROPEDIT;REDEBUGGABLE;RESECURE;RETYPE;RETAGS;REBOOTMODE;REMODE;REVENDORMODE;REHWC;REHWCOUNTRY;RESTATE;REVERIFIEDBOOTSTATE;REVENDORVERIFIEDBOOTSTATE;RELOCKED;REVERITYMODE;REBOOTWARRANTY_BIT;REBIT;REVENDORBOOTWARRANTY_BIT;REVENDORWARRANTY_BIT;REVENDORDEVICE_STATE"
1414

1515
# Fingerprint
1616
FINGERPRINTENB=1
@@ -43,6 +43,26 @@ PARTPROPSSET=1
4343
PROPCOUNT=19
4444
PROPEDIT=1
4545
PROPBOOT=0
46+
# Control variables
47+
REDEBUGGABLE=1
48+
RESECURE=1
49+
RETYPE=1
50+
RETAGS=1
51+
REBOOTMODE=1
52+
REMODE=1
53+
REVENDORMODE=1
54+
REHWC=1
55+
REHWCOUNTRY=1
56+
RESTATE=1
57+
REVERIFIEDBOOTSTATE=1
58+
REVENDORVERIFIEDBOOTSTATE=1
59+
RELOCKED=1
60+
REVERITYMODE=1
61+
REBOOTWARRANTY_BIT=1
62+
REBIT=1
63+
REVENDORBOOTWARRANTY_BIT=1
64+
REVENDORWARRANTY_BIT=1
65+
REVENDORDEVICE_STATE=1
4666

4767
# Custom props
4868
CUSTOMEDIT=0
@@ -156,24 +176,3 @@ CUSTOMPROPSLIST="$CUSTOMPROPS $CUSTOMPROPSPOST $CUSTOMPROPSLATE $CUSTOMPROPSDELA
156176

157177
# ---Delete prop values---
158178
DELETEPROPS=""
159-
160-
# ---MagiskHide sensitive props---
161-
REDEBUGGABLE=true
162-
RESECURE=true
163-
RETYPE=true
164-
RETAGS=true
165-
REBOOTMODE=true
166-
REMODE=true
167-
REVENDORMODE=true
168-
REHWC=true
169-
REHWCOUNTRY=true
170-
RESTATE=true
171-
REVERIFIEDBOOTSTATE=true
172-
REVENDORVERIFIEDBOOTSTATE=true
173-
RELOCKED=true
174-
REVERITYMODE=true
175-
REBOOTWARRANTY_BIT=true
176-
REBIT=true
177-
REVENDORBOOTWARRANTY_BIT=true
178-
REVENDORWARRANTY_BIT=true
179-
REVENDORDEVICE_STATE=true

0 commit comments

Comments
 (0)