yashsingh1/xdaforums huggingface dataset:
[G3 General] clementqc0:
Hi,

I am new to LG from HTC. Now my G3 is on Lollipop via OTA (20H_TWN), and I have been looking for ways to root it, install TWRP and flash other custom ROMs.

I (think I) have tried to go through the whole thread, but still not sure if my phone is in the appropriate state to be thrown into the procedure in OP. Do I need to downgrade it to KK first?

Besides, do I still need to extract the KDZ or TOT files separately, or I can simply download them from the Google Drive (I presume I should choose the "D855" one?)? If I am to reply myself, I see from the video tutorial that the files there will do, but I just wish to confirm.

Many thanks for your advices!
[G3 General] tommy2601:
Hi topet，

I am already rooted and running 20d lp veesion on my lg g3 858hk,whats the best method to install TWRP.thank you.
[G3 General] topet2k12001:
Hi [MENTION=6759436]clementqc0[/MENTION],

Thanks so much for reading. I would have done the same if I were a new owner of a device (and gadgets nowadays carry a premium price!). Well done!

Rooting only: no need to downgrade to Kitkat, no need to extract "image files" from KDZ/TOT firmwares.

TWRP installation: yes, you need to extract Kitkat version "image files" (aboot.img and laf.img). You can acquire these via extraction (via the KDZ/TOT Extractor Tool), or you can download a copy from my Google Drive. However, I always recommend users to extract from their own copy of their firmware (KDZ or TOT format) via the KDZ/TOT Extractor Tool. The reason is that there are way too many variants/models of the LG G3 worldwide, and I cannot guarantee that those that are in my Google Drive are the ones for you. I just put it there as an option for those who are willing to try it.

The D855 is the "international" variant, but I have seen that there are more "sub-variants" of the D855 popping up recently: D855 (TWN), D855P to name a few. Please check your unit carefully via the box (it should be written there).

Hi @tommy2601,

Since the video tutorial that I have uploaded is done using the LG G3 D858HK as well (we have the same LG G3 model/variant), in ImageprepGUI you can choose to "download the Image files" option. This will download the following from my Google Drive:

1. aboot.img (the "Android Bootloader" which boots the device to Android OS)

2. laf.img (responsible for "Download Mode")

For the TWRP part, you can also choose to "download your copy of TWRP custom recovery (recovery.img)". This will download a copy of an already "bump'd" TWRP Custom Recovery (recovery.img) from my Google Drive as well.
[G3 General] vassagout:
Hi Guys, Just want to tell you I succesfully bumped my G3 (D855p) using the imageprepGUI v2.5. I used the files shared in Google Drive (aboot, laf and recovery). Since I had already rooted my V20H stock lollipop rom I chose " Only bump.d " option in the GUI. Everythinig was OK, the only issue I found is I had to copy the sharpenning mod script to my sdcard manually because it wasn' t copied by the GUI. The only question I have is , what is the best or recommended value to apply in the sharpenning mod?

thank you very much [MENTION=5231281]topet2k12001[/MENTION] , the GUI worked flawless.

regards
[G3 General] topet2k12001:
Hi @vassagout,

Great to hear you got it working. Congrats!

For the Sharpening Script Mod not copying to the "/sdcard": by "/sdcard" I just wanted to clarify that "/sdcard" pertains to the Internal Storage of the device (and not the MicroSD...in Android, the MicroSD is "/ext_sdcard"). I have tested numerous times and so far, the Sharpening Script Mod is copying properly to my device. But I'll consider maybe "pushing" (copying) the file elsewhere (maybe for some LG G3 models/variants, the "/sdcard" is not "writeable" during the rooting process...but in your case, since you are already rooted prior, it should have been copied).

For the value to be selected:

higher = closer to "stock" values (40 is the highest which is the same as the "default" sharpness of the LG G3 out of the box)

lower = reduces "sharpening" (0 is like turning off the sharpening completely)

I always use zero (0). Some users are comfortable with how the LG G3 already is, so they choose 40. I honestly don't see a point in setting a value in between 40 and 0 since my eyes couldn't tell the difference, so it's either 40 or 0 for me (again, that's for me).

