[Nexus S Android Development] lagloose:
Additional installation instructions

Naturally a clean install is always the best thing to do, but a 'dirty' flash shoud be ok, as long as you didn't install scripts or anything else which reside on /system partition. However, flashing a new release overwrites Gapps. So what you can try is:

!!! In every case make sure you are on 'dalvik' runtime before trying a dirty flash !!!

Without wiping anything:

- flash new release

- flash Gapps

- flash 'SuperSu'

- reboot

ROM should boot now and show you the usual 'updating' and 'optimizing' app's (blah.. blah...) dialog. Afterwards try if everything is like 'before'. Of course i'll can't guarantee

ZRAM

To enable zram i've integrated an 'init.d' script which looks for special properties in build.prop and enables or disables zram depending on the values of this properties. These properties are 'sys.zram.size' (in Mb) and 'sys.zram.swappiness'. If 'sys.zram.size' ist set to '0', zram will be disabled. For those who want to enable it, i'd recommend to reserve 64Mb of memory for zram. So set 'sys.zram.size=64' in build.prop. I'd recommend ro leave swappiness at 20 because this seems to be a good 'balanced' value, but if you want to try around with swappiness, feel free.

People who are not familiar with 'adb' and setting properties can download 'build.prop editor' here: https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor from playstore. BUT DON'T CHANGE ANY OTHER VALUE THAN MENTIONED ABOVE, UNLESS YOU KNOW WHAT YOU ARE DOING !!! To check if and 'how' zram works you can use this one from playstore: https://play.google.com/store/apps/details?id=id.co.ptskp.android.zs (Note: there seems to be a bug in that app which fc's and gives you back a large negative number. Just wait some time and start the app again. It should work than.)

High Mem settings

Due to too much problems with using 'ro.config.force_highgfx=true' in conjunction with low_mem device setting i decided to remove this property. Instead i've added and used three other properties to get our Nexus S running in 'high mem' mode without loosing too much performance. To change to high mem mode i recommend to set/change the follwing properties in system/build.prop:

ro.config.low_ram=false

ro.config.max_recent_tasks=10

ro.config.max_starting_bg=2

This can be done by using 'adb' or 'build.prop editor' from Playstore. See notes on 'build.prop editor' in ZRAM section of this post. Additionally you should consider downloading and flashing 'Devil Kernel' from here: http://xdaforums.com/attachment.php?attachmentid=2314244&d=1381362960

For people who know about OOM settings, I suggest to set OOM values to 2048,3584,14080,17920,21760,25600. I won't do bigger explanations here on what all this does. Those of you, who are able to read source code are free to inspect Android source to find out...

Anyway, I'd be glad if someone does a post in this thread what OOM settings are and how they can be set.

Battery life

to increase battery life, you don't have to turn off Location services completely. However, i strongly recommend to turn off Location reporting and Location history in 'Google location settings'. Also turn off 'Scanning always available' in Advanced Wi-Fi settings.