yashsingh1/xdaforums huggingface dataset:
[G3 General] sithi.w:
Hi dear Topet2k12001,

May I ask you for some advice? I'm using D855, 16 GB, Lollipop v21A, and with your Imageprep V 2.6 got stuck at 'failed to capture com port'; with Imageprep exiting itself. When I started Imageprep, my phone was detected correctly, but I later saw dubious messages like 'adb server is out of date .... daemon started successfully.'; and 'daemon not running, starting it now on port 5037. daemon started successfully'. FYI: The phone was automatically rebooted according to your script, but Imageprep exited itself due to 'fail to capture com port' as noted earlier. I checked the com port for the phone by booting the phone into download mode (the phone screen said Download Mode. Updating firmware, 0%, Don't disconnect USB), and check under Windows 10 Device Manager (Ports and Com), it said COM 4). My computer is a Samsung Tablet with detachable keyboard. I connected the phone to the full-sized USB port on the Tablet.

I have attached 2 screenshots herewith:

Remarks:

1) Can I use other rooting method, such as Kingroot (APK, or Windows version) for rooting, and later use Imageprip for (bumped) TWRP? (I intend to go for a Nougat or Oreo custom rom finally)

2) I understand that I can use your Google Drive images (aboot, laf, Twrp) for the process. If it succeeds, will I lose the Download Mode? If so, can I restore it as you suggested in post#5, Troubleshooting and Q&A, "There is an easy way to do this. XDA member [MENTION=2308854]6ril1[/MENTION] created a TWRP-flashable zip file to automate it."?

Thank you very much.

Best Regards
[G3 General] p4nts:
Afraid this killed my factory supplied D855 refurb. No boot screen, no LEDs. Messaged OP at start of December, but there was no response.
[G3 General] sithi.w:
Imageprep said TWRP successful, but boot into stock recovery

Hi;

Anyone has some suggestion, please?

In post #920 I asked for some advice about Imageprep's failure to root my LG G3 D855 (Lollipop V21a) because of its failure to capture COM port. However, with Topet2k12001's kind suggestion in post #787, I finally succeeded in rooting my phone using 'https://xdaforums.com/lg-g3/general/guide-root-method-lg-devices-t3129197' by digital-bug (https://xdaforums.com/lg-g3/general/guide-root-method-lg-devices-t3129197). I then continued to use Imageprep to downgrade aboot, laf, and install TWRP; all of which were reported by Imageprep as successful (as evident from the image I posted at https://imgur.com/a/ktbFz). The phone even automatically rebooted (must be via Imageprep's script) into recovery; but instead of being TWRP, it still was merely the LG stock recovery.

Some advice, please?

Remarks:

My Phone: LG G3 D855, 2 GB RAM, 16 GB ROM; Lollipop Version: 5.0; Software Version: V21a-ESA-XX; Kernel Version: 3.4.0.

1) As also mentioned by Topet2k12001 in his post #787, I'm interested in using jac10000's method '[D855] [GUIDE] One Click ROOT+TWRP Recovery for Lollipop Stock Firmware [20H/20P/20G]' at https://xdaforums.com/lg-g3/general/d855-one-click-root-twrp-recovery-t3072767. The reason is that his script looks like that of digital-bug that succeeded in rooting my phone (when serial port cannot be found, digital-bug's script will pause at 'waiting for device', with instruction for user to put the phone into download mode by disconnecting the USB cable and turning off the phone. Then press and hold the volume up and reinsert the USB cable). However, digital-bug does only offer rooting but lacks TWRP nor kitkat stack bootloader in the script, whereas jac10000's script also offers the missing options.

Still, I have some concerns. As far as I observed from jac10000's post; 20H, 20P, and 20G each use different file. Moreover, there is an additional kernel fix file for each 20P, and 20G. Since my phone is 21a, I am not sure is it advisable to try to use jac10000 method? Any expert opinion? If it is expected to be 'reasonably' safe (the probability of unrecoverable hard brick is reasonably low), I'm willing to take the risk.

2) How about AutoRec, as suggested by jac10000 himself? Although, I don't think AutoRec is still available in Play Store, there are quite a few sites that still host it. However, to my knowledge, there are 2 versions of AutoRec for D855 (Lollipop); and I believe that only the older version can be found presently. Anyway, even if the newer version can be located, I'm not sure it will be so up-to-date as to cover Lollipop 21a. Anyone has some suggestion?

Thanks

Best Regards

The following has been added by editing:

Jusf for my curiosity, I just observed that jac10000's method push boot.img to the phone and flash the file (in addition to aboot.img, laf.img, and recovery.img), why Topet2k12001's method does nothing about boot.img?
[G3 General] Suncatcher16:
Thank you all, guys, who created this tool! You saved my life with this certificate error!:)

After applying Sharpening Script Mod my phone has booted. Can you kindly explain what is the cause of this error and what this mod do?

I got such a (mis)conception that it changes screen sharpness only))
[G3 General] rk2612:
Ever heard of Bump!?

Instead of a signed boot image, LG G3 boot images had a set of characters appended to them and this served as verification for the locked bootloader. SharpeningMod script does what it says but in order to do that it has to unpack and repack the boot image. After repacking, it needs to append these set of characters to the repacked boot image. The developer who discovered this verification process called it Bump! Every time you unpack and repack a boot image for LG G3, you need to do this. This weakness was patched in LP/MM release and to exploit this, you need to have a bootloader from KK, I think.
[G3 General] Suncatcher16:
Thanks for info. Interesting, but I run MM and my bootloader is probably MM too, so it's not gonna work for me.
[G3 General] rk2612:
Should be possible to downgrade to KK bootloader and then upgrade to MM by flashing only the system and boot partitions (...and not the full kdz). Refer some guides here on the forums for how to extract partitions from kdz files. For MM (...not for LP, I think), you'll need to upgrade the modems as well.
[G3 General] wrwolf2:
RESOLVED

QUOTE: " [ANNOUNCEMENT][SCRIPT] Imageprep: One-click solution for TWRP and BUMP v 1.5

Hi Friends,

New version 1.5! Please visit Post #1 "

Please note: POST #153 isn't accurate and no longer updated . we may still want to use deprecated method with imageprep vers. 1.5 , when doing all the works on LG G3 ( for instance when no windows PC is avail. )

UPDATE : to resolve the problem when custom recovery ( i.e: TWRP ) not booting amid boot certificate error or "Secure boot " error; to install/flash TWRP ( custom recovery ) on your rooted handset ( LG G3 ).

ADD/INSTALL autorec for your LG G3 model and according to android version ( e.g: https://apkpure.com/d855-lg-g3-autorec-lollipop/b007.autorecd855. )

RUN AutoRec app and TAP appropriate option then every problem will be sorted , LG G3 will now reboot into custom recovery correctly ( when rooted and after ADDing flashify app or TWRP official app from play store, RUN either app and SELECT reboot into recovery )
[G3 General] gheyghey:
im trying to use google but fail to find

aboot.img for d852 kitkat

if someone could help out that would be much appreciated
[G3 General] leos0000:
Flash back 4.4.2.. Like me i going flash back kit kat via lg flashtool

---------- Post added at 12:47 AM ---------- Previous post was at 12:46 AM ----------

Flash back kit kat and easy root install twrp all stuff
[G3 General] gheyghey:
i am trying to do what you did exactly but i am missing the

aboot.img

d852

kitkat

i am stuck on the last step trying to find it. i guess i should have made sure to have it before i started.

as a side note is there any way to reverse this since im half way through and dont think i will find this file.
[G3 General] ryanzurlo88:
do you have a d852 kdz file that you extracted?
[G3 General] zurny:
Hi topet2k12001,

I think there's an error in the 1st step of the Flash the kitkat aboot.img section. The 1st command backs up your stock aboot.img to /sdcard/aboot.img witch will in fact overwrite the stock kitkat version waiting to be copied by the third step. What I did to correct it is give the backup a different name on the first step, for example aboot_backup.img. You could also just give your kitkat aboot.img another name but if the users simply follow the guide blindly, they will in fact, copy the stock lollipop aboot to sdcard and then copy the same one back instead of the intended kitkat aboot. Otherwise the guide works perfectly, I have tested it from scratch by fully flashing the stock Lollipop KDZ, then rooting with this guide and adding TWRP with your guide.

Was that clear?

So I suggest replacing the 1st line with:

dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/sdcard/aboot_backup.img (this makes a backup to your Internal Storage)

I thought I would share the files I used for your guide, I have the D852G (Videotron). I will not be held responsable for any problems caused by these files.

kitkat-stock-aboot.img (rename it to aboot.img)

lollipop-bumped-boot.img

twrp-2.8.5.1_d852-bumped.img (I use the D852 recovery instead of the D852G, cause D852 Roms work perfectly on the D852G variant, and there are no D852G ROMS!

Thanks
[G3 General] zinou213:
Why Bump boot.img ????

Before all, thank you for this hard time eating work, i think that it takes a you long, i am a fan of my G3 too, and i am not a developper, and i dont understand why you dont let boot.img as it is (recovery is for signing non lg recovery but the boot.img or kernel is already signed ??? if no please correct my thinks), and dont use the bump python script or the windows tool that we can find in xda ??? thank you so much "sorry for poor english"
[G3 General] topet2k12001:
Hi @zurny,

This proves that you are reading how-to guides carefully. Thanks. :)

The commands I wrote are actually correct, because it was written primarily to target D858HK users, and that if they follow the guide to the letter, they will end up downloading my uploaded Kitkat aboot.img, which was already renamed (to prevent overwriting).

But I do get your point in the sense that owners of other LG G3 variants might not rename their Kitkat aboot.img - which will indeed overwrite it with the Lollipop version if they follow my commands "as-is".

I'll just edit/add or explicitly mention that they should rename their extracted Kitkat aboot.img before they follow the commands. This is my short-term solution.

For a long-term solution, I am working on a surprise for everyone (cross your fingers). But it will be a good one. :)