EDIT: I know the reason now. The "pushing" of Sharpening Script Mod happens during the rooting phase. I'll just move (or duplicate) that step over to the TWRP phase of the process, so that regardless of selected option (root only, TWRP only) users will have the Sharpening Script Mod pushed to their devices.
[G3 General] tommy2601:
[MENTION=891586]topet[/MENTION]2k，thank you very much，actually i was bit inpatient so while serching i sumbled upon atorec theread folled the instructions there and now i am rooted+twrp+xposed+g3tweakbox.

With person like you who is helping and knowledgeable around noobs likes feel confident expirementing with our devices.thank you.
[G3 General] topet2k12001:
Hi @tommy2601,

No worries. AutoRec and Imageprep are practically the same; the only difference is that with AutoRec, you can install TWRP without the need for a computer (actually, the older versions of Imageprep - version 1.5 and/or older - does the same thing except without a GUI). ;)

What's important is that you got your device set up the way you want. :)

Oh don't worry. I'm a noob just like most of you. Imageprep is the very first "program" I have ever written.
[G3 General] clementqc0:
HI [MENTION=5231281]topet2k12001[/MENTION],

Many thanks for your explanation, I will work on the Extractor Tool first. Will still look for your advice in due course.
[G3 General] ElBeaner:
I'm about to embark on putting twrp and root a new LG G3 D850. My friend got one and he wants all the same things I have. All my modding I did was back when I was still on Kit Kat so doing all this on Lollipop is new for me.

The question I have is will I have to downgrade him to KK in order to install bump'd twrp or is that done while on Lollipop?
[G3 General] topet2k12001:
Hi [MENTION=4509495]nest75068[/MENTION],

No need to downgrade. :) Allow me to explain:

ImageprepGUI takes a "partial" downgrade approach, in short terms. What it does is to take two (2) image files (aboot.img and laf.img) from a Kitkat firmware for your specific LG G3 model/variant and flashes these accordingly to your device.

The reason why it has to be done like so, is because to get TWRP to work, another image file (boot.img a.k.a. the "kernel" in colloquial terms) is "patched" (a.k.a. "bump'd") using a digital signature/key. Apparently, that key is a Kitkat version key. ImageprepGUI has the ability to do this patching process.

Once the boot.img is patched/signed with a Kitkat key (hence the signature of boot.img and that of TWRP are a match), it then "inspects" the digital signature/key of the aboot.img and laf.img. That's why those two image files are extracted from a Kitkat firmware. If the keys don't match, the device doesn't boot (a "security feature", if you may).
[G3 General] ElBeaner:
OK that's much simpler than I thought it would be. So start to finish to install twrp, bump, root shouldn't be that long.

Thanks for the quick reply.
[G3 General] topet2k12001:
Hi [MENTION=4509495]nest75068[/MENTION],

No problem. :)

REMEMBER: TWRP installation is done on a rooted device, so it means rooting has to go first!
[G3 General] ElBeaner:
OK so run root first, then do the twrp. Got it thanks. Will give it a go once I get over to his place this week
[G3 General] topet2k12001:
Hi @nest75068,

Correct. Although if you are already rooted, you can skip that step (I added the feature of skipping that step in version 2.5). So here's the order, just to be clear (and I'm not going to be online often this week due to work):

At the first screen with selections (radio buttons):

1. Acquire aboot.img and laf.img: you can choose to...

a. download from my Google Drive, or

b. have the full KDZ or TOT firmware handy and let ImageprepGUI extract them for you, or

c. manually run the KDZ and TOT Extractor tool and manually extract them

IMPORTANT: DO NOT SKIP THIS STEP IF YOU'RE GOING TO INSTALL TWRP. YOU MUST MAKE A SELECTION. SKIPPING THIS STEP IS OKAY IF YOU ARE ONLY ROOTING THE DEVICE.

2. Acquire "Bump'd" TWRP (recovery.img): you can choose to...

a. download from my Google Drive, or

b. have your own "bump'd" TWRP (recovery.img) handy

IMPORTANT: DO NOT SKIP THIS STEP IF YOU'RE GOING TO INSTALL TWRP. YOU MUST MAKE A SELECTION. SKIPPING THIS STEP IS OKAY IF YOU ARE ONLY ROOTING THE DEVICE.

At the next page:

1. You can choose to...

a. root ONLY (there are 2 methods available), or

