yashsingh1/xdaforums huggingface dataset:
[Android General] bwinbig_87:
new update to Aristo 2 (Metro)...

The new update is 10L and i used the boot image you have posted here and it bootloops now, just a heads up. how do we go about updating that link? I can pull my boot image when i root, but need to know what RCT is. :p I'm guessing that's the LG "rootcheck" integrated into their stock ROMs, am i right? If so how do i go about removing that? Thanks for all the info in advance.
[Android General] tecknight:
Can you upload the stock boot image ? I will patch it and you can tell me if it boots .

Interesting, LG hasn't changed the boot in 6 or more updates until now.

Yes the rct service is the LG root checking tool. I remove the binary and disable the service in the init file.

This could prove to be a pita. Now I will have to have diffrent patched boot images depending on the firmware version
[Android General] bwinbig_87:
ok ill back it up and link it here.
[Android General] tecknight:
Thanks,
[Android General] bwinbig_87:
ok here is the boot image for the Aristo 2 (Metro) Software # X210MA10L

Is it suppose to be in IMG format when backed up? O.o because it backed up to emmc format...
[Android General] tecknight:
How did you make the image ?
[Android General] bwinbig_87:
TWRP v3.2.3.0
[Android General] tecknight:
OK,heres the patched image.

Let me know if it boots

https://www.androidfilehost.com/?fid=11410932744536995879
[Android General] bwinbig_87:
ok flashing now.

EDIT: ok its working now. Thanks a bunch. Your guide has been a God-send.
[Android General] tecknight:
Glad it worked. I'm gonna take a look at the differences between the 10K and 10L boot images..
[Android General] NonStickAtom785:
Could you restart the Lineage OS project?

Here's the project ROM -

https://xdaforums.com/android/development/rom-lineageos-14-1-t3825381
[Android General] tecknight:
I definitely don't have THAT much free time
[Android General] NonStickAtom785:
Okay but what if we use what's already there. I can't do much because I don't have a logcat, but I've also decided that I could try to port the Lineage OS rom from the LG aristo just like we did with twrp, because it wouldn't take very long to change the prop and configs. But if you could download the rom and install it and pull a logcat that would be cool. I could do the rest.

Another option is to try and make a flashable stock rom like I've been mentioning but make it with customized settings, removed bloatware, deodexed apps, and maybe some replaced stock apps. I can compile it from a nand backup if you want to try.
[Android General] IDontKnowMang:
Good to see this still alive. Did you and armando ever get that rom to build?
[Android General] Xeeon2:
I got this what should I do?
[Android General] tecknight:
OK,download this:

https://xdaforums.com/attachment.php?attachmentid=4639976&stc=1&d=1541947670

Extract the .zip to the nokdz folder.

then use nokdzr.sh in place of nokdz.sh

This version bypasses root checking.

and don't worry about the bionic open tzdata messages. The date command is causing that message to be displayed every time I write to the .log file, something about the timezone environment not being set up correctly under TWRP. I was able to redirect those messages in the TWRP I am using, but you are obviously using a different shell. The messages are harmless, however

I don't know which shell you are using, but I tested nokdz on the default shell for TWRP by Armandop_ and on the default shell for Android by LG.

If you don't mind, could you post the output from a set command run from your shell.

so just type:

set + Enter

then copy the results and post it here.

eg: set from my android shell yields this:

ANDROID_ASSETS=/system/app
ANDROID_BOOTLOGO=1
ANDROID_DATA=/data
ANDROID_ROOT=/system
ANDROID_SOCKET_adbd=9
ANDROID_STORAGE=/storage
ASEC_MOUNTPOINT=/mnt/asec
BASHPID=24648
BOOTCLASSPATH=/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/com.lge.mdm.jar:/system/framework/com.lge.fmradio.nablabs.jar:/system/framework/qcom.fmradio.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar
COLUMNS
DOWNLOAD_CACHE=/data/cache
EPOCHREALTIME=1541949132.467609
EXTERNAL_STORAGE=/sdcard
HOME=/
HOSTNAME=cv1
IFS=$' \t\n'
KSHEGID=0
KSHGID=0
KSHUID=0
KSH_VERSION='@(#)MIRBSD KSH R52 2016/01/20'
LINES
LOGNAME=shell
OPTIND=1
PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
PGRP=24648
PIPESTATUS[0]=1
PPID=440
PS1=$'${|\n\tlocal e=$?\n\n\t(( e )) && REPLY+="$e|"\n\n\treturn $e\n}$HOSTNAME:${PWD:-?} # '
PS2='> '
PS3='#? '
PS4='[$EPOCHREALTIME] '
PWD=/
RANDOM=32614
SECONDS=5
SHELL=/system/bin/sh
SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar
TERM=dumb
TMOUT=0
TMPDIR=/data/local/tmp
USER=shell
USER_ID=0
_=set

