Ask users to reboot twice
This commit is contained in:
parent
f878993d48
commit
35a18e8992
|
|
@ -208,7 +208,7 @@ afterEvaluate {
|
||||||
task("push${backendCapped}${variantCapped}", type: Exec) {
|
task("push${backendCapped}${variantCapped}", type: Exec) {
|
||||||
dependsOn zipTask
|
dependsOn zipTask
|
||||||
workingDir "${projectDir}/release"
|
workingDir "${projectDir}/release"
|
||||||
def commands = ["adb", "push",
|
def commands = [android.adbExecutable, "push",
|
||||||
"${module_name}-${backend}-${project.version}-${variantLowered}.zip",
|
"${module_name}-${backend}-${project.version}-${variantLowered}.zip",
|
||||||
"/data/local/tmp/"]
|
"/data/local/tmp/"]
|
||||||
if (is_windows) {
|
if (is_windows) {
|
||||||
|
|
@ -220,7 +220,7 @@ afterEvaluate {
|
||||||
task("flash${backendCapped}${variantCapped}", type: Exec) {
|
task("flash${backendCapped}${variantCapped}", type: Exec) {
|
||||||
dependsOn tasks.getByPath("push${backendCapped}${variantCapped}")
|
dependsOn tasks.getByPath("push${backendCapped}${variantCapped}")
|
||||||
workingDir "${projectDir}/release"
|
workingDir "${projectDir}/release"
|
||||||
def commands = ["adb", "shell", "su", "-c",
|
def commands = [android.adbExecutable, "shell", "su", "-c",
|
||||||
"magisk --install-module /data/local/tmp/${module_name}-${backend}-${project.version}-${variantLowered}.zip"]
|
"magisk --install-module /data/local/tmp/${module_name}-${backend}-${project.version}-${variantLowered}.zip"]
|
||||||
if (is_windows) {
|
if (is_windows) {
|
||||||
commandLine 'cmd', '/c', commands.join(" ")
|
commandLine 'cmd', '/c', commands.join(" ")
|
||||||
|
|
@ -231,7 +231,7 @@ afterEvaluate {
|
||||||
task("flashAndReboot${backendCapped}${variantCapped}", type: Exec) {
|
task("flashAndReboot${backendCapped}${variantCapped}", type: Exec) {
|
||||||
dependsOn tasks.getByPath("flash${backendCapped}${variantCapped}")
|
dependsOn tasks.getByPath("flash${backendCapped}${variantCapped}")
|
||||||
workingDir "${projectDir}/release"
|
workingDir "${projectDir}/release"
|
||||||
def commands = ["adb", "shell", "reboot"]
|
def commands = [android.adbExecutable, "shell", "reboot"]
|
||||||
if (is_windows) {
|
if (is_windows) {
|
||||||
commandLine 'cmd', '/c', commands.join(" ")
|
commandLine 'cmd', '/c', commands.join(" ")
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -360,3 +360,11 @@ cp "${MODPATH}/module.prop" "${RIRU_TARGET}/module.prop" || abort "! Can't creat
|
||||||
set_perm_recursive "${MODPATH}" 0 0 0755 0644
|
set_perm_recursive "${MODPATH}" 0 0 0755 0644
|
||||||
|
|
||||||
ui_print "- Welcome to EdXposed ${VERSION}!"
|
ui_print "- Welcome to EdXposed ${VERSION}!"
|
||||||
|
|
||||||
|
# before Magisk 16e4c67, sepolicy.rule is copied on the second reboot
|
||||||
|
if [ "$MAGISK_VER_CODE" -lt 21006 ]; then
|
||||||
|
ui_print "*******************************"
|
||||||
|
ui_print "- Magisk version below 21006."
|
||||||
|
ui_print "- You have to manually reboot twice."
|
||||||
|
ui_print "*******************************"
|
||||||
|
fi
|
||||||
|
|
@ -44,9 +44,8 @@ sepolicy() {
|
||||||
# Should be deprecated now. This is for debug only.
|
# Should be deprecated now. This is for debug only.
|
||||||
supolicy --live "allow system_server system_server process execmem" \
|
supolicy --live "allow system_server system_server process execmem" \
|
||||||
"allow system_server system_server memprotect mmap_zero" \
|
"allow system_server system_server memprotect mmap_zero" \
|
||||||
"allow zygote app_data_file dir { search read open }" \
|
"allow zygote app_data_file dir { getattr search read open }" \
|
||||||
"allow zygote app_data_file file { getattr read open }" \
|
"allow zygote app_data_file file { getattr read open }"
|
||||||
"allow zygote app_data_file dir { getattr search read open }"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if [[ ${ANDROID_SDK} -ge 24 ]]; then
|
#if [[ ${ANDROID_SDK} -ge 24 ]]; then
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
allow system_server system_server process execmem
|
allow system_server system_server process execmem
|
||||||
allow system_server system_server memprotect mmap_zero
|
allow system_server system_server memprotect mmap_zero
|
||||||
allow zygote app_data_file dir { search read open }
|
allow zygote app_data_file dir { getattr search read open }
|
||||||
allow zygote app_data_file file { getattr read open }
|
allow zygote app_data_file file { getattr read open }
|
||||||
allow zygote app_data_file dir { getattr search read open }
|
|
||||||
Loading…
Reference in New Issue