b. skip rooting (if you are already rooted prior) and then proceed to TWRP installation, or

c. root+install TWRP in one go (there are 2 methods available, since there are 2 ways to root)

EDIT: First Post (First Page) of this thread updated to include the instructions written above.
[G3 General] ElBeaner:
So we tried to install root and twrp. It pushes the files, it reboots, and that's where an error comes up. Going through the information we see ADB.exe is still running and it says to close it so we do.

Then we hit ok and it says no su no su and then rebooting to twrp but it reboots to stock recovery as if nothing happened. We downloaded a root checker and there was no root.

not sure what is going on and why it won't root, install twrp
[G3 General] topet2k12001:
Hi @nest75068,

Thanks for the feedback, but I will need more information so that I can help. There have been users who were successful at using ImageprepGUI, so we might want to double-check the steps taken. As there is not much information that I can go by, I'll just give some tips instead:

1. What is the LG G3 model/variant? If you opt to download Image files from my Google Drive (via the ImageprepGUI itself), please double-check that the correct LG G3 variant/model has been selected.

2. Also to eliminate any existing/external variables, please try to fully reflash the device (e.g. "back-to-stock") so that we can see what went wrong (make sure to back up all important files first!).

3. There is a video tutorial at the First Post (First Page) of this thread. You can simply "copy" each step from the video. The video tutorial was made using the D858HK but overall the steps are the same (you just need

to select your specific LG G3 model for situations where you want to download the Image Files). You may want to try it out first.

4. With newer versions of Android Lollipop firmware, there will be some versions that may not work with the original (script-approach) rooting method. Fellow XDA member @digital-bug shared a new approach (direct-approach), so you may want to try it as well. ImageprepGUI already has the two rooting methods included for user selection.

5. If rooting AND installing TWRP, please be careful with selecting the proper option (on the second page/screen of ImageprepGUI). Some users inadvertently chose ONLY installation of TWRP (and may not have noticed it). Based on your description of the problem, that's what usually happens when ONLY installation of TWRP is selected while the device has not been rooted prior. Those who choose to ONLY install TWRP assumes that they are rooted prior, and this selection will not push the files needed for root; only TWRP.
[G3 General] ElBeaner:
We figured it out. We were having a port com issue with the pc we were using. Switched to another laptop and got it to root the phone but twrp still didn't work so we used autoprimes AT&T how to on I stalling bump'd twrp. Got the phone up and running, next up is xposed framework, flashing the LG fix and then getting tweaks box.

Thanks for the help on all this.
[G3 General] topet2k12001:
Glad to know that. :)

Yup there is manual way of doing it. I learned everything from [MENTION=2684188]autoprime[/MENTION] as well. I Jist sort of automated the manual commands learned from him.
[G3 General] suk.saraan:
. aza
[G3 General] siedkins:
Quick message - what version of TWRP is bumped and on your G-Drive downloads? I've just got a D855 H20 and I'm about to use your app and I've seen that there's a new version just been released https://twrp.me/site/update/2015/06/22/twrp-2.8.7.0-released.html

I'm not expecting for you to have updated to it already but I just wanted to confirm what version you were using and if there was a particular reason for using that version?

Cheers,

Si
[G3 General] topet2k12001:
ImageprepGUI v2.6 Released

Hi Friends,

I'm releasing an update (version 2.6).

What's new:

1. FIXED: COM Port not detected properly

2. FIXED: BusyBox and Sharpening Script Mod not getting pushed if user selects to ONLY install TWRP

As always, please visit the First Post of this thread for the download link. Video tutorial is also completed (First Post of this thread as well).

Thank you!
[G3 General] ygou2:
"Secure Boot error" and "Boot certification verify" showing while turning on my LG G3

Hi good fellows at XDA,

I tried rooting and installing CM12 on my LG G3 with Lollipop. But somewhere during the process something has gone wrong (I might have mixed up some files or something), and my phone is now bricked.

All i get now on turning on the phone is "Secure boot error" , "Cause: Boot certification verify" while turning on my phone.

I couldn't get into recovery mode, nor could I flash anything from my PC (PC does not recognise device). Is there anything that you could give as inputs so I can get this unbricked.

I am still a newbie and your help with this is much appreciated.
[G3 General] bender_007:
Try entering recovery (look up key combo)

