Hello, I'd like to update my phone using Smartflash.
I have an official V20B rom which is rooted. I would like to install a new official rom but i'm completely lost when it comes to choosing the right version !
Where can I get the official V20S stock rom (which can be installed with smartflash)
Also, is there any official ICS rom ? (same, for smartflash), if so, is it fully stable ? Where can I get it ? (LG Mobile update says my phone is up to date... Huh)(I have read that you need to change the boot partition or something like that with ICS roms, is it valid for official ICS roms from LG too ?).
Do I have to unroot my phone before installing a new rom with Smartflash ?
Thanks.
Okkx said:
Hello, I'd like to update my phone using Smartflash.
I have an official V20B rom which is rooted. I would like to install a new official rom but i'm completely lost when it comes to choosing the right version !
Where can I get the official V20S stock rom (which can be installed with smartflash)
Also, is there any official ICS rom ? (same, for smartflash), if so, is it fully stable ? Where can I get it ? (LG Mobile update says my phone is up to date... Huh)(I have read that you need to change the boot partition or something like that with ICS roms, is it valid for official ICS roms from LG too ?).
Do I have to unroot my phone before installing a new rom with Smartflash ?
Thanks.
Click to expand...
Click to collapse
1. Make sure that you have P990.
2. V20B should be a gingerbread.
3. If you read one post below yours, you could’ve find exactly what you ask official ICS for smartflash.
Cheers.
Vosetal said:
1. Make sure that you have P990.
2. V20B should be a gingerbread.
3. If you read one post below yours, you could’ve find exactly what you ask official ICS for smartflash.
Cheers.
Click to expand...
Click to collapse
I actually have V10B sorry !
I will update via LG Tools with the kdz instead of smartflash. Is there anything to do specifically to keep my data in the phone or is it saved automatically in the LG Tools update process ?
Thanks
Okkx said:
I actually have V10B sorry !
I will update via LG Tools with the kdz instead of smartglash. Is there anything to do specifically to keep my data in the phone ?
Thanks
Click to expand...
Click to collapse
I think updating via LG Tool doesn't erase data on your phone... however I would strongly advise you to synchronize your contacts with gmail and backing up you apps with titanium backup in an external sd card.
Update via LG Tool didn't erase my data when I went from 2.2 to 2.3
LarsPT said:
I think updating via LG Tool doesn't erase data on your phone... however I would strongly advise you to synchronize your contacts with gmail and backing up you apps with titanium backup in an external sd card.
Click to expand...
Click to collapse
Yes, flashing kdz do not wipe anything.
Sent from my LG-P990 using xda app-developers app
Related
Hi
My problem is "Waiting for device"
My LG is on version 2.2.2 and it says that there is no Upgrade available
I spent 3-4 hours trying to root my phone but failed. Do I need to root cell phone before I upgrade to version 2.3.4 or can I switch to version 2.3.4 and then Root Cell Phone
Every time I try to Root my phone i get error "Waiting for device"
My debbugin is on, and I turned of my firewall is there something else i need to do to get Rooting Right ?
Thx
You can safely update to 2.3.4 and then root using one of these guides:
http://forum.xda-developers.com/showthread.php?t=953182
http://forum.xda-developers.com/showthread.php?t=1044765
http://forum.xda-developers.com/showthread.php?t=1327599
Thx
That second link for update to 2.3.4 GingerBread works 100% on my LG Optimus 2x ?
EDIT : Can i get link for updating my LG from Froyo 2.2.2 to Gingerbread 2.3.4 , safetly
It should work, follow the guide to the letter and you should have rooted your phone.
Here's your link:
http://forum.xda-developers.com/showthread.php?t=1327929
Wait
First link is for Rooting phone
Second is for update to Gingerbread
Third is for Rooting phone on Gingerbread ?
No, the first three are all for rooting
The fourth one is for updating manually to GingerBread
Ok .. soo first i Root my phone by one of that 3 links and then i update to Gingerbread (4th link) ?
The other way around
If you first root and then update, you might lose your root, so...
First update then root.
By the way: After you root, do you want a stock LG rom or a custom one...?
Explame me what that means xD
Haha ok
Stock LG rom is just the normal rom from LG you have right now but then a little improved (removed unnecessary software and apps). Normally the people who like the looks of the stock rom choose Stock-based roms.
Custom roms are roms completely different than LG. They look different and they have different apps/software. Most people out here prefer custom roms like CyanogenMod or MIUI. I prefer CyanogenMod too because it's in my opinion overall better than stock rom.
You can find these roms in the development section. The reason why I asked you this is because if you want to have a custom rom, you don't need to update to 2.3.4. You just can root 2.2 and flash one of these custom roms over it. This will automatically update your phone to GingerBread.
SP1996AC said:
Haha ok
Stock LG rom is just the normal rom from LG you have right now but then a little improved (removed unnecessary software and apps). Normally the people who like the looks of the stock rom choose Stock-based roms.
Custom roms are roms completely different than LG. They look different and they have different apps/software. Most people out here prefer custom roms like CyanogenMod or MIUI. I prefer CyanogenMod too because it's in my opinion overall better than stock rom.
You can find these roms in the development section. The reason why I asked you this is because if you want to have a custom rom, you don't need to update to 2.3.4. You just can root 2.2 and flash one of these custom roms over it. This will automatically update your phone to GingerBread.
Click to expand...
Click to collapse
Hmm ... well i wanna normal . Stock LG rom
Then update, using kdz method (4th link) to GingerBread and root.
Edit: haven't you tried the OTA update? It should be out right now...
SP1996AC said:
Then update, using kdz method (4th link) to GingerBread and root.
Edit: haven't you tried the OTA update? It should be out right now...
Click to expand...
Click to collapse
No I didn´t try OTA update . I bought LG 2 days ago soo kinda new here xD
Try one first,
go to settings ----> about phone ----> phone version (or something like that, not sure) and do the update from there. Trust me, this is much easier than the kdz method. If there is no OTA, then you should use the kdz method.
SP1996AC said:
Try one first,
go to settings ----> about phone ----> phone version (or something like that, not sure) and do the update from there. Trust me, this is much easier than the kdz method. If there is no OTA, then you should use the kdz method.
Click to expand...
Click to collapse
There is no OTA i tried that
Well i did this metod to root my phone http://forum.xda-developers.com/showthread.php?t=953182
But how i can be sure that my phone is Rooted successfully ?
There are a lot of ways to check that. You can either look in your app list for an app called Superuser. If you have this app then you should have rooted successfully. But if you want to be 100% sure, download the root checker app and see for yourself .
Hey guys,
I just rooted my phone yesterday on stock 2.3.4 and got this annoying issue: Every time I shut down and restart my phone, some settings revert to default on their own. For instance, text input language becomes german (was the default language when I bought the phone), input text sounds are activated again, and so are mobile networks which I must disable quickly because they mean charges.
Could you please shed some light here? Thanks!
SP1996AC said:
There are a lot of ways to check that. You can either look in your app list for an app called Superuser. If you have this app then you should have rooted successfully. But if you want to be 100% sure, download the root checker app and see for yourself .
Click to expand...
Click to collapse
Thx there is application on my menu called Superuser
Now I have question is there any other way to update my phone to 2.3.4
because I little afraid that this method can go wrong ( http://forum.xda-developers.com/showthread.php?t=1327929 )
tyger995 said:
Thx there is application on my menu called Superuser
Now I have question is there any other way to update my phone to 2.3.4
because I little afraid that this method can go wrong ( http://forum.xda-developers.com/showthread.php?t=1327929 )
Click to expand...
Click to collapse
AFAIK, this is the only way... Because you have no OTA it seems that this is the only option. But I'm not sure about that.
My advice is to search, perhaps there is an easier way to do so.
EDIT: Download Rom Manager (app) and from there install ClockworkMod Recovery. With recovery you can flash a stock-based gingerbread rom on your phone! (how could I not think of that earlier ) make sure to do a nandroid backup in recovery mode.
EDIT 2: You might wanna try this: http://forum.xda-developers.com/showthread.php?t=1408919
Flash this in recovery mode.
Or you can just go directly to the latest KANG-54 build. Android 2.3.7, very stable and smooth as butter.
http://forum.xda-developers.com/showthread.php?t=1421425
Hi all!
Few days ago i updated my lg p990 via LGMobile update service to 2.3.4 Gingerbread V20m with no problems. I`m from Serbia btw. Then i rooted my phone and installed clockwork recovery to backup my rom. I made a mistake to do that after i performed root so now when i restore my rom the phone is rooted again and i can`t use update utility anymore! It says my model is not suported. I then used SuperOneClick to unroot and r1-stockrecovery-2x-unsigned zip to remove recovery and it did that but still can`t update or restore original stock V20m rom with update utility. I even managed to install V20l ROM and baseband via Smartflash and offcourse still no update posibility and "not supported model" message. Yesterday i downloaded from XDA, Netherland stock V20m but, guess what, still not supported. Can anyone tell me how to or what to do to make my phone update officialy again with LG tool. THNX in advance
..................................................
Well you have go download correct files. I don't remember very well where the download location is.
But I have managed to do full installation of original lg software over the cyanogenmod.
There is a step by step guide on this forum how to do this.
I am from Croatia and after that my phone accept automaticly update.
Now I am on Cyanogenmod because it is so much better than stock.
Sent from my Optimus 2X using Tapatalk
tomislav177 said:
Well you have go download correct files. I don't remember very well where the download location is.
But I have managed to do full installation of original lg software over the cyanogenmod.
There is a step by step guide on this forum how to do this.
I am from Croatia and after that my phone accept automaticly update.
Now I am on Cyanogenmod because it is so much better than stock.
Sent from my Optimus 2X using Tapatalk
Click to expand...
Click to collapse
I downloaded stock V20m rom from http://forum.xda-developers.com/showthread.php?t=1035041 and still not supported with update. Can u please find what u did and post here!? I don`t know what i didn`t try and nothing worked so far. And i have GPS isue so i have to restart phone with gps ON and then it works. I didn`t have that problem when i updated to V20m first time. I have read that it`s a problem on V20l but not on V20m. U said u use custom rom!? Is everything working properly!? No workarounds to make something work like this GPS problem!?
I'm seeing post everyday like.....How to upgrade to ics from CMx or from GB....or post like how to root ICS......or phone bricked.....how can be tha hard? USE THIS http://forum.xda-developers.com/showthread.php?t=2020737 P990 Toolkit! In here you have a lot of options and instructions during install or flash or etc....Here you can flash ICS via smartflash (it is the easiest way) or Root ICS or GB or extract KDZ you can do anything here! You can't brick your phone! Install APX drivers and latest usb drivers and everything will work!:good:
ilooze said:
I'm seeing post everyday like.....How to upgrade to ics from CMx or from GB....or post like how to root ICS......or phone bricked.....how can be tha hard? USE THIS http://forum.xda-developers.com/showthread.php?t=2020737 P990 Toolkit! In here you have a lot of options and instructions during install or flash or etc....Here you can flash ICS via smartflash (it is the easiest way) or Root ICS or GB or extract KDZ you can do anything here! You can't brick your phone! Install APX drivers and latest usb drivers and everything will work!:good:
Click to expand...
Click to collapse
Hey buddy,
thanks a tonne! I take it you saw my thread
Q - When i flash ICS via smartflash, do I need to download the ICS rom? Also, do I need to worry about backing my data up?
hybridtheory said:
Hey buddy,
thanks a tonne! I take it you saw my thread
Q - When i flash ICS via smartflash, do I need to download the ICS rom? Also, do I need to worry about backing my data up?
Click to expand...
Click to collapse
Well you have to download the KDZ from the ROM LINKER thread or from anywhere you want and with P990 Toolkit extract the bin and fls files and flash them via smartflash. But I don;t know how to back up your data. Really sorry for that
hybridtheory said:
Hey buddy,
thanks a tonne! I take it you saw my thread
Q - When i flash ICS via smartflash, do I need to download the ICS rom? Also, do I need to worry about backing my data up?
Click to expand...
Click to collapse
You can backup your apps by titanium backup or adb. Then restore it
Sent from LG 2X using Tapatalk 3 Beta
Hi,
I have since Fev. 2012, a optimus black, but since the beginning I have problems with him.
Before, I was unable to take pictures, because every pictures I took was corrupted.
Since I upgrade to V30b, this problem was solved, but now, sometimes the message: The SD card was removed apears, and I need to reboot the phone. I installed Beyondpod to ear pod casts and all the downloaded pod casts file, after 1 day were corrupted (files with names like:┬▬¶, before the photos were the same names).
This week the phone blinked non stop, I needed remove the batery, and all settings were reserted.
Now I think my battery drains so fast, I had reserted all settings to factory defaults and now the phone is working, bus Podcasts no.
I´m sick of this phone. I wants some custom rom to see if the phone improve.
Can anyone please can help me?
Please give me the information about witch Custom ROM is better. (fast, clean, battery, in all aspects)
Tanks a lot for the help.
Sorry my bad English
Maddmaxx said:
Hi,
I have since Fev. 2012, a optimus black, but since the beginning I have problems with him.
Before, I was unable to take pictures, because every pictures I took was corrupted.
Since I upgrade to V30b, this problem was solved, but now, sometimes the message: The SD card was removed apears, and I need to reboot the phone. I installed Beyondpod to ear pod casts and all the downloaded pod casts file, after 1 day were corrupted (files with names like:┬▬¶, before the photos were the same names).
This week the phone blinked non stop, I needed remove the batery, and all settings were reserted.
Now I think my battery drains so fast, I had reserted all settings to factory defaults and now the phone is working, bus Podcasts no.
I´m sick of this phone. I wants some custom rom to see if the phone improve.
Can anyone please can help me?
Please give me the information about witch Custom ROM is better. (fast, clean, battery, in all aspects)
Tanks a lot for the help.
Sorry my bad English
Click to expand...
Click to collapse
is it rooted ? if yes, then you have lots of option in developer sction, the most stable rom i used recently are Marvel v11 and IZS both ICS based roms. both are great with battery and run pretty smooth.
you can try one of the Marve based stock V30F . i didn't try it yet.
cookiepuppy said:
is it rooted ? if yes, then you have lots of option in developer sction, the most stable rom i used recently are Marvel v11 and IZS both ICS based roms. both are great with battery and run pretty smooth.
you can try one of the Marve based stock V30F . i didn't try it yet.
Click to expand...
Click to collapse
HI,
yes it is rooted.
I will try this rom.
What I need to install this room?
Thanks
Maddmaxx said:
HI,
yes it is rooted.
I will try this rom.
What I need to install this room?
Thanks
Click to expand...
Click to collapse
you need CWM, you can make yourself with ROM COVERTER => http://forum.xda-developers.com/showthread.php?t=1692191&highlight=lg+converter
official firmware .kdz => http://lg-phone-firmware.com/index.php?mod=Lg+Optimus+Black&paese=Tutti&id_mod=1
flash .bin and .fls with SFT => http://forum.xda-developers.com/showthread.php?t=1448803
then when you have CWM, you can install any custom rom.
for your first request : Zeus 7.06 => http://forum.xda-developers.com/showthread.php?t=1454274
Maddmaxx said:
HI,
yes it is rooted.
I will try this rom.
What I need to install this room?
Thanks
Click to expand...
Click to collapse
If it's a rooted v20 (GB) just install ROM Manager from play store and maybe first try a Marvel12b, 11 or even 10 ... where you get a touch 5 CWM recovery with it. Than you probably have the best base you can get to install any ROM.zip from.
Sent from my LG-P970 using xda app-developers app
Guys, thanks a lot for the great help.
I´ll install the ROM and test. (my is a rooted 30b, is possible instal only the CMW and install ROM?)
After de installation done, I´ll post my experience.
Once again thanks a lot for the important help you gave me.
Maddmaxx said:
my is a rooted 30b, is possible instal only the CMW
Click to expand...
Click to collapse
I heard there is one way to install a CWM on v30, but normaly you only brick your phone when you try to get a CWM on v30. Look for unlock U boot.
http://forum.xda-developers.com/showthread.php?t=2160394
yeah, this is a way, but cwm 6 have bug sdcard unmounted, use recovery.img 5.xx.xx on this case.
IMHO, if you have SFT, it's safe to flash with Preinstallation for IZS ROM (SmartFlash): includes Smartflash and latest LG USB drivers =>
http://huexxxtuff.blogspot.com.es/2013/01/izs-rom-links.html
you should have, ics rooted and cwm on one shot. after you can make nandroid backup and test all custom rom you want.
original thread => http://forum.xda-developers.com/showthread.php?t=2115800
Case C: you already are on a new ICS rom without CWM
Quote:
- If you want, use OnlineNandroid to do a nandroid backup of your phone, I'm not responsible of your data losing
- Use Smartflash to completely flash (.bin and .fls) a V20 ROM patched with CWM with V30 baseband (you can
use my PRE_IZS_IMAGE available on my blog)
Click to expand...
Click to collapse
Once again let me thanks the help you gave me.
Now I am confused.
There is any tutorial to help me install the rom?
I am a newbie in this matters. I had a Galaxy tab 7 (p1000), and in that time I did install some roms, but time pass, and now I´m super confused.
I read several thing but, you gave me different solutions and I don´t now how to do.
I think the best rom (following your´s advise), is the MARVEL.
I found this: http://forum.xda-developers.com/showthread.php?t=1554274
And I choose the last: Marvel v G based on Ice Cream Sandwich 4.0.4 v 30d France - deodexed and zipalligned
Following the instructions of the link, I only need do this:
1. You will need a rooted Optimus Black and boot in CWM Recovery or use ROM Manager.
2. Copy the zip file in SDCard.
3. Install zip file.
This is correct?
I need to root the boot? How can I confirm is I have a rooted boot?
SaschaKH gave me this link: http://forum.xda-developers.com/showthread.php?t=2160394
Can I use this instructions to root the boot?
For all operations I need the CWM.Can i install in play store? I found the ClockworkMod (ROM MANAGER) free version. Can I use this version?
Exist also the Rom Manager Premium, for what I need, the free version is OK or I need the pay version?
To finish: What is:
1- SFT?
2 - deodexed and zipalligned?
Thank a lot for all the help.
Sorry for this questions, I want to learn more about this world, and I´m starting. I count with you guys.
Thanks a lot.
Once again sorry for all my questions and my bad English. (I´m Learning English too)
everything you need is here:
http://forum.xda-developers.com/showthread.php?t=1487105
You didn't read it well. It says to root your phone and to boot to CWM. The thing with U-boot is to get rid of the locked bootloader wich gives you an LG Security Error if you install any alternative recovery.
You can follow the instructions given but I didn't try it myself.
What I found easier is to do as NOOBY wrote in his tutorial : flash a V20 patched rom (Gingerbread stock rom rooted and with CWM), like that you'll only have to do the wipes required in CWM and then flash Marvel Rom - which of course you put on your sdcard -.
SFT (= SmartFlashTool, for flashing a firmware easily)
Btw to use that tool you need of course our phone's drivers installed.
Sent from my LG-P970 using Tapatalk 2
Edvin73 said:
everything you need is here:
http://forum.xda-developers.com/showthread.php?t=1487105
Click to expand...
Click to collapse
Wow, great thanks.
Sobralobo said:
You didn't read it well. It says to root your phone and to boot to CWM. The thing with U-boot is to get rid of the locked bootloader wich gives you an LG Security Error if you install any alternative recovery.
You can follow the instructions given but I didn't try it myself.
What I found easier is to do as NOOBY wrote in his tutorial : flash a V20 patched rom (Gingerbread stock rom rooted and with CWM), like that you'll only have to do the wipes required in CWM and then flash Marvel Rom - which of course you put on your sdcard -.
SFT (= SmartFlashTool, for flashing a firmware easily)
Btw to use that tool you need of course our phone's drivers installed.
Sent from my LG-P970 using Tapatalk 2
Click to expand...
Click to collapse
You are rigth.
My English is not the best, and I´ve some difficulty's,
I read all thing you gave me, and now I think I´m ready to brick my phone :laugh::laugh:, correction: to install a new ROM.
Thanks a lot for the great help.
I said I'd brick my phone and it seams i was right.
I install CMW and I choose "backup nandroid", the phone turned off and now appears the LG logo and the information Security Error.
How can I fix it?
I will try this:
http://forum.xda-developers.com/showthread.php?t=1448803
What did you do exactly ?
Sent from my LG-P970 using Tapatalk 2
Sobralobo said:
What did you do exactly ?
Sent from my LG-P970 using Tapatalk 2
Click to expand...
Click to collapse
I had selected the option "backup current rom"
And after, the program installed something, asked me permission to reboot, and appears the problem.
I install again with SFT a V30b rom.
I need to start again, but now I don't know what I did wrong.
Hum... If you installed CWM directly from a stock ICS rom, that's normal that you had that error. ^^
Sent from my LG-P970 using Tapatalk 2
Sobralobo said:
Hum... If you installed CWM directly from a stock ICS rom, that's normal that you had that error. ^^
Sent from my LG-P970 using Tapatalk 2
Click to expand...
Click to collapse
Yes it is what I did.
Is any other way to install CMW?
Even in the tutorial said: "Then you need to install CWM (Clock Work Mod), you can do this e.g. by downloading ROM Manager, install it, open it
and find Install Clockwork Mod Recovery. Hit it, wait some seconds and click LGE optimus Black. Wait again, till the file has been downloaded and installed and your all set Now you can reboot into Recovery, with the second option. It says, what it does: Reboot to recovery"
But I tried also reboot using the option "Reboot to recovery" and the phone reboot and reset with factory defaults.
How can I use other way?
Thanks
In the tutorial it says that for Gingerbread rom.
I don't remember if it is in Ilko or NOOBY's thread but you should use SFT to flash a patched Gingerbread rom. Since it is rooted and with CMW, it may be easier to you for flashing another rom from that.
Sent from my LG-P970 using Tapatalk 2
Sobralobo said:
In the tutorial it says that for Gingerbread rom.
I don't remember if it is in Ilko or NOOBY's thread but you should use SFT to flash a patched Gingerbread rom. Since it is rooted and with CMW, it may be easier to you for flashing another rom from that.
Sent from my LG-P970 using Tapatalk 2
Click to expand...
Click to collapse
Back on track.
I made it. I installed the Marvel G, but my problem still maintains (I use BeyondPod) and in the podcast folder appears a lot of corrupt files), I don´t see any change from stock ROM, but I think this is the objective of this ROM.
But now I am ready and prepared to install all ROMS I Want using the CMW, and install from zip file.
I will continue testing some ROMS.
Witch ROM do you recomend? I don´t need fancy style or other complicated thing, I just need what a stable, low consumption batery, and fast thing.
Once again thanks a lot for the help
Hi everyone. I have a LG Optimus Black and I need to take it to service. Because I root-ed and installed custom rom I need to go back to stock version. I have a little problem because my computer doesn't recognize the phone anymore so I can't use smartflash. Does anyone of you know another way to return to stock version? Can I flash stock trough CWM? I need v10b. Your help would be greatly appreciated. Have a nice evening and thank you for your answers!
try to change usb port, not usb 3.0 but on usb 2.0 in SW mode for able to use SFT
I already tried that. I even tried a different computer. Does no one have a stock version that I could flash trough CWM? Even if it is ICS ore something like that. Thanks a lot anyway!
with lg Tools maybe, LGMobile Update (B2C), support, recovery phone.
thread : http://forum.xda-developers.com/showthread.php?t=1111771
tudy23 said:
Hi everyone. I have a LG Optimus Black and I need to take it to service. Because I root-ed and installed custom rom I need to go back to stock version. I have a little problem because my computer doesn't recognize the phone anymore so I can't use smartflash. Does anyone of you know another way to return to stock version? Can I flash stock trough CWM? I need v10b. Your help would be greatly appreciated. Have a nice evening and thank you for your answers!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=33439446#post33439446
Post #22 you'll find the link of the downloadable ROM.
tudy23 said:
Hi everyone. I have a LG Optimus Black and I need to take it to service. Because I root-ed and installed custom rom I need to go back to stock version. I have a little problem because my computer doesn't recognize the phone anymore so I can't use smartflash. Does anyone of you know another way to return to stock version? Can I flash stock trough CWM? I need v10b. Your help would be greatly appreciated. Have a nice evening and thank you for your answers!
Click to expand...
Click to collapse
you do realize that flashing even a stock rom through cwm will still not make the phone "stock". you'd still have cwm installed and need to get rid of that. try flashing a kdz instead...
jimakos29 said:
you do realize that flashing even a stock rom through cwm will still not make the phone "stock". you'd still have cwm installed and need to get rid of that. try flashing a kdz instead...
Click to expand...
Click to collapse
His post stated he has a problem with his USB. Flashing kdz or files in SmartFlash is not an option.
The link posted above is not a regular "stock" ROM. It's a project that contains stock "recovery.img" inside the zip. Like what was discussed here http://forum.xda-developers.com/showthread.php?t=2224465
It is the same adding the unlocked bootloader together with the recovery http://forum.xda-developers.com/showthread.php?t=2160394 on a flashable zip or any .img on a certain partition.
Code:
package_extract_file("x-loader.img", "/dev/block/mmcblk0p1");
package_extract_file("u-boot.img", "/dev/block/mmcblk0p2");
package_extract_file("boot.img", "/dev/block/mmcblk0p3");
package_extract_file("recovery.img", "/dev/block/mmcblk0p4");