Also, keep on posting your results here.

My ability to test this has been limited,

I did have an Aristo 2 plus owner test it, and it tested fine, but I want to make sure you Aristo 2 plus owners have a safe and relable means to flash your phone.

Thanks.
[Android General] ThatOneDudeVevo:
LG Aristo 2 PLUS issues

When trying to get into the setup screen touch is non responsive, after putting the phone in sleep mode everything shifts up, going to twrp shows the same behavior. Trying to flash the original android img with LG bridge failed, help would be much appreciated. Thank in advance.
[Android General] tecknight:
You have an Aristo 2 plus, right ?

If so, download these 2 files:

https://www.androidfilehost.com/?fid=11410932744536991486

https://www.androidfilehost.com/?fid=11410963190603845149

Then extract both archives to the root of a MicroSD of at least 16GB.

You will end up with a folder in the root of the MicroSD called nokdz with some files and several folders within it.

Then put the MicroSD into your phone, if it is not already there.

and connect your phone to your PC with a USB cable.

Install adb on your PC if it is not already installed.

You have TWRP on your phone, yes?
[Android General] cold4501:
i try root x212ta v10j but twrp frezze and reboot phone and touch no work any idea man
[Android General] ThatOneDudeVevo:
Yes I have everything listed and I do have twrp installed, though it is unusable because of the touch screen not working and everything being elevated.
[Android General] tecknight:
I need you to boot to TWRP then connect a USB cable from PC to phone

Then bring up a command prompt on your PC and type:

adb shell and press enter

You should see a # followed by some garbage escape characters.
[Android General] tecknight:
What do you mean by everything shifts up or everything is elevated ?
[Android General] cold4501:
x212ta

i flash twrp but touch phone no work twrp cant tocuh work any idea please hel
[Android General] tecknight:
Yo need to do this:

Restore some or all of your rooted LG Aristo 2 plus partitions to stock 10j firmware w/o LGUP

At step 9, type the following:

sh nokdz.sh twrp.fp 1
[Android General] cold4501:
lg bridge no detect phone no normal mode no download mode contact technican support any sugestion i can reboot fastboot and remplace boot o recovery stock
[Android General] tecknight:
Not LG Bridge, look at my reply again.

I put the wrong link the first time

You DO NOT want to flash your recovery back to stock.

TWRP is the only reason you still have options
[Android General] cold4501:
bro but twrp no work show twrp but cant move touch no work if i reboot phone in normal boot start but touch againt no work but adb shell work only way its fastboot mode
[Android General] tecknight:
You don't have to have a working touchscreen.

If you even looked at the procedure, you would see that we connect to the phone from a PC using adb..

the adb daemon is always enabled in TWRP, so you should be able to connect to the phone using adb
[Android General] tecknight:
Do you recall what was the last thing you did to your phone just before the touchscreen stopped working ?
[Android General] cold4501:
thx x u help At step 9, type the following:

sh nokdz.sh twrp.fp 1

127|cv1:/storage/1802-58FB $ sh nokdz.sh twrp.fp 1

cv1:/storage/1802-58FB/nokdz $ su

/system/bin/sh: su: not found

127|cv1:/storage/1802-58FB/nokdz $ sh nokdz.sh root.fp 1

NoKDZ requires root access to be able to flash the partitions on your device.

if you have root available, use sudo to launch NoKDZ or type su in the shell bef

ore launching.

if you are certain you actually have root, despite appearances, type continue.

---------- Post added at 09:51 PM ---------- Previous post was at 09:00 PM ----------

ask root acces

Do you recall what was the last thing you did to your phone just before the touchscreen stopped working ?

only ulock bootloader and install twrp from ur links same procces another 5 phone 2 work great v10j another 3 touch no work i try flash root.boot img same touch error but if i press power phone show black screen but work adb if i reboot in twrp shom twrp but bad imagen if i pressing power black screen o middle screen twrp
[Android General] tecknight:
OK, it looks like your phone is booted to android, not TWRP.

