yashsingh1/xdaforums huggingface dataset:
[G2 General] Simo7:
I succesfully downgraded to JB (4.2.2). I follow this guide step by step using template (not template_new) so I'm sure I put all files in the zip file (exactly how is on your video). Unfortunately root checker says that I have no root. Why?
[G2 General] somboons:
check

1. TWRP 2.6.3.3 up ?

2. make sure correct supersu?

3. step install correct?

if you do all of above your rom should rooted
[G2 General] Simo7:
(2) and (3) I am sure now I try again with the correct twrp

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 General] Simo7:
Ok I have done the process again, this time with TWRP 2.6.3.4 and all was ok (now I have root) thank you. Only another question: at the end of the installation of KKtemplate TWRP shows an error; I don't remember exactly but it was something about loki and aboot and at the end there were written "failed". I've installed supersu and again another "failed". I rebooted and the system started and I have also root. It's ok or I have to do something else?
[G2 General] p.valenta:
great thanks to [MENTION=4008653]somboons[/MENTION] for this guide! :good:

I follow it and I got my Hong Kong D802 upgraded to KitKat without losing any data or settings. ;)

As others wrote, I made these steps:

1) Clear Cache and Dalvik Cache in TWRP 2.7.0.0

2) Flash prepared ROM by this guide - system.img and cust.bin (anybody from HK could take my file here)

3) Flash modem file - extracted modem_xxxx.bin from this guide, renamed to modem.img and placed in ZIP update (download link here)

4) Flash D802 kernel from this thread.

5) Flash superuser to root it.

Done. That's it.

No factory reset

as I'm going to higher version of Android and it will automatically upgrade by self.
[G2 General] somboons:
HK firmware SEA or ESA in software version.

on jan I went to hk.nice place.I love it :)
[G2 General] p.valenta:
Not SEA, it's own HKG. :)
[G2 General] somboons:
D80220a-SEA-XX ?
[G2 General] p.valenta:
D80220a-HKG-XX ;)
[G2 General] somboons:
Thank
[G2 General] rizki cimenks:
OMG Alay mode on om io :D

Will Wait Next CUSTROM ;)
[G2 General] Leong Ka Fai:
I'm from Malaysia and i am on D80210d-MYS-XX....

which kdz shud i be using ??? the SEA version ???
[G2 General] tarkil:
Thanks so much for sharing your rom [MENTION=489665]p.valenta[/MENTION], I've used your file, and it's working like a charm!
[G2 General] p.valenta:
you are welcome, enjoy! ;)
[G2 General] silverstorm:
Got root finally

Like others here, I followed the OP exactly using TWRP and after re-booting into KitKat ROM I had not root or any sign of SuperSU app in the drawer. I stayed up half the night and frustratingly tried it 4-5 times. Then I noticed in the TWRP output window "E:\ could not mount system" or something. So I tried one last time, but before wiping, I went into 'Mount' menu of TWRP and saw 'System' was not ticked. So I ticked this and wiped. Then before flashing the KK_template ROM, I went into 'Mount' setting again and saw that 'System' was again unchecked. So I ticked it and installed the ROM, Then I performed Dalvik Cache wipe. Then I clicked 'Home' and checked the 'Mount' menu again, and System was unchecked. So I ticked it again and THEN flashed the SuperSU 1.93 zip. And then re-booted.

THEN IT WORKED! YAY I HAVE ROOT ON OFFICIAL KITKAT d80220A :)
[G2 General] derek_09:
D80220A-SEA-XX zip

Hi all,

Would anyone be kind enough to post a link of a flashable zip for the KitKat D80220A-SEA-XX as I have been looking high and low for it but to no avail.

I am having a 32GB set.

Thanks in advance.

derek_09
[G2 General] chrisrani2012:
How can I insert own apps in the rom?
[G2 General] ximi75:
hi i have no experience with G2 I get samsung galaxy s3 has anyone tried to deodexed (xda Kitchen) that you the APKs MOD