Oh...thanks as well for extracting and sharing your Kitkat aboot.img, TWRP for your LG G3 variant, and the Lollipop "bump'd" boot.img. I was thinking of collecting that from other users and adding a section to the First Post.

EDIT: I have changed the commands according to your suggestion. Also added you to the "credits" section. :)

HI @zinou213,

Thanks for appreciating. :)

Please go to the very First Post of this thread (Page #1); it already has the explanation and answer to your question. :)
[G3 General] Sipi1302:
Now you have to rename aboot.bin to aboot.img. If you using windows chek is it in folders options enabled show file extension because if is not you will just rename the name of the file but not the extention as we'll.
[G3 General] DE52:
Lucky you, [MENTION=4646677]zurny[/MENTION] posted the files you need! Check post #85! Or here's the link if you're too lazy to go back to it lol: http://xdaforums.com/showpost.php?p=59381937&postcount=85
[G3 General] gheyghey:
I wish it was that easy. I loaded his about.IMG and I got twrp loaded. Installed the sharpening tool. Set it to zero. Made sure not to restart from there. Used twrp to reboot system

Phone restarts but goes directly into fast boot mode

I battery pull and try again. Instant fast boot mode again

Now I'm trying to use twrp terminal to overwrite about.IMG back to my back up copy
[G3 General] DE52:
TWRP can actually install .img files directly. Check by pressing install and there should be an option to toggle it at the bottom of the screen. Also, if your backup is not on your phone, check if MTP is working. As for booting straight to fastboot, if my memory serves me right, there's actually a thread on that somewhere in the G3 forums. It may be under G3 android development...
[G3 General] sonictwins:
I made a mistake in the last step, I forgot to uncheck the square. I have no root, no TWRP ... can I repeat the procedure ... downgrade, root, TWRP, ...?
[G3 General] gheyghey:
thank you so much, finally figured it out

confirmed worked

d852 bell

here are the files

https://mega.co.nz/#!s8sSXLqZ!3kK-Kin24mkKMMQZBOSf8AJKPVDYQAQWwJrixukapX4

aboot.img (from lgd852 bell tot android 4.2.2)

boot.img (from user in canadian forum. its already bumped lollipop image)

openrecovery2.8.4.0 (you can use whatever other bumped version you want it works with mine)

one issue i had with the how to was regarding the KDZ files. In my case the TOT since the KDZ doesnt exist for canadian version. all i needed it for was the aboot.img for kitkat. (also I would not recommend using the aboot.img from d852g as I did and got bootlooped).

so for anyone who doesn't have the aboot.img all you need are two things.

first go here and find your kdz (or tot) file.

http://storagecow.eu/index.php?dir=Xda/LG+G3/Stock/

second go here and get tool for kdz extraction.

http://xdaforums.com/showthread.php?t=2600575

it works im happy

and I have it my way

stock ota lollipop > root > twrp+bump

ps. to fix the bootloop i used lg mobile support tool and reloaded the stock os which overwrote my recovery and boot partition so it started up fine.

disclaimer: if you do anything that I mention above your phone will start on fire and burn your house down. do not do anything i say
[G3 General] 6ril1:
Hi,

for those who have downgraded their aboot to kitkat for installing bumped TWRP + bumped kernel, does your download mode goes on working ?

Because on the D855 it seems it's not the case (download mode broken). Maybe the bootsatck ( other partitions needed, as i suggested, tz,rpm,sbl1) ? With a downgraded laf, it doesn't work too.
[G3 General] GUZGUN:
First of all a big thank you to all the people that helped me to install TWRP and especially topet2k12001 for his great guide. i have a D855 32gb and TWRP is working great.

The files that i used are here for anyone has D855 together with the guide of topet2k12001 .
[G3 General] 6ril1:
Does your download mode work now ?
[G3 General] smirdex1:
i really thank you for answer my questions...really

but your training have so many step and if i wrong one step maybe my device not boot Properly...Do not you?

so I beg you showe me one way to update my d858hk from OTA that is easy and no need other hack or boot softwares

you read my problem...i again say it below and very sorry for that i say it again and thank you a lot...

hi..i have lg g3 d858hk

few days ago i got v20c update in my update center with OTA,but i didnt update...i cancel it...i didnt select upgrade botton...yesterday i decide to update again with OTA but over again i cancel it and did not push upgrade botton...today i want to update with OTA but there is no update in OTA!!!

it say you are updated to lasted os...my os is kitkat 4.4.2......what happeneed?

i want update with ota OR LG MOBILE SUPPORT TOOL...you know lg not publish pc suite for this model yet

if i update with LG MOBILE SUPPORT TOOL ,its Difference with ota changes? or both of them are same?

size of ota was 566 mb but the size of lg mobile support tool update was 1126 mb..

thank you so much to guide me...i beg you
[G3 General] 6ril1:
I repaired my download mode by flashing in recovery kk bootstack, as expecting... dbi,laf,persist,rpm,sbl1,tz

I made a flashable zip for those who want it on the D855:

flashable zip that contains KK D85510L KK bootstack (dbi,laf,persist,rpm,sbl1,tz),

md5:f4c49f3eceb015dfb44175b3e5a72241

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

Owners of other model than D855, you can use this zip if you replace the bin (img) it contains, with the files (dbi,laf,persist,rpm,sbl1,tz) for you modele

In my humble opinion, the best way for now to proceed for having a custom recovery on a G3 in LP version, not rooted:

1) rooted it with the new hack

