yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] ieatacid:
http://stackoverflow.com/questions/...mand-to-push-a-file-on-device-without-sd-card

NULL: in C NULL is a macro for zero (0) but in other languages it often means the absence of a value or a value that is unknown.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
ADB push/pull only work in the system, you use "adb sideload flashablename" in recovery...
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Dozenboy0012:
Can we get a 10d TOT plz?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Sure, go make one:good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] autoprime:
adb push/pull works in recovery as well as adb sideload. adb sideload is more streamlined I suppose but technically you can do either or.

I just don't want anyone thinking they can't use adb push for some reason. I personally usually adb push files to /tmp/ while in TWRP (so I can keep data encryption and don't have to use an external sdcard) then flash/install them after the push is finished... but I'm weird and thats only my personal preference. adb sideload does make more sense to use if in TWRP. But yay.. options :good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mmtk99:
I'm trying to root and still this happening.. the only thing I can flash is autoprime kdz and that's it
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mmtk99:
I reboot computer,change the ports, unistall and install programs and drivers, re-download all the files again, install kdz and wen I try to Fastboot reboot bootloader is giving me the null message. Thank you in advance to whoever helps me or try lol
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] yossijoe:
If your on the latest version 10d you can't use this modified TOT because you can't downgrade to 10a
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mmtk99:
So I can't root no more?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] yossijoe:
Currently not
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mmtk99:
Ok thank you
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
Yes boot loader stays unlocked and TWRP recovery stays as long as you update with a zip via twrp. Some people have done it wrong and no longer have twrp. A tot for 10D will have to be made so those people can flash via LG-Up. Not sure if a twrp only or full tot would be best. I still have the twrp only tot I made for the 10a firmware but it fails to flash when on 10D. But my phone is on 10D with a working twrp. Since there is no 10D recovery tot there's not much for those people to do.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
I personally think a full TOT would be perfect since you just flash one TOT and it updates your phone and install's TWRP
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] xanderin:
I don't know what I did wrong but yeah, I'm one of those unlucky people who lost root. It seems like TWRP crashed while installing SU and I didn't catch rebooting into TWRP. Wish I could help with making the TOT, but I hear I wouldn't be helpful in that, since I've lost TWRP.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kcsevo:
Hi all. Can someone help me again please? I got my replacement phone today because of falling in the pool. I ran LG up without unlocking the bootloader by mistake. Now my phone just bootloops and a red "boot verification failed" pops up each time. Does anyone have any recommendations please? I'm so bummed out.

---------- Post added at 07:43 PM ---------- Previous post was at 07:30 PM ----------

Sorry if this is in the wrong thread. I was using the root tot.

---------- Post added at 07:56 PM ---------- Previous post was at 07:43 PM ----------

Nvm I LG up the stock tot no root and it worked. Sorry I panicked!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mlyma:
Hello. Can I use this procedure to root the LG H840 ?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] yossijoe:
NO
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] tungkick:
easy if phone of your update 10d then have twrp contact me i read tot .
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Could you possibly PM me and explain how you create a TOT?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
Okay sounds good I'll send you a message and we can figure out a good time to do it.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
Looks like he's going to do it tonight folks
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
:good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] RidinNerdy:
So i followed all directions i unlocked bootloader/rooted/twrp/su/ on 10a but i also flashed fluence 10d rom and patch, then i had no sound.. So i panic'd and used the LG UP and flashed the 10a+root tot file and now im stuck on the triangle screen and i can't boot to Twrp recovery, does this mean I've lost root for good? I know that "upgrading" via OTA i wouldn't be able to roll back, but i didn't know "flashing" would permanently not let me reflash back 10a, i wanted to debloat so bad... Not i have nothing...

If anyone could help i would appreciate it, im using the tmobile variant...

Thanks in advance!!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] shaneg79:
Yes, unfortunately so until there is a 10D root tot file created. :(
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] RidinNerdy:
So i found out i still have twrp, but when i boot to system after flashing any rom it boots back to twrp.. *Sighs* can you help me please!![emoji120]

---------- Post added at 05:54 AM ---------- Previous post was at 05:53 AM ----------

So i found out i still have twrp, but when i boot to system after flashing any rom it boots back to twrp.. *Sighs* can you help me please!![emoji120]
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] shaneg79:
If stuck in TWRP bootloop, just use the terminal feature in TWRP and type these commands:

dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/misc

dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/fota

