Android 14 写入 Android/data 文件夹的方法 (Root)

A@NAZOrip
A@NAZOrip 7月10日
  • 在其它设备中阅读本文章

读,向外剪切和拷贝权限

非 ROOT,可以通过 com.marc.files 获得

写,和删除刚写入文件的权限

需 ROOT,可以通过 /storage/self/primary/Android/data 路径获得

  • 注意不是 /system/storage/...,该目录并非根目录,也没有 self 路径

Read, cut and copy outwards permission

Non-root,accessible via com.marc.files.

Write and delete permission

Root required. Accessible via /storage/self/primary/Android/data path

  • Note that this isn't /system/storage/..., as this is not a root directory, and it doesn't have self path beyond storage.

分析 Analytics

/storage/self/ 路径是一项读写权限为 751 / rwxr-xr-x 的映射路径:

  • 设备所有者具有读、写和执行权限
  • 组具有读和执行权限
  • 其他人(你)具有读和执行权限

通过访问 self 而非 emulated,文件管理器可能获取了设备所有者的权限,或者 self 的访问逻辑没有和 emulated 同步更新,而停留在了安卓 11 版本,导致 Android/data 的写入权限被“破解”

/storage/self/ is a path with filesystem permission of 751 / rwxr-xr-x:

  • Device owner could read, write and execute
  • Group could read and execute
  • Others(you)could read and execute

By accessing self instead of emulated, the file manager app may have gained device owner permission, or self path has a older access logic that wasn't synchronized with emulated, and still works as android 11

    miyazaki
    miyazaki  2024-10-15, 12:53

    还活着!