Ugoos AM6 PRO - Android changes uid on SD card

Hi,

I use CoreELEC together with Android on AM6 PRO box. CoreELEC is installed on sd card, Android is running from internal storage. Every time I reboot to Android the files on sd card (on STORAGE partition) are modified - uid of the file owner is changed to 1023. sd card is mounted automatically.

It makes a mess with installed applications.

I changed the owner to uid 0 for all files and directories on STORAGE as a workaround but I’m not sure if it is OK.
Anyone know how to prevent Android from writing to a sd card and how to return the ownership of files on the file system to the right owner and group?

Yes, I just pop the card out before starting Android…