[Galaxy S II Android Development] the.gangster:
If you want to dive into the advanced features and options of the GApps installer:

As I am on 1.5gb system partition it is totally ridiculous that I did it that all, but I spent the last hours on creating and testing several gapps-config files that I will never ever use myselft.

But as I mentioned several times already, that (in my theory) it would be possible to install OpenGapps even on CM13 ROM with stock-sized system partition by using an appropriate config file on install, I wanted to know what savings can be reached.

So I built a configfile with almost every possible entry (with comments as well as current size) and also added some "universal application removal"-examples to it. The latter can be used to remove almost every stuff in the /app or /app-private folders.

After flashing it I pulled the logfile as well as a screenshot of the DiskInfo-app from the device, just to show how much space would be affected by those removals.

All my testing was done following these steps each time:

- reboot into recovery (IsoRec-TWRP 2.8.7.0)

- wiping system partition

- doing a factory reset

- install cm-13.0-20160304-NIGHTLY-i9100.zip

- install open_gapps-arm-6.0-full-20160304.zip*

- reboot system

- and the best part...wait for the 70 to 80 apps to get prepared and for android to boot up

* I had this full-gapps-package downloaded already. Any type would have done the same as the config tells the installer to behave as a pico package.

Well, it might obviously make little sense to actually remove all the stuff at once (browser, camera, email, gallery ...) unless you are really having only 25MB left in system partition, but at least it is best to show the spaces that every component would have, and btw. you can still run CM13 that way. I even had a test with completely removed keyboard (another 46MB), but I doubt it would be clever to go with that.

Hint:If you are trying this offline, put at least an APK of a filemanager on your externalSD to get easier access to your files.

So you can see, that it can make sense to also look into providing some sort of gapps-config file as a solution, when installing a ROM on a device that still has stock system partition size.

If it was named gapps-config.txt and written to /sdcard/Open-GApps or /persist it would have lowest priority if others existed already.

