• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM]Unofficial OmniRom 5.1 for the Galaxy S 4G (SGH-T959V and T959P)

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
Code:
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
Make sure you have a second partition on your SD card before flashing!!!! This can be created with minitool partition wizard on Windows or gparted on Linux.

If on a BML rom (stock-based GB)...
  • 0. Read "Things to take note of" below
  • 1. Reboot to recovery
  • 2. Make sure your version of CWM is at least 5.x
  • 3. Install zip. It will reboot a couple of times, don't be worried.
  • 4. If you want root or Gapps, flash them now
If on an MTD rom (CM7 and all ICS+)(I tested CM9, CM10.1 and CM11)...
  • 0. Read "Things to take note of" below
  • 1. Reboot to recovery
  • 2. Wipe data, and cache paritions (just in case). If updating to a newer build, you can probably skip this step
  • 3. Install zip
  • 4. If you want root or Gapps, install them now
The first boot can take several minutes. Be patient. If it takes 10+ minutes, pull the battery and reboot to recovery.

Things to Take Note Of
  • Humberos (the i9000 maintainer) has moved on to different projects which means no first-gen Galaxy S devices are being actively maintained. Builds may break at any time!
  • 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 and also provide T959P builds.
  • The USB connection is MTP and not mass storage as Omni has removed mass storage. In recovery there is still an option to mount as mass storage device.
  • This build is very close to the official omni source code. This means that the recovery is TWRP and there aren't any added "features"
    In order to get it rooted, you need to install SuperSu.
  • Gapps reportedly slow down the device significantly so tread carefully.
  • Backup Backup Backup! I'm not responsible for you losing any data.

Working
  • Taking pictures
  • RIL
  • SMS
  • Data
  • Recovery
  • Bluetooth
  • Wifi
  • Vibration
  • Powered-off charging animation
  • Flash from BML
  • Video Recording
  • Automatic Brightness
  • Moving Apps to the SD Card
  • GPS
  • Encryption
  • Compass
  • SElinux in enforcing mode

What probably doesn't
  • Microphone mute option doesn't work during calls

What doesn't
  • 720p recording is very laggy

What's been removed
  • TV-Out - It was removed upstream plus I think binary blobs are broken in Lollipop...
  • Live wallpapers - this is a low-ram device

Everything else is not tested!!!

XDA:DevDB Information
Unofficial OmniRom 5.1 for the Galaxy S 4G (T959V) and Galaxy S Fascinate 4G (T959P), ROM for the Samsung Galaxy S 4G

Contributors
xc-racer99, humberos
Source Code: http://github.com/omnirom

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.0.x
ROM Firmware Required: All
Based On: OmniRom

Version Information
Status: No Longer Updated

Created 2015-06-30
Last Updated 2016-05-12
 
Last edited:

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
Thanks Time!
This would not have been possible without the following people:

Thanks to humberos for bringing Lollipop to the first-gen Galaxy S series. This would not have been possible without his work.
Thanks to FB and Dao for their work on the CM-11 device tree. I used several of their fixes.
Thanks to noiphonehere for his device trees and kernel, most of my work was based off of his.
Thanks to bhundven and the other members of teamacid for their work on the aries kernel.
Thanks to all others that have helped get this phone to where it is today!
Thanks to vcmerritt. A name you're probably not familiar with, but he was the only one to create something for the T959P and without him I'd still be on stock...


Build your own!
Follow the instructions at http://docs.omnirom.org/Setting_Up_A_Compile_Environment using the android-5.1 branch
Before doing a repo sync, put the galaxy_s_series.xml file from the Download folder in .repo/local_manifests folder of the source tree.
After syncing the source, open a terminal and in the directory where you downloaded the source code type "source ./build/envsetup.sh" and then "brunch galaxys4gmtd"

Changelog

