yashsingh1/xdaforums huggingface dataset:
[LG G Pad X 8.0 Guides, News, & Discussion] pressmoon:
Same Position I'm Stuck In

That's exactly the problem I'm having MM. I've tried it over and over and it sticks at that same spot every time.

Any suggestions folks?
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Is our v521 armv7? Maybe we have the wrong files from the OP link.

I did ctrl-c to get past the previous step and now I get your same error.

Can somebody post a working set of the 4 Dirtycow files.
[LG G Pad X 8.0 Guides, News, & Discussion] fjutrackx:
some tips

Hello everyone.

I tried and tried the past days to get LineageOS on this LG, and i succeeded.

First of all thanks for this threat. I think i owe someone a hug :).

But i also want to share my experience doing this, so it can help others.

Trouble part 1:

$ ./dirtycow /system/bin/applypatch recowvery-applypatch

<wait for completion> => could take up to 5 minutes.

$ ./dirtycow /system/bin/app_process32 recowvery-app_process32

<wait for completion, your phone will look like it's crashing> => Each time it didn't crash, it failed. So just redo the previous 2 commands. That worked for me.

$ exit
adb logcat -s recowvery

This goes quiet fast. If you only see 2 lines of text after 30 seconds, it failed and you have to do the applypatch thing again. If it worked you see a lot of text.

Pressing "ctrl + c" cancels the current action. You always have to do this to be able to enter the next commands, regardless the result.

Trouble part 2:

To install LineageOS i copied the zip to my sd card. in TWRP i did a standard wipe, installed LineageOS and afterwards, before rebooting, i formatted the data partition.

The first time i formatted it before installing, TWRP boot-loop (but it also could be that i did other wrong things). Second time i didn't, lineageos gave an error and wants to do a restore, bootloop. Third time it worked.

Each time that failed i had to restore the original LG image and start over all again. You can go into download mode by powering off the device, unplugged. Hold the volume up button and plug it in. This way worked for me. And oh yes, reading the console output can help you further, but i saw a lot of red lines that didn't had any effect on the installation of LineageOS.
[LG G Pad X 8.0 Guides, News, & Discussion] pressmoon:
Thank You But...

Thanks for the feedback but after trying 8 or so times, I still can't get past it hanging after adb logcat -s recowvery. I'd previously rooted using these instructions but after screwing up and hitting the wrong thing while in TWRP, I had to install the 20g update via LG Bridge just to reload the LG OS and can't root since.
[LG G Pad X 8.0 Guides, News, & Discussion] kimple_john:
Hello friends, I successfully flashed nougat and got root working on my T-Mobile LG G pad x 8.0 about a month ago but now I see there's an OTA update. I was wondering what steps I would have to take in order to update and preserve root because my tablet has been a little laggy and I was curious if an OTA update would help with that. Or do you guys recommend staying on the current version I have and not update instead because I'm fine with that lol
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
I took update and now I can't root. Stuck on 20g.
[LG G Pad X 8.0 Guides, News, & Discussion] pressmoon:
In Same Boat

MM,

I'm stuck like you and can't figure out a way to rollback to 10j or earlier either. I've tried LG UP and UPPERCUT to do so without success. Stuck at "adb logcat -s recowvery" as I'd said earlier. Tried 10+ times but stuck at adb logcat every time.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
20g is probably anti rollback. Try 20f from OP.
[LG G Pad X 8.0 Guides, News, & Discussion] pressmoon:
If I can't roll back 20g using LG UP or UPPERCUT, what exactly are my options?

And thank you for the feedback.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Just finished flashing 20f.kdz with UPPERCUT/LGUP from 20g. Revert is possible to 20f. Then did factory reset.
[LG G Pad X 8.0 Guides, News, & Discussion] pressmoon:
UP won't recognize my V521 (error prompt states it can't load the model) even though my pc clearly does. That's why I can't use UP.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Sweet. Had to do this twice and now I have twrp after reverting to 20f from 20g. Thanks so much.

You have to have UPPERCUT running first, then run LGUP.
[LG G Pad X 8.0 Guides, News, & Discussion] pressmoon:
Finally got the turkey to take a rollback to 20f then rooted.

Thank you for your help MM777
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Sweet. The 20g was only a small 99mb update. Hopefully I can cook up a rom to make it flashable under twrp.
[LG G Pad X 8.0 Guides, News, & Discussion] MKFelidae:
Help