I have a rom as deodexed test, zipaligned, I signed dare not to flash anyone can throw one eye in ZIP sure everything is ok

sorry for my english

http://youtu.be/m3Yr4nAxafY
[G2 General] Shriac:
I am on Indian d80210c JB, rooted. I installed TWRP 2.6.3.2 using the guide on xda then updated it to 2.6.3.3. Then I flashed the kitkat template.zip which i had created using Indian kitkat rom. it just fails in a second every time. showing some error regarding partition. it also shows md5 not verified. I have tried most of the additional steps suggested by users such as mounting system every time.
[G2 General] LenAsh:
Well, the written version does work - I created this ages ago... http://xdaforums.com/showthread.php?t=2680789 - but not using the video

So, you're probably doing something wrong.

Start again and work through EVERY STEP carefully by using the written guide, not the Video
[G2 General] Shriac:
I have gone through all the steps taking proper care.

I am on D80210C version of JB which is the latest JB after couple of OTA's. I have rooted phone and installed TWRP after OTA. Is this a problem.

I have created ROM using the KK D80220A-ESA firmware which is for India.

Can i use CWM recovery instead of TWRP
[G2 General] somboons:
thank
[G2 General] somboons:
maybe you flash flashable zip fail on cwm or philz recovery but it'ok .maybe successfully on twrp.I think it' depend on command in updater-script.
[G2 General] koftheworld:
is there anyway to either flash or extract from a .bin file?
[G2 General] p.valenta:
bin file is image of partition. you can directly copy it to partition by using terminal and dd command or using zip update with script to do that.
[G2 General] rodpgfx:
After I add cust.bin to my zip and update scripter the flash fails. Guys, do I need 2.7.0 twrp for this to work? I am using 2.6.3.4. Thats the newest twrp recovery to date for my D803......
[G2 General] jdcchora1533:
can I update my g2 with a rom for d800 ??

I have ls980 but i can't get LTE (cause of the different bands) :(
[G2 General] somboons:
I think you should custom ROM .
[G2 General] jdcchora1533:
Can you help me with that? And confirm that too?

Enviado do meu LG-LS980 através de Tapatalk
[G2 General] Dene_Bluesman:
there isnt a patched kernel yet for the d803
[G2 General] darz23:
can i flash the kitkat rom i prepared to a 4.2.2 pardus rom? and assuming that I successfully installed the official kitkat using this method, can I also take the next udpates via OTA?
[G2 General] timekeeper:
I started doing this for D803T20C_00.kdz, and during the dz extraction it stops at laf_622592.bin with this in the log:

Progress merge_systembin Done !!
SYSTEM IMAGE FILE LOCATE IN C:\Users\Aaron Ang\Desktop\lg kitkat\WindowsLGFirmwareExtract-1.2.1.0-Release\merge_output\system.img
Complete on merging system files
Exception on findSystemBins cannot find system*.bin files / fail to create folder
count 0
Progress extractDZFlle Done !!
Complete on extract DZ partition files
Exception on extract partition file Ionic.Zlib.ZlibException: Bad state (invalid block type)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibCodec.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.finish()
at Ionic.Zlib.ZlibBaseStream.Close()
at Ionic.Zlib.ZlibStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at WindowsLGFramwareExtract.Form1.DZExtractBackprocess.extractDZFlle(ArrayList contents) in C:\Users\far-ex\Documents\Visual Studio 2008\Projects\WindowsLGFramwareExtract\WindowsLGFirmwareExtract\Form1.cs:line 463
BackupGPT_61070336.bin
system_7472776.bin
...

Even though it says done, it seems to have encountered an error, and there's no .bin created in the merge folder.
[G2 General] somboons:
I have no LS980 and can not confirm you.
[G2 General] jdcchora1533:
Anyone can confirm that?

