yashsingh1/xdaforums huggingface dataset:
[G3 General] topet2k12001:
Hi [MENTION=6511877]ravi.vydianathan[/MENTION],

Great to know...please test ImageprepGUI. No need to unroot/reflash your device...
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], Sure will try it out and update you.
[G3 General] Pannam:
Hey!

In 32 bit system i can used adb shell using command prompt and when i do list devices it shows my lg attached but when i run ur software it shows device not attached. so obviously its not the issue with drivers, port or cable . yea i can get the screenshot for u but i am out of office right now and testing image prep on my 64 bit eldevice.

Yup i am properly rooted by other method and have installed busybox manually hence no printf issue. may be you have some process or files attached to your rooting process thats why i am getting my device stuck on lg boot screen. I'll wait until u fix download mode.

I am really not interested in sharpening effect as i find the image blurry amd dull.

Hope you will fix the downalod mode issue so i can confirm its not an issue with ur software it could well have to do with twrp image itself.
[G3 General] topet2k12001:
Hi [MENTION=4934256]Pannam[/MENTION],

Hm...I suddenly realized I forgot to ask the most basic/first question that should have been asked: what version of ImageprepGUI is giving you these issues? Because I released v2.2 on May 26th (previous version on May 22nd). I realized this because of the issue you mentioned in the previous post (Item #1 and 2, where the script continues to finish while the device has not been put in Download Mode).

This is the reason why v2.2 had the GUI removed (in the "rooting" stage). Since now the script is in plain DOS-based command line, the script (rooting part) responds to "waits" and "pauses" properly. I can record a video of it if you want.

For the Sharpening Script Mod: if you are not interested in changing the default sharpness of the LG G3 (and interested only in ensuring that your boot.img is "bumped" properly), just select "40" from the selection (that's the LG G3 default sharpness value). I only mentioned the Sharpening Script Mod in case you want to validate if ImageprepGUI may not have "bumped" your boog.img.

As far as the rooting stage of ImageprepGUI, it is no different from the other rooting tools currently available in XDA. If you want to check: run ImageprepGUI (and keep the "ImageprepGUI" folder open). During the script, you will notice that a batch file named "imageprepgui.bat" will be created. You can open that file to view the commands used.

Also just in case you used/downloaded a prior version and then used the new version (2.2, released May 26th), please delete the existing "ImageprepGUI" folder from your drive C:\ and then re-install/unzip the new version (2.2) again.
[G3 General] topet2k12001:
ImageprepGUI v2.3 Released

Hi Friends,

Version 2.3 released. Please visit the First Page (First Post) of the thread for details!
[G3 General] ravi.vydianathan:
[MENTION=5231281]topet2k12001[/MENTION], thanks a lot for this version and sorry for my late reply (was caught up in other things). I could not try ver. 2.2, however, I tried 2.3 without problems. Great job!!
[G3 General] topet2k12001:
Hi [MENTION=6511877]ravi.vydianathan[/MENTION],

Thanks! Great to hear that! Don't bother with the previous version anymore (version 2.2), since I delete old versions whenever I come up with something newer.
[G3 General] FatherD:
Woohoo, got this to root v20i, recovery didn't go straight it, just flashed twrp using autorec once rebooted.. Sorted! Thank you so much Dev.
[G3 General] topet2k12001:
Hi @FatherD,

Glad to know it worked for you. :)

Did you encounter issues with the TWRP, or are you just meaning to say that you didn't go ahead with the TWRP portion of the script? In the older versions ImageprepGUI used to have the options of selecting only portions of the script to execute. I temporarily removed it when I was troubleshooting a problem, but since it seems that version 2.3 is working well I will put back those options in the next version.

Thank you for trying out ImageprepGUI!
[G3 General] FatherD:
Hi there, sorry I should have given more detail but it was late here! I actually used an old copy, version 1.5 I think! I bagged the 20i kdz and had a bumped twrp from when I ran this procedure on KitKat. Everything went fine, no errors in the script. When I pulled the battery and tried to boot to recovery I got the blue/red led security error! If that makes sense? So I booted normally expecting no progress, to my surprise - rooted, so I downloaded 'autorec' which installed a bumped twrp, confirmed using 'simple reboot'. I tried all other rooting methods before coming to this one.. nothing else even achieved root. Well done sir ?
[G3 General] colin0998:
Stays at Sprint Boot Animation

Followed what it says and let it install supersu through download mode and now it sits at the boot animation
[G3 General] topet2k12001:
Hi [MENTION=5899756]colin0998[/MENTION],

Thanks for the feedback. It may require a full reflash to get it back to normal.

I am interested to know more so that we can troubleshoot and determine if something went wrong along the way.

1. What is your LG G3 model/variant?

2. Can you describe, step-by-step, what happened/what you saw on the screen leading to the "stuck at boot animation" part?

3. What ImageprepGUI version was used (I usually delete old copies and keep only the latest online, but previous users may have saved an older copy elsewhere)?

4. If ever you will try again, can you record the screen, upload the video, and share the link so that I can visualize what happened?
[G3 General] colin0998:
The model is the Sprint LS990. I ran imageprep (latest version), and everything was fine till I had gotten to the reboot. There may be a bug where it does not recognize the device correctly in download mode. I had to trick mine by turning on diagnostics inside the phone app, wait for the message to show for dos, then put my phone in download mode. Then the script ran. Could something there have had caused that to happen?

---------- Post added at 03:46 AM ---------- Previous post was at 03:44 AM ----------

If I do say, last time I used this was when it was imageprep 1.5 and that worked so well. Messed up root so I reset the phone and wanted to use the new imageprep
[G3 General] topet2k12001:
Hi [MENTION=5899756]colin0998[/MENTION],

Thanks for the information.

When you said that you reset the phone (due to messed up root), how did you "reset" it? Via "Factory Reset" from the Settings Menu of Android OS?

If so, you might want to consider a full reflash instead of a simple "Factory Reset" (make sure to back up all important stuff first!), since you mentioned that your reason for trying to use Imageprep is due to a messed up root. This ensures a "clean slate" for your device and eliminates other possible variables.

Thanks for your feedback on the old version (version 1.5). Based on feedback by most users, they liked that old version (though it is a plain script and there is no GUI).
[G3 General] colin0998:
I fully reset it through the LG Flash tool before I went to try and root the phone with the gui.
[G3 General] GamingBambi:
Does this work for d85021i
[G3 General] topet2k12001:
Hi [MENTION=5899756]colin0998[/MENTION],

Thanks for confirming.

After reflashing (resetting) and before using Imageprep, can you remember if you:

1. Enabled Devloper Options

2. From Developer Options, enabled USB Debugging

3. Plugged the phone to the computer (there should be a notification/window pop-up on the phone where you have to check a box, and also tap on "Allow" or "Always Allow")

Hi, [MENTION=5562511]GamingBambi[/MENTION],

I made Imageprep with the intent of being non-exclusive (e.g. not exclusive to a particular LG G3 model/variant). You may give this a try. As usual, please back up all important files first!
[G3 General] RapHaeL_4_4_4_:
I can't find the "Sharpening Mod Script" on my phone to bump my boot.img

And my phone won't boot, I need to remove the battery, plug it in my computer, put the battery back and then I can boot it. Is it because I didn't bump'd my boot.img?

Thanks
[G3 General] topet2k12001:
Hi [MENTION=6383375]RapHaeL_4_4_4_[/MENTION],

ImageprepGUI already "bumps" the boot.img even if the user does not decide to install/use the "Sharpening Mod Script", since installing this "mod" is mentioned as a recommended option, not a requirement.

How to check if ImageprepGUI was successful:

1. You can boot the device to TWRP custom recovery, AND

2. You can boot the device normally to Android OS (it won't boot to normal Android OS and you will get a "Secure Boot Error" message if it wasn't bump'd) AND

3. You can boot the device to Download Mode

ImageprepGUI saves the Sharpening Mod Script in your mail /sdcard folder ("/sdcard" here means the main folder of the LG G3's internal/built-in storage - not the external or SD card). If you can't find it, there is a copy of it in the "put_files_to_push_here" sub-folder of ImageprepGUI. Place a copy to your device, boot to TWRP Custom Recovery, and then flash (install) it.

Further tests that you can do:

1. Install "Root Checker" to verify that the device was rooted

2. Check your list of apps if SuperSU is there

What is your LG G3 model/variant, by the way? I asked because even in the older versions (the non-GUI, script-only version) some LG G3 models/variants don't automatically reboot; users will have to do a battery pull. Those users who have reported this own the D852 and/or D850 model/variant, however they reported success (only that they had to do a battery pull so that the device will boot).
[G3 General] RapHaeL_4_4_4_:
I have a D852G, my phone is rooted and I have superSU.

I can boot to everything (Android OS, TWRP and Download mode) but I have to do the battery trick and its getting really annoying..

PS: I can't restore with the KDZ tool because the tool won't work anymore for me (I don't know why).
[G3 General] topet2k12001:
Hi @RapHaeL_4_4_4_,

Thanks for the feedback.

I thought so. :) If you have time to read back through the thread, it's the owners of the D852 who need to do a battery pull. That has been the case even with the old, non-GUI (plain script) versions. Do you have to do the battery pull everytime? Or only whenever you restart the device?

You may want to consider a full reflash before trying ImageprepGUI and see if that changes it. I am interested to find out more about the D852/D852G (the non-G is Bell/Rogers, correct? And the "G" is Videotron?) and test it, but mine is the D858HK (dual-SIM) variant so it's a bit difficult for me to really test and troubleshoot.

I'm working on an update to ImageprepGUI where users can select only which parts of the process they want to run (e.g. root only, TWRP only, both root and TWRP, etc.). This will also help me in troubleshooting when users report problems (helps to isolate specific parts of the entire process and focus troubleshooting there).

My theory (and again it's theory) is that for the D852, users will also have to flash some other image files. Back then (you can read backwards in the thread), this process involves flashing not only of the laf.img and aboot.img, but also other image files such as dbi.img, sbl1.img, rpm.img, and tz.img (collectively called as the "Bootstack"). These can also be extracted via the KDZ and TOT firmware extractor. Back then, Imageprep involved the extraction and flashing of these files too, but subsequently a lot of users reported that flashing only laf.img (responsible for Download Mode) and aboot.img (the Android Bootloader) is enough to achieve the task.

Again, this is my theory. If you feel adventurous and if you have time on your hands, you may want to extract and flash these files as well.

Which tool won't work anymore? ImageprepGUI? Or are you referring to something else? Oh, you must be referring to the LG Flash Tool. There is a thread for that here in XDA with a video tutorial. I recommend visiting that thread.

Anyway, thanks again for the feedback. And because of that, I'll also add an option for users to manually operate the KDZ and TOT extractor so that users can manually extract and rename (from .bin to .img) the other "bootstack" files if they wish to experiment.

By the way, if you are using a relatively new version of TWRP (version 2.8.4.0 onwards if my memory serves me right), users can already flash .img files too. Tap "Install" and then at the screen where you navigate for the file you want to flash, look for a button that says "Zips...". Tap it and it will change to "Images...". Locate the .img file you want to flash and continue as you normally would for a zip file. It's safer than my old method of entering "dd..." commands via the Android Terminal Emulator as there is no need to type the commands.
[G3 General] RapHaeL_4_4_4_:
I can reboot without any problem, its only when I shut down the phone that I need to do the battery trick.

And yes the D852G is from videotron :)

Thanks, I will try to find how to solve this
[G3 General] topet2k12001:
Hi [MENTION=6383375]RapHaeL_4_4_4_[/MENTION],

Oh okay, great to know. :)
[G3 General] topet2k12001:
Hi Friends,

I have just finished working on some improvements and will be releasing an updated version. Please expect it by tomorrow (before noon US Eastern Time). I need to sleep for now. Thanks for your continued interest and support!
[G3 General] topet2k12001:
ImageprepGUI v2.4 Released

Hi Friends,

ImageprepGUI version 2.4 is out! Head over to the First Post of this thread (First Page) to read about it and to get the download link. Thanks for your support!
[G3 General] PureLife90:
everything worked for my D85110c model (t-mobile). just a few things. 1. recovery wont boot and 2 . i keep getting a text 112 error invalid number please resend using a valid 10 digit mobile number or valid short code

i am on AT&T Network on a T-Mobile Phone
[G3 General] RapHaeL_4_4_4_:
I have my dbi.img, sbl1.img, rpm.img, and tz.img.

If I flash using TWRP these file, will it overwrite what is already in the boot partition or it will only add them? I don't want to end with a hard bricked phone xD

Btw thanks dude, i'll give you feedback after your answer so you could add it to your tool if it work!
[G3 General] BoredKender:
Secure boot error on my 460k ; ;
[G3 General] ravi.vydianathan:
[MENTION=4245534]BoredKender[/MENTION] you would need to provide more details for any kind of resolution!
[G3 General] BoredKender:
I know, am at work at the moment so please bear with me. Decided to try to use your new gui version with the new jz-made twrp for the F460k since the autorec bender was working on with me failed to boot (still would boot to twrp but no system). The whole process went smooth until the "booting into recovery" portion which goes to secure boot failure.

Also can't go back to 20c because the LG tool seems to not be able to connect anymore despite booting to download mode. Changed port to 41 for manual roll back as well but no dice. Qhusb_dload when trying to boot normal btw
[G3 General] topet2k12001:
Hi [MENTION=6383375]RapHaeL_4_4_4_[/MENTION]，

Sorry, I meant that you can easily flash only boot.img ir recovery.img via TWRP. For the other image files they still need to be done manually. Let me work on that and release another version update.
[G3 General] topet2k12001:
Hi [MENTION=4830106]PureLife90[/MENTION],

Thanks for trying it out. :)

D851 10C - you're running on Kitkat, correct (a "10" on the firmware version means Kitkat; "20" means Lollipop).

1. How do you boot to recovery? That's TWRP, correct?

2. First time i have heard of that error message. When does that error show up?

Hi [MENTION=4245534]BoredKender[/MENTION],

Since you can boot to TWRP, please give this a shot: flash the Sharpening Script Mod by [MENTION=2174433]Skin1980[/MENTION] since it also has the feature of "bump'ing" the boot.img.

Secure Boot Error means that your boot.img wasn't "bump'd".

Please note, however, that the "bump" approach in ImageprepGUI is the same as that of the Sharpening Script Mod. It's worth a shot though.
[G3 General] topet2k12001:
ImageprepGUI v2.4 Released - reuploaded

Hi Friends,

I re-uploaded version 2.4. There is a minor bug that needed to be fixed:

1. Image Files Option (I have my own copy of aboot.img and laf.img) - these files needed to be renamed as kitkat-aboot.img and kitkat-laf.img. Otherwise, the "TWRP Installation" will give an error message saying that it cannot find "kitkat-aboot.img". Other options of acquiring Image Files (extract from my firmware; download your copy) are not affected.

2. Root and TWRP Scripts still show version 2.3 - updated to version 2.4 in the text. No performance impact; just typographical errors that needed correction.

Issue has been fixed. Please delete any personally downloaded copy of ImageprepGUI version 2.4 prior to this post and re-download. Download link has been updated at the First Post of this thread.
[G3 General] BoredKender:
To clarify, I can not boot into TWRP, that was with the AutoRec that I was helping Bender test. Right now I am kinda dead in the water with secure boot failure
[G3 General] topet2k12001:
HI [MENTION=4245534]BoredKender[/MENTION],

Oh okay. I thought you could still boot to TWRP.

In a case where "Secure Boot Error" shows (can't boot to normal Android OS) and unable to boot to TWRP, a reflash is needed.

What is " jz-made twrp for the F460k" that you mentioned in your previous post?
[G3 General] BoredKender:
Am currently stuck trying to figure out how to reflash since none of the apps will actually push to the phone.

The JZ twrp is... I am not sure how to explain it other than a themed twrp that a dev (one of the very few that takes notice of the 460 lineup) put together for our (cat6 users) models.
[G3 General] topet2k12001:
Oh okay, got it.

In your case, a normal reflash will not work. There are a few threads here in XDA for restoring/fixing/"reflashing" a device that is in a "Qhusb_dload" state.

EDIT: here you go, an example of a thread that tries to address the issue you are having: http://xdaforums.com/lg-g3/general/unbrick-lg-g3-qhsusbbulk-qualcomm-9008-t3072091
[G3 General] BoredKender:
Which is the white rabbit I am chasing now. Neither the 2014 nor the 2015 flash tools want to work (the 2015 one says Failed PreviousLoad() )
[G3 General] topet2k12001:
Hi @BoredKender,

Are you referring to chasing this down by normal flashing via the LG Flash Tool? I'm referring to a different fix (which is the link I just shared). It requires a little extra work though (and from the looks of the instruction, opening the device itself).
[G3 General] BoredKender:
Problem solved, I am an idiot. It was trying to load the KDZ for my T-mobile G3 not my Korean Cat6. Failure of attention to detail on my part. Reflashing base now
[G3 General] topet2k12001:
Lol... :)

Great to know you were able to resolve it. :)
[G3 General] Molius:
Ignore pls, found other way to root.
[G3 General] Ladicx:
My phone is rooted running cloudy 2.3 on lollipop. Quick question, if im already rooted with Twrp installed is there any benefit to "bumping" my device at this point?
[G3 General] DE52:
No because the fact you have TWRP means your boot.img is already bumped anyway. There's no further bumping required on your part.
[G3 General] topet2k12001:
ImageprepGUI v2.5 Released

Hi Friends,

I'm releasing an update (version 2.5).

What's new:

1. There's a new rooting method by @digital-bug. It's supposed to address an issue for newer Lollipop firmwares that don't work well with rooting methods that make use of a Linux Shell Script. The effect is the same though. As the author notes, if you are already rooted prior, please DO NOT re-root. If you want to try this new method of if you want to switch between rooting methods, please back up your files and re-flash your device.

2. ImageprepGUI version 2.5 already includes the new rooting method. Users now have two choices of rooting.

3. Re-enabled the option for users to try and "bump" their un-"bump'd" TWRP Custom Recovery (recovery.img). This is not a 100% guarantee, but choice is always good so I put it back there.

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] kieferp:
help pls

i'm on the lg g3 d850, and i just followed the new method using imageprep 2.5. The root went through just fine, it then pushes twrp through to my device, which it says is also successful. it says my device is now rebooting into twrp and to disconnect it, however, my device never reboots. forcing the device into recovery mode pops a box up in the corner of my screen for a second saying "Secure boot error" then goes to a black screen with my notification led flashing between orange and blue. i'm able to get my phone working by pressing power and volume down. however i'm not ever getting to twrp. any ideas?
[G3 General] bender_007:
Power + vol down. Wait for lg logo, release and again hold the same(before secure error appears)

Poslano sa mog LG-D802 koristeći Tapatalk
[G3 General] RapHaeL_4_4_4_:
Can I install the extra boot-file with this one?
[G3 General] topet2k12001:
Hi [MENTION=6383375]RapHaeL_4_4_4_[/MENTION],

Oh yeah, I remember you were the one I was talking to about the "Bootstack".

No, I haven't added that yet. What I did ad is the ability to manually operate the KDZ and TOT Extractor Tool, so you can extract manually. If you're not comfortable doing that, please wait for a newer release that will do that automatically for you (just like how it's currently done for aboot.img and laf.img).
[G3 General] vassagout:
Hi guys, I've a problem. I used this guide to bump my lg g3 (d855). I used Imageprep 1.5 LG G3 One-Click Script. It was in april and since then I've installed cyanogenmod. Today I wanted to make a factory reset to start from a clean installation. I used the settings - backup and reset - factory reset option and now I'm stuck in twrp, I have a bootloop in twrp screen. I didn' t know I couldn't use that option and it seems it was a big mistake, I don't know what to do so I want to know if someone here can help me and give instructions to follow to repair my g3.

Thank you in advance.
[G3 General] topet2k12001:
Hi [MENTION=1866247]vassagout[/MENTION];

I would normally recommend a full reflash, but before doing that can you try

this

?

If it doesn't work...at least we tried something else before the reflash. :)
[G3 General] vassagout:
thank you very much [MENTION=5231281]topet2k12001[/MENTION]. I think adb will not work because my phone has a twrp loop, do I have to try in download mode? Talking about the full reflash you mean a normal kdz lollipop flash from LG Flash Tool ?

Thank you again.
[G3 General] topet2k12001:
Hi [MENTION=1866247]vassagout[/MENTION],

Sorry I misunderstood your problem. If you can't boot even to TWRP (i.e. just boot-looping), then yes you will need to reflash. Yes, by full reflash I meant flashing the firmware (KDZ or TOT) via the LG Flash Tool.
[G3 General] vassagout:
Thank you [MENTION=5231281]topet2k12001[/MENTION] :good:, I already flash the kdz via LG Flash Tool.
[G3 General] RapHaeL_4_4_4_:
And when I extracted them, how do I put the on my device?

PS: A big thanks for your help, seriously.
[G3 General] topet2k12001:
If I remember correctly, I posted the steps somewhere in the early pages of the thread. Be warned that it involces manual typing of commands via the Android Terminal Emulator so there will be chances of human error. Since your issue only happens when rebooting, I strongly suggest for you to wait for the new version I am working on.