Skip to content

Commit

Permalink
v5.0.1-v65
Browse files Browse the repository at this point in the history
  • Loading branch information
Didgeridoohan authored Nov 3, 2019
1 parent fbfdac6 commit 4a2cdf6
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ Releases from v4.0.0 are compatible with Magisk v19+.
Releases from v5.0.0 are recommended for Magisk v19.4+.

## Changelog
### v5.0.1
- Fixed issue with settings being cleared when updating from earlier module versions. Sorry if anyone got all their custom props removed...
- Fixed issue with creating a custom prints list.
- Fixed issue with saving Magisk log.
- Added fingerprint for Xiaomi Note 7 Pro. Fingerprints list updated to v65.

### v5.0.0
- Updated possible locations for both the configuration and reset files (can now be placed in the root of internal storage, in /data or in /cache).
- Updated device simulation so that all props now are disabled by default. Should hopefully make a few less careless users experience issues caused by the feature. NOTE! All simulation prop values will be disabled with this update. If you did have basic simulation enabled prior to the update, you have to manually enable it again.
Expand Down
3 changes: 2 additions & 1 deletion common/prints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (c) 2018-2019 Didgeridoohan @ XDA Developers
# Licence: MIT

PRINTSV=64
PRINTSV=65
PRINTSTRANSF=350

# Certified fingerprints
Expand Down Expand Up @@ -216,6 +216,7 @@ Xiaomi Redmi Note 5 Pro (8.1.0 & 9)=xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/V
Xiaomi Redmi Note 5A Lite (7.1.2)=xiaomi/ugglite/ugglite:7.1.2/N2G47H/V9.1.2.0.NDFMIEI:user/release-keys
Xiaomi Redmi Note 6 Pro (8.1.0)=xiaomi/tulip/tulip:8.1.0/OPM1.171019.011/V10.0.5.0.OEKMIFH:user/release-keys__2018-10-01
Xiaomi Redmi Note 7 (9)=xiaomi/lavender/lavender:9/PKQ1.180904.001/V10.3.12.0.PFGMIXM:user/release-keys__2019-08-05
Xiaomi Redmi Note 7 Pro (9)=xiaomi/violet/violet:9/PKQ1.181203.001/V10.3.13.0.PFHINXM:user/release-keys__2019-08-01
Xiaomi Redmi Y1 (7.1.2)=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.6.2.0.NDKMIFD:user/release-keys__2018-07-01
ZTE Axon 7 (7.1.1 & 8.0.0)=ZTE/P996A01_N/ailsa_ii:7.1.1/NMF26V/20171211.005949:user/release-keys;ZTE/P996A01_O/ailsa_ii:8.0.0/OPR1.170623.032/20180815.171922:user/release-keys__2018-07-01
ZTE Blade (6.0.1)=ZTE/P809A50_MY_MAX/P809A50:6.0.1/MMB29M/20161017.095504:user/release-keys
Expand Down
20 changes: 12 additions & 8 deletions common/util_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ if [ "$INSTFN" ]; then
$CACHELOC/propsconf_last.log
"
LOGFILE=$MHPCPATH/propsconf_install.log
UPDATEV=$(get_file_value $UPDATELATEFILE "SCRIPTV=")
UPDATETRANSF=$(get_file_value $UPDATELATEFILE "SETTRANSF=")
NOTTRANSF=$(get_file_value $UPDATELATEFILE "NOTTRANSF=")
SETTINGSLIST="
FINGERPRINTENB
PRINTMODULE
Expand Down Expand Up @@ -108,8 +105,8 @@ else
TMPLOGLOC=$MHPCPATH/propslogs
TMPLOGLIST="
$MHPCPATH/defaultprops
$MHPCPATH/magisk.log
$MHPCPATH/magisk.log.bak
$CACHELOC/magisk.log
$CACHELOC/magisk.log.bak
$MHPCPATH/propsconf*
$MIRRORPATH/system/build.prop
$MIRRORPATH/vendor/build.prop
Expand Down Expand Up @@ -140,7 +137,7 @@ PRINTSWWW="https://raw.githubusercontent.com/Magisk-Modules-Repo/MagiskHide-Prop
PRINTSDEV="https://raw.githubusercontent.com/Didgeridoohan/Playground/master/prints.sh"
PRINTFILES=$MODPATH/printfiles
CSTMPRINTS=/sdcard/printslist
CSTMFILE=$PRINTFILES/custom.sh
CSTMFILE=$PRINTFILES/Custom.sh

