Skip to content

Can't read sysfs file with remote fs manager: EACCES #199

Description

@nitanmarcel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions