Samsung Moment
Find Your Forum
  
Welcome, Guest. Please login or register.
Did you miss your activation email?

News: Do you like Samsung Moment?
Advanced search
Scratch-Proof your Samsung Moment        Best Price on Sprint Phones      Screen Protection Latest Ringtone for your mobile
Pages: [1] 2 3 ... 16
Print
Topic: How-To: Flash to custom kernals & back to Stock Kernel/Remove System Apps  (Read 31327 times)
cnstarz
Full Member
***

Cookies: 5
Posts: 174


View Profile
« on: January 09, 2010, 09:16:37 PM »

It looks like a lot to do, but it's not.  It's really a very simple process.  It just looks long because I worded it so that a 5 year-old could understand it.  If you see anything that's incorrect, please post here and I'll fix it!

BEFORE YOU FLASH YOUR PHONE:

  • READ THROUGH THIS ENTIRE GUIDE BEFORE ATTEMPTING TO FLASH!!  Don't attempt to flash while reading through this for the first time.  You will undoubtedly miss something or jack something up and then you'll be stuck asking a question that makes you look like an idiot.
  • If your phone has/had CL14 SBL, then you will need to flash with Joey's kernel, or the patchoob version of Zefie's kernel.  If your phone has CJ05 SBL, then you will need to flash with Joey's kernel, Sam1el's kernel, or the regular version of Zefie's kernel.  The easiest way to tell if you have CL14 SBL is by checking your modem version.  To see what modem version you have, press Menu at the homescreen and go to Settings>About Phone>Baseband version -- it will say either "CL14" or CJ05" at the end.  Also, if you ever took your phone to a Sprint Store to be upgraded, or you upgraded it using Sprint's tool, then your phone has CL14 SBL.  If your phone has CL14 SBL and you want to flash with one of Zefie's kernel then you will need to follow these directions to get CJ05 SBL onto your phone so that you can flash one of Zefie's patchoob kernels.  Once you have finished that guide, then you will be able to use this guide to flash with Zefie's patchoob kernels.  There's only one version of Joey's kernel; you can use Joey's kernel regardless if you have CL14 or CJ05 SBL.
  • There are 4 different things that we are currently flashing:
  • Don't take your phone to Sprint to be updated.  If you took your phone to a Sprint store to be updated to CL14, and are wanting to use Zefie's custom kernels, then you will need to follow Zefie's guide to putting CJ05 SBL back onto your phone before you can this guide to flash with his kernels.  The CL14 update from Sprint stores will jack up your phone and cause headaches when wanting to flash with any of Zefie's custom kernels.  Instead, flash with the SPH-M900_CL14_STOCK_FIXED_with_CJ05_SBL.7z update listed above.  It is the SAME EXACT update that Sprint is handing out, but doesn't run into problems with any of his kernels.
  • Before you can use ADB while in Android (normal mode), you must enable USB Debugging.  Settings > Applications > Development > USB Debugging.  When the phone is in Recovery mode, adb daemon on the phone should always be running and with root access.
Also i want to reiterate that NO ONE should try to flash the Sprint's official CL14 update using any method on this forum or SDX-DEV, as it can permanently damage your phone. If you want the official one go to your local Sprint store and get it that way.  If, in the future, you want problem-free flashing of the ZE** kernels, stay away from Sprint's official CL14 update all together.  Just flash the files listed above.
-Dale


Ingredients:

Flashing with a Custom Kernel:
  • Install Necessary Drivers
    • Install Samsung PC Studio 3 by setting compatibility mode to "Vista SP2" and running as Admin.  Make sure PC Studio 3 is not running in the backround while flashing.  It will cause problems while flashing.
    • Download Odin Multi Download v3.8 and Moment.ops. (NEVER EVER EVER USE ANY OTHER .OPS FILE)
    • Power down phone completely, then boot into Download Mode by holding the Volume Down, Camera, and Power button until the downloading screen appears.
    • Plug the usb cable into the phone.  Windows 7 (and possibly Vista) will try to download some drivers for the phone.  If the driver installations aren't successful, then you will need to manually update the "G" and "USB Composite Device" drivers manually:
      • Open Device Manager.
      • You should see 2 devices with yellow triangles that need updated drivers: "G" and "USB Composite Device".  Both of their drivers are located within the Samsung PC Studio 3 install directory, "C:\Program Files (x86)\Samsung\Samsung PC Studio 3\USB Drivers\3".
      • Tell Device Manager to look in that folder for both the G and USB Composite Cable drivers.
  • Upload ZE** Kernel via Odin (for screenshots, view this post)
    • Download Joey's custom kernel, Sam1el's custom kernel or Zefie's Custom Kernel. If your phone had CL14 SBL, then you will need to download either Joey's kernel or the "patchoob" version of Zefie's kernel.  Everyone else can download Joey's kernel, Sam1el's kernel, or Zefie's regular kernel.
    • Either select Joey's tar file, use Sam1el's custom kernel or open the SPH-M900_ZE**_KERN.7z file -- with either 7-Zip or WinRAR -- and extract the SPH-M900_ZE**_KERN.tar file.
    • Right-click Odin Multi Downloader v3.98.exe and Run-As Administrator.  The first box in the upper left should say "Detected", which means that it recognizes your phone in Download mode.  If it doesn't say detected, then most likely the G and Composite USB drivers aren't installed.
    • Check the box that says "One Package".
    • Click the "Ops" button and choose the Moment.ops file. (AGAIN, NEVER EVER EVER USE ANY OTHER .OPS FILE)
    • Click the "One Package" button and choose the SPH-M900_ZE**_KERN.tar file.
    • Click the "Start" button and let it do its thing.  Sometime the program will hang at "Setup Connection".  Just close Odin, open it back up, and try starting the procedure again. Sometimes it takes a few tries, and sometimes you need to pull the battery out of the phone and go back into Download mode.
    • When it's done, the phone will reboot automatically.  You can pull out the USB cable and close Odin once you're back into Android.
    • Congrats!  Your phone is now rooted and you are now the coolest person you know.

Flashing System and Modem from CJ05 to CL14
Thanks to joeykrim

  • To Flash CL14 /system only
    • In Odin, instead of up flashing with the SPH-M900_ZE**_KERN.tar file, use the SPH-M900_CL14_WORKING_SYSTEM_ONLY.tar instead .  Follow the rest of the directions exactly as you would as if you were updating the kernel. Once the flash to the phone is complete it will reboot and instead of seeing the glowing Android logo there will now be a glowing Samsung logo. First boot took longer than normal for me, but 2nd and 3rd were quicker.  Thread to report and follow the bug fixes of CL14 System: http://www.sdx-developers.com/index.php?topic=87.0
  • To flash CL14 Modem only
    • In Odin, instead of flashing with the SPH-M900_ZE**_KERN.tar file, use the SPH-M900_CL14_CDMA-ONLY.tar file instead.  Follow the rest of the directions exactly as you would as if you were updating the kernel. Once the flash to the phone is complete it will reboot. Once android has loaded, under Menu->Settings->About phone, the Baseband version should read S:M900.8.0S.CL14. This confirms the modem.bin has been updated.
  • For CL14 System, Modem, and Data (pretty much a fresh install)
    • In Odin, instead of flashing with the SPH-M900_ZE**_KERN.tar file, use the SPH-M900_CL14_STOCK_FIXED_with_CJ05_SBL.tar file instead.  Follow the rest of the directions exactly as you would as if you were updating the kernel. Once the flash to the phone is complete it will reboot. You can use this to bring your phone back to life if you ever brick it.  This is basically a fresh install and will wipe all your apps and data.
Removing System Apps from Moment:
  • Enable USB Debugging.  Settings>Applications>Development>USB Debugging.
  • The safest way to remove system apps is to adb into your phone while in Recovery Mode:
    • Boot the phone into Recovery Mode by holding Call, Trackpad, and Power while the phone is off.
    • Download Android SDK and extract the SDK folder onto your desktop or wherever you want.
    • Open CMD as Admin and type the following commands:
Code:
cd c:\{wherever}\{the sdk folder is}\android-sdk-windows\tools\
adb shell
  • Some of us are born-renegades, and would rather just do it within Android instead of in Recovery Mode.  From the Market, download ConnectBot (when you open ConnectBot, connect to Local) or some other terminal emulator.  Now, to start removing stuff...
  • First we're gonna give ourselves sudo (root permissions).  Type "su" and press enter.  The "$" will turn into a "#".
  • Next, we're gonna remount the filesystem as read/write.  This will allow us to remove system files.  Type in "remount rw" and press enter.
  • Then, we're gonna navigate to where the systems apps are located.  Type in "cd system/app" and press enter.  Now we're ready to do work!
  • Use the following commands to backup Bejeweled to SDCard and from phone:
