Can't write to protected files
theapache64 opened this issue · 1 comments
theapache64 commented
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?
saifulrizal commented