The script requires root to run.

2 questions and 1 request:

Q1. Did you try booting to TWRP, then doing your adb shell with your phone in TWRP mode ?

Q2. Do you have root in Android (Magisk Manager) ?

R1. Could you type this command from the shell:

logcat > /sdcard/lcat.log

give it 2 minutes, then press CTRL-C

Then upload the file lcat.log somewhere so I can see it.

I want to see what the touchscreen problem is
[Android General] tecknight:
The phones where the touchscreen doesn't work, were they running a different firmware version ?
[Android General] cold4501:
now i can root whit otg into twrp and run cd /storage/1802-58FB/nokdz.twrp.fp 1 all finish but phone BRICKED NOw qdloader 90008 xd

phone version v10j
[Android General] tecknight:
Really ?

I ran that script on MY phone which is an Aristo 2 and it worked fine, other than turning my phone temporarily into an Aristo 2 plus.

Also if you boot into TWRP, you won't have a /storage folder, you will have an /external_sd folder.

If the script did run, then you will have a log file in the SDCARD /nokdz/log folder and a lastscript.sh file will also be there.

Could you please upload those 2 files ?
[Android General] cold4501:
unfortunately I do not keep anything is strange because when I put the nokdz to work but if it turned off or rebooted cell erased all the memory sd so I struggled but did all the work and I do not start as I can recover it now
[Android General] asialove2013:
Chip erase
[Android General] tecknight:
nokdz doesn't touch the MIcroSD.

It writes it's log to the MicroSD in order to preserve it in case the internal flash may not be accessible.

If you put that MicroSD in a reader connected to a PC or in another device , those files will be there. nokdz keeps very detailed logs, much more detailed than what appears on the screen-

all the output from the dd commands.

It could have important information
[Android General] asialove2013:
phone settings
[Android General] NonStickAtom785:
What is this exactly?:confused:
[Android General] asialove2013:
Yes, You can unbrick/restore a LG X212TAL by flashing the MX210MA firmware
[Android General] cody85:
I can't seem to get root back.

After bootloader -> fastboot flashing unlock -> fastboot erase userdata -> fastboot erase cache -> fastboot flash boot X210MA10l_00_MPCS_US_OP_1003.img -> fastboot flash recovery recovery.img -> fastboot reboot.

all commands gave me the expected response.

Will not boot into OS, stuck in bootloop.

Then...

Power+Vol -> yes -> yes -> Twrp.

/Data shows size is 0.

Tried the "stuck in twrp" thread, shows no space left..

I can get back to stock via refurbish in LGUP, but can't seem to get root.....so so lost.

LG Bridge tries connecting but won't and says plug back in again via usb or contact customer service.

fastboot at one point, different fastboot/adb install, required "oem unlock" instead of "flashing unlock".

I screwed up at some point and re-locked boot loader, but that was early on.
[Android General] tecknight:
oem unlock and flashing unlock are functionally equivilent.

go to fastboot and try fastboot getvar all

Does it say your bootloader is locked or unlocked ?

Also, where did you get X210MA10l_00_MPCS_US_OP_1003.img.

It looks like a .kdz file name.

Is it supposed to be stock or patched boot image or did you rename your .kdz file or what?

Also, is your device an Aristo 2 or Aristo 2 plus ?
[Android General] NonStickAtom785:
You forgot the the rooted boot.img. (I think) but Tecknight is right, isn't that file a kdz? You don't have to flash the system.img unless you've erased it then in that case you could go to Tecknight's Android File Host page and find the stock image with majisk root already in it. But it probably won't boot because you don't have the rootboot.img
[Android General] cody85:
Apologies for the delay...

Disregard the incorrect filename for patched boot image, I just pasted the wrong file name in my post as I had it named "boot.img" on my computer but wanted to avoid any confusion or whatever so I meant to paste the full name in my original post...

so I've been working all weekend just fine on my regular aristo 2 (not the plus) using 10L firmware according to settings -> software info.

I've just had a chance to sit down and retry everything.

100% charge

I factory reset in settings.

I enabled dev options.

oem unlock shows off, but it's not grayed out, so I can turn it on but I'm gonna save that till after I run the getvar all you mentioned.

I enable usb debugging, turn off auto updates, change charging to MTP.

I disable verify apps installed over adb.

I allow install from unknown sources.

I install official LG mobile driver.

I install ADB/Fastboot.

I reboot phone and computer.