Changelog for 07/03/2015 Build
  • Newer Omni source
  • Added volume controls and flight mode toggle to power button menu
  • Added Bigmem option. This increases available RAM by ~20mb but breaks 720p video recording. Humberos created the kernel setup and I integrated a toggle for it into Advanced device settings.
  • Selinux is now in enforcing mode. I had to modify the GPS startup to have any chance of getting here. Please let me know if it still works/doesn't work/never worked
  • Notifications are sometimes wonky. To fix, in Settings, go to Performance, then Advanced. Select Force high-end graphics and reboot your phone.

Changelog for 2015/07/20 Build
  • The data partition is now the second partition of the SD Card as opposed to internal storage
  • Gapps now work. If you get error 461 when installing from Play Store, a full data wipe should fix it. You can try experimenting with clearing data for the Play Store and/or Play Services or removing and re-adding your Google account if you don't want to do a full data wipe.
  • HSPA vs UMTS settings in DeviceSettings has been fixed
  • High-End graphics are forced by default to fix notification issue
  • ART parameters have been tweaked
  • Miscellaneous other tweaks, see my Github for details

Changelog for 2015/07/24 Build
  • Stabilized bluetooth connection
  • Fixed typo in GPS initialization. Does it work?
  • Added ability to use f2fs file system on /data. Supposed to give better performance
  • Added force fast charge and touch wake to kernel. Touchwake is accessible through its sysfs path, fast charge through Performance Settings, BatterySelinux currently denies these requests...

Changelog for the 2015/07/29 Build
  • This is a maintenance build. Very little has changed
  • Some more RAM freed (disabled some debugging stuff, TV-Out driver, IR driver)
  • Sepolicy updated for fast charge and touch wake
  • GPS initialization tweaked - unsure if works. If it doesn't, a dmesg would be appreciated

Changelog for 2015/08/02 Build
  • SElinux changed to permissive - this build only
  • GPS sepolicy changed - unsure if all necessary things are implemented

Changelog for 2015/08/13 Build
  • Selinux back to enforcing. Thanks to @anoymonos for the dmesg and @DerPugNa for offering to send me one as well
  • Fixed encryption

Changelog for 2015/08/31 Build
  • Updated Android version (5.1.1_r5 to 5.1.1_r12)(upstream Omni Change)
  • Restoring /system in TWRP should now work
  • When installing from BML, a chance is given to install gapps and/or SuperSu before rebooting
  • zRam is now actually used...

Changelog for 15/10/2015 Build
  • Fixed typo in updater.sh (thanks @FBis251!)
  • Update Omni source code - plenty of little tweaks since last build
 
Last edited:

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
Source Code and Downloads

Main Source
http://github.com/omnirom
Device Specific Source Code
http://github.com/xc-racer99/android_device_samsung_telusgalaxys4gmtd for the device tree (see android-5.1-t959v branch)
http://github.com/xc-racer99/android_device_samsung_aries-common for the common device tree (see android-5.1 branch)
http://github.com/xc-racer99/android_kernel_samsung_aries for the kernel (see android-5.1 branch)
http://github.com/xc-racer99/proprietary_vendor_samsung for the prop blobs (see android-5.1 branch)

Downloads!
All builds are found at https://drive.google.com/folderview...VVSzJxYVU3eHlWZGR1VVNZUWk1V1QzOUk&usp=sharing

Please let me know if the link doesn't work! There are also builds there for the T959P, in case there are any users of it left.

Gapps
Gapps do not work on builds prior to 2015/07/20. On more recent builds, they can be installed from http://forum.xda-developers.com/showpost.php?p=59731008&postcount=2

SuperSu
SuperSu can be found at https://download.chainfire.eu/696/SuperSU/
 
Last edited:

GFX.myst.

Senior Member
Jul 19, 2011
712
883
0
Acid Drops (YouTube)
codedgraphx.info
Wow, bringing this ole device back from a coma here. Nice to see someone else willing to work on lollipop for this oldie but goodie. Keep this device alive man. ;)

Edit: If you are in need for some GFX for this thread, let me know and I'll see what I can brew up for you.
 
