Skip to content

Commit 3470bc2

Browse files
v2.3.6-v27
1 parent 965990a commit 3470bc2

15 files changed

+211
-122
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
[Support Thread @ XDA](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228)
66

77

8+
## What's this?
9+
This module is a very complicated way of doing something very simple. Complicated for me, that is... The aim is to make it easy for you, the user. The module changes prop values using the [Magisk resetprop tool](https://github.com/topjohnwu/Magisk/blob/master/docs/tools.md#resetprop), something that is very easy to do with a [Magisk boot script](https://github.com/topjohnwu/Magisk/blob/master/docs/details.md#boot-stages) and some simple commands.
10+
11+
What this module does is that it adds a terminal based UI for those that don't want (or can't) create a boot script for themselves, making the process of creating such a boot script very simple. With this module I'm also maintaining a list of certified build fingerprints for a number of devices, so that it's easy to pick one you want to use.
12+
13+
814
## Installation
915
Install through the Magisk Manager Downloads section. Or, download the zip from the Manager or the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228), and install through the Magisk Manager -> Modules, or from recovery.
1016

@@ -151,6 +157,8 @@ See ["I still can't pass the ctsProfile check"](https://github.com/Magisk-Module
151157

152158
Also see ["Props don't seem to set properly"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#props-dont-seem-to-set-properly) below.
153159

160+
*NOTE* Xiaomi devices often have issus passing the ctsProfile check, particularly China releases. This is under investigation...
161+
154162
### I can't pass the basicIntegrity check
155163
This module can only really help with the ctsProfile check, by spoofing the device fingerprint. If you can't pass basicIntegrity, there's probably something else going on with your device. See ["Miscellaneous MagiskHide issues"](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md#miscellaneous-magiskhide-issues) above.
156164

@@ -179,11 +187,16 @@ If you can't run the `props` script for some reason, the logs are also stored in
179187

180188
## Credits
181189
@topjohnwu @ XDA Developers, for Magisk
182-
@osm0sis, for his busybox binaries
190+
@osm0sis, for his Busybox binaries
183191
@Zackptg5, @veez21 and @jenslody @ XDA Developers, for help and inspiration
184192

185193

186194
## Changelog
195+
### v2.3.6
196+
- Added md5 checksum when downloading the internal Busybox.
197+
- Changed the default boot stage from late_start service to post-fs-data.
198+
- Various fixes and improvements, as usual.
199+
187200
### v2.3.5
188201
- Fixed issue with busybox version detection.
189202
- Fixed the documentation. Some parts had been accidentally deleted. Oops...

common/busybox-arm.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ef0f310f6a35e0afa735c36afd8135e3

common/busybox-arm64.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bbb13cf8bb2b1de70ecbf495cbff1450

common/busybox-mips.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e4be280e6a3f8102a62c261110ff69a2

common/busybox-mips64.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8a7f321ee8ed0fb85726de8d43d86ebf

common/busybox-x86.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
170133693c4af03a6f311179793569ec

common/busybox-x86_64.md5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b8374521632f8e8520a1ea1ad2cc919c

common/post-fs-data.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ if [ ! -f "$POSTFILE" ]; then
2525
log_start
2626
log_handler "Post-fs-data boot script not found."
2727
log_handler "Restoring boot script (${POSTFILE})."
28-
cp -af $MODPATH/propsconf_post $POSTFILE >> $LOGFILE
29-
chmod -v 755 $POSTFILE >> $LOGFILE
28+
cp -af $MODPATH/propsconf_post $POSTFILE >> $LOGFILE 2>&1
29+
chmod -v 755 $POSTFILE >> $LOGFILE 2>&1
3030
placeholder_update $POSTFILE IMGPATH IMG_PLACEHOLDER $IMGPATH
3131
# Deleting settings script to force a restore
3232
rm -f $LATEFILE
@@ -39,8 +39,8 @@ if [ ! -f "$LATEFILE" ] || [ -f "$RESETFILE" ]; then
3939
log_handler "Late_start service boot script not found."
4040
fi
4141
log_handler "$RSTTXT boot script (${LATEFILE})."
42-
cp -af $MODPATH/propsconf_late $LATEFILE >> $LOGFILE
43-
chmod -v 755 $LATEFILE >> $LOGFILE
42+
cp -af $MODPATH/propsconf_late $LATEFILE >> $LOGFILE 2>&1
43+
chmod -v 755 $LATEFILE >> $LOGFILE 2>&1
4444
placeholder_update $LATEFILE IMGPATH IMG_PLACEHOLDER $IMGPATH
4545
placeholder_update $LATEFILE CACHELOC CACHE_PLACEHOLDER $CACHELOC
4646

common/propsconf_conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ CONFWEB=enabled
2727
# ========================== Instructions =========================
2828
# =================================================================
2929
# Set the above variables to the desired prop/configuration values.
30-
#
30+
3131
# CONFFINGERPRINT should be set to the fingerprint of a ROM that passes
3232
# the ctsProfile check. See the prints.sh file for usable prints,
3333
# or the documentation for information on how to find one.
34-
#
34+
3535
# CONFPROPFILES should be set to "true" if you want to mask the file
3636
# values in build.prop and default.prop. For better root hiding.
37-
#
37+
3838
# The MagiskHide prop variables can be set as follows:
3939
# CONFDEBUGGABLE - 0 or 1 (set to "0" by MagiskHide - sensitive value is "1")
4040
# CONFSECURE - 0 or 1 (set to "1" by MagiskHide - sensitive value is "0")
4141
# CONFTYPE - user or userdebug (set to "user" by MagiskHide - sensitive value is "userdebug")
4242
# CONFTAGS - release-keys or test-keys (set to "release-keys" by MagiskHide - sensitive value is "test-keys")
4343
# CONFSELINUX - 0 or 1 (set to "0" by MagiskHide - sensitive value is "1")
44-
#
44+
4545
# CONFPROPS should contain any custom props and the value you want the module to set.
4646
# Any props you've previously edited in build.prop, and more, can be set like this.
4747
# Add them to the CONFPROPS variable according to the following example:
@@ -58,7 +58,7 @@ CONFWEB=enabled
5858
# "add", or "preserve". The default option is to replace the list.
5959
# This option supersedes the preserve option described below, but only
6060
# for the CONFPROPS variable.
61-
#
61+
6262
# CONFDELPROPS is a list of props you want to remove from your system.
6363
# Be very careful when using this option, removing the wrong props might
6464
# cause issues.
@@ -75,7 +75,7 @@ CONFWEB=enabled
7575
# "add", or "preserve". The default option is to replace the list.
7676
# This option supersedes the preserve option described below, but only
7777
# for the CONFDELPROPS variable.
78-
#
78+
7979
# CONFLATE is by default set to "true". This loads the boot script during the
8080
# late_start service mode. If the setting is changed to "false", the boot script
8181
# will instead be loaded earlier during boot, in the post-fs-data mode. This is
@@ -84,17 +84,17 @@ CONFWEB=enabled
8484
#
8585
# CONFCOLOUR and CONFWEB are the options for colour and automatic fingerprints
8686
# list update. See the module documentation for more details.
87-
#
87+
8888
# If any variables are left unset, that particular prop/configuration
8989
# will be cleared and the device/MagiskHide default values will be used.
9090
# If you want to keep any current module settings, add "preserve" to the variable.
9191
# Example:
9292
# CONFFINGERPRINT=preserve
93-
#
93+
9494
# When placed in /cache or the root of your internal storage, the module will load these
9595
# values during boot and the configuration file will be deleted. Keep a backup of the
9696
# file if you want to reuse it at a later time (clean ROM flash, etc).
97-
#
97+
9898
# For more information, see the documentation:
9999
# https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md
100100
# and the support thread @ XDA Developers:

common/propsconf_late

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

1111
# Script version
12-
SCRIPTV=12
13-
SETTRANSF=1
12+
SCRIPTV=13
13+
SETTRANSF=2
14+
NOTTRANSF="OPTIONLATE"
1415

1516
# Variables
1617
COREPATH=CORE_PLACEHOLDER
@@ -30,7 +31,7 @@ PROPEDIT=0
3031
CUSTOMEDIT=0
3132
DELEDIT=0
3233
REBOOTCHK=0
33-
OPTIONLATE=1
34+
OPTIONLATE=0
3435
OPTIONCOLOUR=1
3536
OPTIONWEB=1
3637

@@ -46,24 +47,24 @@ rm -f $LATELOGFILE
4647

4748
# Function to clean up different files after the module has been uninstalled
4849
cleanup() {
49-
echo "Cleaning up files in $CACHELOC." >> $LATELOGFILE
50+
echo "Cleaning up files in $CACHELOC." >> $LATELOGFILE 2>&1
5051
for ITEM in $CACHEFILES; do
5152
if [ -f "$CACHELOC/$ITEM" ]; then
52-
echo "Deleting ${ITEM}." >> $LATELOGFILE
53-
rm -fv $CACHELOC/$ITEM >> $LATELOGFILE
53+
echo "Deleting ${ITEM}." >> $LATELOGFILE 2>&1
54+
rm -f $CACHELOC/$ITEM >> $LATELOGFILE 2>&1
5455
fi
5556
done
5657
# Suicide.
57-
echo "Removing scripts." >> $LATELOGFILE
58-
rm -fv $IMGPATH/.core/post-fs-data.d/propsconf_post >> $LATELOGFILE
59-
rm -fv $0 >> $LATELOGFILE
58+
echo "Removing scripts." >> $LATELOGFILE 2>&1
59+
rm -f $IMGPATH/.core/post-fs-data.d/propsconf_post >> $LATELOGFILE 2>&1
60+
rm -f $0 >> $LATELOGFILE 2>&1
6061
}
6162

6263
# Checks if the module is installed. Deletes itself if it isn't.
6364
if [ -d "$MODPATH" ]; then
6465
# Checks if the module is set for removal
6566
if [ -f "$MODPATH/remove" ]; then
66-
echo "Module set for removal." >> $LATELOGFILE
67+
echo "Module set for removal." >> $LATELOGFILE 2>&1
6768
# Cleanup
6869
cleanup
6970
else
@@ -162,8 +163,8 @@ if [ -d "$MODPATH" ]; then
162163
MODULEPROP=$(echo "MODULE${PROP}" | tr '[:lower:]' '[:upper:]')
163164
if [ "$(eval "echo \$$REPROP")" == "true" ]; then
164165
log_handler "Changing/writing $ITEM."
165-
resetprop -v $ITEM 2>> $LOGFILE
166-
resetprop -nv $ITEM $(eval "echo \$$MODULEPROP") 2>> $LOGFILE
166+
resetprop -v $ITEM >> $LOGFILE 2>&1
167+
resetprop -nv $ITEM $(eval "echo \$$MODULEPROP") >> $LOGFILE 2>&1
167168
fi
168169
done
169170
fi
@@ -186,14 +187,14 @@ if [ -d "$MODPATH" ]; then
186187
# Check if the late_start service log file exists.
187188
if [ -f "$LATELOGFILE" ]; then
188189
log_handler "Removing late_start service log ($LATELOGFILE)."
189-
rm -fv $LATELOGFILE >> $LOGFILE
190+
rm -f $LATELOGFILE >> $LOGFILE 2>&1
190191
fi
191192

192193
log_script_chk "Boot script finished.\n\n=================="
193194
fi
194195
else
195-
echo "$MODPATH not found." >> $LATELOGFILE
196-
echo "Module no longer installed." >> $LATELOGFILE
196+
echo "$MODPATH not found." >> $LATELOGFILE 2>&1
197+
echo "Module no longer installed." >> $LATELOGFILE 2>&1
197198
# Cleanup
198199
cleanup
199200
fi

0 commit comments

Comments
 (0)