[:white_check_mark: SOLVED] I am using Chainfire’s...
# android
t
[ SOLVED] I am using Chainfire’s libsuperuser to write to a protected directory. but it doesn’t write content (can read though). Code inside the 🧵
Copy code
Shell.SU.run(
    arrayOf(
        "echo \"# Hello :)\" >> /etc/hosts", "cat /etc/hosts"
    )
).also {
    println("Output: $it")
}
any idea? 🤔
UPDATE: We need to remount the partition first