I can't seem to read /config/usb_gadget/g1/UDC with the remote filesystem manager due to permission errors.
private fun readSysfs(path: String): String {
val file = MainActivity.filesystemManager.getFile(path)
return BufferedReader(InputStreamReader(file.inputStream())).use { it.readText() }
}
I also tried with "file.newInputStream()" which gives me an empty string.
Everything works fine if I use the root shell and cat.
libsuerror.txt