How to get all the mount point information for android device?

前端 未结 5 1064
一个人的身影
一个人的身影 2021-01-01 02:02

How do I get all the mount point information for an Android device programmatically?

5条回答
  •  失恋的感觉
    2021-01-01 02:13

    Not exactly part of the android apis, but the underlying linux will tell you about the ones that are in use if you read /proc/mounts

    As a clarification, in later Android versions Linux's ability to have unique mounts for each process ancestry is leveraged, so the mounts seen by an application process can (and typically will) be different than those seen by something launched from ADB, or a core system process.

提交回复
热议问题