I tried to take an update after following this guide... one problem. now the tablet ONLY boots to TWRP. It Even boots to TWRP when I try to charge it. I have tried wiping Data Cache and dalvik, I have tried to use the adb reboot command and tried all reboot recovery, bootloader and other reboot options. It will reboot to bootloader mode but LGUP won't find it in any booted or unbooted mode. I have tried various options while in TWRP. I have reached the end of my minimal experience.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Turn off tablet. Press n hold volume up, then plug into pc and do kdz restore.

I think there's another method in twtp to get out of your bootloop too also. Google twrp bootloop after update.
[LG G Pad X 8.0 Guides, News, & Discussion] Johnnyrocket:
Soooo.....

Has anyone been able to root 10e (last version of Marshmallow) ?? How????

When I try with dirty cow, it never gets past the logcat step....

Anyone even trying this???

Thanks???
[LG G Pad X 8.0 Guides, News, & Discussion] MKFelidae:
Thanks for the help it worked... have to reroot it but better than a soft bricked device. btw there was a post on andriod forums about TWRP boot loop that uses a pair of "dd" commands to break the loop from inside TWRP.
[LG G Pad X 8.0 Guides, News, & Discussion] crazyc78:
I have a problem I was successfully able to get TWRP on my tablet but once I'm in TWRP I can't get my SD card to mount. I can't format data either in TWRP I keep getting error messages. If anyone has a suggestion that would be great!!
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Format the sdcard in FAT. Not sure about formatting data. Mine formatted fine.
[LG G Pad X 8.0 Guides, News, & Discussion] crazyc78:
Ok I'll try that and see if it works
[LG G Pad X 8.0 Guides, News, & Discussion] crazyc78:
OK do you mean to format it in FAT32? and should I format it through Windows or is there an app that I can format it through? Also internal storage doesn't mount either. If this helps I'm coming from rooted Marshmallow before.

Thanks
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
I formatted through twrp in wipe section FAT, not FAT32.
[LG G Pad X 8.0 Guides, News, & Discussion] eriklion:
Yes, thanks for telling us that. Now would you mind telling us how to wipe /data to remove encryption? Till then Lineage wont boot.

I didn't encrypt the device. LG ****ery.

terminal commands are acceptable.

Flashing stock recovery and rebooting solved the issue. . Wiped like it was supposed to.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
After getting TWRP on 20f, flash 20g rom here:

https://xdaforums.com/showthread.php?t=3561610
[LG G Pad X 8.0 Guides, News, & Discussion] skywalker-live:
If you flashed STOCK recovery then you won't be able to flash any updates to your rom.