Enviado do meu LG-LS980 através de Tapatalk
[G2 General] DELusional07:
Hi, I tried ur tutorial and I succeded, i was able to flash stock KitKat ROM with manual ROOT. But last night I decided to go back to stock JB ROM using FlashTool, in download mode there was no progress of flashing it is stuck with 0% but in the Flashtool on my PC the progress of percentage was continuous. After the flashing was done, my phone booted up but there was no LG Logo Animation, there was only Sound of LG bootup and the blue/green LED flashing, and then the screen turned out black and I can't see anything on the welcome screen. Now, I can't use my phone, did I miss something before downgrading from your tutorial? Thanks..
[G2 General] somboons:
if you downgrade from km to jb you should hardreset after flash kdz file.
[G2 General] DELusional07:
I tried hard reset already, but still my screen is black and it hangs. There is download mode but LG Logo is stuck and freezes. My touchscreen works but the screen freezes in black. :(

any ideas?
[G2 General] superandroid2011:
Hi guys.

I need some help, I have LG G2 D805 model (Brazil).

Since there isn't no D805 KK I decided to follow this topic tutorial.

Before following the first page tutorial I was on JB 4.2.2 rooted.

So I loaded the necessary files (below) on SDCARD, installed TWRP (with Simple Tool 3.0 By OptimusRS) and rebooted on recovery.

As told, I flashed the files in the following order:

1 KKROM_template_new.zip

2 KitKat BaseBand (KK_Baseband_D805_unofficial.zip)

3 Patched Kernels

4 UPDATE-SuperSU-v1.93.zip

Everything went fine and I'm on KK, rooted and with TWRP.

But I have one problem:

I can't connect to 4G(LTE) network anymore, only on 2G/3G.

The 4G signal is pretty strong and stable where I live, so it is not an Carrier Signal Problem.

After this flashing something has changed and it is not allowing my phone to connect to 4G network.

What could I do to fix this without having to downgrade to JB again?

Thanks in advance
[G2 General] somboons:
I need ticket for world cup ? .just kidding

can you extract modem from kdz firmware of your country? And patch it to your ROM.
[G2 General] jdcchora1533:
You change the lte bands with new firmware .

Enviado do meu LG-LS980 através de Tapatalk
[G2 General] superandroid2011:
World Cup Tickets, hard to get one of these... at least I bought tickets for a quarter-final game (wished opening and final, but was not lucky).

Anyway, I have modem (modem.img) from D805 JB Stock V10B.

Is it safe to flash this modem over KK ROM? How is the best way to flash it?

Regards.

---------- Post added at 03:11 PM ---------- Previous post was at 02:44 PM ----------

Well, I flashed JB D805 stock modem, the 4G didn't come back and also the sensors were broken, proximity and accelerometer.

Flashed back "KitKat BaseBand (KK_Baseband_D805_unofficial.zip)", sensors are working but no 4G.
[G2 General] rodpgfx:
Anything made for the D803 variant yet?
[G2 General] Dene_Bluesman:
this guide is to help you build one, worked on my bell variant, only thing that was different was the cust.bin, my flashable zip only had meta inf and system.bin and flashed fine
[G2 General] rodpgfx:
Yeah Dene, i had my Rom built and used a cust.bin from another firmware but it wouldn't flash for me. Where did you get your cust.bin?

I also have bell variant.

Thanks
[G2 General] Dene_Bluesman:
get rid of the cust.bin , our kdz didnt have one lol. all my folder contained was meta-inf and system.img and flashed fine in twrp. remember to flash the patched baseband first. cheers
[G2 General] rodpgfx:
Thanks for the tip Dene, is this the link to the kk baseband I should use?

http://www.androidfilehost.com/?w=files&flid=12880

So build the kk rom from the bell kdz and just extract the bin files that are present?

---------- Post added at 05:10 PM ---------- Previous post was at 04:35 PM ----------

Ok, I just built another rom with the files provided in the OP and tried to install using twrp 2.6.3.4 and it's saying

"unsupported aboot image

Error loki-ifying the boot image."

I only had META-INF folder and system.bin files in zip file

Then i tried copying the other .bin files to the zip, same thing.

???????
[G2 General] Dene_Bluesman:
i have a few more flights to get home yet, if you hang tight i will upload mine, just tried flashing again and was all good. yes that is the correct baseband, get the patched kernel also? cheers
[G2 General] rodpgfx:
Thanks Dere, I appreciate it.

I've went into LG support tool and upgraded my phone with the latest from LG.

I am now running stock kitkat on my phone, and I've found an upgrade to iroot, that lets me root my phone. I'm sure soon enough people will have it figured out how to install twrp on this.

This is all I wanted really. KitKat LG with root :)

