I need to access the system files namely to obtain information. I get the build.prop file in this way
Runtime.getRuntime().exec("/system/bin/getprop").getInputStream();
I need a list of other files or how to read them. Thank you in advance.
Runtime.getRuntime().exec(new String[] { "ls", "\\system\\bin"});
ls
is the unix command to get the list of files in the directory, and the /system/bin
directory where to look. Well, you have questions ... Are you using getprop
without knowing what it is ?! - BarmaleySource: https://ru.stackoverflow.com/questions/136828/
All Articles