Poslano sa mog LG-D802 koristeći Tapatalk
[G3 General] jonathan_k:
Waiting for device...

Device detected.

List of devices attached

LGD855b7116070	device

Pushing files...

Android Kitkat aboot.img...done.

Android Kitkat laf.img...done.

TWRP Custom Recovery recovery.img...done.

ImageprepGUI Script...done.

Bump Script for recovery.img...done.

Bump files...done.

Sharpening Mod Script by Skin1980...done.Busybox...done.Setting permissions.../system/bin/sh: su: not found

/system/bin/sh: su: not found

/system/bin/sh: su: not found

/system/bin/sh: su: not found

/system/bin/sh: su: not found

...done.

/system/bin/sh: su: not found

Your LG G3 now has "bump'd" boot.img and "bump'd" TWRP custom recovery. Congratulations!

Testing TWRP. Booting to TWRP Custom Recovery...

Keep getting this one. how to fix?
[G3 General] topet2k12001:
Hi [MENTION=4854351]jonathan_k[/MENTION],

Are you rooted prior? It appears that you selected the option to ONLY install TWRP. Users can only select that option if they have already rooted their LG G3 beforehand.

Basically, ImageprepGUI is "complaining" that your LG G3 is not yet rooted.

There's a video tutorial at the First Post (First Page) of the thread. You can also download a copy of the video tutorial from my Google Drive.
[G3 General] jonathan_k:
Hi

no, my phone is not rooted. I tried both method. manually download and auto download the img files. both ended up same results
[G3 General] topet2k12001:
Hi @jonathan_k,

EDIT (deleted previous post):

TWRP installation requires that the device is rooted beforehand. :) If you want an end-to-end guide (rooting + TWRP installation), please watch/download the video tutorial at the First Post (First Page) of this thread.

That said: although it is common knowledge that the device must be rooted beforehand when installing a custom recovery (i.e. TWRP) I will make a minor edit to ImageprepGUI to explicitly mention it.

The method of acquiring the .img files doesn't have an impact to the success/failure of rooting and/or installation of TWRP, by the way. It's just that some users already have their own copy of the needed .img files while others do not have them yet. And for others who don't have them yet, there is an option for them to either download a copy from my Google Drive, or to manually extract from their own firmware file (KDZ or TOT).
[G3 General] stainmaker:
Hi,

I'm trying to root and bump my Australian (OPTUS) 16gb D855 with this method and it won't reboot the phone to download mode.

The phone is running on a fresh Android 5.0 software version v20h. No sim card installed and no sdcard installed.

Both root methods available in imageprepGUIv2.6 are able to push the files and reboot the phone normally however when the DOS box appears and says that the phone is now going into download mode nothing actually happens on the phone... yet the script continues, fails in the process yet still says the root was successful and tries to continue on with the twrp install.

Any help would be appreciated!

Thanks
[G3 General] winxuser:
There is an app in the play store which does it all for you.. I will have a look for ya
[G3 General] winxuser:
Use this if you have root
[G3 General] stainmaker:
Thanks, I am aware such apps exist, but my phone isn't Rooted... Which is why I'm doing this :)
[G3 General] stainmaker:
Never mind. I was able to root the phone first with the LG One Click Root program and then simply flash the TWRP recovery via this guide after that. Phone is now on CM12.1 and working sweet.
[G3 General] topet2k12001:
Hi [MENTION=6816402]stainmaker[/MENTION],

Sorry for the delay in response.

I am interested to know more about the failed root attempt. If you can get me more information I would appreciate that. In any case I'm glad you got it to work. :)
[G3 General] stainmaker:
What extra info would you like? I'll grab anything I'm able to.

Was running from a Windows7 PC, standard LG USB drivers, was a random non genuine microUSB cable.

Phone was fresh back from LG after I bricked it (lol, warranty) so was a perfectly clean untouched install of the stock Lollipop ROM.

I grabbed all the files from your Google Drive and selected "I have my own" in the program. I also tried letting the program download the correct ones for my phone.

Every attempt detected the phone, pushed the files, rebooted, etc fine. But when it attempted to reboot the phone to Download mode nothing happened yet the script continued in the DOS window.

I was able to manually go to download mode by holding the volume up button and inserting the microUSB cable... but I did not want to risk doing that while the script was waiting for the reboot to happen in case I wasn't able to do it fast enough.

