New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
THREAD CLOSED
Tip us?
 
bhundven
Old
(Last edited by bhundven; 21st April 2012 at 11:34 PM.) Reason: Update OP
#1  
bhundven's Avatar
Recognized Developer - OP
Thanks Meter 4097
Posts: 1,726
Join Date: Aug 2009
Location: Seattle, WA

 
DONATE TO ME
Default [WIP][CM7][UNOFFICIAL][MTD][SGH-T959V] 2.3.7 7.2.0-rc1 [04/21/2012]

READ EVERYTHING.

COME BACK AND RE-READ THE WHOLE OP ON EVERY UPDATE.

IF YOU ARE OUT OF DATE, RE-READ THE WHOLE OP.


I hope the instructions get easier over time...

Credits:
  • TeamAcid - For helping with early bml stuff!
  • m4xm4n - For rild many other helpful fixes! (now a part of TeamAcid)
  • hamsterblade - For incoming ringtone fix
  • EpicCM - The boards on our phones are both different then aries, so it was helpful to understand your device repo layout.
  • windxixi - For some of the fixes in his device tree for sk4g. Our phones are somewhat similar and somewhat different.
  • Krylon360 - For the original device repo and help along the way.
  • drhonk - Tiny Preempt RCU.
  • noobnl and Kaik541 on #cmsgs for helping me out, even if they couldn't answer my questions. Helpful to bounce problems off others.
  • People in #teamnerd for the support
  • Those that donated so I can have coffee and beer!
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 2.3 (Gingerbread), which is designed to increase performance and reliability over stock Android for your device.

Code:
#include <std_disclaimer.h>
/*
* Your 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.
* This mod is only for the Samsung Galaxy S 4G (SGH-T959V) or VibrantPlus.
* This mod will not work on Vibrant or any other phone that is not the SGS4G.
*/
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

The OTA package is now posted in the Third Post. The Rom/Kernel seems pretty stable and could use some user testing. I'm able to use this as my phone. There are some problems... so...

**Things that work and features (not in any particular order)**
  • MTD and YAFFS2.
  • reset-v0.4.1-mtd kernel. (newly reverted to stock and updated manually... see here)
  • Tiny Preempt RCU in the kernel for lower memory allocation overhead.
  • CWM 5.0.2.8 (stock).
  • 2d and 3d Graphics. Seems smooth.
  • Brightness control - thanks m4xm4n!
  • USB Storage in recovery works... in android it is broken.
  • Modem/RIL works. Get GSM/3g/4g! - I have some issues with rild. Mine seems to stay in "GSM" more then "HSPA"...
  • SMS works (when rild works)
  • Wifi now works! - Seems pretty stable for me.
  • BLN! (Use the pro app!)
  • Ringtones work!

**Known Issues**
  • Bluetooth does not work.
  • GPS does not work.
  • Rebooting to recovery or download mode is broken. If you know how to fix it, pm me!
  • hampsterblade has noticed some issues with call volume handling.
  • Again... USB storage in android is broken. Someone told me that it was upstream, but I can't find a bug on it in gerrit. So it must be a local problem.
  • If you find more issues, please check with CM7 gerrit before you think it's a problem with something I've done.

Get the build from the thrid post. Make sure you read all the instructions before trying anything!
INSTRUCTIONS:
- First time flashing CM 7 to your Galaxy S 4G (or coming from another ROM)?
  1. INSTALL THE LATEST VERSION OF HEIMDALL
  2. Reboot to download mode.
  3. Heimdall my sms-kj6-v0.1.x with CWM 5.0.2.7.
    Code:
    bryan@bh-t410:~$ heimdall flash --kernel zImage
  4. Reboot to recovery.
  5. Do a full Nandroid backup!
  6. Go to 'mounts and storage'
  7. format /cache, /data, and /system
  8. Backup the /efs partition to the sdcard using 'adb shell' (you may or may not have to 'mkdir /efs' and 'mkdir /sdcard')
    Code:
    bryan@bh-t410:~$ adb shell
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    # mount -t vfat /dev/block/stl3 /efs
    # mount -t vfat /dev/block/mmcblk0p1 /sdcard
    # cd /efs
    # tar cf /sdcard/efs-backup.tar *
    # md5sum /sdcard/efs-backup.tar > /sdcard/efs-backup.tar.md5
  9. Copy the efs-backup.tar.gz and efs-backup.tar.gz.md5 to your computer!
  10. Advanced -> reboot to download mode
  11. Heimdall the boot.img from the out directory to the kernel partition.
    Code:
    bryan@bh-t410:~$ heimdall flash --kernel boot.img
  12. Boot to recovery (hold vol+ and vol-. Hold power until you see the Galaxy S screen. Then let go of power but keep holding vol+&vol- till you see recovery.)
  13. Use 'adb shell' to restore the /efs partition (again, you may or may not have to 'mkdir /efs' and/or 'mkdir /sdcard')
    Code:
    bryan@bh-t410:~$ adb shell
    erase_image efs
    mount /efs
    mount /sdcard
    cd /efs
    md5sum -c /sdcard/efs-backup.tar.md5 && tar xf /sdcard/efs-backup.tar
    Note: This does not erase the old bml efs partition. So when you go back to bml, you will be using the efs partition that you backed up from. The mtd partition you restored to will then be gone.
  14. Go to 'mounts and storage'
  15. 'mount USB storage', mount the device on your computer, copy over update.zip in the out directory, type 'sync' if you're on linux or mac (sync the filesystem buffers to disk) and unmount the storage on the computer. Then unmount the sdcard on the phone.
  16. format /boot, /cache, /data, and /system
  17. Go to the main menu: 'wipe data/factory reset'
  18. 'install zip from sdcard' install update.zip
  19. Optionally install the Google Apps (located at the bottom of the page).
  20. Reboot