Last edited:

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
Wow, bringing this ole device back from a coma here. Nice to see someone else willing to work on lollipop for this oldie but goodie. Keep this device alive man. ;)

Edit: If you are in need for some GFX for this thread, let me know and I'll see what I can brew up for you.
I hope I can keep this great little device going a little longer, however it will probably get tough. I did a repo sync earlier today and things are starting to break. The last few builds haven't even booted. With humberos no longer maintaining the i9000 and aries-common, I've had to fork the aries-common repository to try to keep going. The only upside of this is that I now have a little bit more freedom and can add things in if I want to.

Thanks for the offer of the graphics. If I can get a new build working, then I'll probably take you up on your offer. I think I've traced the problem but I'll have to wait and see...

For anyone that is trying/has tried this out, I'd be very curious on the status of the GPS on the T959V. I'm interested in creating the sepolicies for it so we can put selinux into enforcing mode but I don't want to go to the effort if it doesn't even work right now.
 

DickyG

Senior Member
Mar 30, 2013
200
41
28
Virginia
I've downloaded the zip and one of the smaller Gapps packages...won't be able to flash until early next week...I'll be out of town...will post results later...thanks for keeping this phone current.
 

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
New Build Uploaded!

Download is still at the same link as before, just use the 2015-07-03 build

I managed to find out why my new builds hadn't been booting - it was because the syntax for using a custom kernel toolchain had changed.
Anyway...

Changelog for 07/03/2015 Build
  • Newer Omni source
  • Added volume controls and flight mode toggle to power button menu
  • Added Bigmem option. This increases available RAM by ~20mb but breaks 720p video recording. Humberos created the kernel setup and I integrated a toggle for it into Advanced device settings.
  • Selinux is now in enforcing mode. I had to modify the GPS startup to have any chance of getting here. Please let me know if it still works/doesn't work/never worked

On another note, I've had a look at re-implementing TV-Out support. It doesn't look promising as several of the functions in the android frameworks that it used have been tweaked.... Still working on it but don't hold your breath.

Also, if somebody could test dock audio that would be appreciated. I don't have any way of testing it. If it doesn't work, I do have an idea on how to fix it (for those interested, another almost-aries device, the Infuse 4G, had to modify things slightly to get it to work. I would try to emulate their solution).
 

billowusu47

Senior Member
Jul 2, 2015
271
77
0
I've downloaded the zip and one of the smaller Gapps packages...won't be able to flash until early next week...I'll be out of town...will post results later...thanks for keeping this phone current.
Hello, im a user of a t959v. And I've been using this rom for three days. Everything is fine and very smooth on this rom except that, I can't install anything from the playstore. I always get (cannot install app due to an error 963). And Ive tried all the gapps, even the new link provided but still no luck.
 

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
Hello, im a user of a t959v. And I've been using this rom for three days. Everything is fine and very smooth on this rom except that, I can't install anything from the playstore. I always get (cannot install app due to an error 963). And Ive tried all the gapps, even the new link provided but still no luck.
Good to hear that that's its (mostly) been working for you. I was hoping that the gapps problem was just me :)

Out of curiosity, which of the alternate gapps did you try?

A brief google of the error brings up a couple of possibilities...

Try an older gapps version. The ones from devloz on the i9000 thread devloz and the oldest revision for 5.1.1 are probably your best bet. Please be aware that Google Play store will automatically update!!! In order to prevent this, you will need to create a folder called "com.android.vending-1.apk" in /data/app (use a root explorer such as ES File Explorer or adb if you know how). If a file with that name already exists, delete it first.