# Known modules that edit device fingerprint
USNFLIST="
Expand Down Expand Up @@ -882,6 +879,9 @@ system_prop_cont() {
# ======================== Installation functions ========================
# Places various module scripts in their proper places
script_placement() {
UPDATEV=$(get_file_value $UPDATELATEFILE "SCRIPTV=")
UPDATETRANSF=$(get_file_value $UPDATELATEFILE "SETTRANSF=")
NOTTRANSF=$(get_file_value $UPDATELATEFILE "NOTTRANSF=")
if [ -f "$LATEFILE" ] && [ -d "$MODULESPATH/MagiskHidePropsConf" ]; then
FILEV=$(get_file_value $LATEFILE "SCRIPTV=")
FILETRANSF=$(get_file_value $LATEFILE "SETTRANSF=")
Expand All @@ -907,7 +907,7 @@ script_placement() {
if [ "$FILEV" == 0 ]; then
log_print "- Placing settings script"
# Updated script with a required clearing of settings
elif [ "$UPDATETRANSF" -gt "$FILETRANSF" ] && [ -z "$NOTTRANSF" ]; then
elif [ "$UPDATETRANSF" -gt "$FILETRANSF" ] && [ ! "$NOTTRANSF" ]; then
log_handler "Current transfer version - ${FILETRANSF}"
log_handler "Update transfer version - ${UPDATETRANSF}"
log_handler "No settings set to not transfer"
Expand Down Expand Up @@ -1027,7 +1027,7 @@ bin_check() {
mv -f $MODPATH/system/binpath $MODPATH/system/$BIN >> $LOGFILE 2>&1
}

# Check for late_start service boot script in post-fs-data.d, in case someone's moved it, delete the old propsconf_post boot script if present and remove a few old log files from /cache
# Function for removing screwed up and old files.
files_check() {
if [ -f "$POSTLATEFILE" ]; then
log_handler "Removing late_start service boot script from post-fs-data.d."
Expand All @@ -1043,6 +1043,10 @@ files_check() {
rm -f $ITEM
fi
done
if [ -f "" ]; then
log_handler "Removing broken custom.sh file."
$PRINTFILES/custom.sh
fi
}

# Update the device simulation variables if a fingerprint is set
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ print_modname() {
# Load functions and variables
INSTFN=true
. $TMPDIR/util_functions.sh

# Create install directory
mkdir -pv $MHPCPATH

# Start module installation log
log_start
# Check Magisk version
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=MagiskHidePropsConf
name=MagiskHide Props Config
version=v5.0.0-v64
versionCode=48
version=v5.0.1-v65
versionCode=49
author=Didgeridoohan
description=Change your device's fingerprint, to pass SafetyNet's CTS Profile check. Set/reset prop values set by MagiskHide. Change any prop values easily, and set your own custom props.
2 changes: 1 addition & 1 deletion system/binpath/props
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ menu_set_custprop() {
echo "Do you want to continue?"
echo ""
echo "Enter ${G}y${N}(es), ${G}n${N}(o), ${G}e${N}(xit)"
echo -n " or an option from above: "
echo -n "or an option from above: "
read -r INPUT5
fi
case "$INPUT5" in
Expand Down

0 comments on commit 4a2cdf6

Please sign in to comment.