Commit 1082f22
committed
Fix empty /sdcard in proot: bind /storage tree and check permission properly
- Bind the whole /storage directory (not just /storage/emulated/0) so
Android's FUSE symlinks and sub-mounts resolve correctly inside proot
- Check Environment.isExternalStorageManager() on Android 11+ instead of
just canRead(), which returns true even without actual file access
- Create /sdcard symlink inside rootfs pointing to /storage/emulated/0
- Bind both /storage:/storage and /storage/emulated/0:/sdcard for
maximum compatibility (matches Termux proot-distro behavior)
Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>1 parent 9e110dc commit 1082f22
File tree
1 file changed
+30
-6
lines changed- flutter_app/android/app/src/main/kotlin/com/nxg/openclawproot
1 file changed
+30
-6
lines changedLines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
105 | 129 | | |
106 | 130 | | |
107 | 131 | | |
| |||
0 commit comments