Skip to content

Commit 35a19a2

Browse files
committed
fix seperm issue
+ clean up the code (original too messy) + set the file replaced with proper selinux permission + version update Signed-off-by: hyx0329 <hyx0329@163.com>
1 parent 99ce119 commit 35a19a2

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,26 @@ users.
1010
+ reboot your phone
1111
+ enjoy
1212

13+
**If you upgraded your system and the module won't work, please, UNINSTALL this
14+
module, reboot your phone, then install the module again!**
15+
1316
## Notes
1417

1518
+ tested on Pixel 4XL with Lineage OS 18.1 installed
16-
+ MBNs from [XDA](https://forum.xda-developers.com/t/activate-volte-om-pixel-4xl-android-11-r.4163217/)
19+
+ MBNs from
20+
[XDA](https://forum.xda-developers.com/t/activate-volte-om-pixel-4xl-android-11-r.4163217/)
21+
+ set file context to `u:object_r:vendor_file:s0` resolves the permission issue
1722

1823
## Changelog
1924

25+
### v0.1.0
26+
27+
+ initial version
28+
2029
### v0.1.1
2130

2231
+ remove extra mbn to fix weird issue on latest LOS
2332

24-
### v0.1.0
33+
### v0.2.0
2534

26-
+ initial version
35+
+ fix selinux permission issue

customize.sh

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
# REPLACE="
2-
# /system/vendor/rfs/msm/mpss/readonly/vendor/mbn/mcfg_sw/generic/mi9t
3-
# /system/vendor/rfs/msm/mpss/readonly/vendor/mbn/mcfg_sw/mbn_sw.dig
4-
# /system/vendor/rfs/msm/mpss/readonly/vendor/mbn/mcfg_sw/mbn_sw.txt
5-
# "
6-
1+
ui_print "- Prepare the list of file(s) to replace"
72
REPLACE="
83
/system/vendor/rfs/msm/mpss/readonly/vendor/mbn/mcfg_sw
94
"
105

116
# remove files in data:
12-
FILES_TO_REMOVE="
13-
/data/vendor/modem_fdr/fdr_check
14-
"
7+
ui_print "- Removing flag file 'fdr_check'"
8+
rm -f /data/vendor/modem_fdr/fdr_check
159

16-
for i in $FILES_TO_REMOVE; do
17-
ui_print "- Try to remove file: $i"
18-
[ -e "$i" ] && "- File exists" || "- File do not exist"
19-
rm "$i" && ui_print "- Remove success" || ui_print "- Remove failed"
20-
[ -e "$i" ] && "- File still exists! Error!" && abort "- Cannot remove file(s)"
21-
done
10+
ui_print "- Setting SELinux permissions"
11+
set_perm_recursive "$MODPATH/system/vendor" 0 0 0755 0644 "u:object_r:vendor_file:s0"

module.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=volte4pixel4
22
name=VoLTE Patch for Pixel 4/4XL (CM,CT,CU)
3-
version=v0.1.1
3+
version=v0.2.0
44
versionCode=101
55
author=hyx0329
66
description=Replace stock MBN with Mi9T's to enable VoLTE. Tested on Pixel 4XL with LOS18.1 installed.

sepolicy.rule

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)