Code:
cat Bejeweled.apk > /sdcard/Bejeweled.apk
rm Bejeweled.apk
  • Follow the same steps to remove other System Apps.
  • Once you're done removing apps, type in "remount ro" to put the filesystem back into read-only state, and press enter.
  • Type "reboot" to reboot the phone.
  • **If you're doing this in Android, make sure the app you're removing isn't running.  Android will pee in your mouth if you try to remove an app while the app is running.

Flashing back to Stock Kernel:
  • If at any time you wanna go back to the stock CL14 kernel and /system, just follow the same procedures as you did to flash to Zefie's Custom Kernel, but flash with the "SPH-M900_CL14_WORKING_SYSTEM_ONLY.7z" located in his custom kernels folder.

Flashing back to completely Stock out-of-the-box:
  • If at any time you wanna go back to the way your phone was straight out of the box, just follow the same procedures as you did to flash to Zefie's Custom Kernel, but flash with the "SPH-M900_CL14_STOCK_FIXED_with_CJ05_SBL.7z" located in his stock kernels folder.

Commands:
  • su = either sudo or super user/root.
  • remount rw = remount the file system as read/write capable.
  • remount ro = remount file system as read-only.
  • pwd = print working directory.  Tells you what directory you're currently in.
  • cat (filename) > /sdcard/(filename) = prints (or in this case, copies) the file from your working directory (/system/app) to the destination directory (/sdcard).
  • rm (filename).apk = delete or remove (filename).apk from whatever folder you're in.
  • busybox sh = replaces the default android shell with the busybox shell, which gives you tab completion and command history, amoungst other things.

Possible errors while flashing:
  • Error: Odin displays the text in the following code box after you press the "Start" button...
    • Fix1: Make sure PC Studio 3 isn't running in the backround.  Close Odin and kill PC Studio 3, then reopen Odin and start over.
    • Fix2: If Fix1 didn't work, make sure Firefox is closed.
    • Fix3: If Fix2 didn't work, reboot.
Code:
Download Start...
<0> Create File...
<1> StartThread Detected : 1
<2> StartThread Detected : 0
<3> StartThread Detected : 0
<4> StartThread Detected : 0
<5> StartThread Detected : 0
<6> StartThread Detected : 0
<7> StartThread Detected : 0
<8> StartThread Detected : 0
<1> Begin Thread..
<1> Engine RUN!!!
<1> e - dll cannot open the usb serial port. code: 32


  • Error: Windows doesn't detect phone while in Download mode:
    • Fix1: Make sure you installed all the PC Studio drivers as described earlier in this post.
    • Fix2: Try uninstalling PC Studio 3 and installing PC Studio 7 or New PC Studio, or vice versa.
    • Fix3 (thanks to kuscoot): Make sure you've installed all Windows Updates and then reboot your computer.
« Last Edit: March 01, 2010, 12:32:36 AM by lovinlissa1984 » Logged

hokansoc
Global Moderator
Moment Monster
*****

Cookies: 21
Posts: 890


hokansoc@googlewave.com


View Profile WWW
« Reply #1 on: January 10, 2010, 03:49:45 AM »

1) WinRAR, to my knowledge, works fine. I have yet to have any issues using it.

2) Android will not pee in your mouth.. but it is a bad idea to rm a running app. Depending on the app it may:
-Kill your phone
-Give you a long stream of errors along the lines of "blah blah blah Force Close"
-Do something else we don't expect
Anyways, you're best off doing this in recovery mode.
Logged
lovinlissa1984
Getting into the "Moment"
Global Moderator
Moment Monster
*****

Cookies: 15
Posts: 896



View Profile
« Reply #2 on: January 10, 2010, 10:52:44 AM »

2) Android will not pee in your mouth.. but it is a bad idea to rm a running app. Depending on the app it may:
-Kill your phone
-Give you a long stream of errors along the lines of "blah blah blah Force Close"
-Do something else we don't expect
Anyways, you're best off doing this in recovery mode.
AKA...USE AT YOUR OWN RISK
Dale
Logged

Please Be Kind To The Forum and Search Before Posting A New Thread See Also: Hitch Hikers Guide & Moment Wiki
mikeyk
Newbie
*

Cookies: 1
Posts: 16


View Profile
« Reply #3 on: January 10, 2010, 12:14:14 PM »

This is for the OP or anyone else that doesn't understand the linux commands that are being used and what they do/are. The command line can be way more powerful then clicking on an icon, use cautiously. Just like the good old DOS days.


