Short. I copy the file, set the rights, open for reading
Java.Lang.Runtime.GetRuntime().Exec(new string[] { "su", "-c", "cp", fromFile.AbsolutePath , toFile.AbsolutePath }); Java.Lang.Runtime.GetRuntime().Exec(new string[] { "su", "-c", "chmod", "666", toFile.AbsolutePath }); using (FileInputStream fr = new FileInputStream(toFile)) { ... } Fails with an error on FileInputStream
/dir1/dir2/file.blablabla: open failed: EACCES (Premission denied)
Initially, the file has read permissions only for su but in the file manager I look after the execution of commands at the file toFile right 666.
What could be the snag?