Thanks again for the help.
[G2 General] Dene_Bluesman:
i do too but got bored really quick hehe, so i flashed mahdi, then i flashed cloudypro 2, then latest pa, then back to my debloated stock hehe. so i need custom recovery. cheers
[G2 General] rodpgfx:
Yeah I flashed them all also. My fav was Nameless, with the active display and the peek notifications. I'm trying to get that on stock, if I can. I found omniswitch, which I like to use. No luck with the peek and active display yet :(
[G2 General] MicroMod777:
What zip program can I use to add the system.img to the stock zip? Winrar says its too big.
[G2 General] somboons:
7zip
[G2 General] MicroMod777:
Do I set the zip as a 7zip under what type?
[G2 General] MicroMod777:
I tried 7zip to create a .zip and I get this in the twrp recovery.log

minzip: could not determine length of file

minzip: Map of '/sdcard/KK-Stock.zip' failed

E:Unable to open zip file.

Error flashing zip '/sdcard/KK-Stock.zip'

But in Windows 7, I can open zip fine.

The size of the zip is 2,114,149mb's. I think its too big for twrp to open it.
[G2 General] buenarc:
Thank you for the detailed explanation. I will try this on my device!
[G2 General] wintermute000:
I made my zip fine but it fails to flash - well it flashes immediately and says ok after half a second :) with the error msg 'unable to mount /system'.

Anyone seen this before? I'm using the stock zip not the custom one.

Tried in both philz and twrp
[G2 General] wintermute000:
To OP: You NEED to fix the first post, in particular, the broken image for the instructions at step 10. for KKROM_template.zip.

From your wording it is very unclear what files to copy into the zip, in particular, you say

"Copy and rename file from WindowsLGFirmwareExtract-1.2.1.0-Release folder to KKROM_template folder"

Thats basically wrong as you need all the BIN files as well (note files PLURAL not file singular) , to make things worse, the screenshot is broken. But immediately above it the screenshot for KKROM_template_new.zip is there and you see a single system.img so you think 'well I just need to copy system.img over'.

I strongly strongly recommend you edit the instructions to say "copy and rename all the below bin files (list the bin files) and rename them to (list the renamed files)" PLUS add the screenshot below......

I appreciate your work putting it together but seriously the messed up instructions wasted an entire afternoon for me, if I didn't find below post i would be totally screwed. thanks in advance
[G2 General] somboons:
Thank you.
[G2 General] p.valenta:
Hong Kong D802 20b Internation Open 32GB

I again followed this great guide and created 20b update. Here are my files, if anyone need:

KK_HK_Baseband_D802_20b

KK_HK_ROM_D802_20b

Audio issue is fixed in this version and knock code added. I use it together with Cloudyfa's KC Kernel.
[G2 General] albsat:
I wish someone could root the stock sea firmware and add a recovery into a flashable zip.
[G2 General] thiagofbrito:
Hey buddy, how did you manage to shrink Rom zip? System.img I got is 3GB quite big IMO. Thanks!
[G2 General] MicroMod777:
Same problem I have.
[G2 General] p.valenta:
I only add it to that ZIP, it got compressed. ;)

Original KDZ is 1.6GB so it should compress quite well.
[G2 General] thiagofbrito:
Great! Also how to create flashable baseband? I see that you have radio.img in your zip while I only have radio.bin from kdz extraction.