So if someone wants to develop something for the ROMs updater script now, that would handle some removals on phones upon GApps installation, that could be your start. (Don't know whether it is interesting for [MENTION=6159291]Lysergic Acid[/MENTION] already this way?)

All further information on how to use a gapps-config, its keywords and precedences and everything else is explained here

I want to point out, that I'd personally still prefer a solution to dynamically resize the system partition upon flashing a ROM on a device with stock system partition size. (after [MENTION=4141005]Lanchon[/MENTION] prepared the way already).

But as I thought that this example config file here would also be useful for some more people I decided to post it here. Because the same procedure can also be used to install bigger GApps packages into an already 1GB system partition. But then you should use keywords for gapps components of the bigger packages to exclude (I just kept some that I use for full-package install on my phone in the example file) instead of those for stock components to remove.

I added a screenshot of DiskInfo with the final size as well as the gapps-config.txt as attachment.

Here are the calculation results (open_gapps_log.txt)

# Begin Open GApps Install Log

-----------------------------------------------------------------------------

ROM Android Version | 6.0.1

ROM ID | cm_i9100-userdebug 6.0.1 MMB29U 2eae0a9c1e test-keys

ROM Version | 13.0-20160304-NIGHTLY-i9100

Device Recovery | TWRP 2.8.7.0

Device Name | GT-I9100

Device Model | GT-I9100

Device Type | phone

Device CPU | armeabi-v7a,armeabi

Display Density Used | 240

Install Type | Clean[Data Wiped]

Google Camera Installed¹ | Clean

FaceUnlock Compatible | true

Google Camera Compatible | true

New Camera API Compatible | false

Current GApps Version | No GApps Installed

Google Camera version | Legacy

Installing GApps Version | 20160304

Installing GApps Type | pico

Config Type | exclude

Using gapps-config | /sdcard/CM13/gapps-config.txt

Remove Stock/AOSP Browser | true[gapps-config]

Remove Stock/AOSP Camera | true[gapps-config]

Remove Stock/AOSP Email | true[gapps-config]

Remove Stock/AOSP Gallery | true[gapps-config]

Remove Stock/AOSP Launcher | false[NO_GoogleNow]

Remove Stock/AOSP MMS App | false[NO_Hangouts]

Remove Stock/AOSP Pico TTS | true[gapps-config]

Ignore Google Contacts | false

Ignore Google Keyboard | false

Ignore Google Package Installer | false

Ignore Google NFC Tag | true[NoRemove]

Ignore Google WebView | false

SwypeLibs | 922 (KB)

Total System Size (KB) | 1548144

Used System Space (KB) | 454612

Current Free Space (KB) | 1093532

Post Install Free Space (KB) | 1068926 << See Calculations Below

- Removing | swypelibs

- Installing | calsync

- Installing | packageinstallergoogle

-----------------------------------------------------------------------------

¹ Previously installed with Open GApps

# End Open GApps Install Log

# Begin GApps Size Calculations

-----------------------------------------------------------------------------

TYPE | DESCRIPTION | SIZE | TOTAL

| Current Free Space | 1093532 | 1093532

Remove | Existing GApps | + 0 | 1093532

Remove | Obsolete Files | + 24 | 1093556

Remove | basicdreams | + 64 | 1093620

Remove | browser | + 2200 | 1095820

Remove | calendarstock | + 2352 | 1098172

Remove | camerastock | + 5100 | 1103272

Remove | camerastock | + 5100 | 1108372

Remove | clockstock | + 3392 | 1111764

Remove | cmaccount | + 0 | 1111764

Remove | cmaudiofx | + 264 | 1112028

Remove | cmfilemanager | + 2672 | 1114700

Remove | cmmusic | + 3692 | 1118392

Remove | cmwallpapers | + 9448 | 1127840

Remove | dashclock | + 0 | 1127840

Remove | email | + 6304 | 1134144

Remove | exchangestock | + 1380 | 1135524

Remove | galaxy | + 296 | 1135820

Remove | gallery | + 5808 | 1141628

Remove | holospiral | + 108 | 1141736

Remove | livewallpapers | + 1692 | 1143428

Remove | lockclock | + 9256 | 1152684

Remove | noisefield | + 116 | 1152800

Remove | packageinstallerstock | + 1880 | 1154680

Remove | phasebeam | + 132 | 1154812

Remove | photophase | + 864 | 1155676

Remove | phototable | + 492 | 1156168

Remove | picotts | + 6604 | 1162772

Remove | simtoolkit | + 164 | 1162936

Remove | studio | + 0 | 1162936

Remove | sykopath | + 0 | 1162936

Remove | tagstock | + 0 | 1162936

Remove | terminal | + 516 | 1163452

Remove | visualizationwallpapers | + 0 | 1163452

Remove | whisperpush | + 0 | 1163452

Remove | Screencast° | + 84 | 1163536

Remove | SoundRecorder° | + 292 | 1163828

Install | Core² | - 82386 | 1081442

Install | calsync³ | - 1244 | 1080198

Install | packageinstallergoogle³ | - 2056 | 1078142

| Buffer Space² | - 9216 | 1068926

-----------------------------------------------------------------------------

Post Install Free Space | 1068926

-----------------------------------------------------------------------------

° User Requested Removal

² Required (ALWAYS Installed)

³ Optional (may be removed)

# End GApps Size Calculations

# Begin User's gapps-config

PicoGApps

CalendarGoogle

ClockGoogle

Hangouts

PlayGames

ExchangeGoogle

GoogleTTS

skipswypelibs

BasicDreams

Browser

CalendarStock

CameraStock

ClockStock

CMAccount

CMAudioFX

CMFileManager

CMMusic

CMWallpapers

DashClock

Email

ExchangeStock

Galaxy

Gallery

HoloSpiral

LiveWallpapers

LockClock

NoiseField

Phasebeam

PhotoPhase

PhotoTable

PicoTTS

SimToolKit

Studio

SykoPath

TagStock

Terminal

VisualizationWallpapers

WhisperPush

Eleven

(Screencast)

(SoundRecorder)

# End User's gapps-config

Normally no need to mention, but doing it anyway: all the size details (totals & savings) got calculated on ROM CM-13.0-20160304-NIGHTLY-i9100 with GApps-20160304. They will change with every new ROM or GApps package.

Hope this was of interest for someone.