2) install a custom recovery and downgrade the aboot with dd command (adb in PC or terminal emulator in phone)

3) reboot into the custom recovery and flash a zip that contains KK bootstack + LP Bumped kernel

This waiting for someone making a one-click solution as AUTOREC for G2: http://xdaforums.com/showthread.php?t=2715496
[G3 General] jac10000:
Work fine :good::laugh::fingers-crossed:

Thank's a lot for repairing my download !!!
[G3 General] topet2k12001:
Hi [MENTION=2550923]sonictwins[/MENTION],

Yes, you can repeat the procedure.

Guys, those with D855 please provide feedback. Much appreciated.

Hi [MENTION=6491130]smirdex1[/MENTION],

It is possible to NOT get an OTA update anymore. This happens with other LG G3 variants too. Unfortunately I do not have a way to get you to receive that OTA again. For some users, even if they have the same variants (but are located in different areas around the world), they wouldn't receive an OTA update. Some receive the OTA late.

That is why there are a lot of threads that offer alternative ways to upgrade to Android Lollipop. I'm sure that many other users, like you, prefer not to do things the complicated way...but to them it is the only option left.

Hi 6ril,

Something is coming. :)

Although I request everyone to please be patient, because I'm totally a "zero-experience" person when it comes to programming/scripting. It will be my first attempt at it, so I hope everyone understands.

Also thank you for covering in my absence. I've been busy at work yesterday and today. And tomorrow I need to take care of my son's graduation, so please expect me to have less time online tomorrow.
[G3 General] 6ril1:
Others, too, because, because it would be very annoying if they lost their download mode.

Yours works ?
[G3 General] smirdex1:
OTA problem

thank you so much...

just one question

if i update with lg mobile support tools what happened to my lg?updated like ota update?after update factory reset will run and erase my data?i backup my files...

when i click start upgrade in this program first its start download frimwaire...

plz answer and i start update tonight...tnx
[G3 General] jojobans:
hii

plz help

i flash lollipop-bumped-boot on stock 20i by app flashify but reboot my phone got fastboot ,can't go to download mode

lollipop-bumped-boot link mega is for d855 but I was wrong

What to do؟؟

http://xdaforums.com/showpost.php?p=59353788&postcount=41
[G3 General] topet2k12001:
Hi @6ril1,

EDIT: Confirmed. Everyone: after following the "No Downgrade" Approach, you will lose "Download Mode". You need to also extract and flash Kitkat versions of the following:

rpm.img

tz.img

sbl1.img

How-to guide will be updated.

Those who followed the "Kitkat Downgrade" approach do not need to to this, because obviously you are already running Kitkat versions of the said Images.

Hi @smirdex1,

Yes, it's like an OTA update. That is what I have been saying all along.

Yes, please back up your files because all your data will be erased.

Hi @Jojoban,

Hm...firmware version 20i...are you a D855 user?