Let me know if this fixes it. :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] tungkick:
read v10d done waitting [MENTION=5090002]wolfu11[/MENTION] upload
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
Sorry, I fell asleep and am now at work I will do it when I get home this evening.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
I will be home in about 4hrs and will upload the 10d twrp tot that [MENTION=4965298]tungkick[/MENTION] made, once it's uploaded I will send a link for testing it out. Sorry for the delay I work 13 hr shifts.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
I'm available for testing;)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] xanderin:
You are a ridiculous gentleman, and a scholar. If I didn't need to bed up practically right away, I'd offer myself for testing, as well, but alas... Soon back answer!?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
Link to 10d tot

Here is a link to the 10d tot that [MENTION=4965298]tungkick[/MENTION] made.

https://drive.google.com/open?id=0B_kjuub65aX8NENLV04xRmFFR28
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Testing Now, it's on 50% so it should be done pretty soon:fingers-crossed:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] xanderin:
Do we have any confirmed testers that are calling it safe?

Also, procedure = flash with LGUP, catch it to go to twrp after it finishes, flash SuperSU? What about dm-verity?

Procedure = keep reading...
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
I'll let you guys know it 5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] xanderin:
I salute your bravery.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
What do you mean "catch it"? Just pull the batter when its done at the lg logo and button boot into twrp. Then dm file then su (is how I did it)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
ROOT CONFIRMED + How To Root Guide!

How to:

Step 1) Install LGUP H830_DLL and LG Mobile Driver Once all 3 have installed on your PC, reboot your PC

Step 2) Download the Rooted 10D TOT and extract it (if you don't have software that can handle a RAR file, I recommend you use 7-Zip)

Step 3) Power your G5 off (or pull out the Battery) then connect your charger to your PC. Once your charger is plugged it, plug it into your device while holding the volume up button. This will place your device into "Download Mode". Now open LGUP (Run as administrator) then make sure to select your device. Once you've selected your device, select "UPGRADE" then in the section below it, click the File Path area and select the TOT you got from extracting the RAR and click "Start".

Step 4) As your device begins to flash, download DM-Verity Disabler and SuperSU

Step 5) Once your device reboots, pull the battery out of it for about 5 seconds then put it back into the device and enter TWRP (Hold volume down + power button and make sure to hold it as the device boots then after about 1 second release the power button and push it down again, then say "Yes" to factory reset for both prompts). Once in TWRP wipe your data partition TWICE (wipe > advanced > Data) then install SuperSU and DM-Verify Disabler.

Step 6) Reboot

Note: If you get stuck inside of TWRP (even though your reboot, you boot back into TWRP) run these commands in the terminal (Advanced > Terminal)

dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/misc

dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/fota

reboot
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] xanderin:
Ah, yeah, catch it before it reboots. I didn't think of pulling the battery! This is what I get for having non-replaceable batteries for years in a row.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mmtk99:
It works I'm rooted thank you guys
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] xanderin:
TOT worked on my second attempt! Not sure what I did wrong the first time. I think I forgot to wipe data twice. FOLLOW DIRECTIONS!

Thankfully, this new TOT can be reflashed at any time to fix your mistakes. It might not always be this easy...

Thank you so much, [MENTION=4965298]tungkick[/MENTION], [MENTION=5090002]wolfu11[/MENTION], [MENTION=5776618]1619415[/MENTION]. You are device savers!

Please go thank [MENTION=2684188]autoprime[/MENTION] here (mention fail) http://xdaforums.com/tmobile-lg-g5/development/stock-h830-10d-rom-flashable-zips-imgs-t3406505 because without his 10D ROM, we probably wouldn't be here right now.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] erikk:
You guys are amazing. So if I'm donating, who deserves it for this? Tungkick and autoprime for sure, anyone else help get the 10d tot working? I'm broke so it's not going to pay your kids through college or anything, but you guys deserve recognition and I don't think the forum thanks button suffices.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Tungkick and wolfu11 for sure, their the ones who made the TOT. autoprime also, he released the official TOT that this was based on. I only tested and wrote the new guide.

So ultimately your call
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] autoprime:
the step to format data should be optional... I'm not sure why wiping data encryption is wanted by everyone.

