Chainfire/libsuperuser

Can't write to protected files

theapache64 opened this issue · 1 comments

Shell.SU.run(
    arrayOf(
        "echo \"# Hello :)\" >> /etc/hosts", "cat /etc/hosts"
    )
).also {
    println("Output: $it")
}

It doesn't added "Hello :)" to /etc/hosts file :( . Any idea why?