yashsingh1/xdaforums huggingface dataset:
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], sorry for the late reply. Oops, I already rooted back using v1.5. Can someone else pass the COM text file please as I was doing this on my work pc and I can only pass it on Mon.

---------- Post added at 01:32 PM ---------- Previous post was at 01:31 PM ----------

@Mwinder123 maybe you can provide the COM text file?
[G3 General] Enforcer83:
Wrong thread, sorry.
[G3 General] Mwinder123:
When I create the txt file it is empty. I just used version 1.4 to get twrp.
[G3 General] ultrasuper:
Success: D850, L 20f

Using imageprep1.4 (wasn't sure about 1.5 since there was recently a "bad outcome" for another D850 user with that), no issues at all.

n.b. At the end, I only had to replace the LAF and not the entire L bootstack with the KK version. Initially, I couldn't get into download mode and thought I would have to replace the whole bootstack, but then I realized that I couldn't power on the device at all. So I did a battery pull and tried download mode again and it came up fine.

Rebooted into Andoid without issue; power cycled into TWRP without issue.

Excellent!

*edit: Question:

Not that I didn't install it, BUT-- Is it necessary to install "Root Checker" if you know you are rooted? Does the imageprep shell script use it at all?
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], [MENTION=4339336]Mwinder123[/MENTION] my com.txt file looks like this:

HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM

\Device\Serial0 REG_SZ COM3

\Device\Serial1 REG_SZ COM1

\Device\LGANDNETMDM0 REG_SZ COM6

\Device\LGANDNETDIAG1 REG_SZ COM7

Hope this helps.
[G3 General] topet2k12001:
Hi [MENTION=3453588]ultrasuper[/MENTION],

Thanks for the feedback and glad it worked for you. It's also nice to know that there are still other members using the older versions and that they are still working.

It's not necessary to install "Root Checker". I just recommend it so that end-users can visually verify that their device is rooted properly.

Hi [MENTION=4339336]Mwinder123[/MENTION],

Thanks for the feedback.

By the way, if all you need is just TWRP (i.e. you are already rooted prior to using ImageprepGUI), in the dropdown just select the option for installing and/or downloading TWRP. This way you will be taken directly only to the part of the script that you are interested in.

Hi [MENTION=6511877]ravi.vydianathan[/MENTION],

Thanks for the feedback.

Do you have other devices connected to the PC via USB when you ran ImageprepGUI? These lines indicate that there are other devices:

\Device\Serial0 REG_SZ COM3
\Device\Serial1 REG_SZ COM1

ImageprepGUI is expecting only this information to be present in "com.txt":

HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM
\Device\LGANDNETMDM0 REG_SZ COM6 (can be any other number)
\Device\LGANDNETDIAG1 REG_SZ COM7 (can be any other number)

If there is other information captured, then ImageprepGUI will think that it can't find the LG G3

Solutions:

1. You may try removing other USB devices before running ImageprepGUI.

2. Or...I'll look at modifying ImageprepGUI so that it will properly identify the LG G3 connected, while disregarding any other USB devices. I initially wrote ImageprepGUI to already consider LG G3 users who have the Verizon model. Or perhaps create a version specifically for Verizon model/variant users. Simpler that way, but I will have to upload two versions.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], Thanks for the response. Yes indeed I had other devices connected, but this was only for generating the COM file. When I ran the script earlier I didn't have other devices attached.
[G3 General] Mwinder123:
[MENTION=891586]topet2k12001, I tried both. Got the failed to recognize device error either way. I had 1.4 on my computer and had used that version successfully before so I just did it that way. Was excited and curious about the GUI version though. Either way I appreciate your work.
[G3 General] topet2k12001:
Hi Friends,

Got it.

I really appreciate the feedback. Don't worry; I'm working on improving it. This is the first time that I have ever programmed something so I expected it to not be perfect. Good thing I thought of keeping the old versions (the non-GUI versions) as a fallback.

Please be patient with me as I work on it.
[G3 General] topet2k12001:
Updated Version 05.22.2015

Hi Friends,

New version uploaded (removed previous one). As per feedback from @ravi.vydianathan and @Mwinder123, this one hopefully fixes the issue where the COM port is not detected which causes ImageprepGUI to not detect the LG G3 plugged to your PC and therefore quit/exit.

NOTE: as always, backup before testing/trying!

REMINDER: if you are already rooted prior, you can skip "Complete Process" and select/choose the other options presented in ImageprepGUI (examples: download TWRP, install TWRP, "bump" your "un-bump'd" TWRP, extract firmware files, etc.).
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], that's great news. Unfortunately, I just updated to v20g recently and I don't think root works with this version ?
[G3 General] topet2k12001:
Hi [MENTION=6511877]ravi.vydianathan[/MENTION],

I see. Even with the other methods of rooting posted in XDA for LG G3? I just wanted to know if root (in general) doesn't work with that firmware version, or if it's just my GUI script that has the problem (which I can fix if needed).

Please let me know. Thanks in advance.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], none of the available root methods are working with this version. ?

But I still think that the COM port issue is there.... I did try with the current version and still get that error. But maybe I am not the best person to answer this. Hope someone can try it out soon. Thanks.
[G3 General] Daptonic:
I am trying to install the bump'd TWRP on my rooted lollipop D850 G3 and it doesn't seem to work, I've bolded the line in question. I used script v2.0.

Phone info:

Build info: LRX21Y

Software version: D85021I

---

Waiting for device...

Device detected.

List of devices attached

LGD850486ab6ea	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.

Setting permissions......done.

------------------------------------------------------------

ImageprepGUI

version 2.0

by topet2k12001 [MENTION=243864]xda[/MENTION]

------------------------------------------------------------

Deleting any previous working folders...

Deleting any previous LOLLIPOP image files...

Checking if image files are present...

aboot.img exists. Good.

You are missing kitkat-laf.img. Check that it exists in your LG G3 at /data/local/tmp/ or you will brick your device!

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

Testing TWRP. Booting to TWRP Custom Recovery...

As an option, the Sharpening Mod Script by Skin1980 has been copied to your device. This allows you to set your preferred display sharpness to your liking. In TWRP, tap on "Install" and then find the Sharpening Mod Script. Tap on it to install.

Thank you for using ImageprepGUI!

---

The device boots into the OS with no issue, just cannot get into recovery.

Any advice would be appreciated.
[G3 General] Big0013:
Does this run on Windows xp 32bit?
[G3 General] moonlightinwhite:
I'm interested in the response to this, as well. I successfully rooted my D850 on 5.0.1 Lollipop using the LG One Click Root GUI version and I (sort of) successfully installed Bump'd TWRP...except that when I try to boot into recovery after installing TWRP, I get the flashing red and blue LED and a black screen. I can just turn it off and boot normally, but I'm not sure what to try next.

I found a link to this thread and read the first post, but I'm still unclear what to do next given that I'm on Lollipop. Download stock 5.0.1 for the D850, extract the TOT and then run ImageprepGUI?
[G3 General] boi_echos:
I tried to root my lg G3 F400K lollipop 20c using this. Then I ended up in the screen where it says that if there is no activity within 5 minutes, unplug phone and remove battery then power on. But after i powered on my phone, it was stucked on its bootimation. Ive waited 10 mins and nothing happened so i just reflashed my downloaded rom via flash tool.

And yeah I remember, the last time that my firmware is still in 20g, i am successful in rooting my phone using 1 click root via pc, but my problem back there is the secure boot error and i cant install twrp with flashify

---------- Post added at 03:20 AM ---------- Previous post was at 03:14 AM ----------

The same thing happened to me though im using g3 f400k variant 20g firmware. Try to boot into recovery then theres actually an error message on top right of the screen saying "secure boot error"
[G3 General] dancrow:
Anyone can confirm if this is working on LG G3 v20p stock version?
[G3 General] boi_echos:
Hey guys. I'm using F400K with v20g firmware and what I used to root is one click root then i managed to install twrp using autorec(just search it on playstore). Before, I'm having trouble with secure boot error but successfully installed twrp with autorec.
[G3 General] astro49:
Hi topet2k12001 kababayan,

My 858HK originally had Lollipop. Was able to root and install TWRP on this version. Unfortunately Xposed did not work and I read somewhere the Kitkat version had longer battery life so I downgraded to Kitkat. Was able to root and install Xposed installer, G3 Tweaksbox and GravityBox :) Want to install TWRP but most tutorials are for Lollipop. Downloaded your app imageprepGUI_Installer and there's an option to download and install TWRP only. Can I use this for my purpose? Btw I'm running Win7 64bit. Thanks in advance and maraming maraming salamat sa pagsisikap at tiyaga mo para sa development ng D858HK atbp more power!
[G3 General] topet2k12001:
Hi @astro49,

Yup, TWRP installation is independent of the Android version. Thanks for appreciating the work! Although I would say it's far from perfect as I am by no means an experienced programmer (it's actually my first time).

EDIT: as far as battery life, I didn't notice a difference. Still averaging about 24 hours for me in a single charge. My advice is to learn and understand the concept of "wakelocks" and follow the "best practices" to battery conservation (there's a lot of it here in XDA). Most users tend to leave on the stuff that drain the battery, which they don't realistically use often (sync, location services, social media, chat, Google Account stuff like Google Play, weather apps, games that try to update/sync in the background, etc.). Observe your usage pattern and turn off those that you don't use often (or set them to sync/update manually). There's an Xposed module for this (been using this with my Nexus 4/5/7). It will need your time and attention to learn though, but the benefits are worth it.
[G3 General] Pannam:
Didn't quite work for lg g3 f460k variant. I have made a twrp for kitkat which works fine but i wanted to try the no downgrade twrp installation with your software that automates the process. Firstly. it didn't root but thats fine i got it rooted by other software in xda. Next it was twrp installation i get some printf issue . I wish this could work for my device. You are almost there !

So, i am trying your manual approach right now. Lets see.

this is the link for my kitkat twrp for snapdragon 805 variant of lg g3

http://xdaforums.com/lg-g3/orig-development/lg-g3-f460k-twrp-recovery-2-8-6-0-bumped-t3116117

Ps: i think there is 64 & 32 bit of bump tool which one is it that you are using ? i was somehow able to get twrp working but then after restart got boot verification error. Can you point out where u got the manual procedure to install twrp for lollipop ?
[G3 General] Evilix:
can't you make a quick video :D or a simple steps please :D because forgive me , i'm a little bit lost in all of this :D

i have like 20 tabs opened just saying install twrp , bumb and **** :D and thanks for your feedback really thank you
[G3 General] topet2k12001:
Hi Friends,

@Evilix,

Yes, actually I am making a video tutorial. :) Please stay tuned and apologies for my slow progress.

@Pannam,

In ImageprepGUI, I am using a 32-bit version of Windows bump but that's only for TWRP. Please note, however, that it doesn't guarantee to properly bump all TWRP's. Not sure why. For the boot.img, ImageprepGUI is bumping it via its own script/commands (which you will see in the message scroll box) and not via another tool.

But based on your description of the problem, it looks like TWRP (recovery.img) was properly "bump'd" but not boot.img, due to the "printf" issue (which causes boot.img to NOT be bump'd...the "printf" command is the one that actually signs/patches/bumps the boot.img). That's why you got the "certification verify" error upon startup.

I have solved the "printf" issue and working on updating ImageprepGUI.

Thanks for your words of encouragement. :) And by the way, I want to learn how to compile TWRP too. I have the D858HK and it's not a popular model like the D855 (the International) variant. I get to see some folks from the Chinese forum but I can't read Chinese, and also their forum site requires me to purchase credits (if I understood it correctly with the help of Google Translate), which I'm afraid to do.
[G3 General] Daptonic:
I can't find a link to download the laf file from your Google Drive. The link to ImageUpdater takes me straight to that file. Can you share a link?

Thanks!
[G3 General] topet2k12001:
Hi [MENTION=2403113]Daptonic[/MENTION],

Here you go: click me!
[G3 General] Daptonic:
Awesome! downloading and copying the laf.img file to my phone fixed things. I can now successfully boot into TWRP.

Thank you very much.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], sorry for my delayed reply. Yes surely this version is unrootable... Have read feedback from other users as well. I will send the COM text file soon. Hope someone comes up with an exploit for this version soon. ?
[G3 General] topet2k12001:
Wow, that's sad. But...what's new with the latest firmware for your LG G3? If it's not something really major I won't be bothered if I were you. :)
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], I haven't observed anything major in this update.. But really don't want to downgrade to the previous version because of all the hassle involved.
[G3 General] Evilix:
i'm now gonna flash the twrp by flashify is that okay ?
[G3 General] Pannam:
there isn't dbi.bin for f460k (snapdragon 805) . I am trying to work without it but getting errors.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], plz have a look at the attached COM text file - the contents are the same as last time. COM1 is the Communications Port, COM3 is the Intel Active Mgmt Tech and COM7 is my LG G3 D855 (v20g-sea-xx). Hope this helps.
[G3 General] ravi.vydianathan:
For those having trouble rooting v20g.... See this link:

http://xdaforums.com/showthread.php?p=59895642
[G3 General] Evilix:
PLEASE HELP ME !! I Really need your advice right now :'(

MY LG G3 Won't do anything nothing appears and nothing boots up and i'm so afraid right now please please please say anything anyone pleaseeeeeeeeee and if it's hardbricked :'( what can i do now please don't turn your backs now :'(
[G3 General] nickslg:
Power off your phone .....then hold down the volume" down "button and power at same time when you see lg logo quickly release the power button then press it again wait a few seconds you then get option to restore
[G3 General] Pannam:
getting error

/data/local/tmp/imageprepgui.sh[84]: printf: not found

most probably its with dbi.bin which is not present in our variant of lg g3. its snapdragon 805. tried manual process still didn't work. but your exe file was atleast able to boot the twrp. when i tried to reboot to system it gave me boot error.
[G3 General] topet2k12001:
Hi [MENTION=6325137]Evilix[/MENTION],

Yes, that's fine.

Hi [MENTION=6511877]ravi.vydianathan[/MENTION],

Thanks for the log. It looks like your machine is unique. To confirm: you are still seeing COM1 and COM3 even without any other USB device connected?

I did a quick Google on the ports mentioned.

Intel Active Management Technology - so basically it can turn a regular serial port into a LAN port, is that it? Maybe you can try to disable it (via Device Manager) momentarily while you run ImageprepGUI (or if there is a cable connected, disconnect it momentarily?)

COM1 - Communications Port: is there a printer attached?

Hi [MENTION=4934256]Pannam[/MENTION],

I got the "printf" issue fixed as per my previous response. No it's not related to your LG G3 not having a dbi.bin (or DBI partition). The "printf" issue is due to Busybox not being installed properly, because the "printf" command is part of the Busybox suite of applets.
[G3 General] topet2k12001:
ImageprepGUI v2.2 Released

Hi Friends,

Version 2.2 released. Please visit Page 1 (First Post) of this thread to know what's new as well as the download links. Thank you!

EDIT: video tutorial is now available, start-to-finish (inclusive of a full reflash). You can find the video in the "ImageprepGUI" sub-folder in my Google Drive.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], Thanks for your reply. I do have a network printer attached. The thing is that I have not changed a thing on my system and your previous versions worked perfectly fine so am not sure what's going on. Btw I managed to root and instal recovery using another method. I hope to try out your latest version. Can I do that without actually unrooting my phone?
[G3 General] topet2k12001:
Hi [MENTION=6511877]ravi.vydianathan[/MENTION],

Yes you can use this without unrooting,

In the old method, the script assumes that the device is c9nnected as LG....DIAG1. However I discovered that this number changes after every disconnect/reconnect, so I had to factor that in. Plus, the Verizon model has a different identifier when connected to a PC.

One quick fix for you is to temporarily disconnect the network printer before running ImageprepGUI. You can plug it back after using.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], Thanks for the quick response. Also does it matter if I already have a custom recovery? So I can still try this out without unrooting and with custom recovery.. Am I right?
[G3 General] topet2k12001:
Yes. When I was building ImageprepGUI my device was already rooted prior as well as having Bump'd TWRP.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION] ok great... Btw I did try out again and got the same error. I might need to restart my pc to see if it helps. I can't do that right now coz I have got lot of stuff running. Will update you as soon as I have done that. Thanks.
[G3 General] topet2k12001:
Hi @ravi.vydianathan,

Let's isolate and focus on the problem:

1. Delete currently-installed ImageprepGUI from your drive C:\

2. Rebooting your computer won't solve the problem. The problem is that you have other COM ports active and because of that, ImageprepGUI gets "confused" in finding your LG G3. ImageprepGUI will only want to see two (2) line items when reg query is run. Anything more than that, it will not find your LG G3.

3. With that, the objective is for a "com.txt" file to be generated that contains only the LG....DIAGxxx line items (the COM 6 and 7, looking at your file).

4. Try unplugging the network printer cable and see if that resolves the issue.

5. If it doesn't (meaning, COM 1 and 3 still shows up), then your next option is to momentarily disable or uninstall the drivers for Intel Active Management (although based on your responses so far, it looks like you are using the computer for work).

6. One easy fix: try from a different computer. One that doesn't have a network printer or any other USB peripherals attached.

TIP: run only the "reg query" command I provided. No need to run ImageprepGUI yet. Until you see only two (2) line items, don't run ImageprepGUI yet, because it will fail if there are more than two (2) line items produced by "reg query".
[G3 General] Pannam:
Can push the root files but cant put the device in download mode. Works with 64 bit windows 8 laptop but will give error detecting a 32 bit windows 7 pc. Other rooting software works fine they have a shell script perhaps you could have a look. Automation is hit or miss. I see you r repacking boot img right with kitkat laf n aboot img ?

I cant get it to work properly so i guess i have to do it manual. So i need a rooted lolllipop device and need to replace it with kitkat laf n aboot images and bump lollipop default boot image right? Then push bumped recovery image?

In ur software what if i already have a bumped recoverybis ut still bumpimg it again?

I read ur manual method but its different from the script u wrote. The No Downgrade method is not working for me need to repack the kernal ramdisk dt img etc as per ur script
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], Thanks once again for your response. Yes, that sounds like a plan. I might try this out on my home computer.
[G3 General] topet2k12001:
Hi [MENTION=4934256]Pannam[/MENTION],

Thanks for testing and providing feedback. I'll need some more details in your observations so that I can properly visualize the issues you pointed out. Very good questions, by the way.

1. Can push the root files but cant put the device in download mode. <-- seems like you tested on two (2) machines (Windows 8 64-bit on laptop, and Windows 32-bit on PC). Does the problem show on both machines?

2. Works with 64 bit windows 8 laptop but will give error detecting a 32 bit windows 7 pc. <-- I am using a desktop PC, Windows 8 64-bit. I tested on a Windows 7 64-bit laptop as well. I'll try to dual-boot so I can test on a 32-bit OS. However, can you describe further what you meant by "giving an error detecting a Windows 7 32-bit PC"?

3. Other rooting software works fine they have a shell script perhaps you could have a look. <--older versions of Imageprep were in the form of a simple DOS command script, without a GUI. I can put them back if you want.

4. Automation is hit or miss. <--I'd like to know which part of the process is "hit or miss" so that I can troubleshoot further; can you describe the details please?

5. I see you r repacking boot img right with kitkat laf n aboot img ? <--No. boot.img is unpacked/repacked only for signing ("bumping"). Kitkat aboot.img and laf.img are merely flashed to the device directly.

6. In ur software what if i already have a bumped recoverybis ut still bumpimg it again? <--Imageprep, by default, does not "bump" a recovery.img. As you will notice in the instructions (the pop-up message boxes that will appear along the way), the instruction tells the user to save a copy of an already "bump'd" recovery.img to the "twrp" sub-folder of ImageprepGUI. However, it does have an option to attempt to "bump" your recovery.img (if you do not have a pre-bump'd recovery.img). This step is optional and is not part of the automated end-to-end. In version 2.2 (the one I just released), this optional step is not explicitly present because I momentarily removed the options to execute only parts of the complete process. I will put it back in a future release after I sort out some other stuff I'm working on.

7. I read ur manual method but its different from the script u wrote. The No Downgrade method is not working for me need to repack the kernal ramdisk dt img etc as per ur script[/QUOTE]<--The "No Downgrade" method assumes that you already have a "bump'd" boot.img prior, that is why it is different from the script (as the script includes automated "bumping" of the boot.img).

By the way, the manual method instructions have been removed when I uploaded ImageprepGUI v2.2 as they are due for re-writing.
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], so I ran the reg query command from my home computer and get only two lines in my output file.