Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
c7ea76f2e1 | |||
a0f23df41f |
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
TMP_FILE="$TMPDIR/{APK_NAME}"
|
TMP_FILE="$TMPDIR/{APK_NAME}"
|
||||||
|
|
||||||
chmod u+x "$MODPATH/uninstall.sh"
|
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"
|
pm install -r "$TMP_FILE"
|
||||||
rm -f "$TMP_FILE"
|
rm -f "$TMP_FILE"
|
||||||
|
|
|
@ -68,7 +68,7 @@ abstract class MagiskModuleDirTask : DefaultTask() {
|
||||||
}
|
}
|
||||||
dir.file("customize.sh").asFile.writeText(moduleCustomizeScriptText.get())
|
dir.file("customize.sh").asFile.writeText(moduleCustomizeScriptText.get())
|
||||||
dir.file("uninstall.sh").asFile.writeText(moduleUninstallScriptText.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"))
|
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