[Samsung Galaxy S (4G Model)] xc-racer99:
Code:

/*
* Your probably long expired warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you
* and point my finger right back at you.
*/

Installation Instructions

It will wipe your entire SD card! In order to make things work better, I've set it up to use the entire SD card as /data as opposed to having two partitions. The advantage is that you don't have to pick a size of /data.

If on a BML rom (stock-based GB)...

Untested, but is setup to hopefully work. If it doesn't flash my 6.0 Omni first

1. Reboot to recovery

2. Make sure your version of CWM is at least 5.x

3. Install zip. First time will fail and let you know its repartionning. Second time it will reboot a couple of times, don't be worried.

4. If you want gapps, reboot to recovery, wipe data+cache and install gapps.

5. If you want root, flash according to instructions in Post #3

If on an MTD rom (CM7 and all ICS+)

1. Reboot to recovery

2. Wipe data, dalvik/art cache, system, and cache partitions

3. Install zip. First time will fail and let you know its repartionning. Second time it will reboot a couple of times, don't be worried.

4. If you want root or Gapps, install them now.

The first boot can take several minutes. Be patient. If it takes 20+ minutes, pull the battery and reboot to recovery.

Things to Take Note Of

I actually have a T959P, not a T959V... It was released by Telus in Canada. It is a very similar device (I can run ROMs for the T959V with limited problems - ie sometimes I get wakelocks and the gps never works), it has a different GPS chipset and also uses different cell bands (but I can still use your guys modems but I lose access to the 850Mhz band). I have created a build specifically for the T959V as best as I can guess.

If you're coming from either the last Lollipop build or the initial pre-release Marshmallow build, there is a bug in TWRP that will prevent flashing anything but the ROM. To get around this, please flash the Marshmallow zip, then reboot to recovery, and then follow the typical instructions.

If you decide to install gapps at a later date (ie after you've installed the ROM), you must do a factory reset first - otherwise you will get force-closes upon bootup

If you come across a bug, feel free to let me know by posting in this thread. I will not be working non-stop on this project, but will try to fix bugs that affect me as this is still my main phone (out of choice, not necessity).

This build is very close to the official AOSP source code. Recovery is TWRP but otherwise there aren't any added "features"

Gapps eat up about an extra 30MB of RAM so they slow down the device - tread carefully. Opengapps pico works on the latest 7.0 build, untested on 7.1 but should work just fine

Backup Backup Backup! I'm not responsible for you losing any data.

Working

Camera (built-in app needs workaround, see below)

RIL

SMS

Recovery

Bluetooth - first time it won't enable if enabling through settings, back out and then second time it will. Works just fine from status bar pulldown

Wifi

Vibration

Automatic Brightness

Compass

GPS on T959P, untested on T959V

Headset Buttons

SElinux in enforcing mode - this may have broken the T959V's gps...

Partially working

Camera and Browser apps need to have all their permissions manually enabled through settings for full functionality. This is because I've used the older Camera app (which hasn't been updated for dynamic permissions) and the older Browser app as the new one is simply a test shell with no features (thanks Google!)

What's been removed

TV-Out - It was removed upstream plus I think binary blobs would need a ton of shimming in Lollipop+

Everything else is not tested!!!

XDA:DevDB Information

AOSP 7.x for Galaxy S 4G, ROM for the Samsung Galaxy S 4G

Contributors

xc-racer99

Source Code: https://github.com/xc-racer99/

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.0.x

Based On: AOSP

Version Information

Status: Beta

Created 2016-10-22

Last Updated 2016-10-21