I connect phone via usb.

run adb devices, select option on phone to allow it, then it shows authorized.

run adb reboot bootloader. phone reboots to bootloader with red text saying to enable oem unlock in settings.

I run fastboot getvar all which I've attached.

I run fastboot reboot.

I enable oem unlock in android developer options.

I verify MTP is set.

I adb-devices, authorized.

I adb reboot bootloader.

bootloader comes up on phone as expected w/o red text.

I run fastboot devices, shosws s/n and fastboot.

run fastboot flashing unlock, success.

run fastboot erase userdata, success.

run fastboot erase cache, success.

run fastboot flash boot 10L_M173_EVD.img, success.

run fastboot flash recovery recovery.img, success.

run fastboot reboot...

It reboots to the initial boot screen saying cant be checked, hit power to pause boot....

It then shows LG screen, but it never changes the bottom of the screen to show "qualcomm ...", it just reboots, and reboots, and reboots forever.

I then pwr and vol down to reset and it boot into TWRP where it shows a 0KB size for my /data partition and won't allow me to mount it.

I'm stuck with this situation every time I've done it, though it used to work without any issues at all until 10L cam
[Android General] NonStickAtom785:
I got the same error but I fixed it by formatting the data file system to ext4 then back to fs2f.
[Android General] cody85:
I don't seem to have as you, my friend. At what point did you format /data to ext4 and back?

I'm in TWRP, I see f2fs for /data with 0 size.

I then change file system type to EXT4 which changes the partition size to 9xxx MB.

I then select format data and type yes and its successful and size is still 9xxxx MB.

But once I change it back to f2fs and reboot recovery or reboot system, it shows me a size 0 again after rebooted.

I may try the original method that required formatting data and all that to see if it works.
[Android General] NonStickAtom785:
I'll get back to you. I was just going off memory, sorry about that. I'm pretty sure it's supposed to f2fs. Did you flash no-dm-verity to remove device mapping? And did you flash tecknights root boot img. Because I ended up having to erase the internal storage and format data and then finnaly reflash system image and boot.img.
[Android General] tecknight:
FYI: If your userdata partition is f2fs, then it has been encrypted by the forceencrypt property in the stock fstab.

That is why my rooting procedure includes patched boot images with the fstab modified and has specific steps to make sure userdata remains unencrypted.
[Android General] tecknight:
I will PM you on how you can make your zip automatically zero out the encryption key and format the userdata and cache partitions.
[Android General] tecknight:
Yes, LG changed the boot significantly for 10L.

My phone won't root with 10L at all, even with the 10L patched boot.

Some people have gotten 10L to work with the 10L patched boot, but I am not one of them.

So, I am staying on 10K. I modified the rooting procedure, adding recommendations should you encounter a boot loop on firmware 10L.
[Android General] cody85:
Thank ya sir, I noticed that update this morning and have been 10k all day now, very happy to have v4a back amongst all the others...

I felt like I either screwed up a partition that is unmodified when pushing a kdz via lgup, caused an issue by relocking my bootloader last week, or the twrp version changing from 3.1.0 to 3.2.1 (i might ve off on the exact version numbers) caused the problem.

I have a dump of all my original partitions created before i had an issue so i was gonna try pushing my old userdata in with the 10L fw at some point but i feel like i caused myself enough headache already and it didnt push on the 1st try so i quit.

I may play around with it later if youd like to get any logs or have me try some experimenting, i get bored and cant stand the agony of defeat.

Thanks again for all your info and guides thus far.
[Android General] tecknight:
Well, if you could boot into TWRP after a failed (boot looping 10L), then pull this file for me:

/sys/fs/pstore/console-ramoops

That would be the kernel log during the failed boot.

It could be a big help.

I am going to take a close look at the difference between the 10K and 10L boot images to see if I can make some additional mods to the 10L patched boot.
[Android General] cody85:
Awesome. I will run thru the 10L loop and get you the log by morning and then its time for the 10k you made available.

Off to the skating rink with the kiddo for now tho, much appreciated bud
[Android General] tecknight:
Thanks. I appreciate your feedback on the flashable .zip as well.

I think it will prove to be a superior method of rooting an Aristo 2.
[Android General] tecknight:
Happy Thanksgiving to all !

I have a new procedure here that I believe will end up being very useful not only to root an Aristo 2 or 2 plus, but also to recover from any issues or problems you might encounter.

