fix: not properly switching mount ns

This commit corrects mount namespace code.
This commit is contained in:
ThePedroo
2024-08-15 18:23:15 -03:00
parent 37a667ce2a
commit c852a2c146
4 changed files with 33 additions and 39 deletions

View File

@@ -100,7 +100,6 @@ androidComponents.onVariants { variant ->
val privKey = kf.generatePrivate(privKeySpec);
val sig = Signature.getInstance("ed25519")
fun File.sha(realFile: File? = null) {
val path = this.path.replace("\\", "/")
sig.update(this.name.toByteArray())
sig.update(0) // null-terminated string
val real = realFile ?: this