su = either sudo or super user/root
remount rw = remount the file system read/write capable
remount ro = remount file system read only
cat (filename) > /sdcard/(filename) = change (filename) to whatever file your copying from your system/apps folder or whatever folder your copying from to your sdcard
rm (filename).apk = delete or remove (filename).apk from whatever folder your in

Logged
lovinlissa1984
Getting into the "Moment"
Global Moderator
Moment Monster
*****

Cookies: 15
Posts: 896



View Profile
« Reply #4 on: January 10, 2010, 12:55:12 PM »

This is for the OP or anyone else that doesn't understand the linux commands that are being used and what they do/are. The command line can be way more powerful then clicking on an icon, use cautiously. Just like the good old DOS days.


su = either sudo or super user/root
remount rw = remount the file system read/write capable
remount ro = remount file system read only
cat (filename) > /sdcard/(filename) = change (filename) to whatever file your copying from your system/apps folder or whatever folder your copying from to your sdcard
rm (filename).apk = delete or remove (filename).apk from whatever folder your in


thank you .....That should help many users. cookie for you.
Dale
Logged

Please Be Kind To The Forum and Search Before Posting A New Thread See Also: Hitch Hikers Guide & Moment Wiki
phear
Newbie
*

Cookies: 0
Posts: 1


View Profile
« Reply #5 on: January 12, 2010, 06:18:06 PM »

Whenever I do "remount ro" after finishing removing apps it says:
mount: Device or resource busy

What should I do? It's bee like that for a few minutes? Is it safe to reboot while still in rw mode?

Edit: I rebooted using "reboot" and then went back in after reboot and did "remount ro" and it worked fine, in case anyone else needs to know =)
« Last Edit: January 12, 2010, 06:27:02 PM by phear » Logged
Balian67
Full Member
***

Cookies: 1
Posts: 154


View Profile
« Reply #6 on: January 12, 2010, 07:12:08 PM »

I however have a problem with it constantly staying at " <1> setup connection... " and I have the ZE08.3 and moment.ops. It IS "DETECTED" Com Port Mapping is "1 (COM 3)" Under Option all three boxes (One Package, Reboot, Protect OPS) are checked. Anyone have any ideas? Oden 3.98 is the one Im using.
Logged
lovinlissa1984
Getting into the "Moment"
Global Moderator
Moment Monster
*****

Cookies: 15
Posts: 896



View Profile
« Reply #7 on: January 12, 2010, 07:13:49 PM »

I however have a problem with it constantly staying at " <1> setup connection... " and I have the ZE08.3 and moment.ops. It IS "DETECTED" Com Port Mapping is "1 (COM 3)" Under Option all three boxes (One Package, Reboot, Protect OPS) are checked. Anyone have any ideas? Oden 3.98 is the one Im using.
Make sure the PC studio app isnt running on your phone and your computer.
Dale
Logged

Please Be Kind To The Forum and Search Before Posting A New Thread See Also: Hitch Hikers Guide & Moment Wiki
Balian67
Full Member
***

Cookies: 1
Posts: 154


View Profile
« Reply #8 on: January 12, 2010, 07:34:06 PM »

I however have a problem with it constantly staying at " <1> setup connection... " and I have the ZE08.3 and moment.ops. It IS "DETECTED" Com Port Mapping is "1 (COM 3)" Under Option all three boxes (One Package, Reboot, Protect OPS) are checked. Anyone have any ideas? Oden 3.98 is the one Im using.
Make sure the PC studio app isnt running on your phone and your computer.
Dale

Thanks Dale, I figured it out LITERALLY seconds before I clicked this link to see if there were replies....haha it was the PC Studio. You've got a PM btw!
Logged
Brooklyn
Jr. Member
**

Cookies: 0
Posts: 58


View Profile
« Reply #9 on: January 12, 2010, 08:48:33 PM »

Whatever I do, I CANNOT get windows and Odin to recognize my phone.  I installed PC Studio 3 and it is not running in background.  When I boot into DL mode and plug in the phone, Windows saus device not detected and the Device Manager says :  USB Root Hub --> 2 ports  Microsoft USB Intellimouse  and Unknows Device.

I'm not that bad with computers.. Can someone help?

I pointed Device Manager to the proper directory, and I installed Zeffie's USB Drivers for Samsung Moment and the Install file in PC Studio\3

What am I doing wrong?
Logged
lovinlissa1984
Getting into the "Moment"
Global Moderator
Moment Monster
*****

Cookies: 15
Posts: 896