In the wipe menu of twrp the lower right button says FORMAT data, this will remove encryption. It will also FORMAT internal storage so backup anything important. If lineage still won't boot then search that thread for some dd commands.
[LG G Pad X 8.0 Guides, News, & Discussion] SiNJiN76:
So, it looks like there is a small update (~99mb) . Anyone know how to get rid of the notification completely and keep tablet from downloading the update again? ( I've deleted the file... but it keeps getting downloaded)
[LG G Pad X 8.0 Guides, News, & Discussion] crazyc78:
I formatted the SD card in TWRP and it still won't mount and neither does internal storage. I'm at a complete loss here. Not sure what I'm doing wrong but if you can help shed some light that would be great.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Flash my 20g rom ti fix that.

Im actually in the same boat as you now. I force stopped my LG Backup recovery, then all hell broke loose. Somehow stock recovery even got reflased by itself. Did a 20f.kdz restore, then reflashed twrp and data and internal storage mounting won't work.
[LG G Pad X 8.0 Guides, News, & Discussion] Stonkers:
Can someone please tell me where to put the kdz file? When I was rooting marshmallow I created folder in lgup/model and named it common and that's where I put the dz file and finally my device was recognized. With this I've had no such luck. Please help
[LG G Pad X 8.0 Guides, News, & Discussion] Stonkers:
Please, I really need help. I downloaded the dll file, renamed it, and created the common folder to place it and lgup is still not seeing my device.. I have to do something with this thing. The software issues I'm having with MM are ridiculous. I cant get into developer settings, theres no notification pulldown or notifications and the home and recent keys stopped working.. I really need this update
[LG G Pad X 8.0 Guides, News, & Discussion] skywalker-live:
This is because of LG's forced encryption in the STOCK kernel. The only way twrp can see /data or internal storage is by using the FORMAT /data button in twrps wipe menu, be sure to backup anything important as it does the internal sd as well. This format removes encryption. It seems as though we need altered boot.img's to flash with rom.zip updates so as to not incure LG's forced encryption.

On a side note does any one know which img's we actually need from the kdz to make a proper flashable firmware update (if any besides bootloader and modem). I've been working on a 10e update with all 25 img's/ partitions (the firmware .zip [MENTION=5687366]Eliminater74[/MENTION] cooked for my h901 v10 uses all of its partitions from the kdz but I suspect not all are actually different from their previous versions.) but it keeps amounting to 200+gb so something isn't right. Once I figure it out flashable update(s) to 20f (and 20g) should be just as easy.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Well I can't format data because data won't mount. This is crazy. Trying a few other things.
[LG G Pad X 8.0 Guides, News, & Discussion] crazyc78:
I tried to format everything and do a Factory rest in TWRP and it won't work. I get a slew of error messages saying that it can't mount data and cache etc. I'm thinking I may have to try the dirty cow method again. I've never had this much problems rooting a device before. Also just to note my device was rooted previously on MM under tungkicks previous method. I didn't have a problem rooting it before. Should I revert back to complete stock in LGUP and then try again?
[LG G Pad X 8.0 Guides, News, & Discussion] skywalker-live:
The FORMAT /data button (it's not a wipe) will fix it. /data isn't mounting because of encryption, twrp can't decrypt LG's encryption, but it can remove it by formating /data. Look to the lower right of the wipe menu for a button that says FORMAT. This worked for me on tunkicks 10c. (sorry I'm waiting for exposed for nougat.)
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Ahh. Just noticed that. I was trying to wipe. Thanks again!! Fixed!!
[LG G Pad X 8.0 Guides, News, & Discussion] skywalker-live:
Here's a picture so that other's can see what they're looking for.
[LG G Pad X 8.0 Guides, News, & Discussion] skywalker-live:
Sorry for 2 posts with the same picture, xda labs wasn't reloading for me.
[LG G Pad X 8.0 Guides, News, & Discussion] crazyc78:
I'll try it again and see if I have success and report back.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
If you wipe system then flash a rom you might get stuck in twrp bootloop.

Only fix I could find was flashing stock recovery. Then you'll have to reroot and get twrp again.

LG-V521-STOCK-RECOVERY.zip

https://www.androidfilehost.com/?fid=745425885120710531
[LG G Pad X 8.0 Guides, News, & Discussion] skywalker-live:
There are 2 dd commands in the lineage thread that fix the bootloop.

https://xdaforums.com/lg-g-pad-83/general/lineageos-14-1-available-t-mobile-lg-t3545703/post70851933
[LG G Pad X 8.0 Guides, News, & Discussion] SeanGold:
TRying to install TWRP and root, but keep getting "not found". Can anyone help? Am I doing something wrong?

C:\Users\sean_\Desktop\g pad>adb push dirtycow /data/local/tmp

559 KB/s (13728 bytes in 0.023s)

C:\Users\sean_\Desktop\g pad>adb push recowvery-applypatch /data/local/tmp

3928 KB/s (22144 bytes in 0.005s)

C:\Users\sean_\Desktop\g pad>adb push recowvery-app_process32 /data/local/tmp

2508 KB/s (17992 bytes in 0.007s)

C:\Users\sean_\Desktop\g pad>adb push recowvery-run-as /data/local/tmp

2694 KB/s (17988 bytes in 0.006s)

C:\Users\sean_\Desktop\g pad>adb push twrp-3.0.2-x-xxxx.img /sdcard/twrp.imgadb push dirtycow /data/local/tmp

5587 KB/s (15529984 bytes in 2.714s)

C:\Users\sean_\Desktop\g pad>adb push recowvery-applypatch /data/local/tmp

4318 KB/s (22144 bytes in 0.005s)

C:\Users\sean_\Desktop\g pad>adb push recowvery-app_process32 /data/local/tmp

4278 KB/s (17992 bytes in 0.004s)

C:\Users\sean_\Desktop\g pad>adb push recowvery-run-as /data/local/tmp

3517 KB/s (17988 bytes in 0.004s)

C:\Users\sean_\Desktop\g pad>adb push twrp-3.0.2-x-xxxx.img /sdcard/twrp.imgadb shell

3721 KB/s (15529984 bytes in 4.075s)

C:\Users\sean_\Desktop\g pad>adb shell

b3:/ $ $ cd /data/local/tmp

$ chmod 0777 *

$ ./dirtycow /system/bin/applypatch recowvery-applypatch$ cd /data/local/tmp

/system/bin/sh: $: not found

127|b3:/ $ $ chmod 0777 *

/system/bin/sh: $: not found

127|b3:/ $ $ chmod 0777 *

system/bin/applypatch recowvery-applypatch$ chmod 0777 * <

/system/bin/sh: $: not found

127|b3:/ $ $ ./dirtycow /system/bin/applypatch recowvery-applypatch

$ ./dirtycow /system/bin/applypatch recowvery-applypatch

/system/bin/sh: $: not found

127|b3:/ $
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Your pushing files all crazy. Only push these:

adb push dirtycow /data/local/tmp

adb push recowvery-applypatch /data/local/tmp

adb push recowvery-app_process32 /data/local/tmp

adb push recowvery-run-as /data/local/tmp

adb push twrp-3.0.2-x-xxxx.img /sdcard/twrp.img
[LG G Pad X 8.0 Guides, News, & Discussion] SeanGold:
I appreciate the response, but I don't understand. I pushed the files you listed, the same way, and as listed. I posted the CMD dialog to show my issue, of when I try to execute those files and I get a "not found" response. Not sure why. Any help is appreciated!
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
It also looks like your in:

/system/bin/sh

Which is why is not finding those files pushed to:

/data/local/tmp

Your "cd /data/local/tmp" is not working.
[LG G Pad X 8.0 Guides, News, & Discussion] SeanGold:
Hmm I see. Any idea why that is? I used the provided .kdz file with LGUP and did everything per instructions. What could the issue be? Really appreciate the help!
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Not sure. You using the ADB files from the 1st post?
[LG G Pad X 8.0 Guides, News, & Discussion] SeanGold:
Yes. I've downloaded everything and did as instructed. Really could use some help if there's anyone else that can figure this out?

Appreciate it!
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Are you on 20f as this doesn't work on 20g.
[LG G Pad X 8.0 Guides, News, & Discussion] SeanGold:
I checked that and I am indeed on 20f still. Like I said, I did everything as it said, and can't seem to figure out why it's doing this. I don't understand why it isn't able to change to the location of the files on the tablet?

I greatly appreciate the help.
[LG G Pad X 8.0 Guides, News, & Discussion] MKFelidae:
Is that post a dump of your command line processes? If so you put a $ in front of each command. Try running the listed commands as written without the dollar sign in them.

---------- Post added at 07:27 PM ---------- Previous post was at 07:24 PM ----------

See it says $: not found. It is looking for a command named $.
[LG G Pad X 8.0 Guides, News, & Discussion] Shockey0710:
the $ is already outputted and youre copying two $ $adb asdfghh, which is why cd wont work probably lol. he did not make a very articulated guide. but yes the command is not the dollar sign which is a marker in actual code
[LG G Pad X 8.0 Guides, News, & Discussion] xiejiaxin2012:
D:\adb>adb shell

b3:/ $ adb push dirtycow / data / local / tmp

/system/bin/sh: adb: not found

127|b3:/ $ adb push recowvery-applypatch / data / local / tmp

/system/bin/sh: adb: not found

127|b3:/ $ adb push recowvery-app_process32 / data / local /

/system/bin/sh: adb: not found

127|b3:/ $ adb push recowvery-run-as / data / local / tmp

/system/bin/sh: adb: not found

127|b3:/ $ adb push twrp-3.0.2-x-xxxx.img /sdcard/twrp.img
[LG G Pad X 8.0 Guides, News, & Discussion] MKFelidae:
You do the adb commands before opening the shell.

The adb push commands are loading the dirty cow files and twrp onto your device so that you can the access them from the adb shell. The adb push commands should be just from the cmd line.
[LG G Pad X 8.0 Guides, News, & Discussion] datzstr8:
I am following everything as shown but I still can't get past the step with

adb logcat -s recowvery

This is what I get

adb logcat -s recowvery

--------- beginning of system

--------- beginning of main
[LG G Pad X 8.0 Guides, News, & Discussion] bwonish:
i was getting stuck at the same point, i had initially flashed to the 20g version as opposed to the 20f version of the kdz through LGUp. once i flashed back to the 20f, it worked perfectly.
[LG G Pad X 8.0 Guides, News, & Discussion] datzstr8:
I was able to do it after I did a factory reset.

Thanks
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
You factory reset 20g and it worked?
[LG G Pad X 8.0 Guides, News, & Discussion] bwonish:
i am having trouble obtaining SU. i went through the instructions on the thread, flashed everything, loaded TWRP, have recovery working and obtained SU, everything was great....but I initially used a small SD card i had laying around while i awaited my new larger version. now that it arrived, i tried to trade it out and i am can't obtain SU and TWRP can't mount the SD card.

i have tried to go back through ALL of the steps to flash and root with the new SD card in the tablet. During this process, the only error i received was a note that TWRP was already installed, so it wouldn't reinstall. Inside TWRP, have tried to Wipe /Format Data to wipe everything and get rid of the encryption. but i don't seem to be getting to the SD Card. When i go to advanced wipe, and try to select external_sd and wipe it, i get 8 or 9 error messages, Failed to mount '/external_sd' (Invalid argument). next lines state Formatting external_sd using mkexfatfs... Done. Updating partition details... then another error Failed to mount '/data' unknown error 150) ...done, unable to mount storage.

while in TWRP, if i go into Mount, i cannot select external_sd or even Data or USB OTG. If i hit the "Select Storage" button, the Internal Storage, Micro SD Card and USB OTG all show (0MB) and i cannot select the Micro SDCard there either. Same thing in Advanced/Partition SD Card, the MicroSDCard is still at 0MB.

Clearly, TWRP isn't able to access the SD card. when the tablet boots up, i am able to copy files to it, and move the twrp.img and SuperSU files to it, so it is mounting in when the tablet is running. i am at a loss as to what to try. Do i need to try to reinstall the stock recovery? If so, any links to how to do that?

on a related but different question, if anyone out there is still running marshmallow and can point to the tutorial/steps to flash back to a rooted MM version that can run xposed, i would appreciate any links. the ones i have read all seem to be pretty old and confusing.
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Format your SD Card in FAT.
[LG G Pad X 8.0 Guides, News, & Discussion] kimple_john:
Hey can someone share their screenshot of their build prop for their LG G pad x 8.0 on Nougat? I changed my to.product.model to pixel XL and now I need it back to the original. Thank you! Also is anyone facing lag on Nougat? Idk what to do cause it's stock firmware and I barely have anything on the tablet. My G pad is rooted too on Nougat but that shouldn't matter right.
[LG G Pad X 8.0 Guides, News, & Discussion] bwonish:
Thank you, getting the SD card formatted in FAT was the key.

To the extent it helps anyone else, i struggled to get my 128GB SD card formatted in FAT (16 or 32). Windows doesn't offer a native formatting option in FAT anymore. From the command line, formatting in Fat and Fat32 both had errors that the volume was too large. i found an app that has been built to help format cards in FAT, http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm. i am not connected to the site, but it worked very fast - just a couple seconds to format everything (windows command line took a while before it failed). there is a good tutorial and you can either run it from command line or there is a gui.

Thanks again for the help!
[LG G Pad X 8.0 Guides, News, & Discussion] meh3884:
thanks for this, worked for me. were you able to update back to g once it was done? when i went back to F i had constant crashing. currently trying to reset on F, wondering if i should try to go back to G

edit: tried factory resetting and now it only boots to TWRP. any ideas?

edit2: had to to a manual kdz restore
[LG G Pad X 8.0 Guides, News, & Discussion] eriklion:
This did not solve the problem then. Recently found out I had to change the filesystem then change it back. Oh well.

I can flash what I like :P I had TWRP in the boot partition. stock recovery in recovery partition because it wont start from boot. That's how I wiped the device.
[LG G Pad X 8.0 Guides, News, & Discussion] theadonnan:
Ok, so 20g doesn't work with root yet. Learning how to downgrade the fun way.
[LG G Pad X 8.0 Guides, News, & Discussion] william2017:
Hi,

Any idea why LGUP crashes for me whenever I try to run the update?
[LG G Pad X 8.0 Guides, News, & Discussion] Airtioteclint:
Thanks. I took an ota while on stock nougat, got stuck in twrp and this saved me.

Edit - BTW it was a 99 MB system update. I'm on V52120F. Anybody have any idea on what it updates?
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Well part of it is a security update that blocks this dirtycow exploit.
[LG G Pad X 8.0 Guides, News, & Discussion] hashholly4448:
Undo

I have successfully followed the instructions, have Nougat installed and rooted.

If i wanted to go back to stock recovery and stock Nougat what would I do?
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Reflash the kdz in OP.
[LG G Pad X 8.0 Guides, News, & Discussion] hashholly4448:
Will that also put back stock recovery and get rid of twrp?
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
Full 100% stock, but not relock device.
[LG G Pad X 8.0 Guides, News, & Discussion] hashholly4448:
That worked perfectly!

Thanks!
[LG G Pad X 8.0 Guides, News, & Discussion] NoMoreBackdoors:
I want to try to root my device but i already updated to V52120g. I tried using Uppercut and or LGUP but it always gets stuck in the beginning on flashing "sb1." I'm assuming the tablet will not allow us to downgrade but i thought some of you had said they downgraded with LGUP. Is there a trick to get this to downgrade? TIA!!
[LG G Pad X 8.0 Guides, News, & Discussion] MicroMod777:
You need to run uppercut first.
[LG G Pad X 8.0 Guides, News, & Discussion] alphakp295:
how do you boot to twrp? mine is booting to lineageos, then asks for password and turns off. i want to boot to twrp to wipe and install other rom, but i can't boot to twrp.