[Sony Xperia P, U, Sola, Go] psyionx:
Ok guys with itchy hand me included =_="

This guide is for those who know what I'm talking about, and since ICS kernel with CWM is under its way soon. but we just dont want to make our lovely dev stop making new rom.

This thread originally made for Sola but i think the others will also work if you know what to do and what i mean.

well... I've tested this many times and its ok to flash kernel and also ok to jump from one to another.

!!!disclaimer!!!

!!!with this guide you are the one responsible on what you did to your phone bricking it included, not me or anyone else!!!

We have everything in our hands already.

things needed to make this happen

-A working fastboot

-ANY working kernel with CWM

-Stock kernel

grab that stock ics tft file and open archive using 7Zip and rip that kernel.sin

-remember this... POWER + Vol-up wait for the 3 combo vibrate is force POWER OFF <-- unless you can pull out your battery

-and the rom that you want to test

now lets get things moving

1. power off your phone and put it into fastboot mode "vol-up + usb to pc" purple LED

2. flash your favorite gingerbread kernel with working CWM

fastboot flash boot [NAME OF KERNEL+CWM.elf]

3. unplug the phone and power on. wait for LED light than press "vol-up" to get to CWM

4. if you have not copy the rom, this is a good time to visit mount usb and do your things.

5. wipe data.

6. flash your test ROM

7. after the zip have been completely flashed in to the system. dont bother to reboot phone. instead

8. FORCE power off by holding "vol-up and power button" wait for the 3 combo vibrate. now the phone is OFF.

9. put phone into fastboot mode "vol-up + usb to pc" purple LED again

10. flash that kernel.sin that you rip of from the whole tft... the ICS stock kernel

fastboot flash boot kernel.sin

11. power on and wait the first boot that take ages

12. there you are.... A new test rom

14. Give feed back to ROM dev

note: if it got stuck at Sony logo, where you should expect animation boot screen. force power off and on it again to test. and wonder did you flash the rite kernel.

note2: I'm not putting links as you should know where to get the stuff above. give them proper thanks by hitting the thanks button or donate beer for them if you can.

--------------- Added entry -----------------

* if you lost root, try Bin4rys method to trick the phone that in need to restore the root function<-------- updated 5th oct 2012 >__<

-----------------------------------------------------------------------------------------------------------------------------------------

This will be a big one.... <--------5th OCT 2012

-----------------------------------------------------------------------------------------------------------------------------------------

OK guys, I'm on a windows7 64bit machine and i'm not a linux guy...

the next entry will try to smooth the process and have lots of future use

------------------------------------------------------------------

only for your pc side

------------------------------------------------------------------

things to do

1. add system path

2. ease of access your cmd ^^

3. some batch file ideas that automate things

you should have known this as it have been floating around in xda,

skip this if you dont need it.

-----------------------------------------------------------------------------------

WARNING, we are going to touch some windows stuff,

try not to mess up. but if you do mess things up you are

the one responsible for it ^^

-you are here to learn something. try not to copy paste.

------------------------------------------------------------------------------------

1. add a system path

here's some basic and recap that's have been around xda.

set your windows system variable for ease of command key via your local cmd.

we need a place to start. as i know most of you have installed flashtool. flashtool have a good set of adb and fastboot within its folder.

where else if you want to use android sdk's folder thats up to you to look for the adb and fastboot folder.

here's the location of flashtools adb and fastboot "C:\Flashtool\x10flasher_lib" on my machine <----- yours might be different

we are going to add "C:\Flashtool\x10flasher_lib" into the system path

So, where is it??? (i'm on a windows 7 so you have to figure out where it is ok... )

from the control panel look for system,

In the System window, on the left panel click on the Advanced System Setting.

a System Properties window will pop up

In the Advanced section, click the Environment Variables button.

Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.

e.g (the ones below is mine... dont follow you should have yours)

C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QT Lite\QTSystem;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Flashtool\x10flasher_lib

so, in this path property click the "Edit" button, go to the end of the whole string.... and add a semicolon( ; ) and paste the address of where adb and fastboot located

and continue to 'OK' and close the rest of the windows that you dont need.

to test, press this combo [window key + "R"] to have to run windows up and just type cmd and hit ok

in the cmd try just type adb... and it'll give you feed back that just adb is not enough and throw you a list of things adb can do.

now you can fire up adb and fastboot anywhere you want.

2. ease of access your cmd ^^

make a cmd shortcut that will start at the current folder and also run as admin

as you will now go to the folder where you most likely do flash something or adb something

right-click on an empty space and hit new ---> shortcut.

Type the location of the item:

cmd

click next and finish..

now you have a cmd shortcut that only start in the system32 folder...

than we got 2 more things to do with this short cut before its usable.

1.right click the new cmd shortcut and hit properties

EMPTY the "start in:" text box, you want it to start anywhere the short cut is located.

2.still in the same properties and hit the "Advanced..." button and activate "Run as administrator"

OK than apply... you are done. now you can copy paste this short cut any where you want with proper use .

3. some batch file ideas that automate things

the good thing about adb and fastboot.. it will wait for your device. thus automating things can give a good approach.

bare in mind that automation is a good thing. but if you have multiple device. be careful dont automate the wrong command

we call a [something].bat file a [something] batch file...

with the "path" to your adb and flashtool done earlier, you can start making batch file to auto mate things in any folder you wish. just make sure all the other ingredient are in the same place or you can link it to. Bin4ry root tool that you just had is a good place to learn and i'm sure there are other tutorial floating in XDA... just use the search or ask GOOGLE for it.

and you can always right click and add a new ---> text document

fire up notepad and start writing automated fastboot comand or adb install "stuff"

and save as ".bat" file.... you should know what i mean. NOT "filename.bat.txt"

File name: [something].bat

Save as type: All Files

eg: a batch file "flash stock ICS kernel.bat" and "kernel.sin" MUST in the same folder where this batch file located

@echo off
COLOR 0A
fastboot flash boot kernel.sin
ping 127.0.0.1
PAUSE
echo device will boot after ping
ping 127.0.0.1
fastboot reboot
PAUSE

eg: logcat.bat

adb logcat
PAUSE

to exit the logcat press Ctrl+C

it will ask you if you really want to stop.

i add a ping 127.0.0.1 just to make a ping delay so that we can see the batch have done the fastboot and do other job like ping local host

4 times and proceed to fastboot reboot. PAUSE if you want it to wait it for you to hit any key than proceed. COLOR 0A to make things green.

there are many more to learn.

NOW... SOMEMORE OLD SCHOOL FUN ^_____^ batch files..... i love them and so will you

------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------

Last but not least, I would like to thank Koush who made CWM. next i want to thank the DEVs here who spend there time making good kernel with CWM. AND also ROM developers who made our android so fascinating! and those of us with itchy hands that made this forum fun and alive. and rohit3221 for lightning fast upload the ICS tft

LETS HAVE SOME FUN with OLD SCHOOL STYLE >_<

ouch!!!

@cooleagle OR E.Cadro- please send this thread to Xperia S, P, U, Sola, Acro S General. I think this tutorial fit as the others will be going trough the same process...

the only different is that some phone can take there battery out to force power off. This should also work for JB if theres no JB+CWM kernel. since CWM have nothing to do with the kernel or how the phone is running... its just a recovery part of the phone that should be there in the first place but Sony just didn't prepare us a recover partition..