This guide can be applied to my S805, S905 and S912 builds. It won't work on devices with native dual-boot, e.g. WeTek. It won't work with official LE or any other build that does not use partition labels for dual booting.
WARNING: Before proceeding, remember to backup your SD card that you boot LE from. Backup the whole card using "Win 32 Disk Imager" or "dd".
If you want to keep Android on your box for any reason but don't have/want to buy/want to use a fast and big SD card for LibreELEC, it is possible to load LE from SD card and use internal memory to store your data. This way internal data partition can be shared with Android.
+ system responding faster - most of the times internal memory is better with random read/writes
+ no need to overwrite Android
+ you can use SD card as small as 1GB for LE (perhaps even 256MB but this guide won't cover it)
- data partition shared with Android
- LE boot time does not improve
LE/CE 8.9 Leia additional instructions in Post #63
Basically all references to LIBREELEC_DISK posted below need to be changed to STORAGE for LE/CE 8.9
1. Identify partition that you boot from and change its label.
Login over SSH and use blkid to list disk partitions and their labels. Find a partition called LIBREELEC_DISK:
In my case it is /dev/mmcblk1p2. Remove label from this partition:
2. Apply a label to data partition
Apply LIBREELEC_DISK partition label to internal data partition:
3. Verify partition labels
Verify that partition label was correctly applied using blkid:
4. (Optional) Copy your data to internal memory
If you omit this step, after reboot you will have a clean system.