Enviado do meu LG-D805
[G2 General] p.valenta:
It's same file, simply rename modem.bin into modem.img ;)
[G2 General] MicroMod777:
Our Verizon KDZ is 3.0gb, and then compresses to about 2.2gb, which won't flash.
[G2 General] mor_1228:
this is only for kitkat but i want to make for JB any help ?
[G2 General] punyategar:
Im going to highly assume its just the same steps. Only, you flash jb kernel & baseband.

Thanks somboons for the thread i just made my own d80220b with your steps. Apparently you dont need to downgrade to jb. Just go for it from any kind of recovery and custom rom .
[G2 General] MicroMod777:
I finally got this to work for VZW kk. Full stock, but I still get the rooted warning. How can I fix that?

I'm trying to do this for a full restore for warranty.
[G2 General] fronz:
I'm gonna give this a try for my LG Flex
[G2 General] lhoaq:
I followed your instructions to the letter. At the end of the process, I got many bin files, excepts the cust_xxxxx, created by WindowsLGFirmwareExtract-1.2.1.0. Is that normal?

My LG G2 D801 is rooted and customized with CloudyStock 2.2. The KDZ stock ROM used is V10C.
[G2 General] plageran:
G2 Mini D620

this software doesn't work on my firmware, any ideas?:confused:
[G2 General] 6ril1:
For the version keeping custom recovery, why not include modem.bin in the zip and add it in updater-script (package_extract_file("modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem"), instead of flashing baseband separately ?
[G2 General] poochewer:
D802T australian varient

Has anyone tried this on aussy d802t? And was it successful?
[G2 General] 6ril1:
Hello there,

I'm not an experienced developper and i looked for a way to make a flashable, recovery friendly, and rooted zip from a kdz firmware extraction,

as explained in this tutorial, but by including the root and a patched kernel (a one shot flashable zip to keep the recovery and have root).

After seeking the help of [MENTION=3279781]bender_007[/MENTION] on aspects such as the integration of patched kernel and also [MENTION=4447958]citytrader[/MENTION], and requested authorization of [MENTION=270378]Cloudyfa[/MENTION] to integrate his patched kernel, (thank to all of them) I managed my goal with this code:

show_progress(1.0, 5);

ui_print(" Cleaning /SYSTEM ");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
delete_recursive("/system");

ui_print("Flashing system...");
package_extract_file("system.img", "/dev/block/platform/msm_sdcc.1/by-name/system");
ui_print("Flashing modem...");
package_extract_file("modem.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
ui_print("Flashing cust...");
package_extract_file("cust.bin", "/dev/block/platform/msm_sdcc.1/by-name/cust");

unmount("/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

ui_print("Extracting modules...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");

ui_print("Permission root...");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/daemonsu");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 2000, 0755, "/system/etc/install-recovery.sh");

ui_print("Extracting kernel...");
package_extract_dir("tmp", "/tmp");
package_extract_file("boot.img", "/tmp/loki/boot.img");
set_perm(0, 0, 0755, "/tmp/loki.sh");
set_perm_recursive(0, 0, 0755, 0755, "/tmp/loki");
assert(run_program("/tmp/loki.sh") == 0);
delete("/tmp/loki.sh");
unmount("/system");

show_progress(0.100000, 0);
ui_print("----------------");
ui_print("Done, Reboot and enjoy");

For files, since the zip of ioroot25 (thank's [MENTION=2684188]autoprime[/MENTION]) I extract :

- System\app\Superuser.apk

- System\etc\install-recovery.sh

- System\xbin\daemonsu

- system\xbin\su

and merge them to the system folder from the patched kernel zip of Cloudyfa (which contains system\lib\Module).

and put this system folder in the zip with the boot.img from the zip of the patched kernel of Cloudyfa.

The result works on my D802, from an original D80220D ANEUBK 32Go kdz.

Now, as I am a beginner, I will take all suggestions for improvement of the method :)

I would love to also integrate busybox, but do not know how. If someone had an idea ?
[G2 General] u1988:
Thank you !
[G2 General] gypsy214:
There most be something I doing wrong... I cant find cust.bin after doing all the steps

Do you guys know how to make the system rom zip? To customize it? Or I have to use android kitchen for that?

I wanted to do this so I can get the new radio for tmobile update that nobody has made a flashable zip for it
[G2 General] AdedBiatch:
Thanks great guide.
[G2 General] GenghisKhan67:
This method worked fine to go back to stock once I figured out that I didn't need a cust.bin file (my .KDZ didn't have one). I used the KK template (not "new"). I am on a D803 on Videotron.

Many thanks to the OP for the guide.
[G2 General] BrownDog99:
Did it work on your g flex? Trying to root a rogers g flex 4.4.2, looks like only way is to downgrade
[G2 General] BrownDog99:
Above
[G2 General] BrownDog99:
Why not just download busy box?
[G2 General] amiryeketaz:
thank you

your post really help me :laugh:
[G2 General] lingfude:
I tried this tool to unpack KDZ firmware for LG Pro Lite Dual (D-685) SoC MT6577 variant but KDZ file has a different header.

Any workaround for this case?
[G2 General] reeper250:
I downloaded both KKROM files but there isn't a "rename_droidth.bat" file in either, only META-INF

Nevermind, found it here: https://www.androidfilehost.com/?fid=23329332407578947

However, I don't have the cust.bin file?

---------- Post added at 07:50 PM ---------- Previous post was at 07:05 PM ----------

So I did everything as described, turned my phone on but it's stuck on the LG load screen? It makes the happy start up tune but then just gets stuck...

---------- Post added at 07:54 PM ---------- Previous post was at 07:50 PM ----------

Ok this is weird... It shows up with the LG screen but when I touch the screen it sounds like I can type and use the buttons

---------- Post added at 07:56 PM ---------- Previous post was at 07:54 PM ----------

Exact same problem I'm having!
[G2 General] scarletchrome:
Will this work for LG L70 D325n? I'm currently downloading my KDZ and I want to make it flashable. What other files would I need for Lg L70?

. I need it to be flashable zip because I accidentally wiped out my internal storage(I think). I don't have download mode so I can't flash KDZ.

I would be glad if someone could help please. Thank you.
[G2 General] LS89:
Thx a lots!

oh my glob!!!!!!!!

it is crazy useful!!!!!!!!!! I made a rooted rom finally!!!!
[G2 General] atletogogo:
[/U]

thank you for this guide. I´m waiting for the lollipop update for my lg g2, will this method work for a lollipop kdz too?
[G2 General] Thil3000:
So.... I used this tuto to build a LG G3 stock Lollipop rooted ROM..

This kind of ROM doesn't exist for my device since the lollipop update was release today, and i think i got it to work.

The only thing is that i dont have recovery access anymore, will try something else for that

Thanks alot for the thread and the KDZ extractor app.
[G2 General] karendar:
If you're able to flash a stock rom and have root, you can simply use flashify and flash twrp when booted into lollipop... No biggie.
[G2 General] Thil3000:
I tried someting close to that, like manually flashing twrp, but not working.. I'll try it anyway, to be sure
[G2 General] mlm1102003:
hi

can you give us template for android 5 ?
[G2 General] somboons:
Structure partition not change.u can use older template
[G2 General] jaimep01:
Q about G3

I am interested in building a stock KK4.4 rom for my g3 d855 16g, I was wondering if this tutorial will work or do I need a different template to build the flashable zip.

Can I edit the zip with some tweaks or would that break the file thanks in advance for any reply :)
[G2 General] bartas169:
Hi! I need a flashable rom for LG d290n (l fino). It gona work for me to do it from .kdz file? I have the stock rom,but I can't flash it. My phone stops on custom recovery end I need a rom.
[G2 General] ro_mesc:
Link for KKROM_template_new.zip is offline.

Can you please reupload this?

Thanks.
[G2 General] casual_kikoo:
Up! [MENTION=4008653]somboons[/MENTION] why the link is down :( ?
[G2 General] ro_mesc:
I found a mirror: https://dev.androidfilehost.com/?fid=23329332407578946

I used it to convert 30f KDZ for ZIP and worked well.