Skip to content

Commit 3bf73ee

Browse files
v2.0.0-v6
1 parent 894a63b commit 3bf73ee

File tree

10 files changed

+1681
-658
lines changed

10 files changed

+1681
-658
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $POSTFSDATA && cp -af $INSTALLER/common/post-fs-data.sh $MODPATH/post-fs-data.sh
136136
# service mode scripts
137137
$LATESTARTSERVICE && cp -af $INSTALLER/common/service.sh $MODPATH/service.sh
138138

139-
# Module boot script placement and backup, etc
139+
# Module script placement
140140
script_install
141141

142142
ui_print "- Setting permissions"

README.md

Lines changed: 70 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
## Installation
99
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-simple-t3765199), and install through the Magisk Manager -> Modules, or from recovery.
1010

11-
The current release is always attached to the OP of the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-simple-t3765199). Any previous releases can also be found on [GitHub](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/releases). If downloading a release from GitHub, make sure to repackage the zip with all the module files and folders in the root of the zip. Otherwise it won't install (error: "not a Magisk zip").
11+
The current release is always attached to the OP of the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-simple-t3765199). Any previous releases can be found on [GitHub](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/releases).
1212

1313

1414
## Usage
@@ -17,7 +17,7 @@ After installing the module and rebooting, run the command `props` (as su) in a
1717
su
1818
props
1919
```
20-
You can also run the command with options. Use -h or --help for details.
20+
You can also run the command with options. Use -h for details.
2121

2222

2323
## Spoofing device's fingerprint
@@ -47,9 +47,9 @@ Google Nexus 6=google/shamu/shamu:7.1.1/N8I11B/4171878:user/release-keys
4747
## Current fingerprints list version
4848
The fingerprints list will update without the need to update the entire module. Keep an eye on the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-simple-t3765199) for info.
4949

50-
Just run the `props` command and the list will be updated automatically.
50+
Just run the `props` command and the list will be updated automatically. Use the -nw option to disable.
5151

52-
**_Current fingerprints list version - v5_**
52+
**_Current fingerprints list version - v6_**
5353

5454

5555
## Editing build.prop and default.prop
@@ -61,20 +61,50 @@ By default, if MagiskHide detects certain sensitive prop values they will be cha
6161
- ro.debuggable (set to "0" by MagiskHide - sensitive value is "1")
6262
- ro.secure (set to "1" by MagiskHide - sensitive value is "0")
6363
- ro.build.type (set to "user" by MagiskHide - sensitive value is "userdebug")
64-
- ro.build.tags (set to "release-keys" by MagiskHide - sensitive value is "test-keys")
64+
- ro.build.tags (set to "release-keys" by MagiskHide - sensitive value is "test-keys" or "dev-keys")
6565
- ro.build.selinux (set to "0" by MagiskHide - sensitive value is "1")
6666

6767
If, for some reason, you need one or more of these to be kept as their original value (one example would be resetting ro.build.type to userdebug since some ROMs need this to work properly), you can reset to the original value with this module. Keep in mind that this might trigger some apps looking for these prop values as a sign of your device being rooted.
6868

69-
You can also use this module to set these props to your preferred value with MagiskHide disabled.
69+
70+
## Change/set custom prop values
71+
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 you can now do with this module instead.
72+
73+
74+
## Prop script options
75+
There are a couple of persistent options that you can set for the `props` script. These are currently "Colour" and "Fingerprints list check". The colour option disables or enables colours for the script, and the fingerprints list check option disables or enables automatic updating of the fingerprints list when the script starts. If the fingerprints list check is disabled, the list can be manually updated from within the script, under the "Device fingerprint" menu.
76+
77+
78+
## Configuration file
79+
You can use a configuration file to set your desired options, rather than running the `props` command. Download the [settings file](https://raw.githubusercontent.com/Magisk-Modules-Repo/MagiskHide-Props-Config/master/common/propsconf_conf) or extract it from the module zip (in the common folder), fill in the desired options (follow the instructions in the file), place it in /cache (or /data/cache if you're using an A/B device) and reboot. This can also be done directly at the first install (through Manager or recovery), before even rebooting your device. Instant settings.
80+
81+
82+
## Device issues because of the module
83+
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 [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.
84+
85+
Place a file named `reset_mhpc` in /cache (or /data/cache on A/B devices) and reboot.
86+
87+
It is possible to use this in combination with the configuration file described above to keep device fingerprint or any other settings intact past the reset. Just make sure to remove any custom props that might have been causing issues from the configuration file.
88+
89+
90+
## Certifying your device
91+
If you're using a custom ROM, the chances of it being [perceived as uncertified by Google](https://www.xda-developers.com/google-blocks-gapps-uncertified-devices-custom-rom-whitelist/) are pretty high. If your ROM has a build date later than March 16 2018, this might mean that you can't even log into your Google account or use Gapps without [whitelisting your device with Google](https://www.google.com/android/uncertified/) first.
92+
93+
Magisk, and this module, can help with that.
94+
95+
Before setting up your device, install Magisk, this module and use the configuration file described above to pass the ctsProfile check. This should make your device be perceived as certified by Google and you can log into your Google account and use your device without having to whitelist it. Check [here](https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/common/prints.sh) for usable fingerprints (only use the part to the right of the equal sign).
96+
97+
If you're having issues getting your device certified, take a look in the troubleshooting guide linked below.
7098

7199

72100
## Miscellaneous MagiskHide issues
73-
If you're having issues passing SafetyNet or otherwise getting MagiskHide to work, take a look in the [Magisk and MagiskHide Installation and Troubleshooting Guide](https://www.didgeridoohan.com/magisk). Lots of good info there (if I may say so myself)...
101+
If you're having issues passing SafetyNet, getting your device certified, or otherwise getting MagiskHide to work, take a look in the [Magisk and MagiskHide Installation and Troubleshooting Guide](https://www.didgeridoohan.com/magisk). Lots of good info there (if I may say so myself)...
102+
103+
But first: have you tried turning it off and on again? Toggling MagiskHide off and on usually works if MagiskHide has stopped working after an update of Magisk or your ROM.
74104

75105

76106
## Support, etc
77-
If you have questions, suggestions or are experiensing some kind of issue, visit the [module support thread](https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-simple-t3765199) @XDA.
107+
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-simple-t3765199) @ XDA.
78108

79109
### Logs, etc
80110
In case of issues, please provide the logs, saved in /cache, "propsconf.log" and "propsconf_last.log", together with a detailed description of your problem. Providing the output from terminal might also be useful.
@@ -86,10 +116,20 @@ In case of issues, please provide the logs, saved in /cache, "propsconf.log" and
86116

87117
## Credits
88118
@topjohnwu @ XDA Developers, for Magisk
89-
@Zackptg5 and @veez21 @ XDA Developers, for inspiration
119+
@Zackptg5, @veez21 and @jenslody @ XDA Developers, for inspiration
90120

91121

92122
## Changelog
123+
### v2.0.0
124+
- Added a function for setting your own custom prop values.
125+
- Added a function for setting values by configuration file. Useful if you want to make a ROM pass the ctsProfile check out of the box.
126+
- Added a function for resetting the module by placing a specific file in /cache. Useful if a custom prop is causing issues.
127+
- Added a function to set options for the props script. See the documentation for details.
128+
- Added command option to not check online for new fingerprints list at start. Run `props` with the -h option for details.
129+
- Restructured the fingerprints list menu. Sorted by manufacturer for easier access.
130+
- New and updated fingerprints (lots), list v6.
131+
- Minor fixes and improvements.
132+
93133
### v1.2.1
94134
- Fixed logic for checking the original prop values.
95135
- New fingerprints (Xiaomi Mi 5, ZTE Axon 7), list v4.
@@ -110,20 +150,40 @@ In case of issues, please provide the logs, saved in /cache, "propsconf.log" and
110150

111151

112152
## Current fingerprints list
113-
### List v5  
153+
### List v6  
114154
- Google Nexus 6 (7.1.1)
155+
- Google Pixel (8.1.0)
115156
- Google Pixel 2 (P DP1)
116157
- Google Pixel 2 XL (8.1.0)
158+
- HTC 10 (6.0.1)
159+
- Huawei Mate 10 Pro (8.0.0)
160+
- Motorola Moto G4 (7.0)
161+
- Motorola Moto G5 (7.0)
162+
- Motorola Moto G5 Plus (7.0)
163+
- Nvidia Shield K1 (7.0)
117164
- OnePlus 3T (8.0.0)
118165
- OnePlus 5T (7.1.1)
166+
- OnePlus 5T (8.0.0)
119167
- Samsung Galaxy Grand Prime (5.0.2)
168+
- Samsung Galaxy Note 3 (7.1.1)
120169
- Samsung Galaxy Note 4 (6.0.1)
170+
- Samsung Galaxy Note 5 (7.0)
171+
- Samsung Galaxy S6 (5.0.2)
121172
- Samsung Galaxy S7 (7.0)
173+
- Samsung Galaxy S7 Edge (7.0)
174+
- Samsung Galaxy S8 Plus (7.0)
122175
- Samsung Galaxy S8 Plus (8.0.0)
176+
- Sony Xperia X Performance (8.0.0)
177+
- Sony Xperia XZ (8.0.0)
123178
- Sony Xperia XZ1 Compact (8.0.0)
124179
- Sony Xperia Z3 (6.0.1)
180+
- Vodafone Smart Ultra 6 (5.1.1)
125181
- Xiaomi Mi 5 (7.0)
126182
- Xiaomi Mi 5S (7.0)
127183
- Xiaomi Mi 5S Plus (6.0.1)
128184
- Xiaomi Mi6 (7.1.1)
185+
- Xiaomi Redmi 4X (6.0.1)
186+
- Xiaomi Redmi Note 3 Pro (6.0.1)
187+
- Xiaomi Redmi Note 4/4X (7.0)
129188
- ZTE Axon 7 (7.1.1)
189+
- Zuk Z2 Pro (7.0)

common/post-fs-data.sh

Lines changed: 41 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
#!/system/bin/sh
2-
# Please don't hardcode /magisk/modname/... ; instead, please use $MODDIR/...
2+
# Please don't hardcode /magisk/modname/... ; instead, please use $MODPATH/...
33
# This will make your scripts compatible even if Magisk change its mount point in the future
4-
MODDIR=${0%/*}
4+
MODPATH=${0%/*}
55

66
# This script will be executed in post-fs-data mode
77
# More info in the main Magisk thread
88

99
# MagiskHide Props Config
10-
# By Didgeridoohan @ XDA-Developers
10+
# By Didgeridoohan @ XDA Developers
1111

1212
# Variables
13-
IMGPATH=$(dirname "$MODDIR")
14-
LASTLOGFILE=/cache/propsconf_last.log
15-
BIN=BIN_PLACEHOLDER
16-
USNFLIST=USNF_PLACEHOLDER
13+
IMGPATH=$(dirname "$MODPATH")
1714

1815
# Load functions
19-
. $MODDIR/util_functions.sh
20-
21-
MODVERSION=$(echo $(get_file_value $MODDIR/module.prop "version=") | sed 's/-.*//')
16+
. $MODPATH/util_functions.sh
2217

2318
# Saves the previous log (if available) and creates a new one
2419
if [ -f "$LOGFILE" ]; then
@@ -31,71 +26,48 @@ echo "**************** By Didgeridoohan ***************" >> $LOGFILE
3126
echo "***************************************************" >> $LOGFILE
3227
log_handler "Log start."
3328

34-
# Check for boot scripts, restore backup if deleted
35-
if [ ! -f "$LATEFILE" ]; then
36-
cp -af $MODDIR/propsconf_late $LATEFILE
29+
# Check for boot scripts and restore backup if deleted, or if the resetfile is present
30+
if [ ! -f "$LATEFILE" ] || [ -f "$RESETFILE" ]; then
31+
cp -af $MODPATH/propsconf_late $LATEFILE
3732
chmod 755 $LATEFILE
38-
log_handler "Boot script restored."
33+
log_handler "Boot script restored/reset (${LATEFILE})."
3934
fi
4035

41-
# Update placeholders in util_functions.sh
36+
# Update placeholders
4237
# Image path
4338
placeholder_update $LATEFILE IMGPATH IMG_PLACEHOLDER $IMGPATH
44-
placeholder_update $MODDIR/system/$BIN/props IMGPATH IMG_PLACEHOLDER $IMGPATH
45-
# Module version
46-
placeholder_update $MODDIR/system/$BIN/props MODVERSION VER_PLACEHOLDER $MODVERSION
39+
placeholder_update $MODPATH/system/$BIN/props IMGPATH IMG_PLACEHOLDER $IMGPATH
4740

4841
# Check the reboot variable
4942
if [ "$(get_file_value $LATEFILE "REBOOTCHK=")" == 1 ]; then
5043
sed -i 's/REBOOTCHK=1/REBOOTCHK=0/' $LATEFILE
5144
fi
5245

5346
# Get the current values saved in propsconf_late
54-
LATEDEBUGGABLE=$(get_file_value $LATEFILE "ORIGDEBUGGABLE=")
55-
LATEFILEDEBUGGABLE=$(get_file_value $LATEFILE "FILEDEBUGGABLE=")
56-
LATESECURE=$(get_file_value $LATEFILE "ORIGSECURE=")
57-
LATEFILESECURE=$(get_file_value $LATEFILE "FILESECURE=")
58-
LATETYPE=$(get_file_value $LATEFILE "ORIGTYPE=")
59-
LATEFILETYPE=$(get_file_value $LATEFILE "FILETYPE=")
60-
LATETAGS=$(get_file_value $LATEFILE "ORIGTAGS=")
61-
LATEFILETAGS=$(get_file_value $LATEFILE "FILETAGS=")
62-
LATESELINUX=$(get_file_value $LATEFILE "ORIGSELINUX=")
63-
LATEFILESELINUX=$(get_file_value $LATEFILE "FILESELINUX=")
64-
LATEFINGERPRINT=$(get_file_value $LATEFILE "ORIGFINGERPRINT=")
47+
orig_values
48+
latefile_values
6549

6650
# Get default file values
67-
FILEDEBUGGABLE=$(get_file_value /default.prop ro.debuggable)
68-
FILESECURE=$(get_file_value /default.prop ro.secure)
69-
FILETYPE=$(get_file_value /system/build.prop ro.build.type)
70-
FILETAGS=$(get_file_value /system/build.prop ro.build.tags)
71-
FILESELINUX=$(get_file_value /system/build.prop ro.build.selinux)
51+
file_values
7252

7353
# Save default file values in propsconf_late
74-
sed -i "s/FILEDEBUGGABLE=$LATEFILEDEBUGGABLE/FILEDEBUGGABLE=$FILEDEBUGGABLE/" $LATEFILE
75-
sed -i "s/FILESECURE=$LATEFILESECURE/FILESECURE=$FILESECURE/" $LATEFILE
76-
sed -i "s/FILETYPE=$LATEFILETYPE/FILETYPE=$FILETYPE/" $LATEFILE
77-
sed -i "s/FILETAGS=$LATEFILETAGS/FILETAGS=$FILETAGS/" $LATEFILE
78-
sed -i "s/FILESELINUX=$LATEFILESELINUX/FILESELINUX=$FILESELINUX/" $LATEFILE
54+
sed -i "s/FILEDEBUGGABLE=\"$LATEFILEDEBUGGABLE\"/FILEDEBUGGABLE=\"$FILEDEBUGGABLE\"/" $LATEFILE
55+
sed -i "s/FILESECURE=\"$LATEFILESECURE\"/FILESECURE=\"$FILESECURE\"/" $LATEFILE
56+
sed -i "s/FILETYPE=\"$LATEFILETYPE\"/FILETYPE=\"$FILETYPE\"/" $LATEFILE
57+
sed -i "s/FILETAGS=\"$LATEFILETAGS\"/FILETAGS=\"$FILETAGS\"/" $LATEFILE
58+
sed -i "s/FILESELINUX=\"$LATEFILESELINUX\"/FILESELINUX=\"$FILESELINUX\"/" $LATEFILE
7959
log_handler "Default file values saved to $LATEFILE."
8060

8161
# Get the default prop values
82-
ORIGDEBUGGABLE=$(resetprop ro.debuggable)
83-
ORIGSECURE=$(resetprop ro.secure)
84-
ORIGTYPE=$(resetprop ro.build.type)
85-
ORIGTAGS=$(resetprop ro.build.tags)
86-
ORIGSELINUX=$(resetprop ro.build.selinux)
87-
ORIGFINGERPRINT=$(resetprop ro.build.fingerprint)
88-
if [ ! "$ORIGFINGERPRINT" ]; then
89-
ORIGFINGERPRINT=$(resetprop ro.bootimage.build.fingerprint)
90-
fi
91-
92-
# Save defatul prop values in propsconf_late
93-
sed -i "s/ORIGDEBUGGABLE=$LATEDEBUGGABLE/ORIGDEBUGGABLE=$ORIGDEBUGGABLE/" $LATEFILE
94-
sed -i "s/ORIGSECURE=$LATESECURE/ORIGSECURE=$ORIGSECURE/" $LATEFILE
95-
sed -i "s/ORIGTYPE=$LATETYPE/ORIGTYPE=$ORIGTYPE/" $LATEFILE
96-
sed -i "s/ORIGTAGS=$LATETAGS/ORIGTAGS=$ORIGTAGS/" $LATEFILE
97-
sed -i "s/ORIGSELINUX=$LATESELINUX/ORIGSELINUX=$ORIGSELINUX/" $LATEFILE
98-
sed -i "s@ORIGFINGERPRINT=$LATEFINGERPRINT@ORIGFINGERPRINT=$ORIGFINGERPRINT@" $LATEFILE
62+
curr_values
63+
64+
# Save default prop values in propsconf_late
65+
sed -i "s/ORIGDEBUGGABLE=\"$ORIGDEBUGGABLE\"/ORIGDEBUGGABLE=\"$CURRDEBUGGABLE\"/" $LATEFILE
66+
sed -i "s/ORIGSECURE=\"$ORIGSECURE\"/ORIGSECURE=\"$CURRSECURE\"/" $LATEFILE
67+
sed -i "s/ORIGTYPE=\"$ORIGTYPE\"/ORIGTYPE=\"$CURRTYPE\"/" $LATEFILE
68+
sed -i "s/ORIGTAGS=\"$ORIGTAGS\"/ORIGTAGS=\"$CURRTAGS\"/" $LATEFILE
69+
sed -i "s/ORIGSELINUX=\"$ORIGSELINUX\"/ORIGSELINUX=\"$CURRSELINUX\"/" $LATEFILE
70+
sed -i "s@ORIGFINGERPRINT=\"$ORIGFINGERPRINT\"@ORIGFINGERPRINT=\"$CURRFINGERPRINT\"@" $LATEFILE
9971
log_handler "Current prop values saved to $LATEFILE."
10072

10173
# Checks for the Universal SafetyNet Fix module and similar modules editing the device fingerprint
@@ -112,33 +84,24 @@ if [ "$PRINTMODULE" == "true" ]; then
11284
log_handler "Fingerprint modification disabled."
11385
else
11486
sed -i 's/FINGERPRINTENB=0/FINGERPRINTENB=1/' $LATEFILE
115-
if [ "$(get_file_value $LATEFILE "FINGERPRINTENB=")" == 1 ]; then
87+
if [ "$(get_file_value $LATEFILE "FINGERPRINTENB=")" == 1 ]; then
11688
log_handler "Fingerprint modification enabled."
11789
else
11890
log_handler "Fingerprint modification disabled."
11991
fi
12092
fi
12193

12294
# Check if original file values are safe
123-
sed -i 's/FILESAFE=0/FILESAFE=1/' $LATEFILE
124-
for V in $PROPSLIST; do
125-
PROP=$(get_prop_type $V)
126-
FILEPROP=$(echo "FILE$PROP" | tr '[:lower:]' '[:upper:]')
127-
FILEVALUE=$(eval "echo \$$FILEPROP")
128-
log_handler "Checking $FILEPROP=$FILEVALUE"
129-
safe_props $V $FILEVALUE
130-
if [ "$SAFE" == 0 ]; then
131-
log_handler "Prop $V set to triggering value in prop file."
132-
sed -i 's/FILESAFE=1/FILESAFE=0/' $LATEFILE
133-
else
134-
log_handler "Prop $V set to \"safe\" value in prop file."
135-
fi
136-
done
95+
orig_safe
96+
97+
# Checks for configuration file
98+
config_file
13799

100+
# Edits build.prop
138101
if [ "$(get_file_value $LATEFILE "FILESAFE=")" == 0 ]; then
139102
# Checks if any other modules are using a local copy of build.prop
140103
BUILDMODULE=false
141-
MODID=$(get_file_value $MODDIR/module.prop "id=")
104+
MODID=$(get_file_value $MODPATH/module.prop "id=")
142105
for D in $(ls $IMGPATH); do
143106
if [ $D != "$MODID" ]; then
144107
if [ -f "$IMGPATH/$D/system/build.prop" ]; then
@@ -157,7 +120,7 @@ if [ "$(get_file_value $LATEFILE "FILESAFE=")" == 0 ]; then
157120
# Copies the stock build.prop to the module. Only if set in propsconf_late.
158121
if [ "$(get_file_value $LATEFILE "BUILDPROPENB=")" == 1 ] && [ "$(get_file_value $LATEFILE "BUILDEDIT=")" == 1 ]; then
159122
log_handler "Build.prop editing enabled."
160-
cp /system/build.prop $MODDIR/system/build.prop
123+
cp /system/build.prop $MODPATH/system/build.prop
161124
log_handler "Stock build.prop copied from /system."
162125

163126
# Edits the module copy of build.prop
@@ -171,30 +134,30 @@ if [ "$(get_file_value $LATEFILE "FILESAFE=")" == 0 ]; then
171134
SEDTYPE=user
172135
fi
173136
if [ "$(get_file_value $LATEFILE "SETTYPE=")" == "true" ]; then
174-
sed -i "s/ro.build.type=$FILETYPE/ro.build.type=$SEDTYPE/" $MODDIR/system/build.prop && log_handler "ro.build.type"
137+
sed -i "s/ro.build.type=$FILETYPE/ro.build.type=$SEDTYPE/" $MODPATH/system/build.prop && log_handler "ro.build.type"
175138
fi
176139
if [ "$MODULETAGS" ]; then
177140
SEDTAGS=$MODULETAGS
178141
else
179142
SEDTAGS=release-keys
180143
fi
181144
if [ "$(get_file_value $LATEFILE "SETTAGS=")" == "true" ]; then
182-
sed -i "s/ro.build.tags=$FILETAGS/ro.build.tags=$SEDTAGS/" $MODDIR/system/build.prop && log_handler "ro.build.tags"
145+
sed -i "s/ro.build.tags=$FILETAGS/ro.build.tags=$SEDTAGS/" $MODPATH/system/build.prop && log_handler "ro.build.tags"
183146
fi
184147
if [ "$MODULESELINUX" ]; then
185148
SEDSELINUX=$MODULESELINUX
186149
else
187150
SEDSELINUX=0
188151
fi
189152
if [ "$(get_file_value $LATEFILE "SETSELINUX=")" == "true" ]; then
190-
sed -i "s/ro.build.selinux=$FILESELINUX/ro.build.selinux=$SEDSELINUX/" $MODDIR/system/build.prop && log_handler "ro.build.selinux"
153+
sed -i "s/ro.build.selinux=$FILESELINUX/ro.build.selinux=$SEDSELINUX/" $MODPATH/system/build.prop && log_handler "ro.build.selinux"
191154
fi
192155
else
193-
rm -f $MODDIR/system/build.prop
156+
rm -f $MODPATH/system/build.prop
194157
log_handler "Build.prop editing disabled."
195158
fi
196159
else
197-
rm -f $MODDIR/system/build.prop
160+
rm -f $MODPATH/system/build.prop
198161
log_handler "Prop file editing disabled. All values ok."
199162
fi
200163

0 commit comments

Comments
 (0)