Another thing to try would be to unmount your sdcard first before trying to install an app. I know, its a terrible work-around but it should work. This is because the error is that Google Play is trying to save some data on your sdcard but then for some reason it fails (I'm not sure why).

I'll hopefully get around to seeing if its a permissions problem after I find out what's been causing the issue with the notifications on the latest build.

P.S. Does the GPS work?
 
  • Like
Reactions: mataflakitas

DickyG

Senior Member
Mar 30, 2013
200
41
28
Virginia
Early update...
...ROM flashed fine...a little slow to boot...about 3 minutes...but it booted.
...Gapps flashed fine...used 20150513_5.1.x package
...Installed Super SU (although I don't think that's necessary) and TB.
...So far only gave a quick test to camera and web browser...no problems.
...Am now in the process of re-installing user apps and data from TB...this will take a while.

When I'm done with that, I use Link2SD to link most of my user files to the SD card. After that is all set up, I'll test stuff like GPS, root access, etc. I'll post back later...maybe tomorrow.

But so far so good.
 

DickyG

Senior Member
Mar 30, 2013
200
41
28
Virginia
OK...I did some testing tonight and here's some results.

Working:
.it boots
.root
.browser
.playstore
.camera
.link2sd (about 180 mb free in internal)
.camera
.wifi
.email

Nor working:
.bluetooth
.google search/voice search
.just about all the rest of the Gapps
.tons of force closes including Maps so can't test GPS

Won't be able to do anymore testing until next week.
 

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
OK...I did some testing tonight and here's some results.

Working:
.it boots
.root
.browser
.playstore
.camera
.link2sd (about 180 mb free in internal)
.camera
.wifi
.email

Nor working:
.bluetooth
.google search/voice search
.just about all the rest of the Gapps
.tons of force closes including Maps so can't test GPS

Won't be able to do anymore testing until next week.
Alright, thanks very much for the update. I'll do some more testing here and see if I can solve anything. For me, bluetooth file transfers to the phone work but not from the phone.

I've been looking at the notification "error" where the lockscreen notifications do not appear correctly. It appears to have been introduced upstream with a merge. I'm having difficulty finding out exactly what changed and since no errors are being thrown in the logcat, it could be a while...

For testing the GPS, there's an app from the Play Store called GPS Test which does a nice job of showing satellites and whether or not you have a lock on them.
 
Last edited:

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
nice one! its nice that this device are still alive.! and now were on 5.1 :D
No, it should be Humberos is the man! I basically re-hashed his code for the i9000 and used bits and pieces from people like Bhundven, noiphonehere, maxfierke, Dao, and FB to get things to work properly.

For a status update, I figured out the lockscreen notification problem. I have a new build being made that I hopefully will be able to upload in the next couple of days (internet dependent). TV-Out looks totally broken as the proprietary blobs no longer function. I don't have the know-how to make ugly hacks to get them to work. The new build will have SElinux in enforcing mode and have the different GPS initialization (like the last build) until someone tells me that it doesn't work :p
Uh-oh, looks like I jumped the gun.... Having problems once again
 
Last edited:

xc-racer99

Senior Member
Aug 28, 2013
667
1,063
0
Any updates on getting the play store to work? I have searched, downloaded, and tried every gapp made for 5.1. I found that I can load any app on the rom, if I get the APK version of it.
Darn, so its still not working. Not surprising. I've been struggling on the notification issue and am at my wit's end as to what the problem is. I don't think its only our phone as several i9000 users have been reporting it as well. Whether it is only the first-gen Galaxy S series that is having the problem or not is anyone's guess. My programming skills are insufficient to fix the issue!

I'll have another look at gapps over the next couple of days and see if I can figure out a combination that works 100% of the time.

I'm assuming the error message is still 963 or does it silently fail now? Its probably related to the fact that we have only an external sd card and no internal sd card like most devices...

All the problems with the notifications that I've found are:

  • Only one notification will show up at a time
  • Large notifications such as the music player do not render properly. They are cut off at the normal notification size and occasionally it seems as if there are two layers there (one for the small version, one for the bigger version) (see attached picture, taken with VLC as the media player, but also appears with Apollo)
  • Notifications don't always show up. A little icon appears in the top left corner of the status bar but no notification is present. Seems hit or miss
  • The words No notifications appears in the lockscreen just above the clock when there are no notifications. Otherwise, a notification (and only one) which can't be clicked covers part of the clock
 

Attachments