View Poll Results: How is the Flashing guide?
Good. It works! 10 50.00%
Umm... Someting's missing, still good job! 8 40.00%
****! You bricked my phone! 2 10.00%
Voters: 20. You may not vote on this poll

Post Reply

[Best Ever][Noob-friendly] ROM Flashing Guide

OP cy56

6th June 2014, 11:38 AM   |  #1  
cy56's Avatar
OP Senior Member
Flag Sirsa
Thanks Meter: 47
 
133 posts
Join Date:Joined: Sep 2013
More
Here I start my new thread:

Best Ever Flashing Guide!

I've started this thread to give you my own experienced flashing guide. This thread/guide will provide you easy and step-by-step tutorial to flash a ROM. If I'm wrong, please don't hesitate to correct me.

You'd say what's new in this thread? I say, "None other guide provide a deep-through guide and these type of new processes that can help you in better ROM flashing."

Before starting I'd like to say:

Anything you're doing is your own responsibility and I'm not responsible for any type of damage to you device.
(As seen on many thready, I found this interesting) If you point your finger towards me in case of any damage, I'll LOL at you!

Now let's start with part 1:
Backing-up: When you're switching to a new ROM it's better to back-up your important apps that you need in your new ROM. Because if you don't do this, you've to re-download your apps which is time, data & battery consuming. Here you need a File Explorer such as MiXplorer or ES File Explorer or Root Explorer (Get 'em by clicking on names). Now follow these steps:
  1. Open your File manager and goto Root directory.
  2. Head to "data" folder and then open "app" folder. Here you can see all your installed apps. These are 'User Apps'.
  3. Now select the apps that you want to backup.
  4. Now press "Copy" button to copy you apps.
  5. Head to your SD Card. (You can find "sdcard" folder back in root directory.)
  6. Just paste them wherever you want.
That's it! You've backed-up you apps!








Now let's move to part 2:
Pre-flash initial wipe: Yeah! Pre-flash wipe! This means that you're wiping your installed apps' data. Sometimes in flashing instructions of some ROMs, it is not given to wipe \data because that wouldn't install your new ROM. SO here's the manual way:
  1. Open you file manager.
  2. In your SD Card, there's a folder named "Android". Just delete it!
  3. Now head back to "data>app" select 'em all and delete 'em! (As you've backed-up, don't fear to delete 'em.)







Part 3:
Pre-flash final wipe: This is the final step of wiping manually. CAUTION: After this wipe you MAY NOT be able to use your phone, so before this, finish your any other precious work then head to this part. Now follow these steps:
  1. Open your file manager and again head to Root directory.
  2. Now goto "data" then again "data" folder. Here you'll see lots of folders.
  3. Just select 'em all and press "Delete". SOME FOLDERS MAY NOT BE DELETED as they are currently in use.





Now Reboot or power-off your phone! (If you're unable to reboot/power-off, just pull-out your phone's battery)

Part 4:
Flashing Kernel:Before Installing/flashing a ROM you must install a Kernel otherwise you'll get error in Flashing ROM or get bugs in installed ROM. You can get the kernel to flash inside you ROM's zip. (Just open the ZIP file and extract boot.img) Here are the Kernel Flashing instructions:
  1. Open FlashTool. If you don't have FlashTool, get it here!
  2. Click the Lightning Icon and choose Fastboot mode.
  3. Click Select Kernel to flash and choose your kernel. (if it is .elf file choose .elf format from dropdown menu and if it is .img file choose it from same.)
  4. Before clicking Open, Turn-off your phone. Wait at-least 5 sec. press and hold vol+ (volume increase) button and simultaneously insert data cable into your phone.
  5. A Blue LED will light-up and here you can remove finger from the button. (On some Xperias that light will glow-up in the Illumination bar). Now Press Open by clicking on your kernel.
  6. It'll flash kernel to your device in just 3-5 seconds then you can reboot and Install your desired ROM.









Part 5:
Flashing ROM: This part relates to your respective ROM's flashing instructions. Some important points here can help you:
  • Most of the Stock, Stock-based and CyanogenMod10, 10.1 ROMs use this wiping precess in Clockworkmod Recovery:
    1. Wipe data/factory reset.
    2. Wipe cache partition.
    3. Goto advanced and wipe dalvik-cache.
    4. Install ROM.
  • Most of the CyanogenMod 9 ROMs use this wiping procedure:
    1. Install ROM
    2. Install GAPPS
    3. Wipe data/factory reset.
  • Most of the CyanogenMod 10.2 ROMs use this wiping procedure:
    1. Wipe data/factory reset.
    2. Wipe cache partition.
    3. Goto mount & storage and do a format system.
    4. Install ROM.
  • Most of the Kit-Kat 4.4 ROMs use this wiping procedure:
    1. Wipe data/factory reset.
    2. Wipe cache partition.
    3. Install ROM.

IMPORTANT: Some ROMs have different wiping procedure, please follow them. This is just for reference purpose if wiping procedure isn't provided in the ROM's thread. Also, DON'T FORGET TO FLASH THE KERNEL every time before you Install a ROM.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-06-06-14-46-31.png
Views:	1532
Size:	50.2 KB
ID:	2801174   Click image for larger version

Name:	Screenshot_2014-06-06-14-48-13.png
Views:	1524
Size:	90.0 KB
ID:	2801175   Click image for larger version

Name:	Screenshot_2014-06-07-23-10-42.png
Views:	1501
Size:	62.0 KB
ID:	2801176   Click image for larger version

Name:	Screenshot_2014-06-07-23-12-41.png
Views:	1499
Size:	61.0 KB
ID:	2801177   Click image for larger version

Name:	Screenshot_2014-06-07-23-13-28.png
Views:	2942
Size:	62.6 KB
ID:	2801178  

Click image for larger version

Name:	Screenshot_2014-06-07-23-13-40.png
Views:	1542
Size:	66.5 KB
ID:	2801179   Click image for larger version

Name:	Screenshot_2014-06-07-23-14-16.png
Views:	1476
Size:	119.0 KB
ID:	2801180   Click image for larger version

Name:	Screenshot_2014-06-07-23-14-33.png
Views:	1481
Size:	64.0 KB
ID:	2801181   Click image for larger version

Name:	Screenshot_2014-06-07-23-14-51.png
Views:	1485
Size:	90.5 KB
ID:	2801182   Click image for larger version

Name:	ft 1.PNG
Views:	1467
Size:	23.0 KB
ID:	2801226  

Click image for larger version

Name:	ft 2.PNG
Views:	1462
Size:	26.3 KB
ID:	2801227   Click image for larger version

Name:	ft 3.PNG
Views:	1458
Size:	28.8 KB
ID:	2801228   Click image for larger version

Name:	ft 4.png
Views:	1447
Size:	24.3 KB
ID:	2801229   Click image for larger version

Name:	ft 5.png
Views:	1460
Size:	46.4 KB
ID:	2801230   Click image for larger version

Name:	ft 6.png
Views:	1464
Size:	52.2 KB
ID:	2801231  

Last edited by cy56; 16th June 2014 at 09:10 AM. Reason: Rectified mistakes and added screenshots
The Following 24 Users Say Thank You to cy56 For This Useful Post: [ View ]
13th June 2014, 11:28 PM   |  #2  
paxy97's Avatar
Senior Member
Flag Belgrade
Thanks Meter: 528
 
864 posts
Join Date:Joined: Apr 2012
More
For most Xperia Devices the fastboot key is vol+ not vol-. Vol- is for flashmode which is for flashing a stock ftf firmware.
The Following 2 Users Say Thank You to paxy97 For This Useful Post: [ View ]
14th June 2014, 12:36 AM   |  #3  
Senior Member
Thanks Meter: 29
 
221 posts
Join Date:Joined: Dec 2011
More
No mention of unlocking bootloader or how to do it, can't flash a kernel without unlocked bootloader. No mention of losing Bravia Engine/X-Reality and DRM keys if bootloader is unlocked. No mention of backing up TA partition. No mention of installing recovery. No mention of the fact that specific versions of recovery are required to flash Kitkat ROMs. Most custom ROM instructions I've seen have the user flashing ROM before kernel.
Last edited by gandalf_grey91; 14th June 2014 at 12:38 AM.
The Following 2 Users Say Thank You to gandalf_grey91 For This Useful Post: [ View ]
14th June 2014, 01:32 AM   |  #4  
The Sickness's Avatar
Recognized Contributor
Flag Somewhere in Texas
Thanks Meter: 10,804
 
4,953 posts
Join Date:Joined: Oct 2012
Donate to Me
More
On #4 you need to add...

Advanced/System

Sent from my SGH-M919 using XDA Premium 4 mobile app
14th June 2014, 06:33 AM   |  #5  
Levered's Avatar
Recognized Contributor
Flag Malaysia
Thanks Meter: 1,761
 
1,752 posts
Join Date:Joined: Feb 2012
Donate to Me
More
1. Backup data - Better backup using PC Companion or Backup and Restore app (Sony has include this app in stock fw)
2. To enter fastboot mode must be hold volume up (+) not volume down(-) [Flashmode]
Btw nice tutorial for noob
The Following User Says Thank You to Levered For This Useful Post: [ View ]
16th June 2014, 08:24 AM   |  #6  
cy56's Avatar
OP Senior Member
Flag Sirsa
Thanks Meter: 47
 
133 posts
Join Date:Joined: Sep 2013
More
@paxy97 @Levered Oops! Well.... I read this post many times before posting but can't find this mistake. Though I did the flashing procedure hundred of times, I made mistake in writing. Thank you both. Rectifying it now.
16th June 2014, 09:14 AM   |  #7  
cy56's Avatar
OP Senior Member
Flag Sirsa
Thanks Meter: 47
 
133 posts
Join Date:Joined: Sep 2013
More
Quote:
Originally Posted by gandalf_grey91

No mention of unlocking bootloader or how to do it, can't flash a kernel without unlocked bootloader. No mention of losing Bravia Engine/X-Reality and DRM keys if bootloader is unlocked. No mention of backing up TA partition. No mention of installing recovery. No mention of the fact that specific versions of recovery are required to flash Kitkat ROMs. Most custom ROM instructions I've seen have the user flashing ROM before kernel.

Cool man cool! This proposed that the person coming to this thread had already done that and basically and specifically, this is a 'Flashing Thread', not a complete thread..... Chill and Enjoy XDA!
16th June 2014, 09:15 AM   |  #8  
cy56's Avatar
OP Senior Member
Flag Sirsa
Thanks Meter: 47
 
133 posts
Join Date:Joined: Sep 2013
More
Quote:
Originally Posted by The Sickness

On #4 you need to add...

Advanced/System

Sent from my SGH-M919 using XDA Premium 4 mobile app

Where? I can't find. Can you please copy-paste the line where the mistake is...?
16th June 2014, 11:36 AM   |  #9  
The Sickness's Avatar
Recognized Contributor
Flag Somewhere in Texas
Thanks Meter: 10,804
 
4,953 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by cy56

Where? I can't find. Can you please copy-paste the line where the mistake is...?

I'm on my cell at the moment...In TWRP there is a Advanced tab, which allows you to wipe System.



Sent from my SGH-M919 using XDA Premium 4 mobile app
17th June 2014, 12:31 PM   |  #10  
cy56's Avatar
OP Senior Member
Flag Sirsa
Thanks Meter: 47
 
133 posts
Join Date:Joined: Sep 2013
More
Quote:
Originally Posted by The Sickness

I'm on my cell at the moment...In TWRP there is a Advanced tab, which allows you to wipe System.



Sent from my SGH-M919 using XDA Premium 4 mobile app

Oh! That's for CWM not for TWRP..... As most of users use CWM, I've written instructions for TWRP. Also, TWRP doesn't supports 2.3 & 4.0 ROMs ans CWM has total support for all Android versions, that's why....

Post Reply Subscribe to Thread

Tags
flash guide, flashing guide, install guide
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Sony Cross-Device Development General by ThreadRank