I can't check the thread you linked...I think the link you provided is broken.
[G3 General] 6ril1:
I'm talking about download mode. Please, how can you confirm this works for other, i didn't see post about that ?

Where can we read download mode works for D855 user ?

We are two D855 users which have lost download mode by downgrading just aboot, and for the moment this is the only return that i can read.
[G3 General] topet2k12001:
Download Mode Needs Kitkat sbl1.img, rpm.img, and tz.img

Hi @6ril1,

EDIT:

You are correct. :) Apparently my Download Mode does not push through. I got the "Certification Verify" problem.

I will update the thread to add this step for those who follow the "No Downgrade" approach. Thanks!

EDIT AGAIN:

I remember now why my "Download Mode" still works. It is because I used the "Kitkat Downgrade" approach (therefore, my Boot Stack was in Kitkat version). When I used the "No Downgrade" approach, that's when we will lose the "Download Mode" because the Boot Stack is Lollipop version.
[G3 General] GUZGUN:
download mode working again. thank you thank you.
[G3 General] 6ril1:
Thank you very much for your return. So you confirm it didn't work before you flash my zip ?
[G3 General] jojobans:
hi:crying:

yes i have d855 but file lollipop-bumped-boot is d858 then flash by apk flashify my phone go fastboot and can not go downloadmod

this

http://xdaforums.com/showpost.php?p=59353788&postcount=41
[G3 General] GUZGUN:
yes i confirmed. Before no, now yes. thanks again.
[G3 General] hlucky:
Hi guys,

Is this problem with no download mode only happened for 855 or for other versions too? Somebody please check...

Luc
[G3 General] 6ril1:
Yes when we make lot of manipulation, it's hard to remember all that we did.

And you give lot of effort for your thread, so no problem.

I think you should inform users of this concern, and offer to those who have already proceed with only aboot, my zip in which they can be replaced files by the bootstack of their model.

---------- Post added at 10:12 PM ---------- Previous post was at 09:55 PM ----------

I've flashed dbi,laf,persist,rpm,sbl1,tz for my part

Someone have test with only the three files mentioned on this quote ?

I made a flashable zip to easily repair this (more easy than dd for each)

http://xdaforums.com/showpost.php?p=59395754&postcount=98
[G3 General] topet2k12001:
Hi [MENTION=2308854]6ril1[/MENTION],

Yup, thanks. :)

I updated the steps for "No Downgrade" approach and also updated the "Troubleshooting and Q&A" sections for this. I put your download link for the flashable zip in the Troubleshooting and Q&A section.
[G3 General] 6ril1:
You mentioned just three files( sbl1.img, rpm.img, and tz.img) instead of six (dbi,laf,persist,rpm,sbl1,tz).

Have you tested with these only three files or it's an oversight ?
[G3 General] topet2k12001:
No, I wasn't done editing it yet. :) Please check again. I don't have time to test today because as I mentioned, today is my son's graduation day and I also have a lot of work in the office. I just happened to check online today (I really wasn't supposed to go online).
[G3 General] topet2k12001:
Important announcement

Hi Friends,

Those who have followed the "No Downgrade" approach from the how-to guide:

Try to boot into "Download Mode".

Most likely, you will get a "certificate verify" error.

But you can still boot to TWRP and regular Android System/OS.

Explanation:

Aside from aboot.img, there are other "components" that will also "check" for a matching signature (similar to the explanation in the First Post of this thread) of the boot.img.

These "components" are what we collectively call as the Android "Boot Stack".

Therefore, you need to also extract "Kitkat versions" of these files and flash them to the device.

There is a "Kitkat Bootstack" zip file (you can flash via TWRP) made by [MENTION=2308854]6ril1[/MENTION] to help make this process easier. Please check the "Troubleshooting and Q&A" section of this thread for details.

Here are the names of those files (you can extract them via the KDZ and TOT Extractor Tool):

persist.img

laf.img

dbi.img

sbl1.img

tz.img

rpm.img

Those who followed the "Kitkad Downgrade" approach do not need to do this anymore. This is because their "Boot Stack" is already running on Kitkat version.

Those who followed the "No Downgrade" approach up to before this announcement will need to apply this fix too.
[G3 General] zurny:
Indeed my download mode was broken too, I would have flashed the whole KK KDZ if I hadn't known how to fix it.

Here's the d852g version of 6ril1 flashable .zip file:

kk_bootstack_d852g_by_zurny.zip and here's a mirror for those having problems with mega.

I only replaced the .bin files in 6ril1's version, I didn't edit the script so it will say d855 when you flash it but don't worry, it works.

Cheers!