- If you already have cm7 mtd installed, Just do the following:
  1. boot to recovery
  2. copy the zip to your sdcard
  3. install the new zip from sdcard
  4. advanced -> fix permissions
  5. Reboot

- To go back to Stock/BML, you must get into download mode and heimdall one-click back to kj6 with sms-cwm. Flash bootloaders!. I usually then cwm install the sms-kj6-v0.1.1-rc2, before I install a new rom or nandroid restore.

To make an Unoffical galaxys4gmtd build of CM7, go to the fourth post.
The Following 55 Users Say Thank You to bhundven For This Useful Post: [ Click to Expand ]
 
bhundven
Old
(Last edited by bhundven; 16th April 2012 at 10:52 PM.)
#2  
bhundven's Avatar
Recognized Developer - OP
Thanks Meter 4097
Posts: 1,726
Join Date: Aug 2009
Location: Seattle, WA

 
DONATE TO ME
You can find our current changes by browsing over to github:

http://github.com/teamacid/
The Following 26 Users Say Thank You to bhundven For This Useful Post: [ Click to Expand ]
 
bhundven
Old
(Last edited by bhundven; 21st April 2012 at 10:37 AM.) Reason: Seventh (1st Reset) Release...
#3  
bhundven's Avatar
Recognized Developer - OP
Thanks Meter 4097
Posts: 1,726
Join Date: Aug 2009
Location: Seattle, WA

 
DONATE TO ME
Seventh (1st Reset) Release - 04/21/2012 (01:41:41AM PST):
boot.img
update.zip

Sixth Release - 04/19/2012 (6:47PM PST):
boot.img
update.zip

Fifth Release - 04/18/2012 (2:13PM PST):
boot.img
update.zip

Forth Release - 04/09/2012 (10:17PM PST):
boot.img
update.zip

Third Release - 04/09/2012 (2:15PM PST):
boot.img
update.zip

Second Release - 04/08/2012 (12:15PM PST):
boot.img
update.zip

First Release - 04/05/2012 (8:12PM PST):
boot.img
update.zip
The Following 32 Users Say Thank You to bhundven For This Useful Post: [ Click to Expand ]
 
bhundven
Old
(Last edited by bhundven; 6th April 2012 at 11:46 PM.)
#4  
bhundven's Avatar
Recognized Developer - OP
Thanks Meter 4097
Posts: 1,726
Join Date: Aug 2009
Location: Seattle, WA

 
DONATE TO ME
Default Building CM7 from source

The build is now on the teamacid repository.
Please follow the updated build instructions on the wiki:

http://forum.xda-developers.com/wiki...ng_From_Source
The Following 24 Users Say Thank You to bhundven For This Useful Post: [ Click to Expand ]
 
lumin30
Old
#5  
lumin30's Avatar
Recognized Contributor
Thanks Meter 1072
Posts: 2,170
Join Date: Oct 2011

 
DONATE TO ME
Thank you bhundven! Your work is very much appreciated!!
If you appreciate my help - Please Hit Thanks!

> > [GUIDE] Stock Froyo to Custom GB Made Easy < <
> > [GUIDE] Heimdall One-Click For Dummies < <
> > [GUIDE] Stock GB 2.3.6 APK Repository < <


THE THANKS BUTTON IS BELOW --------------------------------------------------
The Following User Says Thank You to lumin30 For This Useful Post: [ Click to Expand ]
 
iamperson347
Old
#6  
Senior Member
Thanks Meter 13
Posts: 126
Join Date: Aug 2011
Thank you sir

Sent from my SGH-T959V using XDA
 
l0lz0rss
Old
#7  
l0lz0rss's Avatar
Member
Thanks Meter 10
Posts: 71
Join Date: May 2011
I love you.

Sent from my HTC Sensation 4G using XDA
Samsung Galaxy S 4G
HTC Sensation 4G
 
HolyGhostBoy1
Old
#8  
Senior Member
Thanks Meter 51
Posts: 403
Join Date: Jul 2011
Location: Birmingham, Al
bhundven u the man thanks for this im very grateful for every person working on this phone...this phone would suck without everyone in this forum..
 
airfluip1
Old
#9  
airfluip1's Avatar
Senior Member
Thanks Meter 1026
Posts: 1,789
Join Date: Feb 2011
Wow, looks like it booted up for you huh?

Also,
does themes already work?
Cyanbread??

---------- Post added at 04:27 PM ---------- Previous post was at 04:22 PM ----------

by the way, you are amazing bh!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
We Have JB

Android Phones List
HTC DREAM- Feb 2009
CM6.1 Android 2.2.1 Froyo
Retired-Cracked LCD/Broken SD Reader

SAMSUNG SGH-T959V- Feb 2011
CyanogenMod 10.1 Android 4.2.2 | Aries | Test Build 4
Current Device

My Help
CM 10.1 Aries
AOKP 4.2.2 Galaxy S 4G
AOSP GB Theme
AOSPStyle
Galaxy S 4G CyanogenMod Odexer
 
sunsurfer42
Old
#10  
Senior Member
Thanks Meter 31
Posts: 181
Join Date: Jan 2011
Location: Seattle, WA
Thank you Bryan! Still up to go get a cup of coffee? It's on me.

Sent from my SGH-T959V using xda premium

The Following User Says Thank You to sunsurfer42 For This Useful Post: [ Click to Expand ]
THREAD CLOSED
Subscribe