However when using the LG One Click Root program it successfully remotely rebooted the phone to Download mode and rooted without a problem.
[G3 General] siedkins:
Hi,

Not sure if this is the right place to post but it seems that an OTA has been auto-installed by my G3 (even though I'd always said no to installing any updates) which has broken my root.

Can I ask if it is safe to re-run the rooting process? Should I just run that first and see if it fixes it? Will I have to re-install TWRP or will that stay? Or should I run the app as one install then the next. My phone does still seem to be on V20H-EUR-XX which is what I thought I was on before.

I had thought that I didn't need to force the disable of OTA as my phone kept asking me if I wanted to install and I could say no. It looks like they've built in some auto-install features which is annoying.

Any info would be great.

Cheers,

Si
[G3 General] kswong6972:
hi all, i just wanted to give my feedback that this method works FLAWLESSLY on my (A6WN D85520I_00 Taiwan) which the LG one click root method failed, the method i use were the Direct root mode with all additional downloads all managed by the app itself, Soon After finish rooting i use AutoRec from playstore to flash my custom recovery and now im a happy man :D and last but not least i must thank the dev for making this software with the clearest instructions a newbie like me able to understand
[G3 General] stainmaker:
Hi,

I used LG_One_Click_Root_v1.3 but couldn't tell you where I downloaded it from now.

I see now that at the notification saying the DOS box is about to open is a perfect chance to manually reboot into Download mode. Would be nice to have a note there for users experiencing issues with the phone not automatically rebooting.

I expected that it'd be an issue with my variant (since you can't test em all!) but I'd find it odd that it's a USB port or conflict issue since the LG One Click Root worked just fine.
[G3 General] topet2k12001:
Hi [MENTION=6816402]stainmaker[/MENTION],

Indeed, I won't be able to test all variants. :)

But if you will have the time to read through the posts, there have been documented cases of the said unique behavior due to:

1. The LG G3 variant

2. USB port (you can also find documented cases in other rooting threads)

3. Other devices connected, thus causing a conflict

4. US cord itself (you did mention in your first post that you used a random, non-genuine USB cord. I was able to replicate the issue by using a USB cord that didn't come with the package)

...which I helped troubleshoot, that is why I was able to articulate some of the possible causes. If need be, I can share the actual code I am using for rooting and you can compare it with the other One-click Root approaches. You will notice that they are (virtually 100%) the same commands since all the one-click root scripts (and those here in Imageprep) are merely automated versions of the manual rooting process from Unjustified Dev's thread. I ruled out that behavior from the previous versions of Imageprep by "taking out" the portion of the script away from the GUI itself and continuing from a "DOS box" session.

Rest assured, I visit this thread regularly and I'm always on the lookout for issues reported. And whenever I do see them, I try my best to replicate so that there is sufficient basis for my explanations and of course, troubleshooting as well as the possible need to release an updated version. Unfortunately, while this "rebooting not happening automatically" is a common issue (even with other rooting threads for the LG G3), I am unable to replicate it on my LG G3 variant (D858HK) as well as my system/machine. You could also read one of the older posts where another XDA member got it to work when he used a different machine (I think he used a friend's laptop).

As far as the notification you are requesting for: I already had that implemented in version 2.6 (the current one) but it shows before the DOS box. Instead you should see it in the form of a "message box" pop-up (that's the message box before the DOS box opens up where you have to click on "OK"). Or are you asking for the notification to be "more explicit" hence your suggestion?
[G3 General] topet2k12001:
[MENTION=6816402]stainmaker[/MENTION],

Aha, I just thought of something!

The script (rooting) in Imageprep is configured to wait for 30 seconds per command (after the restart, to issuing the reboot-to-Download Mode command). Perhaps it can be a function of the speed of the machine of the user, as well as (possibly) the speed of reboot of the device itself. This is probably the same for the other one-click root methods (again, because we are all using the same set of commands - we all use the same logic of just putting them in a text script to automate the commands, hence "one-click" or "single go").

When I publish version 2.7, I'll come up with two (2) variations: one with the regular 30-second "wait", and another which will wait longer (maybe 60 seconds to be sure).

I did recall I pondered on this in prior versions but I hesitated in prolonging the "wait" interval.