yashsingh1/xdaforums huggingface dataset:
[G2 Android Development (D802)] 6ril1:
Hello,

This thread to share with you this zip that contains the originals partitions of D80220H version, all except the recovery, and wich is prerooted.

It is only for those who are under bumped recovery

(@blastagator TWRP ).

Before the flash, wipe system,data,cache and dalvick recommended.

After the flash you'll have a pure stock prerooted D80220H open euro firmware which keeps your custom bumped recovery.

Download

https://www.androidfilehost.com/?fid=95916177934521247

Miror on mega (great thank's to [MENTION=5758377]skithor[/MENTION]):

https://mega.co.nz/#!qNEyVC7S!mDpzgILJdMr79gig8cIczhH7WLCTCtonXgxdAnBQjSA

md5: f72557eeb2db0a1ff8d5c5ad404a32f3

Q/A:

Q: Does this rom contains bumped kernel ?

A: No need, this is just the original 20H kernel that contains the original LG signature (so no need to inject original LG signature with Bump!)

Q: What is included in the zip ?

A: all D80220h originals partitions (modem, aboot,boot,laf,sbl1,rpm,persist,dbi,cust,tz), except the recovery.

To be more clear, because that was asked later in the thread, baseband=modem,boot=kernel,aboot =bootloader. So yes it contains pure stock 20H booloader, pure stock not modified 20H kernel and 20H baseband (fr modem, that can be easily changed after if you want/need).

Q; It's for 16 or 32 Go ?

A: Both

Q: Can i flash these rom if i have JB bootstack (JB bootloader and old partitions (aboot,laf,sbl1,rpm,persist,dbi,tz) ?

A: Yes

if you have a bumped recovery

(@blastagator TWRP )

Q: how to acces to bumped custom recovery with hard keys, in this configuration (20H bootloader) ?

A: Since the phone turned off, press power + vol down, release as soon as the logo appears and then hold vol down + vol up.

Q: if i want to return to old bootstack, how to proceed please ?

A: After a lot of test, best and shorter way is to use [MENTION=270378]Cloudyfa[/MENTION] autorec. It downgrades bootloader (aboot) to Jelly Bean, replace the recovery by a lokified TWRP 2.7.0.0, and replace the kernel by a lokified one. It flashes laf (download mode) too. You can update TWRP and/or kernel after, if you wish.

Q: if i want to return to kitkat bootstack after a try on JB bootstack, how to proceed please ?

A: I made this zip that can be flashed from recovery.

Before flashing it, you must have flashed bumped recovery

=> (@blastagator TWRP ).

It contains 20H originals bootstack (bootloader + others partitions => aboot,tz,sbl1,rpm,persist,laf,dbi) + originals 20H kernel with original 20H system/lib/modules:

It can be download here: https://www.androidfilehost.com/?fid=95916177934522374

Thank's to:

Codefire team for Bump!
[G2 Android Development (D802)] didhiy:
Great job! :good: works great on my device, thanks a lot :victory:
[G2 Android Development (D802)] fLipz:
Great! You're Awesome mate :good:
[G2 Android Development (D802)] Doublewise:
Interesting.. Is it possible to have kk bootloader and 20h kernel combine with cloudy g3 2.1 rom?
[G2 Android Development (D802)] 6ril1:
I do not know, but in theory it should be possible, I think.

It would be better to put the question to [MENTION=270378]Cloudyfa[/MENTION]

Care must be taken in system/lib/modules, because these files are modified with a lokified kernel that boot behind a bootloader JB.

What I am saying is that if we interchange the lokified kernel with original 20H, we need probably replace the modules file by the stock one too.

However, it would be better to seek expert advice on the subject of [MENTION=270378]Cloudyfa[/MENTION]
[G2 Android Development (D802)] Doublewise:
Ouch, I thought it as simple as flashing kk bootloader and 20h kernel on top of custom Rom. I almost ask you to create flashable 20h kernel [emoji4]
[G2 Android Development (D802)] reddsmokee:
it's seems so well. but a few questions. can we use this with art (if there is not, how can we use with art) and add the recent app buttons without xposed?
[G2 Android Development (D802)] 6ril1:
I did it for my first prerooted D80220H that contained lokified Cloudy KC kernel, the zip is here: http://xdaforums.com/showpost.php?p=58564605&postcount=104

This zip contains 20 H kernel + 20H laf + 20H modules + 20h bootloader.

That's enough on my rom and it works well on it because I know this rom flashed the others partitions part of the boot stack (dbi,persist,rpm,sbl1,tz), so the device already contains the 20H version of them.

For other stock based rom, it would be better to add 20H dbi,persist,rpm,sbl1,tz because i can not know if these partitions (dbi,persist,rpm,sbl1,tz) where updated on the device from JB to KK one day.

edit: i change the zip for including all needed partitions for all situations (20 H kernel + 20H modules + 20h bootloader + 20 H dbi,persist,rpm,sbl1,tz,laf)

It's hard to explain and I do not speak English very well, I hope I can make myself understood :p

If we look at [MENTION=2376110]dorimanx[/MENTION] flashable zip for migrate to 20H bootloader we can see it integrates dbi,persist,rpm,sbl1,tz + laf

http://www.dorimanx.com/LG/default-kernels/KK-20H-D802-BOOT-LOADER.zip

and in his flashable zip for migrate to stock 20H kernel it integrates 20h kernel (boot) and system/lib/modules

http://www.dorimanx.com/LG/default-kernels/ORIGINAL-KK-20H-D802-KERNEL-KK-aboot.zip
[G2 Android Development (D802)] linux33it:
please, it's impossible to enter into recovery with hard keys...why?
[G2 Android Development (D802)] 4Freedom:
So? Which Country?

it shouldnt be safe to flash wrong modem
[G2 Android Development (D802)] 6ril1:
Since the phone turned off, press power + vol down, release as soon as the logo appears and then hold vol down + vol up.

Here it's fr modem and it can be changed so easily.
[G2 Android Development (D802)] Cienight:
Hi

I used autorec to downgrade bootloader then i flashed twrp 2.8.4 and then the d80220d original stock kernel from cloudy that enables knock code. Can i flash the 80220h kernel you linked if i flash first the bumped twrp?

Cheers

PS: THANKS FOR YOUR AWESOME WORK (Y)
[G2 Android Development (D802)] 6ril1:
Sorry, I'm very busy because I have to take care of a neighbor in agony (terminal cancer), so I answer briefly. I will keep this thread, including by completing Part question / answer as soon as available, thank you for your indulgence.

To be sure you have everything you need, you can flash the two [MENTION=2376110]dorimanx[/MENTION] package (bootloader + kernel )

http://www.dorimanx.com/LG/default-kernels/KK-20H-D802-BOOT-LOADER.zip

http://www.dorimanx.com/LG/default-kernels/ORIGINAL-KK-20H-D802-KERNEL-KK-aboot.zip

because if you want to flash original 20H kernel you must have 20h (KK) bootloader (bootstack) too (and of course bumped recovery), assuming you are on 20H stock (?)
[G2 Android Development (D802)] Cienight:
i flashed the bumped recovery and then flashed the kk bootloader but i get a black screen after boot and nothing happens,any ideas?
[G2 Android Development (D802)] 6ril1:
You've flashed [MENTION=2376110]dorimanx[/MENTION] 20H bootlader(bootstack) zip ?

And the kernel ?

And what rom do you use ?
[G2 Android Development (D802)] Cienight:
stock d80220h and i flashed the dorimanx bootloader.

the kernel is the stock 80220d

how can i get into recovery?

PS i managed to get into twrp ,flashed the kernel and now everythings ok

Im glad for your help,and i hope a miracle happens to save your neighbor from his suffering.

Peace
[G2 Android Development (D802)] 6ril1:
It should not reboot between the bootloader flash and the kernel flash...

I have already given the method to have recovery access with hard keys a few posts earlier...

edit: I see you've edited your post. Nice to see all is ok now. It's a very difficult situation with my neighbor and his family. You can check the thank's button for thanking. Miracle lived for seven year, but now this is the end. Peace
[G2 Android Development (D802)] Cienight:
yup,got it sorted with your prementioned method.

Thanks!

the 20h kernel fixes the redraw issues on the home when waking the phone
[G2 Android Development (D802)] Doublewise:
In dorimanx site there is flashable kk 20h baseband. Is it the same with kk 20d baseband? Is it important to flash 20h baseband also?
[G2 Android Development (D802)] vesi:
Rom is perfect, but have lot of LG balast. Any chance add Aroma options for debload and instal AdAway? Thank you ;)
[G2 Android Development (D802)] 6ril1:
What is needed is having KK modem with KK firmware. After, it's up to you to see which one is best for you. I don't know if there is difference beetween 20h and 20d modem, a md5 comparaison could answer the question.

No sorry, I do not have time now to offer something more advanced. I wanted for my own needs to have a pure stock firmware that I can come back easily after testing on other rom.

As the bump bypass now seems to take precedence among developers, I crafted this zip.
[G2 Android Development (D802)] beggar23:
Hi,

can I use your zip to upgrade my stock 20D installation, without wipe? I have the bumped recovery and KK bootloader already.

Thanx.
[G2 Android Development (D802)] 6ril1:
Hi,

You can try to dirty flash if you want, it can be good, even if clean is always more recommended. Backup user/app data before, in case of problem.
[G2 Android Development (D802)] splus:
Thanks a lot!

I installed your original 20H with older kernel when you posted it quite some time ago, but no matter what custom kernel I installed afterwards the battery life was really bad when compared to 20F ROMs.

In the meantime I installed the new bumped 2.8.4.0 TWRP, and now I flashed your new update with 20H kernel (mentioned in the quote), and wow, the battery life is back to very good with smooth performance.

It looks like 20H ROM is optimized only for 20H kernel...
[G2 Android Development (D802)] reddsmokee:
a simple question? is this rom include all modules (bootloader, baseband, and kernel) or should we install from here after flash the main rom?
[G2 Android Development (D802)] 6ril1:
Hi,

as mentionned in OP:

Q: What is included in the zip ?

A: all D80220h originals partition (modem, aboot,boot,laf,sbl1,rpm,persist,dbi,cust,tz), except the recovery

aboot=bootloader

modem=baseband

boot=kernel

So, all is included in the zip (https://www.androidfilehost.com/?fid=95916177934521247), no need to flash https://www.androidfilehost.com/?fid=95916177934522374. This last one is just for returning to original 20H Bootstack ( bootloader, another part of boot partitions, and kernel) when you are on a 20H with JB bootstack and kernel lokified.

All these zip must be flashed from a bumped recovery

Is it more clear ?
[G2 Android Development (D802)] gasReal:
thank you 6ril1, you are a special guy and a good man :good:;)
[G2 Android Development (D802)] gasReal:
hey 6ril1, when I bought my g2 coming with 20g. then I used stump root and autorec and your 20h prerooted. which partitions did remain of 20g? or which partitions 20h were flashed over those 20g?

I'm not english and hope I wrote right :eek:
[G2 Android Development (D802)] kascro:
I want to flash this zip over previous 20h prerooted you posted, i updated to latest twrp.

But AFH host is so slow for downloading, can somebody please make a mirror upload ?
[G2 Android Development (D802)] 6ril1:
Hi,

If you open the zip, you can see what it contains, and what it does (META-INF/com/google/android/updater-script,that can be open with a text editor, contains flash instructions) ;)