I leave data encryption enabled (I don't format data) and everything works just fine.. except I can't use my internal storage while in TWRP. but I can use the external sd just fine.. or just adb push or adb sideload a file once booted in twrp... or just stick a file in "cache" as I believe that is also never encrypted.

I'm not saying don't ever format data.. just that it should be optional and people should be shown why or why not.

when you flash supersu it disables force encrypt and your data stays unencrypted... unless you manually reenable it.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] sickkside13:
Sorry to ask but do i need to unlock bootloader first then fallow your instructions?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Yes
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] technicalvampire:
I have attempted several times to root my phone. Following the guide step by step.

I get to

When I finish this step I reboot my phone, it keeps booting to Encrypting data what have I done wrong?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
ROOT CONFIRMED + How To Root Guide!

Update: Added a missing step (enable OEM Unlocking)

How to:

Step 1) Install LGUP H830_DLL and LG Mobile Driver Once all 3 have installed on your PC, reboot your PC

Step 2) Download the Rooted 10D TOT and extract it (if you don't have software that can handle a RAR file, I recommend you use 7-Zip)

Step 3) Enable developer options (Settings > About Phone > Build Number (Tap several times) then go back and open the Developer Options menu and enable "OEM Unlocking" and "USB Debugging"

Step 4) Power your G5 off (or pull out the Battery) then connect your charger to your PC. Once your charger is plugged it, plug it into your device while holding the volume up button. This will place your device into "Download Mode". Now open LGUP (Run as administrator) then make sure to select your device. Once you've selected your device, select "UPGRADE" then in the section below it, click the File Path area and select the TOT you got from extracting the RAR and click "Start".

Step 5) As your device begins to flash, download DM-Verity Disabler and SuperSU

Step 6) Once your device reboots, pull the battery out of it for about 5 seconds then put it back into the device and enter TWRP (Hold volume down + power button and make sure to hold it as the device boots then after about 1 second release the power button and push it down again, then say "Yes" to factory reset for both prompts). Once in TWRP go into the wipe section and "Swipe To Factory Reset" (do this twice) then install DM-Verify Disabler and SuperSU (in that order).

Step 7) Reboot

Note: If you get stuck inside of TWRP (even though your reboot, you boot back into TWRP) run these commands in the terminal (Advanced > Terminal)

dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/misc

dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/fota

reboot
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] technicalvampire:
Thanks I don't understand what happened but it worked this time. ROOTED
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Sounds good, congrats!:good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 23good:
Thanks for the V10d tot.

I flashed it and did the factory reset, got to teamwin, but it fails to wipe data. Is my next step advanced<terminal? Or what should I check?

edit: reboot loops back to twrp, so I did the terminal commands, reboot to LG, turn on oem unlock and usb debugging, reboot volumn down+power to get to twrp. Wipe data works!

??In twrp, how do i flash supersu when those files on my pc?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
You can use ADB sideload, Put the files on a SDCard and move them to the device, Use a OTG Cable/Adapter or boot into your system and move the files onto your phone
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 23good:
It works! Thanks!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
worked perfectly without wiping data, well so far it seems to be good lol. all ive done was booted but it came up fine. thanks for the work you guys!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
I believe that provided you have wiped data once before to root and unencrypt, you will not need to wipe data again to upgrade.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] sickkside13:
I have one last question i am gonna return my lg g5 to tmobile for a replacement. Do you have stock tot for 10d ?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfu11:
LGUP the 10d kdz from autoprime then lock the boot loader. Before return.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
ok so i jumped the gun lol. all was well until i decided to wipe data after this tot was booted and fine. now all i get is the encrypting screen. i've done the process over and over but cant get anywhere. any advice on how to proceed?

edit: i see someone else had this issue but no specifics on how it was fixed so im sort of lost.

edit x2: found kdz so gonna try that to bring the old girl back to life lol.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] sickkside13:
Thanks didn't see the kdz file and what the command to relock bootloader? thanks in advance
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
fastboot oem lock
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 23good:
Did you get it going? I had some problems, and after a few hours finally had all my little errors corrected. Main thing was drivers for the phone, then I was trying to flash V10a on a V10d phone, then the phone kept resetting the oem unlock + usb debugging, after that, several flashes and reading every tutorial and youtube video, it almost completed. Thankfully, we were provided with the terminal commands and that finished the install.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
i got it booted with kdz but we all know its innevitable im gonna try this again so with a little luck and careful reading ill get it this time. something went wrong after i wiped data but maybe this time i wont wipe data. one question though, when twrp asks to modify partition should i let it? my oppo find7 always said "no os installed" when i did this so im not sure what to do at that part.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 23good:
I can't remember my answer, lol. I was whooped as I had been running through it so many times and being a newb to adb and command, I really can't remember. I've rooted before, but once it's done, I'm done. I don't develop or experiment.

