Remove supolicy commands, use magisk-custom-sepolicy-installer instead

This commit is contained in:
solohsu 2019-10-19 21:22:11 +08:00
parent b9b10b510e
commit dd042478d7
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
version: '0.4.5.5_beta({build})' version: '0.4.6.0_beta({build})'
environment: environment:
ANDROID_HOME: C:\android-sdk-windows ANDROID_HOME: C:\android-sdk-windows

View File

@ -4,7 +4,7 @@ import org.gradle.internal.os.OperatingSystem
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
// Values set here will be overriden by AppVeyor, feel free to modify during development. // Values set here will be overriden by AppVeyor, feel free to modify during development.
def buildVersionName = 'v0.4.5.5_beta' def buildVersionName = 'v0.4.6.0_beta'
def buildVersionCode = 10000 def buildVersionCode = 10000
if (System.env.APPVEYOR_BUILD_VERSION != null) { if (System.env.APPVEYOR_BUILD_VERSION != null) {

View File

@ -7,18 +7,18 @@ MODDIR=${0%/*}
# More info in the main Magisk thread # More info in the main Magisk thread
# necessary for using mmap in system_server process # necessary for using mmap in system_server process
supolicy --live "allow system_server system_server process {execmem}" #supolicy --live "allow system_server system_server process {execmem}"
# supolicy --live "allow system_server system_server memprotect {mmap_zero}" # supolicy --live "allow system_server system_server memprotect {mmap_zero}"
# for built-in apps // TODO maybe narrow down the target classes # for built-in apps // TODO maybe narrow down the target classes
supolicy --live "allow coredomain coredomain process {execmem}" #supolicy --live "allow coredomain coredomain process {execmem}"
# read configs set in our app # read configs set in our app
supolicy --live "allow coredomain app_data_file * *" #supolicy --live "allow coredomain app_data_file * *"
supolicy --live "attradd {system_app platform_app} mlstrustedsubject" #supolicy --live "attradd {system_app platform_app} mlstrustedsubject"
# read module apk file in zygote # read module apk file in zygote
supolicy --live "allow zygote apk_data_file * *" #supolicy --live "allow zygote apk_data_file * *"
. ${MODDIR}/util_functions.sh . ${MODDIR}/util_functions.sh