libsuperuser
libsuperuser copied to clipboard
Can't write to protected files
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?
https://github.com/Chainfire/libsuperuser/issues/115#issue-1040562347