File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * .zip
2+ .DS_Store
Original file line number Diff line number Diff line change 1+ - fix(sh): :bug : #21 修复用户证书目录可能不存在导致模块无效.
2+ - fix(sh): :bug : #21 Fix user certificate directory may not exist resulting in invalid module.
3+ ----
14- fix(sh): :bug : 修复在系统安全设置中识别证书,在zygote启动之前挂载证书.
25- fix(sh): :bug : #19 修复模块导致系统重启,恢复selinux上下文设置即可.
36- fix(sh): :bug : Fix identifying certificates in system security settings and mounting certificates before starting zygote
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ on_install() {
3636 fi
3737 # ui_print "- mkdir $MODPATH/certificates"
3838 mkdir -p -m 755 " $D_CERTIFICATE "
39-
39+ mkdir -p -m 755 /data/misc/user/0/cacerts-added
4040}
4141
4242# You can add more functions to assist your custom script code
Original file line number Diff line number Diff line change 11id=MoveCertificate
22name=MoveCertificate
3- version=v1.4.10
4- versionCode=14
3+ version=v1.4.11
4+ versionCode=15
55author=iyue
66description=Supports magiskv20.4+/kernelsu/APatch Android 7-14 move certificates
77updateJson=https://ys1231.cn:82/modules/MoveCertificate/update.json
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ if [ "$sdk_version_number" -le 33 ]; then
9191 fix_user_permissions
9292
9393 print_log " mount: /system/etc/security/cacerts"
94+ selinux_context=$( ls -Zd /system/etc/security/cacerts | awk ' {print $1}' )
9495 mount -t tmpfs tmpfs /system/etc/security/cacerts
9596 print_log " mount status:$? "
9697
@@ -99,6 +100,13 @@ if [ "$sdk_version_number" -le 33 ]; then
99100 print_log " move cert status:$? "
100101 fix_system_permissions
101102 print_log " certificates installed"
103+ [ " $( getenforce) " = " Enforcing" ] || return 0
104+ default_selinux_context=u:object_r:system_file:s0
105+ if [ -n " $selinux_context " ] && [ " $selinux_context " != " ?" ]; then
106+ chcon -R $selinux_context /system/etc/security/cacerts
107+ else
108+ chcon -R $default_selinux_context /system/etc/security/cacerts
109+ fi
102110else
103111
104112 print_log " start move cert !"
Original file line number Diff line number Diff line change 11{
2- "versionCode" : 14 ,
3- "version" : " v1.4.10 " ,
4- "zipUrl" : " https://ys1231.cn:82/modules/MoveCertificate/MoveCertificate-v1.4.10 .zip" ,
2+ "versionCode" : 15 ,
3+ "version" : " v1.4.11 " ,
4+ "zipUrl" : " https://ys1231.cn:82/modules/MoveCertificate/MoveCertificate-v1.4.11 .zip" ,
55 "changelog" : " https://ys1231.cn:82/modules/MoveCertificate/changelog.md"
66}
You can’t perform that action at this time.
0 commit comments