Archive repo to src.zip [v0.0.1]

This commit is contained in:
1ndev-ui 2024-11-20 11:29:41 -08:00
parent 15a82b127b
commit 2bd6051588
4 changed files with 9 additions and 5 deletions

View File

@ -30,3 +30,8 @@
</a>
</h3>
</div>
MMT DOCUMENTATION
<a href="https://github.com/Zackptg5/MMT-Extended/wiki"> MMT Wiki </a>

View File

@ -1,12 +1,11 @@
cat > $MODPATH/0000fsp <<EOF
#!/system/bin/sh
MODDIR=\${0%/*}
DISABLE="/data/adb/modules/fsp_module/disable"
if ! test -e "\$DISABLE"; then
## Fix common SELinux non-permissive issues
/system/bin/magisk su -c "\$MODPATH/magiskpolicy --live 'allow untrusted_app_27 * * {*}' 'allow system_server * * {*}' 'allow system_suspend * * {*}' 'allow mtk_hal_nvramagent * * {*}' 'allow magisk * * {*}' 'allow system_app * * {*}' 'allow mnld * * {*}' 'allow platform_app * * {*}' 'allow untrusted_app * * {*}' 'allow untrusted_app_29 * * {*}' 'allow priv_app * * {*}' 'allow untrusted_app_30 * * {*}' 'allow untrusted_app_25 * * {*}' 'allow audioserver * * {*}' 'allow crash_dump * * {*}' 'allow su * * {*}' 'allow mediaserver * * {*}' 'allow hwservicemanager * * {*}' 'allow mtk_hal_c2 * * {*}' 'allow surfaceflinger * * {*}' 'allow mediaswcodec * * {*}' 'allow shell * * {*}' 'allow gsid * * {*}'"
/system/bin/magisk su -c "/data/adb/magisk/magiskpolicy --live 'allow untrusted_app_27 * * {*}' 'allow system_server * * {*}' 'allow system_suspend * * {*}' 'allow mtk_hal_nvramagent * * {*}' 'allow magisk * * {*}' 'allow system_app * * {*}' 'allow mnld * * {*}' 'allow platform_app * * {*}' 'allow untrusted_app * * {*}' 'allow untrusted_app_29 * * {*}' 'allow priv_app * * {*}' 'allow untrusted_app_30 * * {*}' 'allow untrusted_app_25 * * {*}' 'allow audioserver * * {*}' 'allow crash_dump * * {*}' 'allow su * * {*}' 'allow mediaserver * * {*}' 'allow hwservicemanager * * {*}' 'allow mtk_hal_c2 * * {*}' 'allow surfaceflinger * * {*}' 'allow mediaswcodec * * {*}' 'allow shell * * {*}' 'allow gsid * * {*}'"
## Fix SELinux Policies for ArrowOS
/system/bin/magisk su -c "\$MODPATH/magiskpolicy --live 'allow surfaceflinger * * {*}' 'allow vold * * {*}' 'allow radio * * {*}' 'allow installd * * {*}' 'allow ccci_mdinit * * {*}' 'allow vendor_init * * {*}' 'allow hal_fingerprint_oppo_compat * * {*}' 'allow init * * {*}' 'allow rild * * {*}' 'allow bip * * {*}' 'allow gsm0710muxd * * {*}' 'allow phhsu_daemon * * {*}' 'allow isolated_app * * {*}'"
/system/bin/magisk su -c "/data/adb/magisk/magiskpolicy --live 'allow surfaceflinger * * {*}' 'allow vold * * {*}' 'allow radio * * {*}' 'allow installd * * {*}' 'allow ccci_mdinit * * {*}' 'allow vendor_init * * {*}' 'allow hal_fingerprint_oppo_compat * * {*}' 'allow init * * {*}' 'allow rild * * {*}' 'allow bip * * {*}' 'allow gsm0710muxd * * {*}' 'allow phhsu_daemon * * {*}' 'allow isolated_app * * {*}'"
fi
EOF
@ -16,4 +15,4 @@ install_script -p $MODPATH/0000fsp
install_script -l $MODPATH/0000fsp
ui_print "- FSP boot script copied to necessary places"
ui_print "- Continuing install"
ui_print "- Continuing install..."

View File

@ -2,6 +2,6 @@ id=fsp_module
name=FSP (Fix SELinux Policies)
version=v0.0.1
versionCode=1
author=1ndev
author=1ndevelopment
description=Confgure SELinux Policies Non-Permissively
updateJson=https://git.1ndev.com/1ndevelopment/fsp_module/main/update.json

BIN
src.zip

Binary file not shown.