libsuperuser icon indicating copy to clipboard operation
libsuperuser copied to clipboard

Can't write to protected files

Open theapache64 opened this issue 4 years ago • 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?

theapache64 avatar Oct 31 '21 19:10 theapache64

https://github.com/Chainfire/libsuperuser/issues/115#issue-1040562347

saifulrizal avatar Dec 07 '21 23:12 saifulrizal