It is a TWRP installable .zip that flashes stock images to all partitions that a firmware flash thru LGUP does, except for recovery.

It also flashes a patched boot image and a custom system image with full Magisk install(as system app) and some bloat removed.

The Aristo 2 image is based on 10K and the Aristo 2 plus is based on 10J.

Either image can be flashed on either phone, so you can change an Aristo 2 into a Aristo 2 plus or vice versa.

Install a custom pre-rooted ROM to your LG Aristo 2 or Aristo 2 plus using TWRP
[Android General] NonStickAtom785:
For those of you who are psyched for my Atomic-Rom it will be ready to download in a couple of minuites!
[Android General] li0nh3art3d:
I would like to say, I tried flashing the boot img with fastboot, and I was bricked. The LG UP and LG Bridge apps wouldn't detect my phone, BUT the reason I give thanks is because I was able to adb sideload your "Tec's Rooted" ROM via TWRP, and it's working now!! :D
[Android General] tecknight:
Glad to hear it my friend.

I designed the ROM to be a combination of:

1. an easier and faster way to root your phone

and

2. An alternative way to recover your phone, requiring no PC as long as you have TWRP available.

This is especially true for the Aristo 2 plus, which has no .kdz image available to flash.

I am glad it worked for you and appreciate the feedback.
[Android General] tecknight:
Oreo about to be released for the Aristo 2 and Aristo 2 plus

It appears that Android Oreo based firmware is about to be released for the Aristo 2 and Aristo 2 plus !!!

I was checking out the LG open source website and I came across the following:

http://opensource.lge.com/osSch/list?types=ALL&search=LMX210MA

Note that the LMX210MA_Android_Oreo_v20a firmware release shows up under the LMX210MA (Aristo 2) model and the LMX212TAL (Aristo 2 plus) models.

I'm not certain when it will be released, but I expect it will be soon.

So keep your eyes open. The next system update should be to Oreo !!
[Android General] li0nh3art3d:
I don't have a microSd card atm, I've never actually used the sideload feature, but I figured it was worth a shot, so I did it with the v3 of your ROM, and thankfully it brought my phone ? back to life! And Magisk rooted on top of that. Very nice work!

I think the reason I bricked is because I was on the October/November update, and the boot.img i fastboot flashed was most likely from the previous patch. But now I'm running your rom with no issues whatsoever, on the August/September patch (k)
[Android General] tecknight:
When you say sideload, did you do it with the stock recovery ?

I didn't think TWRP had a sideload option.
[Android General] li0nh3art3d:
Indeed, I did it through TWRP, and it worked beautifully.
[Android General] tecknight:
That's great. The advantage of sideloading is that the .zip resides on the PC. Is that right ?
[Android General] li0nh3art3d:
I believe so. Therefore there was no requirement to obtain a microSD card to perform the flash. I've never actually used the sideload feature before, so it was nice to see it work smoothly with no headaches ?
[Android General] li0nh3art3d:
Is there a substratum theme that works on this ROM? I tried swift black on 'others' and it didn't work out. I'd like to install a black theme if it's possible
[Android General] tecknight:
The Magisk Substratem doesn't work, at least not on the Aristo 2.

Best theme options I found was LG themes. If you launch LG smart world, it has several free downloadable themes available.

and the LG Themes are kinda like substratem themes in that they change everything.

I am using a dark theme called Viking Shield and I am pretty happy with it.
[Android General] li0nh3art3d:
I'm using viking shield now, but I do miss my snapchat substratum swift black overlay I had on my oreo Google pixel. Perhaps when the oreo update comes, I'll be able to use it again ?
[Android General] NonStickAtom785:
I beg to differ. Substrantum does work. You just have to find a theme compatible with the device. And for whatever reason there's already a million overlays that I'm afraid to remove. (Don't know why, I have a backup?). But that might be the reason why most of it won't work. Could use the chksys.zip you made to get a dmesg for the LOS 14.1, and try to trouble shoot it.
[Android General] li0nh3art3d:
Could you explain the steps taken to get substratum to work? I.e did you install the magisk module? What version of android did you compile the theme for? OMS, LOS, 'Others' etc? What is the name of the theme(s) you're having success with? What ROM are you on? You have the Aristo 2, correct?
[Android General] NonStickAtom785:
Correct I do have the Aristo 2. I didn't compile any theme for it. I used the Xposed Version of Substrantum. I'm going to delete the stock overylays and install new ones.