File system changes in Android Nougat

前端 未结 2 682
一生所求
一生所求 2021-01-31 16:59

Ever since the first release of the Android N developer preview, I get \"permission denied\" errors when attempting to list the root directory or other system directories. The p

2条回答
  •  离开以前
    2021-01-31 17:33

    This was done for security and privacy reasons. From the bug report:

    In the case of the root (/) and /sys filesystems, a directory listing is not possible.

    The official answer from Google:

    The behavior you're describing is working as intended. Android provides strict sandboxes that applications must run in. These sandboxes protect application data from other applications, including application metadata such as process state.

    /sys and /proc are well known for leaking side channel information about processes, information which can be used to infer state about the processes. For instance, it's been documented for years that /proc access can be used to monitor for app launching, enabling phishing attacks.

提交回复
热议问题