My prerooted 20h for JB bootloader that retains custom recovery contains 20H tz,sbl1,rpm,persist,modem,dbi,and cust + 20D kernel lokified by [MENTION=270378]Cloudyfa[/MENTION] + root + parted bins.

So it doesn't contain original 20h laf (download mode), 20H kernel, nor 20H bootloader (and system/lib/modules/* are rewriten too).

My zip, for returning from this one to 20H bootloader and 20H original kernel, flashes original 20H bootloader + original not modified 20H kernel (and originals 20H system/lib/modules/*) + original 20H tz,sbl1,rpm,persist,dbi, laf too. I've included tz,sbl1,rpm,persist,dbi (even if they don't be needed on my 20H prerooted 20h for JB bootloader), for those who want to use this zip from another firmware.

Don't forget this last zip is only for flashing from bumped recovery, for having a pure 20H stock (including 20H stock kernel) with bumped custom recovery

.

Have i answered your question ?
[G2 Android Development (D802)] gasReal:
ok, thx a lot :o
[G2 Android Development (D802)] 6ril1:
In your situation, you just need this one https://www.androidfilehost.com/?fid=95916177934522374 (22 Mo).

You need

Bumped

TWRP (http://xdaforums.com/lg-g2/development/twrp-twrp-2-8-0-0-kernel-f2fs-tools-t2898705), right ?

I've asked a mirror for the full rom in another place (french forum), if I had an answer, I'll post a new link ;)
[G2 Android Development (D802)] kascro:
I've updated twrp to Jan 13, 2015 (2.8.4.0).

Right now i have this https://www.androidfilehost.com/?fid=95784891001611050

So if I flash this https://www.androidfilehost.com/?fid=95916177934522374

I will have fully updated 20h with twrp ?

Thanks for your reply, i need to make a clean install so i will flash my 1 zip + my 2 zip, I will have fully updated 20h with twrp ?
[G2 Android Development (D802)] 6ril1:
The date of your TWRP doesn't tell me if it's bumped. Where did you take it ?

With a bumped TWRP, flashing the zip i linked (https://www.androidfilehost.com/?fid=95916177934522374) from my previous prerooted lokified 20H give you a pure stock 20H that retains bumped custom recovery.

You just have to flash the zip (wipe cache and dalvick if you want) and it's ok (from bumped custom recovery !).

Please, I appreciate your writings thanks, but do it with the right button is good too;)
[G2 Android Development (D802)] kascro:
I have this twrp (current version) http://blastagator.ddns.net/twrp.html

Ok i will wipe cache and dalvik, reflash prerooted 20h lokified and then flash your zip, then flash debloat script and enjoy your work !

Thanks again, i didnt use the thanks button because i use classic skin for forum and that skin doesnt have thanks button, from now on i will thank you with a button just for you ! ;D
[G2 Android Development (D802)] 6ril1:
OK, but why reflash my lokified 20H if you already are on it, as I thought I read that you were ?
[G2 Android Development (D802)] kascro:
I disabled a lot of services and apps, my notification light isnt working anymore and gps cant locate me at all so maybe a full reflash will fix this problems, next time i will not freeze and disable so much services.
[G2 Android Development (D802)] 6ril1:
OK, but wipe system,data,cache and dalvick is reommended before flashing the wole rom (even if a dirty flash can work without problem). Make a backup user/app data before, in case of.

If you can download the whole 20H for bumped recovery, you can flash it directly too (same recommandation for wipes => system,data,cache and dalvick), otherwise flash whole prerooted lokified 20h (with recommend wipe => system,data,cache and dalvick) followed by 20MB zip (20 H bootstack with 20h kernel ) with no wipe or just cache and dalvick wipes.
[G2 Android Development (D802)] Doublewise:
Hi 6ril, I was curious and tried flashing 20h kk bootloader, baseband and 20h kernel (all I downloaded from dorimanx site) on my cloudy g3 2.1 with bumped recovery and then I got security error when booting. You were right its not as that simple -)
[G2 Android Development (D802)] 6ril1:
All is ok now ? You could return to recovery and flash back ?

Miror on mega (great thank's to [MENTION=5758377]skithor[/MENTION]):

https://mega.co.nz/#!qNEyVC7S!mDpzgILJdMr79gig8cIczhH7WLCTCtonXgxdAnBQjSA

md5: f72557eeb2db0a1ff8d5c5ad404a32f3
[G2 Android Development (D802)] Doublewise:
Yes, I could boot to twrp by button combination, installed flashable stock 20G I had before (you created it right?), rooted automatically by twrp, used autorec to bring back twrp after reboot and reinstall my favorite cloudy g3.

Stock 20h rom tempted me because I believe LG update everything for stability. But g3 interface, feature plus g3 tweaksbox is rock. That's way I curious to combine it with latest 20h kernel.

Btw, any idea why it got security error? The Rom must be bumped also? Sorry for dumb question.
[G2 Android Development (D802)] RaffBulgaro:
Great! Thanks man!
[G2 Android Development (D802)] 6ril1:
No real idea.

Bump! is for kernel (and recovery wich contains a kernel).

I just have bumped original 20H kernel with http://xdaforums.com/lg-g2/orig-development/tool-bump-sign-boot-images-t2950595 for trying it on my actual firmware (original 20H bootloader and others 20H boot part partitions) and it boots right. This 20H bumped kernel seems different than the original one (size and so md5 are differents). If someone want i share it, i can upload it.

I'll give a try on cloudy g2 2.2 when i find time.
[G2 Android Development (D802)] Boris31:
You dont need to bump original kernels from lg becouse they are alrdy signed by lg they will boot anyway on a new bootloader. We need bump to boot custom and modified kernels and recoverys to boot on kk bootloader.
[G2 Android Development (D802)] 6ril1:
Yes, that's what i wrote in OP q/a.

But i wanted to see if differences should exist beetween bumped and original not bumped, and i was surprised to see that they are different.

Anyway, the question was why original not bumped 20H kernel, behind 20H bootloader, and with 20H others bootstack partitions, doesn't boot on Cloudy firmware ?
[G2 Android Development (D802)] Doublewise:
May I suggest to use cloudy 2.1 instead to make sure we try with same environment. That would be nice to have 20h kernel available for any stock base custom rom.
[G2 Android Development (D802)] Boris31:
To run a stock kernel on g3 besed rom i think kernel needs some modification to boot and [MENTION=270378]Cloudyfa[/MENTION] did it so the stock kernel cant boot it without that modifications
[G2 Android Development (D802)] albsat:
May be a placebo, but this rom is really fast. Let's see how battery goes.
[G2 Android Development (D802)] witek_77:
I have stock v20H, root (ioroot), autorec (jb bootloader) and after that install in old TWRP new twrp 2.8.40 BUMPED

When i install your rom my bootloader will upgrade to KK bootloader and KK baseband ? Or I need to flash manually KK bootloader ?

I ask because last time I have boot secure error whan i flash KK bootloader at stock V20H :)
[G2 Android Development (D802)] 6ril1:
It contains 20H bootloader and 20H modem, as mentionned in OP, so, here, no need to flash kk bootloader manually.

You had a secure boot error because you needed to return to 20H originals bootstack (bootloader + others partitions => aboot,tz,sbl1,rpm,persist,laf,dbi) + originals 20H kernel with original 20H system/lib/modules.

As mentionned in OP, in Q/A, i made a zip for this situation:

It can be download here: https://www.androidfilehost.com/?fid=95916177934522374
[G2 Android Development (D802)] witek_77:
ok i flash your rom via bumped 2.8.4.0 and i have all kitkat things with stock (i try to enter recovery and its KK combination). Thanks.

Anyone try to flash another rom at KK partitions with bumped TWRP ? Like G3 roms or stock based but made for loki and JB bootloader ?
[G2 Android Development (D802)] 6ril1:
Last version of cloudyfa rom can be flashed with JB or KK bootloader (bumped kernel inside).

By example, i've installed last cloudy G2 2.2 (wich is a ported G3 rom), and it works well with KK bootloader and bumped recovery.

Don't flash a rom with a not bumped kernel, without changing the kernel by a bumped one, if you are on a KK bootloader.
[G2 Android Development (D802)] witek_77:
ok i understand. So if some ROM don't have bumped kernel, I need to flash examply dorimanx after flash rom and thats it ?
[G2 Android Development (D802)] 6ril1:
Yes for stock, and for some stock based rom (search or ask before in the rom thread for the compatibilty of the rom and dori kernel), for aosp you have [MENTION=5438598]RenderBroken[/MENTION] one too (http://xdaforums.com/lg-g2/development/kernel-render-kernel-aosp-lg-roms-t2803929)
[G2 Android Development (D802)] depth_charge:
hello

im sorry if my questions on an appropriate thread

i already install this twrp ( twrp-2.8.3.1-d802-bump-blastagator-signed.zip )

and install this ( KK-20H-D802-BOOT-LOADER.zip )

after that i got that security boot error screen with LG logo

and now im having trouble to enter recovery

i already on a prompt factory data reset

with just 2x OK's it suppose to be enter recovery right?

but after 2x OK i'm facing that security error boot again and still stuck there with that blank screen instead of (suppose to be enter recovery mode)

is there something i miss to get to the recovery?
[G2 Android Development (D802)] witek_77:
you do the same wrong thing as I do. After flash KK baseband you need to flash kernel or rom without exiting recovery. But i have working recovery and i have second chance :) The simply method is back to stock with KDZ file. I do this 2 times yesterday :)
[G2 Android Development (D802)] depth_charge:
oh i c

emm why is it hav to be 2 times back to stock with kdz flash?
[G2 Android Development (D802)] witek_77:
i screw 2 times my phone :)
[G2 Android Development (D802)] albsat:
Can you please post the kernel file? A zip one would be great for flashing it via recovery. Thnx
[G2 Android Development (D802)] 6ril1:
You're talking about original stock 20H kernel ? If yes, of course i could provide it, but it's already made by [MENTION=2376110]dorimanx[/MENTION] and can be downloaded here: http://www.dorimanx.com/LG/default-kernels/ORIGINAL-KK-20H-D802-KERNEL-KK-aboot.zip

Recapitulation reminder (i already post all of this earlier):

My zip with kk 20H bootstack + 20 H kernel: https://www.androidfilehost.com/?fid=95916177934522374

[MENTION=2376110]dorimanx[/MENTION] 20H kernel:http://www.dorimanx.com/LG/default-kernels/ORIGINAL-KK-20H-D802-KERNEL-KK-aboot.zip

[MENTION=2376110]dorimanx[/MENTION] 20H boostack:http://www.dorimanx.com/LG/default-kernels/KK-20H-D802-BOOT-LOADER.zip

Mine is the same as the two [MENTION=2376110]dorimanx[/MENTION] zip merged (a one shot flashable zip for having 20H bootstack and 20H kernel).

All of this is for bumped recovery only

.
[G2 Android Development (D802)] lambo98:
works great on my device

thank you very much!!!
[G2 Android Development (D802)] albsat:
[MENTION=2308854]6ril1[/MENTION]

Do you plan customising this rom in future? Like less LG apps, adv power menu, center clock, etc? I mean small things that would make this rom unique.
[G2 Android Development (D802)] 6ril1:
The problem is... the time ....;)

So, for now, I do not intend to touch the existing. Especially since this is what I wanted to do, stay pure stock, easily installable, both from a bootstack KK or JB, also to allow to pass easily to a bootstack KK for those who have a bumped custom recovery.

The only improvement I could do, to stay in the straitjacket, would be an Aroma installer for a few more options for those who want it.

However, the rom is prerooted and let the possibility to be personalized thereafter according to the desires of each, through rooted apps (Xposed, etc ...) or modules to flash in recovery, or other hacks .

Finally, I am waiting for a G3 bought recently.

If I keep this last one afterwards, I'm not sure I can continue to follow the news of the G2 with the same assiduity;)