yashsingh1/xdaforums huggingface dataset:
[G3 General] topet2k12001:
Hi @RealRedHair,

Yes, Imageprep does include rooting, installation of custom recovery, and Bootloader Unlock. But these procedures are not "all-encompassing" (meaning, the procedure may be different, slightly or otherwise, on other phone models even if they are of the same brand).

The answer is simple: it's because I made Imageprep specifically for the LG G3 as this is the only device I have. To simplify what I wrote, it is a disclaimer because I have not personally tested on an LG L90. To shorten it more, it means "try at your own risk" since there are already threads (which I linked in my "EDIT") that are made and tested specifically for the LG L90.
[G3 General] RealRedHair:
Starting to get to the point of trying, but for how many other LG models did your tool work/was succesfull? Just to get an idea of the change for succes.
[G3 General] phamoen:
I thought the official way was to press and hold and release.. But then it boots regularly into android. When I press, relelase and then press and hold again, I get asked to say yes to a full factory reset twice and then it boots into recovery.

Still is still the case and now the only issue I have. I can reboot into recovery with the TWRP app and probably adb shell. But not with the hardware buttons....
[G3 General] topet2k12001:
Hi [MENTION=325793]phamoen[/MENTION],

Lol, no. :)

Now that's the correct way of rebooting the LG G3 to recovery. :)
[G3 General] RealRedHair:
Thanks a lot for your very long explanation. Things are getting more clear. Long time ago I did it all with my Sony RX8. I'm still not sure. I read at http://xdaforums.com/lg-l90/development/tool-dp-tools-manage-lg-device-t3084987 for example in post 5 that there are problems. So if your tool is only confirmed with G3, I think I will not use it for the moment. Thanks again for all the information.

The steps I found out to follow are:

1. Root with manual http://xdaforums.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951

2. Bootloader with http://xdaforums.com/lg-l90/development/recovery-twrp2-7-1-0lgl90w7xxshoxx-t2826150

3. Custom recovery TWRP with http://xdaforums.com/lg-l90/general/guide-guide-to-unlocking-bootloader-l90-t2852917 and instructions under 2.

4. Custom ROM with http://xdaforums.com/lg-l90/development/rom-cyanogenmod-12-lg-l90-t3049512

No need to downgrade to Kitkat it seems.
[G3 General] dornz:
Yeees after trying loads of 1 click roots for v20i lolipop none of um worked

Ha ha but imageprep did not let me down again because i used an older version of it to bumb

TWRP to my v20c d855

Thank topet you the man DoG
[G3 General] dornz:
And again i use imageprep 1.4 to bump twrp to me d855 ?
[G3 General] choyeechox:
Sorry for this noob question but where can I download a copy of my KITKAT Firmware (in KDZ or TOT format)? My LG G3 is currently running on Lollipop already.

Please help. Thanks in advance.
[G3 General] Abdul Wahab:
Hey ! I spent 4 hours to root my lg g3 cat6 f460k korean but it dsnt work. Problem is its not going into recovery mode. I tried alot..i watchd tutorial but it ddnt work. Plz help me !
[G3 General] mulkisulaiman:
Hi, i just followed the instruction, but my phone got bootloop (stuck at the LG logo). when i try to Factory reset it just kept blink blue and green and there was an error message "secure boot error". basically my phone was rooted then i just follow the instruction on video. after flashed Supersu on CMD, + reboot my phone just got stuck, and one more thing i can't enter the download mode, i press Power + Vol up still nothing. Please help. What i should i do? :(

Thanks in advance.
[G3 General] mrjayviper:
Hello. I'm picking up my new (secondhand) G3 tonight and I want to install CM12.x.

This guide was recommended to me. But I'm not sure if it will work Lollipop since kitkat was mentioned in the 1st post. several questions please! :)

1. will this work on lollipop G3? In addition to this, since I can download aboot and laf images from drive, are these 2 images generic so that it will work on any Android version?

2. can I use the TWRP that's available in the twrp.me (official website)?

3. I guess once I have TWRP, I can just install cm12.x?

thank you so much! :)
[G3 General] bender_007:
EDIT: you can safely choose this method. While I didn't try it others have and it worked
[G3 General] mrjayviper:
do you mean this root method though? there are like several for the G3 and it's confusing. so unlike other phone where there's only 1. sometimes, less choices is good. :)
[G3 General] bender_007:
1. this

Pardon, didn't see the whole description in thread name.

I think you can root also via this thread :)

Sadly the rooting methods are a success for some and failure to others (while being on the same version)
[G3 General] Ciccius-IT:
LG G3 D855

The tool stops when root procedure start. The CMD window appear and then it have to reboot phone (wich was found on com29) in download mode but nothing happens on the phone. I have to kill Imaprep. Tried to change tool procedure (all script and all direct mode) and also tried to change USB port. I'm on Win7 32bit.

Any idea?
[G3 General] jreink01:
Hello,

I have a couple questions and need some feedback. I have a LS990 from sprint. My old G3

3 was destroyed and so I am now in the waiting phase to receive my new G3. I rooted and installed TWRP when I first received my G3 (one time) but its been well over a year. When I get my new G3, I would like to install TWRP and have it rooted like my last one. I just want to confirm from what I read in the OP, one of the methods will root and install bumped twrp at the same time? I'm not sure when I receive my new phone whether it will have lollipop 5.0 or 5.1, does that make a difference? If it does install twrp, will it be the latest version? Thanks again for the feedback, I would like to be ready to get this done when my phone arrives.

Please disregard
[G3 General] jreink01:
Hello, I need some feedback. I have a g3 LS990 that is already rooted. I am trying to install the latest twrp. I have read the OP and when looking in the google drive folder for the recovery.img I do not see the ls990 model. Do I use another model or is there not one for my model phone? Also, are all these recovery images bumped?

---------- Post added at 03:38 AM ---------- Previous post was at 03:23 AM ----------
[G3 General] Kenneth.C:
Hi there,

I got the "Subscript used on non-accessible variable" error when installing the imageprepGUI_Installerv2.6.exe on a WinXP machine. Any hints please?
[G3 General] topet2k12001:
Hi [MENTION=3375507]Kenneth.C[/MENTION],

Not sure what causes the error. I currently do not have Windows XP installed so I won't be able to replicate your issue.

I created this GUI app using Windows 8.1 64-bit, but created for 32-bit compatibility as well. Users are successful with Windows 7 and 8. I am still using the same version on my now Windows 10 without issues. Perhaps try on a different computer running a newer version of Windows,to isolate WinXP as the cause?
[G3 General] Kenneth.C:
Thanks topet2k12001! I installed it on another computer with Windows 10 without issues. It works fine and fixed my corrupted recovery. Thanks again for your great works!
[G3 General] topet2k12001:
Hi [MENTION=3375507]Kenneth.C[/MENTION],

Great to know and congrats!
[G3 General] docksid3:
Fantastic, i rooted my phone direct on lollipop then installed twrp recovery with adb but i get the secure boot certification error.

I followed this tutorial and with the script now i have my twrp 2.8.7.0 fully working

Thanks a lot for the help
[G3 General] topet2k12001:
Hi [MENTION=4889471]docksid3[/MENTION],

That's great to hear. Congrats!
[G3 General] topet2k12001:
Hi [MENTION=4708773]jreink01[/MENTION],

Sorry I was not able to respond sooner. Are you still having issues with your device?

EDIT: I see you are in the US. It is currently 10:40am my time, so I'm guessing it's 9:40pm (US Eastern). I can be reached through PM (Private Message) as well.
[G3 General] debell:
Appreciation

Thank you very much the developers of this, it took me over 16hours and over 15 root applications before I discover this method to root my LG g3.

Thank you!

Thank you!!

Thank you!!!
[G3 General] vassagout:
Hello [MENTION=5231281]topet2k12001[/MENTION]. I used your method for root + bump on LP. Are you going to update the method to include MM? New V30b?

Regards.
[G3 General] topet2k12001:
Hi [MENTION=1866247]vassagout[/MENTION],

I don't have Marshmallow yet on my LG G3 (it's a dual-SIM, the D858HK). :( But let me read some threads and see if it's conceptually the same process.
[G3 General] javlada:
I've got the same problem as you. How did you solve it?
[G3 General] topet2k12001:
Hi [MENTION=7027814]mulkisulaiman[/MENTION] and [MENTION=2165918]javlada[/MENTION],

Sorry for the delayed response. This is covered in the FAQ (Post #5) of the thread.

Basically, you need to make sure that the proper version of "boot.img" was used. There's a video tutorial link at the first post that you can watch/pause and there's also a downloadable copy of the video tutorial.

The video tutorial was made using the D858HK because that's my LG G3 variant, but the procedure is the same for other LG G3 variants.
[G3 General] javlada:
Thank you very much for the advice. But I'm afraid something is very wrong with my phone. I can not flash anything as the phone won't communicate with my PC. If I try to get to download mode, the logo "download mode" flashes for a very short time and then it restarts again. As soon as I turn on the phone, it keeps restarting again and again. I can get to original recovery where I can wipe data but it won't help.

The phone only appears within connected devices in Windows if I connect it with battery removed. But it shows up as an unknown device and I can't communicate with it.

Is there still something I can do with the phone myself?
[G3 General] topet2k12001:
Hi [MENTION=2165918]javlada[/MENTION],

You mentioned you can still reboot to Recovery. Is this custom Recovery such as TWRP? Do you think you can successfully flash a custom ROM?
[G3 General] el_amery92:
help please

i have g3 d855 on lolipop 21A n i want to rooting n install twrp with imageprep v2.6.

can i skip acquire kitkat image file option n skip acquire bump'd twrp too in step 1 ?

then i choose do both direct root and instalation of twrp in step 2?

sorry for bad english and basic question. :)
[G3 General] javlada:
No, unfortunately it is the stock recovery (I do believe). It is definitely not TWRP. There is only one option and that is to wipe data (factory reset). I can not flash anything from it.

Isn't there an option to boot from SD card? That could save my phone. I think I will have to ask LG service to reflash my phone with a debug connector or something like that. I hope they can do it.
[G3 General] DE52:
When TWRP is installed, you still go through that factory reset screen, except when you click yes, it will jump to TWRP splash page instead of actually wiping the device completely. Did you have TWRP installed before you had your trouble?

Edit: Nevermind. I see that you said you get a secure boot.img issue when using factory reset. If I understand correctly, you mean that if you select yes on the factory reset screen, you get that error? If that's the case, TWRP may of successfully been installed, but another partition is not changed to the right version. It may also mean that it's the wrong boot.img version like topet said. As for detection by your computer, have you tried different cables, usb ports, or even a different computer? The drivers can be unreliable at times, especially when you need them most. Windows 7 is usually the most reliable platform to get your phone detected. I speak from experience with that driver thing lol
[G3 General] javlada:
I never had TWRP working. It happened when I tried to root the phone and install TWRP. I think id didn't install and the phone SW got somehow damaged.

If I select yes in the recovery, I get no errors. The phone probably wipes the data partition as expected and then restarts. But then I'm in the same situation as before. The phone keeps restarting and won't boot. I only see the LG logo for a short time and then i restarts.

I tried different cables and computers (Windows 10 and 7) but as I mentioned the phone only connects to the computer as a unknown device if battery is removed. It can not even be a driver problem because the phone won't connect at all if battery is inserted. No new device appears. And the phone just restarts itself in a loop so it wouldn't help anyway.
[G3 General] bender_007:
What does it say onScreen? Fastboot or?

Poslano sa mog LG-H815 koristeći Tapatalk
[G3 General] javlada:
Only the initial LG logo appears for a short time and the phone reboots again. It won't even stay on unless I manage to get into recovery.
[G3 General] bender_007:
What about download mode?

Poslano sa mog LG-H815 koristeći Tapatalk
[G3 General] javlada:
I could not get to download mode, as I already wrote. I had to make my phone to service. Now I have it back and asking for some help to do it right this time. I started a new thread for it.
[G3 General] VR32:
has anyone seen a confirmation that this works to root the att D850 21R? this device is on its way to me and i must make a plan of attack!
[G3 General] danzel:
[MENTION=5231281]topet2k12001[/MENTION],

Hi bro,

What do you think of this? Will this fit on d858hk?

This is prerooted zip for TWRP (only from 5.x.x) by Artshell, so thanks for him please! Dont forget wipe before install.

https://drive.google.com/file/d/0B99GLucn_oGIdzhOZHdfQXg3Zlk/view?pref=2&pli=1
[G3 General] rk2612:
Heard that Marshmallow for D858HK is out. Have you upgraded yet and do you have a fully working TWRP and rooted? Much appreciate if you can come up with a detailed guide for that.
[G3 General] topet2k12001:
Hi [MENTION=224742]danzel[/MENTION],

Thanks for sharing. You are quoting this post, I assume?

As long as it is made from a stock dual-SIM LG G3 model/variant, I believe it will work. But correct me if I'm wrong: doesn't it defeat its own purpose, because for you to flash this via TWRP, you need TWRP already installed...and for you to have TWRP installed, you have to be rooted first? :) Nevertheless, having a ready-made, pre-rooted TWRP zip-flashable file is good for future use.

About the flashable zip (for TWRP):

If I'm not mistaken, [MENTION=5565972]Artshell[/MENTION] is active on Russian forums...I can remember sometime in the past that he sent me a Private Message but unfortunately, English is his not first language so I wasn't able to understand what he was asking for. Given he is from the Russian forums, this file is most likely for the D856 (also a dual-SIM). EDIT: I have downloaded and tested it. The TWRP-flashable zip of [MENTION=5565972]Artshell[/MENTION] is made from an "untouched" 30A Marshmallow firmware (for the D858HK).

I have tried some custom ROMs for D856 (Carbon ROM and CM 12.1, you can find those threads here in XDA) and they work fine with the D858HK. The kernel source code of D856 and D858HK are one and the same, anyway (from LG Opensource website).

Hi [MENTION=2464043]rk2612[/MENTION],

Not yet, as I have been enjoying custom ROMs/firmware so far. :) I missed custom ROMs from my Nexus days so when I got the chance to use custom ROMs for the LG G3 I moved to using them. I will miss the awesome camera from the stock LG firmware though...I find it really amazing and convenient for taking quick of candid/special moments.

Once I am in the mood to flash back to stock/official LG Firmware I will work on updating ImageprepGUI to cater to Marshmallow. However I think there are already some easy methods available which involve installing KingRoot. I saw a post from the D858HK Discussions thread - you might want to check that out and give it a try.
[G3 General] rk2612:
Thanks.

I downloaded Marshmallow stock KDZ for D858HK from LG's site and have been able to extract boot.img and system.img from it using various python scripts available on XDA with the intention of converting the extracted img files into a flashable zip.

But going through several posts on XDA, I am a bit confused whether stock boot.img (of Marshmallow) will need to be bumped before zipping it into a flashable or not. And if needs to be bumped, then will open_bump.py work on Marshmallow boot.img? When I try using open_bump.py on stock boot.img, I get the following message:

Image already padded. Attempting to remove padding ....

Beware: this may invalidate your image.

bumped image: boot_bumped.img

I am currently on rooted Lollipop with TWRP 2.8.4-signed and hoping to upgrade to Marshmallow without losing root and TWRP.
[G3 General] rk2612:
Many thanks for your detailed response. I was a bit desperate to try out MM and spent a couple of hours doing the following and succeeded:

* Extracted the boot and system images from KDZ using python utilities on Linux contributed here on XDA.

* Downloaded modified boot.img for D858HK from a Chinese forum and using Android Image Kitchen, extracted ramdisk and files.

* Verified using diff command on Linux that the only changes to the modified boot.img compared to stock were to disable dm-verity, enable permissive SELinux and it was bumped

* Flashed downloaded boot.img and extracted system.img using TWRP

* Flashed SuperSu 2.46 using TWRP

* Got as close to stock as possible MM for D858HK as I could think was possible!

Had to encounter a bit of learning about permissive SELinux, bumping and dm-verity but it was good learning. I have posted my method here on XDA and hopefully others will benefit (http://xdaforums.com/showpost.php?p=65515600&postcount=11)

You're right that open_bump.py did not succuessfully bump MM boot.img. However, sharpening mod 3.5 has a livebump script and does bump MM boot.img successfully.

Thanks to you and all others whose posts and guidance I was able to use.
[G3 General] rk2612:
I have found that Android Image Kitchen by osm0sis (http://xdaforums.com/member.php?u=4544860) located at (http://xdaforums.com/showthread.php?t=2073775) works the best and has the most updated binaries. And as with most tools available on these forums, I prefer those which are Linux based as these are the most open source and I do not have to experiment on my main windows laptop.

---------- Post added at 04:34 AM ---------- Previous post was at 03:40 AM ----------

I think that it may be because [MENTION=4544860]osm0sis's[/MENTION] tools include lz4 compression used for ramdisk by LG and, therefore, work on LG boot images. Haven't tried [MENTION=5787964]superR[/MENTION] and can't say for sure.
[G3 General] topet2k12001:
Hi [MENTION=2464043]rk2612[/MENTION],

I personally use Linux too, but when developing something with the intent of releasing for public consumption, we need to consider the platform used by majority of the targeted user base (like ImageprepGUI). Better yet, come up with a Windows version and a Linux version. Usually, developers aim for "more reach".

The thing with LG G3 is that there are no flashing tools available for Linux yet (for official LG Firmware in TOT or KDZ format). So for example, if you want to create a "Kitchen" or some automation software (that may involve, say, reflashing of the device), you don't want to give your end-users the complexity of having to set up a dual-boot system. I know that some are okay with it, but majority may not be, or may not have the propensity or time to do it, so that's another reason that drives developers to create tools that can run in MS Windows (which, I think, is also the reason why [MENTION=4544860]osm0sis[/MENTION] created a Windows version and even an Android version of Android Image Kitchen).

Anyway, Windows Batch Scripts and Linux Shell/Bash Scripts are fairly similar in logic; you just have to familiarize with the equivalent commands/syntax. And then there are cross-platform (can work in Windows and Linux) tools/software like Python...then you can simply convert a Python Script to a Windows executable (.exe) with tools like py2exe.

As for SuperR Kitchen, his mkbootimg/unpackbootimg are also from [MENTION=4544860]osm0sis[/MENTION] to begin with. I have a hunch that it's more on how he created the script (the automation). I read through his main script (filename: superr, which is a Perl Script) and I it looks like there's no part in the script that extracts lz4-compressed ramdisks. All I see are automation .cpio and .gzip-compressed ramdisks.

As a workaround, one can use Android Image Kitchen by [MENTION=4544860]osm0sis[/MENTION] to unpack/repack boot.img and/or recovery.img. Once done, set that aside. Then, work on SuperR's Kitchen to unpack system.img (make modifications, etc.). And then, when putting them together as a flashable zip, just copy-paste the boot.img from Android Image Kitchen into the zip (presumably, for system.img) that will be produced by SuperR's Kitchen.

I'm not a developer by profession, by the way. I'm just a hobbyist who spends his free time learning something new and sharing it. :)
[G3 General] topet2k12001:
Figured Out How to Automate - Somehow

Hi Friends,

(Tagging [MENTION=2464043]rk2612[/MENTION] and [MENTION=4544860]osm0sis[/MENTION])

So using this comparison (from one of my previous posts) as reference:

[IMG="reference"]http://xdaforums.com/attachment.php?attachmentid=3664162&stc=1&d=1456720747[/IMG]

I replicated the changes made from the boot.img of the TWRP-flashable zips provided by [MENTION=6965673]piaoxue99[/MENTION] and [MENTION=5565972]Artshell[/MENTION]. I also unpacked the stock/untouched 30A system.img, and also unpacked/repacked the stock/untouched 30A boot.img. The only change I made is to add:

androidboot.selinux=permissive

...to the file named "boot.img-cmdline" (it's found in the "split_img" sub-folder when boot.img is unpacked using Android Image Kitchen of [MENTION=4544860]osm0sis[/MENTION])

I then repacked boot.img (no extra options/parameters to the "repackimg.bat" command).

Then, I created a TWRP-flashable zip containing the unpacked system.img and the repacked/modified boot.img

Next Steps:

1. Reflash the device to Lollipop (fresh start)

2. Root and install TWRP (I used ImageprepGUI, of course :) )

3. Finish the initial phone setup wizard, then rebooted to TWRP

4. Flashed the TWRP-flashable

5. Flashed Sharpening Mod Script of [MENTION=2174433]Skin1980[/MENTION] (to set sharpening to my desired level, as well as to "bump" the modified boot.img)

6. Reboot to System

Result: worked fine!

Now that I was able to replicate, I will include this as an automated procedure in ImageprepGUI. It'll be version 2.7. Been a long time since I came out with a newer one.

Just to note, friends: there is already an available TWRP-flashable zip c/o [MENTION=5565972]Artshell[/MENTION]. To be honest, I didn't have to reinvent the wheel, but again as a hobbyist I would just like to include it and maybe/hopefully others will benefit.

The only benefit I see when it gets included in ImageprepGUI 2.7 would be:

1. If people already have a downloaded copy of a stock KDZ, they can create their own pre-rooted Marshmallow TWRP-flashable zip

2. For the "security-conscious" (let's say I don't trust any downloads over the Internet and prefer to make one myself), this is a good alternative

3. Extra learning for those who want to
[G3 General] lite72:
Please add Windows OS to the requirements if Linux/Mac/other is not OK. Why don't you make these things multi-platform and/or publish the sources?