edit: I guess I'm experimenting now, lol. But I just bought the tmobile version because it could be rooted. It arrived last night and I started with the tutorial at the beginning of the thread and LG UP keep throwing an error (because my version was the V10d). This phone is not my primary phone as of yet, but it will be Monday. In my case, I have root and that's what i want in a daily driver.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Yes, allow device modifications!:cool:!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
fair enough. well i suppose this is the fun part anyway lol. why experiment if you dont enjoy a bit of a challenge is how im looking at it. im seconds away from screwing this up again im sure but i shall prevail.....i hope lol. thanks for the input though, with the best intentions im glad someone else was struggling as well lol.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
If you need help, send me a PM I'll see what I can do:good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 23good:
Double post
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
no i havent but ill check it out and if it makes your day im still struggling lol. this is horrible, i feel ashamed :(

edit: so i notice the guy in the video hits format data, is this different from just wiping data?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] A Christian Guy:
This crazy but this guys are the best thanks guys..
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
ook i got it! so for anyone in the future with the encrypting screen, there is a difference in wiping and formatting data. make sure you format data and dont just wipe. possibly make a not of this in the guide for anyone having issues. thanks for the video [MENTION=7390553]23good[/MENTION]
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
Omg corrupt rar file?????

resolved....user error
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
Successfull attempt on 10a

Many thanks for the info.... The procedure went flawlessly for me. I admit that I did watch the YouTube video as well to familiarize myself with LG UP, but the experience was great reading this post in conjunction with the video. I didn't experience a boot loop in TWRP so I guess those who do may have had bad downloads. One thing I did different from here was I flashed the the no-verity 1st, then the latest SU 2.76 2nd. I think this post says the other way around.

One thing I need to find now is the com.t-mobile.pr.adapt file. It requested SU access and I ignorantly granted it permission....then I went in SU to deny it access.... When I look for it with Titanium Backup I don't see it! I want to freeze it.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
It's definitely there so maybe use the titanium search function?

One thing I couldn't locate were the OTA services to disable. I used the app system tuner to disable them on 10a but can't find them now on 10d. Anyone else have this issue?

Edit: Nevermind, was looking in the wrong apk. And the disable survived the dirty flash.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
I searched and can't find com.t-mobile.pr.adapt.

Its gone! Like after it obtained root it deleted itself.

Also, on 10a where can I wipe the OTA download my phone received?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Updates are stored in /cache and usually saved as update.zip:good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] onixlu:
Stuck in the first loop in "Encrypting" :(
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 1619415:
Try my GUIDE

[MENTION=4965298]tungkick[/MENTION] can you please update the OP with the content inside of my guide? Thank you:good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] tungkick:
yes update done
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] thecell_2007:
just a suggestion but possibly in your guide make a note that the format data option will get rid of the encrypt screen whereas the wipe data will not. and as someone else stated the dm-verity might need to be flashed before supersu to prevent the bootloop. these worked for me and others so this might help people in the event of. :good:

---------- Post added at 09:52 PM ---------- Previous post was at 09:48 PM ----------

try format data and type yes to confirm instead of wiping data. let me know if this works. :good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Vodkanakas:
do you still have to unlock the bootloader before doing all this?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] 23good:
Yes, the steps are included in the how-to on the first page.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] babymatteo:
Need help badly guys. Followed all steps to root using the TOT file. I cant enter TWRP recovery at all. At boot its flashing red saying boot verification failed. Cause : Mismatch_Sig_Len

Any help would be greatly appreciated.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] lordodin912:
Have you tried to reflash the stock kdz?

Go here: http://xdaforums.com/showthread.php?p=67074495 and DL the one that says "reinstall", it will have the stock link.

Hope it helps.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] babymatteo:
Will try this. Thank you so much. Hope this works :fingers-crossed:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] masturbaker:
sup? what's going on? I installed the file, but there's an issue. Booting into TWRP, it asks for a password to decrypt some type of data, but I have no password. Then I bypass that by canceling and inside the actual TWRP, I see all mountable drives as 0MB (if that's an issue), and I don't know where to navigate to the two ZIP's I'm there to install including SuperSU and de-whatever.. I see the file system I just have no clue where the zip's are on the internal memory. I intend to try a SD card next.

so what do I do at that point and is that normal? also my phone tells me it can't verify the installation on boot, that's normal I presume, correct?