Update to v6.0.1-v132

This commit is contained in:
Didgeridoohan 2021-09-05 09:27:36 +02:00 committed by GitHub
parent 9b93323970
commit f12cd6e722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 155 additions and 52 deletions

View File

@ -400,7 +400,9 @@ There are a couple of persistent options that you can set for the `props` script
### Boot stage ### Boot stage
It's possible to move the execution of the boot script from the default system.prop file to either post-fs-data or late_start service. If there are any kind of issues during boot or that props don't set properly, try changing the boot stage to either post-fs-data or late_start service instead. Just keep in mind that this might cause other issues like the fingerprint not setting properly (if set during late_start service) or that post-fs-data will be interupted by having too many props causing the script to run too slow. It's possible to move the execution of the boot script from the default system.prop file to either post-fs-data or late_start service. If there are any kind of issues during boot or that props don't set properly, try changing the boot stage to either post-fs-data or late_start service instead. Just keep in mind that this might cause other issues like the fingerprint not setting properly (if set during late_start service) or that post-fs-data will be interupted by having too many props causing the script to run too slow.
It is also possible to set individual props, like fingerprint, security patch date and custom props individualy. There'll be an option under the corresponding menu. It is also possible to set individual props, like fingerprint, security patch date and custom props individualy. There'll be an option under the corresponding menu
If boot stage is set to late_start service, general execution or for specific prop types, it is also possible to enable a soft reboot after these props are changed. This can sometimes be needed for a prop to properly be set to memory at such a late stage in the boot process, so if a prop doesn't appear to be set properly during the late_start service boot stage, try enabling this option. This feature is disabled by default since it has the possibility to cause issues on some devices.
Note: post-fs-data runs earlier than system.prop and late_start service runs after, right at the end of the boot process. Having to many props set in post-fs-data may have an adverse effect on the boot process and may result in props not being set properly. Using the default system.prop file or late_start service is prefered if possible. Note: post-fs-data runs earlier than system.prop and late_start service runs after, right at the end of the boot process. Having to many props set in post-fs-data may have an adverse effect on the boot process and may result in props not being set properly. Using the default system.prop file or late_start service is prefered if possible.
@ -432,7 +434,7 @@ If you have a lot of different props set it can be handy to have a [configuratio
## Configuration file ## Configuration file
You can use a configuration file to set your desired options, rather than running the `props` command. This is particularly useful if you have a large amount of custom props you want to set. Download the [settings file](https://raw.githubusercontent.com/Magisk-Modules-Repo/MagiskHide-Props-Config/master/common/propsconf_conf), extract it from the module zip (in the /common folder) or copy it from the module directory under /data/adb (in the /common folder), fill in the desired options (follow the instructions in the file), place it in the root of your internal storage (/sdcard), in /data or in /cache (or /data/cache if you're using an A/B device) and reboot. You can also use the configuration file when first installing the module. Just place the file in the root of your internal storage (or one of the other previously mentioned locations) before flashing the module and the installation script will set everything up. You can use a configuration file to set your desired options, rather than running the `props` command. This is particularly useful if you have a large amount of custom props you want to set. Download the [settings file](https://raw.githubusercontent.com/Magisk-Modules-Repo/MagiskHide-Props-Config/master/common/propsconf_conf), extract it from the module zip (in the /common folder) or copy it from the module directory under /data/adb (in the /common folder), fill in the desired options (follow the instructions in the file), place it in the root of your internal storage (/sdcard), in /data or in /cache (or /data/cache if you're using an A/B device) and reboot. You can also use the configuration file when first installing the module. Just place the file in the root of your internal storage (or one of the other previously mentioned locations) before flashing the module and the installation script will set everything up.
**NOTE!** If a configuration file is used during boot there will be a reboot during the late_start service boot mode, to load the newly set up values. This can cause issues for devices that have to boot through recovery for Magisk to be active (A-only SAR devices), so a manual reboot after the automatic one will be necessary (or just use the configuration file at install instead). **NOTE!** If a configuration file is used during boot there will be a reboot during the late_start service boot stage, to load the newly set up values. This can cause issues for devices that have to boot through recovery for Magisk to be active (A-only SAR devices), so a manual reboot after the automatic one will be necessary (or just use the configuration file at install instead).
If you edit the configuration file in Windows, make sure that you use a text editor that can handle [Unix file endings](https://en.m.wikipedia.org/wiki/Newline), such as Notepad++ and similar editors (not regular Windows Notepad). If you edit the configuration file in Windows, make sure that you use a text editor that can handle [Unix file endings](https://en.m.wikipedia.org/wiki/Newline), such as Notepad++ and similar editors (not regular Windows Notepad).
@ -522,6 +524,8 @@ This module can usually only really help with the ctsProfile check, by spoofing
### Props don't seem to set properly ### Props don't seem to set properly
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 boot stage at which the props are being set, or change the boot stage for that particular prop, to late_start service. See ["Boot stage"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config#boot-stage) or ["Custom prop values"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#changeset-custom-prop-values) above. This might happen because the particular prop you're trying to set get assigned it's value late in the boot process and by setting the boot stage for the prop to the last one available (late_start service) you optimise the chances of the module setting the prop after the system. 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 boot stage at which the props are being set, or change the boot stage for that particular prop, to late_start service. See ["Boot stage"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config#boot-stage) or ["Custom prop values"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#changeset-custom-prop-values) above. This might happen because the particular prop you're trying to set get assigned it's value late in the boot process and by setting the boot stage for the prop to the last one available (late_start service) you optimise the chances of the module setting the prop after the system.
If the boot stage already is set to the late_start service stage you might need to activate the soft reboot option for that particular setting. Sometimes a soft reboot is required after setting a prop for the value to be properly loaded into memory.
This may also be caused by the post-fs-data.sh script being set to run in the background because of the execution taking to long. Try disabling this option in the [script settings](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#prop-script-settings) and see if that changes anything. This may also be caused by the post-fs-data.sh script being set to run in the background because of the execution taking to long. Try disabling this option in the [script settings](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#prop-script-settings) and see if that changes anything.
There is also a possibility that the prop value you are trying to set is too long. This is only an issue on Magisk releases up until build 22006, where the prop value is limited to 91 characters. Builds after that should not have this issue. There is also a possibility that the prop value you are trying to set is too long. This is only an issue on Magisk releases up until build 22006, where the prop value is limited to 91 characters. Builds after that should not have this issue.
@ -556,11 +560,11 @@ If boot takes longer than usual after setting a new fingerprint or a custom prop
### There's a reboot during boot ### There's a reboot during boot
This happens when any prop is set during the late_start service boot stage. A soft reboot is necessary to properly load the new prop values. This happens when any prop is set during the late_start service boot stage and the soft reboot option is enabled. A soft reboot can sometime be necessary to properly load the new prop values, but also has the potential for causing issues on some devices.
### The screen goes black momentarily at boot ### The screen goes black momentarily at boot
See the section directly above. See the section directly above about an additional reboot. Same thing.
### The Play Store is "uncertified" ### The Play Store is "uncertified"
@ -610,6 +614,10 @@ Releases from v5.4.0 will only install on Magisk v20.4+.
## Changelog ## Changelog
### v6.0.1
- 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.
- Minor UI fixes and optimisations.
### v6.0.0 ### v6.0.0
- Updated the "Edit MagiskHide props" feature to include all the sensitive prop values that MagiskHide changed, up to and including Magisk v23. All props will now be set by default. See the documentation for details. - Updated the "Edit MagiskHide props" feature to include all the sensitive prop values that MagiskHide changed, up to and including Magisk v23. All props will now be set by default. See the documentation for details.
- Alter the permissions for SELinux files if SELinux is permissive (was included in MagiskHide up to Magisk v23). - Alter the permissions for SELinux files if SELinux is permissive (was included in MagiskHide up to Magisk v23).

View File

@ -9,7 +9,7 @@
# ================================================================= # =================================================================
# Required module version (or newer). Do not edit this value! # Required module version (or newer). Do not edit this value!
CONFTRANSF=600 CONFTRANSF=601
# Device fingerprint # Device fingerprint
CONFFINGERPRINT="" CONFFINGERPRINT=""
@ -69,6 +69,14 @@ PROPOPTION=replace
CONFDELPROPS="" CONFDELPROPS=""
DELPROPOPTION=replace DELPROPOPTION=replace
# Soft reboot options
CONFOPTIONSOFTBOOT=false
CONFPRINTSOFTBOOT=false
CONFPATCHSOFTBOOT=false
CONFSIMSOFTBOOT=false
CONFCUSTOMSOFTBOOT=false
CONFPROPSOFTBOOT=false
# Module settings # Module settings
CONFBOOT=default CONFBOOT=default
CONFCOLOUR=true CONFCOLOUR=true
@ -220,6 +228,11 @@ CONFBACK=false
# This option supersedes the preserve option described above, but only # This option supersedes the preserve option described above, but only
# for the CONFDELPROPS variable. # for the CONFDELPROPS variable.
# The soft rebooot options can be set to true if you need a soft reboot at the
# end of the boot process when props are set during the late_start service boot stage.
# CONFOPTIONSOFTBOOT, CONFPRINTSOFTBOOT, CONFPATCHSOFTBOOT, CONFSIMSOFTBOOT,
# CONFCUSTOMSOFTBOOT and CONFPROPSOFTBOOT can be set to "true" or "false".
# CONFBOOT is by default set to using the module system.prop file for most props. # CONFBOOT is by default set to using the module system.prop file for most props.
# If the setting is changed to "post" or "late", the props will be set during either # If the setting is changed to "post" or "late", the props will be set during either
# post-fs-data or late_start service mode. This is useful if props don't seem to set # post-fs-data or late_start service mode. This is useful if props don't seem to set

View File

@ -8,7 +8,7 @@
# In that case, feel free to delete it. # In that case, feel free to delete it.
# Script version # Script version
SCRIPTV=38 SCRIPTV=39
SETTRANSF=4 SETTRANSF=4
NOTTRANSF="PROPCOUNT;PROPEDIT;REDEBUGGABLE;RESECURE;RETYPE;RETAGS;REBOOTMODE;REMODE" NOTTRANSF="PROPCOUNT;PROPEDIT;REDEBUGGABLE;RESECURE;RETYPE;RETAGS;REBOOTMODE;REMODE"
@ -52,6 +52,12 @@ DELEDIT=0
PRINTSTAGE=0 PRINTSTAGE=0
PATCHSTAGE=2 PATCHSTAGE=2
SIMSTAGE=0 SIMSTAGE=0
OPTIONSOFTBOOT=0
PRINTSOFTBOOT=0
PATCHSOFTBOOT=0
SIMSOFTBOOT=0
CUSTOMSOFTBOOT=0
PROPSOFTBOOT=0
# Script settings # Script settings
OPTIONBOOT=0 OPTIONBOOT=0

View File

@ -78,6 +78,12 @@ if [ "$INSTFN" ]; then
PRINTSTAGE PRINTSTAGE
PATCHSTAGE PATCHSTAGE
SIMSTAGE SIMSTAGE
OPTIONSOFTBOOT
PRINTSOFTBOOT
PATCHSOFTBOOT
SIMSOFTBOOT
CUSTOMSOFTBOOT
PROPSOFTBOOT
OPTIONBOOT OPTIONBOOT
OPTIONCOLOUR OPTIONCOLOUR
OPTIONWEBP OPTIONWEBP
@ -898,6 +904,62 @@ config_file() {
fi fi
fi fi
# Updates soft boot options
if [ "$CONFOPTIONSOFTBOOT" == true ]; then
OPTLCHNG=1
TMPTXT="enabled"
else
OPTLCHNG=0
TMPTXT="disabled"
fi
replace_fn OPTIONSOFTBOOT $OPTIONSOFTBOOT $OPTLCHNG $LATEFILE
log_handler "Soft reboot option for late_start service boot stage $TMPTXT."
if [ "$CONFPRINTSOFTBOOT" == true ]; then
OPTLCHNG=1
TMPTXT="enabled"
else
OPTLCHNG=0
TMPTXT="disabled"
fi
replace_fn PRINTSOFTBOOT $PRINTSOFTBOOT $OPTLCHNG $LATEFILE
log_handler "Soft reboot option for device fingerprint $TMPTXT."
if [ "$CONFPATCHSOFTBOOT" == true ]; then
OPTLCHNG=1
TMPTXT="enabled"
else
OPTLCHNG=0
TMPTXT="disabled"
fi
replace_fn PATCHSOFTBOOT $PATCHSOFTBOOT $OPTLCHNG $LATEFILE
log_handler "Soft reboot option for security patch date $TMPTXT."
if [ "$CONFSIMSOFTBOOT" == true ]; then
OPTLCHNG=1
TMPTXT="enabled"
else
OPTLCHNG=0
TMPTXT="disabled"
fi
replace_fn SIMSOFTBOOT $SIMSOFTBOOT $OPTLCHNG $LATEFILE
log_handler "Soft reboot option for device simulation $TMPTXT."
if [ "$CONFCUSTOMSOFTBOOT" == true ]; then
OPTLCHNG=1
TMPTXT="enabled"
else
OPTLCHNG=0
TMPTXT="disabled"
fi
replace_fn CUSTOMSOFTBOOT $CUSTOMSOFTBOOT $OPTLCHNG $LATEFILE
log_handler "Soft reboot option for custom props $TMPTXT."
if [ "$CONFPROPSOFTBOOT" == true ]; then
OPTLCHNG=1
TMPTXT="enabled"
else
OPTLCHNG=0
TMPTXT="disabled"
fi
replace_fn PROPSOFTBOOT $PROPSOFTBOOT $OPTLCHNG $LATEFILE
log_handler "Soft reboot option for sensitive props $TMPTXT."
# Updates options # Updates options
# Boot stage # Boot stage
if [ "$CONFBOOT" == "default" ]; then if [ "$CONFBOOT" == "default" ]; then
@ -1346,7 +1408,7 @@ print_edit() {
echo "ro.build.fingerprint=${PRINTCHNG}" >> $1 echo "ro.build.fingerprint=${PRINTCHNG}" >> $1
else else
resetprop -nv ro.build.fingerprint "$PRINTCHNG" >> $LOGFILE 2>&1 resetprop -nv ro.build.fingerprint "$PRINTCHNG" >> $LOGFILE 2>&1
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$PRINTSOFTBOOT" = 1 ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -1362,7 +1424,7 @@ print_edit() {
echo "ro.build.description=${SIMDESCRIPTION}" >> $1 echo "ro.build.description=${SIMDESCRIPTION}" >> $1
else else
resetprop -nv ro.build.description "$SIMDESCRIPTION" >> $LOGFILE 2>&1 resetprop -nv ro.build.description "$SIMDESCRIPTION" >> $LOGFILE 2>&1
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$PRINTSOFTBOOT" = 1 ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -1388,7 +1450,7 @@ patch_edit() {
echo "ro.build.version.security_patch=${SECPATCH}" >> $1 echo "ro.build.version.security_patch=${SECPATCH}" >> $1
else else
resetprop -nv ro.build.version.security_patch "$SECPATCH" >> $LOGFILE 2>&1 resetprop -nv ro.build.version.security_patch "$SECPATCH" >> $LOGFILE 2>&1
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$PATCHSOFTBOOT" = 1 ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -1785,7 +1847,7 @@ forced_basic() {
fi fi
resetprop -nv ro.product.model "$TMPVAL" >> $LOGFILE 2>&1 resetprop -nv ro.product.model "$TMPVAL" >> $LOGFILE 2>&1
set_partition_props "none" "ro.product.model" "$TMPVAL" set_partition_props "none" "ro.product.model" "$TMPVAL"
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$OPTIONSOFTBOOT" = 1 ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -1850,7 +1912,7 @@ dev_sim_edit() {
echo "${ITEM}=${TMPVALUE}" >> $1 echo "${ITEM}=${TMPVALUE}" >> $1
else else
resetprop -nv $ITEM "$TMPVALUE" >> $LOGFILE 2>&1 resetprop -nv $ITEM "$TMPVALUE" >> $LOGFILE 2>&1
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$SIMSOFTBOOT" = 1 ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -1957,39 +2019,45 @@ change_sim_partprops() {
# ======================== MagiskHide Props functions ======================== # ======================== MagiskHide Props functions ========================
# Populate menu, $1=List of props to go through (with safe values), $2=type of list, $3=check if menu items should be printed or only counted # Populate menu, $1=List of props to go through (with safe values), $2=type of list, $3=check if menu items should be printed or only counted
magiskhide_props_menu() { magiskhide_props_menu() {
ACTIVE="${G} (active)${N}" CHKCOUNT=true
for ITEM in $1; do if [ "$3" == "count" ] && [ "$PROPEDIT" == 0 ]; then
PROP=$(get_prop_type $(get_eq_left "$ITEM")) CHKCOUNT=false
ORIGVALUE=$(eval "echo \$$(echo "ORIG${PROP}" | tr '[:lower:]' '[:upper:]')") fi
if [ "$ORIGVALUE" ] && [ "$(get_eq_right "$ITEM")" != "$ORIGVALUE" ]; then if [ "$CHKCOUNT" == "true" ]; then
CTRLTRIGG=false; ACTIVE="${G} (active)${N}"
if [ "$2" == "trigger" ]; then for ITEM in $1; do
magiskhide_trigger "$ITEM" PROP=$(get_prop_type $(get_eq_left "$ITEM"))
fi ORIGVALUE=$(eval "echo \$$(echo "ORIG${PROP}" | tr '[:lower:]' '[:upper:]')")
if [ "$CTRLTRIGG" == "false" ]; then if [ "$ORIGVALUE" ] && [ "$(get_eq_right "$ITEM")" != "$ORIGVALUE" ]; then
if [ "$ITEMCOUNT" == 0 ]; then CTRLTRIGG=false;
ITEMCOUNT=1 if [ "$2" == "trigger" ]; then
magiskhide_trigger "$ITEM"
fi fi
TMPTXT="" if [ "$CTRLTRIGG" == "false" ]; then
if [ "$2" == "late" ]; then if [ "$ITEMCOUNT" == 0 ]; then
TMPTXT=" ${C}(Late prop)${N}" ITEMCOUNT=1
elif [ "$2" == "trigger" ]; then
TMPTXT=" ${C}(Trigger prop)${N}"
fi
if [ "$(eval "echo \$$(echo "RE${PROP}" | tr '[:lower:]' '[:upper:]')")" == "true" ]; then
if [ "$TMPTXT" ]; then
TMPTXT=$TMPTXT$ACTIVE
else
TMPTXT=$ACTIVE
fi fi
TMPTXT=""
if [ "$2" == "late" ]; then
TMPTXT=" ${C}(Late prop)${N}"
elif [ "$2" == "trigger" ]; then
TMPTXT=" ${C}(Trigger prop)${N}"
fi
if [ "$(eval "echo \$$(echo "RE${PROP}" | tr '[:lower:]' '[:upper:]')")" == "true" ]; then
if [ "$TMPTXT" ]; then
TMPTXT=$TMPTXT$ACTIVE
else
TMPTXT=$ACTIVE
fi
fi
if [ "$3" != "count" ]; then
echo -e "${G}$ITEMCOUNT${N} - $(get_eq_left "$ITEM")$TMPTXT"
fi
ITEMCOUNT=$(($ITEMCOUNT+1))
fi fi
if [ "$3" != "count" ]; then
echo -e "${G}$ITEMCOUNT${N} - $(get_eq_left "$ITEM")$TMPTXT"
fi
ITEMCOUNT=$(($ITEMCOUNT+1))
fi fi
fi done
done fi
} }
# Set sensitive props, $1=List to get props from, $2=List of safe values, $3=Set to "late" if set in late stage, or file name if saving values to a prop file # Set sensitive props, $1=List to get props from, $2=List of safe values, $3=Set to "late" if set in late stage, or file name if saving values to a prop file
@ -2021,7 +2089,7 @@ sensitive_props() {
echo "${ITEM}=$MODULEVALUE" >> $3 echo "${ITEM}=$MODULEVALUE" >> $3
else else
resetprop -nv $ITEM "$MODULEVALUE" >> $LOGFILE 2>&1 resetprop -nv $ITEM "$MODULEVALUE" >> $LOGFILE 2>&1
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$PROPSOFTBOOT" = 1 ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -2206,7 +2274,7 @@ custom_edit() {
echo "$(get_eq_left "$ITEM")=${TMPITEM}" >> $2 echo "$(get_eq_left "$ITEM")=${TMPITEM}" >> $2
else else
resetprop -nv $(get_eq_left "$ITEM") "${TMPITEM}" >> $LOGFILE 2>&1 resetprop -nv $(get_eq_left "$ITEM") "${TMPITEM}" >> $LOGFILE 2>&1
if [ "$BOOTSTAGE" == "late" ]; then if [ "$BOOTSTAGE" == "late" ] && [ "$1" = "CUSTOMPROPSLATE" ]; then
PROPLATE=true PROPLATE=true
fi fi
fi fi
@ -2471,6 +2539,13 @@ export_settings() {
replace_fn CONFPROPSDELAY "\"\"" "\"$CUSTOMPROPSDELAY\"" $EXPORTFILE replace_fn CONFPROPSDELAY "\"\"" "\"$CUSTOMPROPSDELAY\"" $EXPORTFILE
# Delete props # Delete props
replace_fn CONFDELPROPS "\"\"" "\"$DELETEPROPS\"" $EXPORTFILE replace_fn CONFDELPROPS "\"\"" "\"$DELETEPROPS\"" $EXPORTFILE
# Soft reboot
replace_fn CONFOPTIONSOFTBOOT false $([ $OPTIONSOFTBOOT == 0 ] && echo "false" || echo "true") $EXPORTFILE
replace_fn CONFPRINTSOFTBOOT false $([ $PRINTSOFTBOOT == 0 ] && echo "false" || echo "true") $EXPORTFILE
replace_fn CONFPATCHSOFTBOOT false $([ $PATCHSOFTBOOT == 0 ] && echo "false" || echo "true") $EXPORTFILE
replace_fn CONFSIMSOFTBOOT false $([ $SIMSOFTBOOT == 0 ] && echo "false" || echo "true") $EXPORTFILE
replace_fn CONFCUSTOMSOFTBOOT false $([ $CUSTOMSOFTBOOT == 0 ] && echo "false" || echo "true") $EXPORTFILE
replace_fn CONFPROPSOFTBOOT false $([ $PROPSOFTBOOT == 0 ] && echo "false" || echo "true") $EXPORTFILE
# Module settings # Module settings
replace_fn CONFBOOT default $([ $OPTIONBOOT == 0 ] && echo "default" || $([ $PRINTSTAGE == 1 ] && echo "post" || echo "late")) $EXPORTFILE replace_fn CONFBOOT default $([ $OPTIONBOOT == 0 ] && echo "default" || $([ $PRINTSTAGE == 1 ] && echo "post" || echo "late")) $EXPORTFILE
replace_fn CONFCOLOUR true $([ $OPTIONCOLOUR == 0 ] && echo "false" || echo "true") $EXPORTFILE replace_fn CONFCOLOUR true $([ $OPTIONCOLOUR == 0 ] && echo "false" || echo "true") $EXPORTFILE

View File

@ -1,6 +1,6 @@
id=MagiskHidePropsConf id=MagiskHidePropsConf
name=MagiskHide Props Config name=MagiskHide Props Config
version=v6.0.0-v132 version=v6.0.1-v132
versionCode=70 versionCode=71
author=Didgeridoohan author=Didgeridoohan
description=Change your device's fingerprint, to pass SafetyNet's CTS Profile check. Set/reset MagiskHide sensitive prop values. Change any prop values easily, and set your own custom props. description=Change your device's fingerprint, to pass SafetyNet's CTS Profile check. Set/reset MagiskHide sensitive prop values. Change any prop values easily, and set your own custom props.

View File

@ -116,11 +116,9 @@ if [ "$PROPEDIT" == 1 ]; then
sensitive_props "$LATEPROPS" "$LATESAFELIST" "late" sensitive_props "$LATEPROPS" "$LATESAFELIST" "late"
fi fi
# Do a soft restart if a prop has been set in service.sh # Edit custom props set for late_start service
if [ "$PROPLATE" == "true" ]; then custom_edit "CUSTOMPROPSLATE"
stop custom_edit "CUSTOMPROPSDELAY"
start
fi
# SELinux # SELinux
if [ "$(getenforce)" == "Permissive" ] || [ "$(getenforce)" == "0" ]; then if [ "$(getenforce)" == "Permissive" ] || [ "$(getenforce)" == "0" ]; then
@ -129,9 +127,12 @@ if [ "$(getenforce)" == "Permissive" ] || [ "$(getenforce)" == "0" ]; then
chmod 440 /sys/fs/selinux/policy >> $LOGFILE 2>&1 chmod 440 /sys/fs/selinux/policy >> $LOGFILE 2>&1
fi fi
# Edit custom props set for late_start service # Do a soft restart if a prop has been set in service.sh
custom_edit "CUSTOMPROPSLATE" if [ "$PROPLATE" == "true" ]; then
custom_edit "CUSTOMPROPSDELAY" log_handler "Soft rebooting."
stop
start
fi
echo -e "\n----------------------------------------" >> $LOGFILE 2>&1 echo -e "\n----------------------------------------" >> $LOGFILE 2>&1

Binary file not shown.