[Fire HD 8 and HD 10 Original Android Development] psi78:
Respect @Kate6 that you did that system partition resizing endeavour👍🏻

For anyone having problems with installing gapps because of too small system partition and wants to debloat LineageOS and free up space on system partition:

I wrote a small shell script, which deletes lots of system apps (which most of us probably don't need).

See attached file and screenshots for cleaned up app directory and background apps.

It's just kinda quick and dirty. If you wanna keep some apps you may change the script with a text editor (nano in twrp for example) and comment the corresponding lines out with #

It requires a root shell and system partition mounted as writable.

An easy way to do both of that is from TWRP (mount the System partition, then use the built in terminal app in TWRP Advanced menu).

A clean install of the ROM and using the script from an external sd card would be like this:

1. Wipe all partitions besides Micro SD Card from TWRP, also format data partition even. Reboot into recovery/TWRP then to avoid mount problems.

2. Install the latest version of the ROM from TWRP. Don't start LineageOS yet.

3. Mount the system partition in the "Mount" section of TWRP again

4. Start Terminal from TWRP ("Advanced" section in TWRP menu) and execute the following commands:

cd /external_sd

chmod +x suezcleanapp2.sh

./suezcleanapp2.sh

The script should run without errors (if there's an error "file not found" or the like, you probably haven't mounted system partition properly)

5. Install opengapps 9 arm64 pico.

Optionally also remove Google Contacts and Calendar Sync Adapters then to keep Google from syncing your personal data to the tablet.

To do that mount System partition again (the opengapps installer script unmounts it after completion).

Then use the following shell command in TWRP Terminal:

rm -r /system/app/GoogleC*

Optionally also remove

/system/app/GoogleTTS (used for voice search in Playstore/other Google apps like Google Maps)

/system/priv-app/GoogleBackupTransport (backups your settings and data to Google servers, may cause unwanted background activity, i.e. if you don't want to backup these with a media tablet usage style)

Boot into LineagesOS then for the first time.

6. When the setup wizard asks for wlan connection: i'd skip this step, complete the setup wizard without internet connection. Then after the setup wizard, enable Power Saving mode, establish Wlan connection and enter your credentials in Playstore, let it do all updates (you can also manually update Playstore app itself when using Playstore Settings/About/Playstore Version). Then finalize the setup wizard installation process of LOS.

This worked for me with current version of the ROM and opengapps 9 arm64 pico.

And as already said before, in the current state of the ROM i'd advise to enable Power Saving in Quick settings and use an app like "CPU Info" (after startup) to check if CPU cores 2 and 3 are powering down normally in idle mode (at least like after 20-30 secs after booting if no more updates are due).

If they don't power down, do a cold boot (power off/ power on) or try reboot. Then if you have the tablet in a good state, try to avoid rebooting, just put it into flight mode over night or the like.

If you have any comments/additions let me know.

Edit: Built a slightly more sophisticated version 2 ("suezcleanapp2.sh") which backups all removed system apps to /sdcard/suezbackup/ and correspondig subdirectories. Tested it with TWRP Terminal. Not sure if this works with ADB.

Also preserved the LineageOS Dark and Black Theme to enable correct functioning of Dark mode.

Edit: Also added comments explaining the apps in version 2 of the script