fix magisk module bug #234
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
TMP_FILE="$TMPDIR/{APK_NAME}"
|
||||
|
||||
chmod u+x "$MODPATH/uninstall.sh"
|
||||
cp "$MODPATH/system/system_ext/{APK_NAME}/{APK_NAME}.apk" "$TMP_FILE"
|
||||
cp "$MODPATH/system/system_ext/priv-app/{APK_NAME}/{APK_NAME}.apk" "$TMP_FILE"
|
||||
|
||||
pm install -r "$TMP_FILE"
|
||||
rm -f "$TMP_FILE"
|
||||
|
|
|
@ -68,7 +68,7 @@ abstract class MagiskModuleDirTask : DefaultTask() {
|
|||
}
|
||||
dir.file("customize.sh").asFile.writeText(moduleCustomizeScriptText.get())
|
||||
dir.file("uninstall.sh").asFile.writeText(moduleUninstallScriptText.get())
|
||||
metaInfDir.file("updater-script").asFile.writeText("# MAGISK")
|
||||
metaInfDir.file("updater-script").asFile.writeText("#MAGISK\n")
|
||||
dir.file("module.prop").asFile.writeText(moduleProp.get().map { (k, v) -> "$k=$v" }.joinToString("\n"))
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue