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

Yup, that's the current approach. Go back to Lollipop, root it and install custom recovery (via ImageprepGUI or the other one-click rooting scripts available in XDA). Then search for pre-rooted Marshmallow firmwares that are flashable via TWRP (there are lots in XDA). All good.

Some go by rooting via Kingroot (think of it as a different "brand" of rooting app, like SuperSU) as they feel it's more convenient. Others have a varying opinion about Kingroot, though. So to be fair with Kingroot: unless our only definition of rooting is SuperSU, we can technically say that there is already a sure way to root Android Marshmallow for the LG G3.
[G3 General] Vrable:
Thanks, [MENTION=5231281]topet2k12001[/MENTION]

After reading your account that rooting worked for many people, I stubbornly tried again. Then I realized the unmounting line didn't work either because `lglaf` ran everything with `sh -c` and `sh` was on /system. All previous times, I just replaced it by

/busybox umount /system -l

to use umount's lazy unmounting. However, this time I ran

/busybox umount /system

using !EXEC instead, which meant no calls to `sh` and upon mount in the next line, /system was in rw mode!!

I'm sure the umounting worked before since lots of commands were missing after that step and busybox mount (ran through !EXEC) verified that /system was no longer mounted. So maybe the two types of unmount are different for some reason that's not at all obvious to me.

Although when I tried it a second time after rebooting, I didn't get /system in rw mode on the first try. But it did work on the third try. Although I was copy/pasting commands by hand, I'm now just guessing that under some odd conditions /system doesn't remount in rw mode.

Anyway, using the script from the Newer root method I linked to (slightly modified to avoid deleting things for which I didn't know the use of), I finally managed to get a working su binary! I was hoping to install Koush's Superuser instead at first, but the script in META-INF seem to modify boot.img so I didn't try to run those steps by hand.

Thank you. If it wasn't for this conversation, I don't think I would have ever thought of trying the same thing again and find that subtle difference.
[G3 General] MonaLisaOverdrive:
Could you elaborate on using EXEC! ?

I'm trying to root a VK815 using one of the root scripts out there and I too noticed that system isn't being mounted as rw.

I'd like to try the option you used.
[G3 General] topet2k12001:
Hi [MENTION=7350938]Vrable[/MENTION],

That's great to hear. :)

I was supposed to suggest another implementation of "Send_Command.exe" ported for Linux, which is this one: http://xdaforums.com/showpost.php?p=60557353&postcount=454. This one seems to be an easier implementation/port and doesn't have to deal with relatively complex parameters/commands for the typical end-user. The "lglaf" is something I personally like as well, but the one I linked has a closer look-and-feel for those coming from MS Windows versions of rooting (e.g. the "Send_Command.exe" ported over to Linux from the one I linked looks closer to the MS Windows one). I have tried it manually and so far, so good. That's the one (the one I linked) that I would initially include in ImageprepGUI Linux version. Perhaps at a later time I will also include "lglaf".

But yeah, "lglaf" looks cool. It's just that it doesn't seem to suit a lot of end-users. I did read about the parameters and commands to be issued, including "!EXEC" that you referred to. I was interested in "lglaf" because of this...as it can issue commands "as root" even if the device hasn't been rooted prior. And I guess, based on your account, it looks like you got how the command works/is supposed to work.
[G3 General] Vrable:
EXEC is one of the commands in Download Mode. In fact, all scripts are run using EXEC normally. If was talking specifically about using lglaf since the syntax for other programs will be different than this particular case.

This is what worked for me for remounting (and somehow only sometimes) using lglaf.

cp /data/local/tmp/busybox /
chmod 0755 /busybox

mount -o remount,rw /system # Probably doesn't work and does nothing.
!EXEC /busybox umount /system\0
!EXEC /busybox mount -w /dev/block/platform/msm_sdcc.1/by-name/system /system\0

Note the two spaces between !EXEC and the commands (very important!).

Well, actually, I had already modified lglaf.py a bit so I changed it some more so that I didn't have to type the \0 at the end of lines, but I think (hope?) that these lines work for the unchanged lglaf.

You can check if /system is mounted in rw by looking at the output of mount after the last step here.

However, if you were using a different tool, it might already be sending your commands through EXEC so I don't know if this will actually try anything new.

---------- Post added at 10:54 PM ---------- Previous post was at 10:50 PM ----------

Yes, I'm quite glad all these tools exist.

I did find qcdlcomm after I found lglaf. I don't remember if I tried it (since the problem didn't seem to be whether sending commands but rather what commands it sends). I do remember reading through it to see if there is anything new.

I did find it odd that it would use the serial (not sure if that's the right word) port ttyUSB but a working solution is a working solution. Is this what you mean by similarity to Send_Command.exe?

Otherwise, python lglaf.py puts you in a command line just like Send_Command.exe. python lglaf.py < script should even work the same I think. For linux, it needs the pyusb library as documented if you're planning to package it.

But whichever works is good I think!
[G3 General] Kathik:
can this fix secure boot error?

HELP! HELP! HELP! HELP! HELP!

sir, i have f460s korean. i have flashed download mode Marhmallow, then tried to downgrade to lollipop. it stopped at 5%,laf error by lg flashtool. now i getting boot security error, verification failed. going into factory reset mode but no download mode. its bricked. But i see my qualcomm 9008 in device manager.

does this bump method fix this issue? do i need to use marshmallow or lollipop boot images? advise me. i trying to fix this from 1 month. you are the only hope to me
[G3 General] aheeejd:
Thank you so much for quoting the entire op

Sent from my LGLS990 using Xparent BlueTapatalk 2
[G3 General] Kathik:
boot security error, verification failed on downgrade.

HELP! HELP! HELP! HELP! HELP!

[MENTION=5231281]topet2k12001[/MENTION]

sir, i have f460s korean. i have flashed download mode stock Marhmallow, then tried to downgrade to lollipop. it stopped at 5%,laf error by lg flashtool. now i getting boot security error, verification failed. now i can go into factory reset mode but download mode can;t stay, goes off. i don't have TWRP installed, not rooted prior to downgrade. its bricked. But i see my qualcomm 9008 in device manager.

does this bump method fix this issue? do i need to use marshmallow or lollipop boot images? advise me. i trying to fix this from 1 month. you are the only hope to me
[G3 General] rk2612:
When you say ...

.. what exactly do you mean by download mode can't stay, goes off?
[G3 General] Kathik:
on swtihcon. boot security error, certificate verification failed. download mode comes and goes off to blank screen. so no download mode. no recovery installed. can get mode into factory reset mode. but factory reset does nothing. only unbuntu mode or imageprep will help me. i think laf need to be flashed.
[G3 General] topet2k12001:
Hi @Kathik,

I'm sorry to hear that.

In the event of a "Qualcomm 9008" situation, you will use a different procedure. Please visit this XDA Thread: http://xdaforums.com/lg-g3/general/fix-unbrick-lg-g3-stuck-qualcomm-hs-usb-t2933853

That should get it fixed, back to stock/official Android.

And then, moving forward please do not use LG Flash Tool anymore. There's a new and better tool for flashing official LG Firmwares. The name is LGUP. I recently started having that problem with LG Flash Tool as well (stuck at 4% or 5%). The new tool, LGUP, is better in my opinion. Plus, it can flash TOT versions of LG Firmwares. LG Flash Tool can only flash KDZ versions of firmwares.

Here's another link as well to fix it: http://open-freax.fr/guide-unbrick-your-lg-g3/

...and another one: http://xdaforums.com/lg-g3/general/guide-boot-recovery-download-mode-t3273824
[G3 General] Kathik:
sir, thank you for your reply. my bad luck is my F460s korean model is not listed in it. all i need now create debrick image or dump file to boot from sdcard.

ALL you need is to FLASH ZIP FILE via TWRP which creates debrick.img in sdcard. this file we can boot into download mode and flash the TOT file.

On the Qualcomm powered S3, note 3, users were able to boot their s3 by writing a system dump of the same s3 variant onto their sdcards. And this worked even in situations like QHSUSB 9008 modes. Here is a link to the thread.. http://xdaforums.com/showthread.php?t=2439367

There is a zip file attached the creates the debrick.img when flashed in a custom recovery.

Here is a link of the unbrick.img creator zip http://d-h.st/Mui

Now all we need is owner to flash that zip file and get us the debrick image so that we could boot into download mode and reflash our stock roms via LG FLash tool

http://xdaforums.com/verizon-galaxy-note-3/general/howto-recover-hard-brick-t2834419
[G3 General] phnmnn:
How to install Twrp on LG v400?

I try this:

http://xdaforums.com/lg-g...-twrp-t3048845

Where i can to download aboot.img, laf.img, recovery.img for LG v400?
[G3 General] topet2k12001:
Hi [MENTION=7410084]phnmnn[/MENTION]

I apologize, but I haven't tried ImageprepGUI on other LG phones as I only have the LG G3.
[G3 General] RapHaeL_4_4_4_:
If I use marshmallow with KingRoot, will this method brick my device? or am I better to downgrade to LP and use it?
[G3 General] fitzkro:
Need Advice US990 lollipop

Im using the LG G3 but my carrier is Us Cellular (US990)(Lollipop)(5.0.1). Im wondering if this is compatible. Has anybody used this on the US990 or know if it is compatible? Or if you know of something else? Please help me out I would appreciate it.
[G3 General] yakovpol:
F400

It did not work for me on Lollipop F400K.
[G3 General] topet2k12001:
Hi [MENTION=6383375]RapHaeL_4_4_4_[/MENTION],

Not sure if I understood your question. Do you mean that you plan to use ImageprepGUI to root/install TWRP on Marshmallow? If that's what you meant, the current version is not yet ready for Marshmallow. My work on an updated version is at a slow pace recently due to my commitments at work. Rest assured I'm continuously working on it during the free time that I have.

Hi [MENTION=7423215]fitzkro[/MENTION],

I have no idea as well. US990 is like a "variant" of the LS990 (Sprint), correct?

EDIT:

I did have a conversation with someone in this thread. His was an LS990. I think, in the US where carriers have a "say" on the devices, the methods may either be a bit trickier or easier, depending on the carrier.

I have been reading that T-Mobile is great when it comes to "opennes" to tweaking (such as unlocked bootloaders on devices they sell), while Sprint and Verizon are, in contrast, a bit strict (some of the firmware versions they release are not "root-friendly", etc.).

Anyway, here's one of the latest posts in the conversation I had: http://xdaforums.com/showpost.php?p=65665084&postcount=861. You may read to relative previous posts so that you can follow the discussion. If I remember correctly, there are some firmware versions for Sprint that are not "root-friendly" so users will have to rollback/downgrade to a firmware that is "root-friendly" (I think it's a Kitkat firmware). And then once rooted, just upgrade to Marshmallow.

Such procedures have not been implemented on ImageprepGUI, as my own LG G3 variant/model is not a US-based model. Although the more "generic" ones work fine with it (D855, D850, D852/G, D856/8/8HK, etc.). I did get the Verizon model to work though (VS985).

I'll read up more on LS/US990 variants and then see how I can implement it.
[G3 General] Keror0:
Tried ImageprepGUI v2.5 and v2.6 on D855 Android 5.0 V21a-HKG-XX

Downloaded aboot, laf and recovery from Post#1 "Imageprep Folder in Google Drive" D855HK folder:

Waiting for device...
Device detected.

List of devices attached
LGD855c10f8068	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.
Your LG G3 now has "bump'd" boot.img and "bump'd" TWRP custom recovery. Congratulations!

Testing TWRP. Booting to TWRP Custom Recovery...

I choose the option only install TWRP because it was successfully rooted and with Superuser v2.46 installed already. After the above, phone rebooted to stock recovery instead of TWRP:
[G3 General] louvass:
Thank you

Thank you for this I am on stock MM on the D850 after upgrade. After running this, it never boots into DL mode during the process, so this didn't work for me. It did reboot the first time be then never booted into DL mode. I have all the files and it seems to work fine just wont to do DL ;( I'm still trying, not sure what causes this. Thanks again any help would be appreciated
[G3 General] tab0fish:
Installed TWRP on G3 D855

Hi

Just a thank you post as have install TWRP on my D855. The ImagePrepGui works really well - used the option to just install TWRP. My phone already had Kingo root on it. So I was wondering now - is it possible/necessary to root with SU like all my other devices? Reading the info about SuperSU on Play implies it's not just an over-install.

Cheers

Rob
[G3 General] JkdJedi:
What's imageprepgui? (nevermind...I'm a dork)
[G3 General] francescotrevisan3:
lg d690

Hi, does it work on lg d690? Thanks
[G3 General] Zealotki11er:
Not installing for me on D852G. I have the drivers and Enabled USB debugging. I am on KK right now. The first step to ROOt takes forever and never reboots the device. I then goes to install Custom Recovery where it get stuck trying to push files to a un Rooted device.
[G3 General] Liododda:
I have a strange problem with my lg g3 d855, please help me

first of all I'm not an expert at all,

1- my g3 started having fading screen till being black and flickering.

2- I found in some thread a guy saying that I can fix that through the hidden menu and doing an mt test, when I did so my phone got stuck completely in a black screen so I had to pull out the battery and just reboot, and suddenly I got the "secure boot not verified" screen and my phone's LED flashing red and blue.

3- I rebooted into twrp recovery, knowing that I have the twrp 3.0.2 and my phone rooted via kingroot.

4- I wiped chache and Dalvik/ART Cache then rebooted, still the same problem.

5- I did a full wipe then flashed the same rom I was using which is stock mm from here http://xdaforums.com/lg-g3/development/stock-d855-30b-images-kdz-flashables-t3282012

6- still had the same problem so I tried a back up but it got stuck with a twitching black screen, so I flashed the stock rom again but this time it lagged with a black screen again!

7- then I did a full wipe and flashed rom CM13 it was successful but still had the same secure boot problem, I mean I can't get my phone started at all ! :(

8- I flashed the stock mm rom again and now I'm still stuck, I don't know what to do to get my phone to start normally again! :( :(

*notice: my phone doesn't get recognized on any pc, I can't use any pc related method so I just can use twrp methods! :(

please HELP ME T_T
[G3 General] stkt2ya:
I too used IP to roll back this D852 from MM and am dealing with the same issue. I am going to attempt to install SU and the recovery with either ODIN, Flashify or the modded LG Flash tool. Whatever works. IP has brought the device back to 5.0.1 (4.x.x first time before bricking) but I realize that the BL must still be locked. I'm still somewhat intermediate with all of this and have previously only worked with Samsung stuff, with good success at least. The device I'm working on belongs to someone else so even though I've already bricked the thing once (2 day fix), it's not time critical so I will pass my eventual successes along (I don't do failures. EVER.).
[G3 General] DE52:
Odin is only for samsung devices just so you know, but yes the bootloader is locked on this phone. We just use special code and a security loophole in everything to trick the bootloader into thinking everything is fine although TWRP, etc is installed. If the code is missing or the way you installed is wrong in some way, the phone will boot to a black screen with blue/red LEDs flashing or just stays black when you're unlucky and no button combinations work (meaning you messed up way more)

edit: what exactly are you trying to install by the way and on what version of android? Depending on which update you're on, LG patched some loopholes, so being on an older update could be beneficial in some instances
[G3 General] stkt2ya:
Device returned...

Well I've since returned both the LG devices I had been playing around with so I survived the ordeal. Odin, yes I do know this already and I must have been thinking the Flash Tool or something. Kind of things that can happen when one is jumping around between various devices. I've got like 10-15 in my possession that have essentially been abandoned as no one else was able to break, unlock, root fix or unbrick. I believe I had been trying to sim unlock the LG's. Don't think i succeeded but instead just swapped the 2 devices as both parties were trying to get onto the others network. Like duh, maybe people should just do that instead, save all the bs... One thing I did discover after bricking the thing, was an interesting way out of the red and blue or non function problem. I posted in a different thread my solution. The thread was titled "How to unbrick your LG...." Or something similar I believe. It was so simple I was shaking my head having spent 2 days trying. My current agenda has been this friggin FRP crap that Samsung fell in love with at the expense of the frustration levels of many. Myself included. I've even been locked out of my own phone by the ADM and Google. My pattern/password would not work... Like wtf? Immediate loss of everything not recently backed up. Annoying. Anyway, I'm rambling sorry.

As you were.

Cheers!

Edit: Here's the post...

https://xdaforums.com/showthread.php?p=70835477#post70835477
[G3 General] rahimali:
[MENTION=5231281]topet2k12001[/MENTION] can you please clarify

I have the following

Model:LGD855

Suffix:ASEAKG

Android version 5.0

Android security patch level 2015-11-01

Build number LRX21R.A1447078419

Software version v21a-sea-xx

I'm rooted, supersu is installed.

i flashed bump'd twrp but am getting security/boot certification error when trying to boot into recovery. otherwise phone is working fine, booting into android and fully functional.

can i use imageprep to flash aboot, laf and custom recovery from the existing lollipop to have a working recovery?

are aboot and laf intended to be flashed on kitkat or lollipop? will flashing aboot and laf on lollopop cause hard/soft brick?

or

do i need to downgrade to kk (which I don't mind at all since i need to flash custom roms anyway) to boot into and have a fully functioning recovery? if so, can you please guide me which kdz i need to download and where from because i'm new to G3

basically i just need fully functioning recovery because i'm not planning on sticking to stock rom whether lp or kk

Thank you!
[G3 General] topet2k12001:
Hi [MENTION=550835]rahimali[/MENTION]

I posted a Q&A section at the first page of the thread for reference. :)

So the device is booting normally in Android, but not in TWRP. It looks like TWRP wasn't "bump'd" properly, or if you insist that it is already "bump'd", you probably have the wrong version/variant of TWRP for your specific LG G3 variant (there are lots of LG G3 variants).

You can manually "bump" your TWRP, there are links in the first page under the Q&A section. Actually I prefer to manually "bump" my TWRP and/or kernel (boot.img) so that I'm sure I have the correct ones for my LG G3 variant, rather than downloading stuff from the Internet.

You may opt to do the second (original, but manual) process of downgrading to KitKat, no worries. Some just find it inconvenient but it's actually the best way. :)

I already moved on to the OnePlus 3, but I still have the LG G3 (handed it over to my wife), so I still get to monitor this thread.
[G3 General] skygunner:
Thanks very much OP, got this working and now my G3 has TWRP as well as LineageOS.

Since this comes with TWRP 2.8.X, how do I update it to the newest TWRP 3.x?

Just flash the TWRP 3.X for G3 D855 or there's something else needs to be done?
[G3 General] shahzadmushtaq:
Please HELP Me!! Secure boot error !!

I was using lineage, I just simply reboot into recovery and installed supersu Unfortunately when it rebooted it show secure boot error boot certification failed and the phone led blinks red and blue ! phone is not starting up Please help me to fix this issue!!
[G3 General] pippo45454:
information...

Hi, This new method also works with the version v30n?
[G3 General] :
Phone-Bricking Third-Class Tool

i bricked my LG D850 twice due to this tool , even i followed the instructions correctly .

After using this tool my phone would boot correctly and make sounds but the screen would be completely black , not even lg logo .

.

Somehow i debricked my phone , but i am not going to use this tool again .

I simply flash kitkat firmware for installing twrp .

.

.

You should be banned for this phone-bricking unstable tool [MENTION=5231281]topet2k12001[/MENTION]
[G3 General] topet2k12001:
[MENTION=8382558]Mansoor4139[/MENTION]

I'm sorry to hear that. However if you look at the thread (very first post) and visit my profile you can see the number of people who thanked me for this tool as it was able to help them. I also received a handful of donations via PayPal as tokens of gratitude.

So I guess those facts make your comment/last sentence in your post unwarranted because obviously, the tool works.

It's sad because there were people who even reached out to me via PM/chat for one-on-one assistance, which I could have extended to you as well.

Anyway I'm still glad you were able to resolve your issue.
[G3 General] topet2k12001:
Please check out the FAQs in the first page as this behavior that you describe already has an identified cause and solution.
[G3 General] akshargajjar:
I have flashed custom roms in d851 tmobile , but it stucks on custom rom boot screen logo for hours?
[G3 General] Keetz:
Can this be updated to flash Marshmallow? I prefer MM to KitKat or Lollipop.