We have Android 7.1.2 (Nougat) running on a device with imx6. When I use 'adb shell' to access the device, then run 'stat /' to get statistics on the root directory, it returns the following:
File: `/'
Size: 920 Blocks: 0 IO Blocks: 4096 directory
Device: 2h/2d Inode: 2 Links: 18
Access: (1777/drwxrwxrwt) Uid: (0/ root) Gid: (0/ root)
Access: 1970-01-01 00:00:00.000000000
Modify: 2019-03-22 21:29:14.240000000
Change: 2019-03-22 21:29:14.240000000
Why is the Access being reported as 1777? Indeed, if I try to copy anything into root, I get the 'Read-only file system' error, which is what I expect. But why doesn't 'stat' reflect this?
When we had JellyBean loaded on this device, the Access returned by 'stat' was the more expected 0755:
File: /
Size: 0 Blocks: 0 IO Block: 4096 directory
Device: 1h/1d Inode: 1 Links: 16
Access: (0755/drwxr-xr-x) Uid: ( 0/ UNKNOWN) Gid: ( 0/ UNKNOWN)
Access: 1970-01-01 00:00:00.000000000
Modify: 2019-03-22 20:03:05.000000000
Change: 2019-03-22 20:03:05.000000000
Please advise on how to get the root configured so that it reports its access as 0755 on Nougat?
Thank you.