View Profile
« Reply #10 on: January 12, 2010, 08:56:14 PM »

USB Root Hub --> 2 ports  Microsoft USB Intellimouse  and Unknows Device.
I believe the Moment should show up in the device manager as a modem and something G.
Make sure when you are loading the drivers you follow this exactly:
    * Open Device Manager.
    * You should see 2 devices with yellow triangles that need updated drivers –“G” and “USB Composite Device”.  Both of their drivers are located within the Samsung PC Studio 3 install directory, "C:\Program Files (x86)\Samsung\Samsung PC Studio 3\USB Drivers\3".
    * Tell Device Manager to look in that folder for both the G and USB Composite Cable drivers.
Good luck
dale
Logged

Please Be Kind To The Forum and Search Before Posting A New Thread See Also: Hitch Hikers Guide & Moment Wiki
Brooklyn
Jr. Member
**

Cookies: 0
Posts: 58


View Profile
« Reply #11 on: January 12, 2010, 09:03:01 PM »

I do not see "G” and “USB Composite Device”..  I can't even access my SD card in Windows.
Logged
lovinlissa1984
Getting into the "Moment"
Global Moderator
Moment Monster
*****

Cookies: 15
Posts: 896



View Profile
« Reply #12 on: January 12, 2010, 09:04:53 PM »

odd question...but do you have USB debugging turned on in the settings of your phone?
Dale
Logged

Please Be Kind To The Forum and Search Before Posting A New Thread See Also: Hitch Hikers Guide & Moment Wiki
Brooklyn
Jr. Member
**

Cookies: 0
Posts: 58


View Profile
« Reply #13 on: January 12, 2010, 09:07:48 PM »

where is the usb debugging setting in the phone?
Logged
lovinlissa1984
Getting into the "Moment"
Global Moderator
Moment Monster
*****

Cookies: 15
Posts: 896



View Profile
« Reply #14 on: January 12, 2010, 09:09:26 PM »

in the settings/Applications/Development....
Dale
Logged

Please Be Kind To The Forum and Search Before Posting A New Thread See Also: Hitch Hikers Guide & Moment Wiki
Pages: [1] 2 3 ... 16
Print
Jump to:  

Got a new phone? Find the forum here


Related Topics
Subject Started by Replies Views Last post
Stock CL14 Kernel Tar Wanted
Rooting
MadFlava 2 1304 Last post January 24, 2010, 01:18:22 AM
by joeykrim
Phone reverts back to 'std settings' often. No flash/warning for voice/text?
General Samsung Moment Discussion
copndaddy 4 761 Last post February 11, 2010, 06:20:30 PM
by copndaddy
Back up and remove apps 1.5 and 2.1.
Rooting
vampirefo 2 2069 Last post April 13, 2010, 08:34:44 PM
by vampirefo
cant get stock apps back
Android 2.1 Discussions
techjake2286 8 1527 Last post May 13, 2010, 01:50:20 PM
by techjake2286
Regressing back to Stock.
2.1 Rooting Discussion Board
Mellow 1 2574 Last post August 11, 2010, 11:47:28 PM
by Mellow




Galaxy S3 | Galaxy Note | Galaxy Nexus | Kindle Fire | Atrix 4G | Motorola Xoom | Windows Phone 7
Nokia Lumia | Top Hosts | Samsung Galaxy Tab | Samsung Galaxy S2 | Samsung Galaxy S | Samsung Wave
HTC Evo 3D | HTC Evo 4G | HTC Incredible | HTC Incredible 2 | HTC Incredible S | HTC Thunderbolt
Motorola Droid Razr
| HTC Desire | HTC Desire HD | HTC Desire Z | HTC Desire S | HTC Wildfire
Motorola Droid | Galaxy Indulge | Nokia N8 | Droid Charge | Droid X | Droid X2 | Droid 2| Droid 3 | Fascinate
HTC Sensation | HTC Flyer | LG Revolution | Asus Transformer | Xperia Play | iPhone 4 | Nexus S | Droid Bionic
HTC One | HTC Wildfire S | HTC Droid Eris


This is an Un-Official fan based Website. The views expressed on this website are solely those of the proprietor, or contributors to the site, and do not necessarily reflect the views or opinions of the parties it covers, and is not affiliated with, endorsed or sponsored by parties involved.
If you have a problem with any of the content posted on this website, please contact "sales@verticalscope.com"
Term of Use | Privacy Policy | BlackRain 2006 by, Crip



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Sitemap