yashsingh1/xdaforums huggingface dataset:
[Android General] tecknight:
Nick,

If you are trying to erase userdata and cache from the bootloader, I can only assume you are trying the deprecated rooting procedure:

Root your LG Aristo 2/2+/K8+, remove encryption/verity & install TWRP and Magisk

This procedure is no longer recommended, the following procedure is the recommended one:

Install a pre-rooted ROM to your LG Aristo 2 / 2 + / Best root method

If the erase commands are failing, that means your device is already running an Oreo build (Android 8 or later).

In order to root your phone you will need to first downgrade it to Nougat based firmware (Android 7). The downgrade process is included in the recommended rooting procedure, which is actually quicker and easier than the procedure you were trying.

If you have any questions about the procedure, please post them here.

Good Luck
[Android General] Nick720:
Thanks for the reply.

Initially i was searching a guide for sim unlock, because my brother bought this phone in america, but now in italy this phone doesn't work. So I thought that i had to root the phone to unlock the firmware and also the sim. Can you help me? Thanks
[Android General] tecknight:
Nick,

In my experience, rooting these phones do not allow one to remove simlock.

However, I would try the MetroPCS or T-Mobile unlock app, as they appear to allow unlocking automatically after some amount of time has elapsed (6 months, maybe ?)

I am pretty sure the apps will work using an internet connection if your phone is not in the USA.

Good luck to you my friend.
[Android General] Nick720:
I will try. Very very thank you my friend
[Android General] TaZeR369:
You could have at least left in the option to encrypt your phone if you chose too, I don't understand why you completely removed the feature based on your personal preference of disliking encryption, not very professional... Other than that the rom is pretty solid after figuring out how to change the bootanimation (its stored in /OP folder).

I was also wondering if anyones had troubles backing up/restoring with TWRP, it seems it can only do the system partition and doesnt recognize any of the others, is this normal and how can I fix it?
[Android General] TomJ2:
Works..., mostly, but lost knockon feature and have to double tap on switch to wake. Any ideas?
[Android General] raininja:
Hello,

Thanks for your efforts. I need some guidance. The step where this fails is after the ROM is flashed . . . it boots back to the stock metropcs rom. any help?
[Android General] TaZeR369:
So I want to create my own rooted oreo image based off the 20g firmware that includes the LG apps such as email etc... But I can't quite make out how to do it from your instructions, for example once I get to the part where I have TWRP installed and a the 10k android 7.0 based firmware installed and rooted with magisk, how do I go from here to upgrading it to Oreo 20g firmware? Where should I start, could you help me Tecknight? Thanks.
[Android General] jabu:
Omg THANK YOU for this! I've spent an ungodly amount of time trying to research this very thing.
[Android General] tecknight:
No problem.

I built that table using a few different LG resources.
[Android General] tecknight:
[MENTION=7693621]TaZeR369[/MENTION],

I have actually built a ROM using the 20g 20k firmware, but I haven't had a chance to test it yet.

If you would like to test it for me, send me a PM and I will get it to you.

I will also tell you how you can modify the image if you like.
[Android General] spirithandler:
I would love to test for you if the worst that could happen is having to reflash my phone to it's earlier version.

I would also love to know how to modify the image as well
[Android General] tecknight:
Lightning ROM for Aristo 2 (v20k) beta1

Ok, this is a beta Lightning ROM for the Aristo 2 based on the laetst LG firmware release (v20k) released at the beginning of November.

Per some requests, this is a full bloat version, meaning it has all of the extra LG and Google apps. It is still rooted and patched as needed, and since you have root, you can remove any apps you wish to remove.

I will be releasing a fully debloated version in the next couple of days as well,.

If you would like to try this beta, make sure and do a full backup from TWRP (system, data and boot) before flashing this ROM.

That way, if you have any boot problems, you can just restore your backup from TWRP.

Enjoy !!

Lightning ROM for Aristo 2 (v20k) beta1

https://www.androidfilehost.com/?fid=4349826312261652263​

FYI: Flash from TWRP using the INSTALL option.

Please report any issues you may encounter.

Thanks
[Android General] tecknight:
The problem was that it FORCED the userdata partition to be encrypted.

This was causing a ton of problems.

The only way to fix the problem was to completely remove encryption.

It was not my personal preference.

As for your TWRP question. I have had no problems backing up or restoring unencrypted partitions with TWRP.
[Android General] tecknight:
Download the Lightning ROM for Aristo 2 (v20k) beta1 that I just posted and follow the instructions.

Just make sure to backup using TWRP before flashing.
[Android General] TaZeR369:
Thanks for taking the time to answer my questions and for creating this new rom, I'm pretty psyched about trying it. That's exactly the kind of the version I envisioned to create myself and I just like to debloat it slowly as I use it with titanium backup. Anyway I fixed the backup/restore issue, turns out I simply had an older version of TWRP installed, after updating it works fine now. Will let yall know if I find any bugs.
[Android General] TaZeR369:
The flashing problem was actually caused by my custom recvovery "pitch black recovery" thats why the kernel panic. When I flash using the latest plain TWRP it works flawless!
[Android General] Duhjoker:
hi

i have a k8+ LMX210ULMA that i cant get into fastboot mode. i hace tried the key combos and adb reboot boot loader and even the recovery option. I made a partiton img du,mp and was doing some reeading, im wodering if the laf partition could be removed and replaced to uncover the fastboot mode or if maybe someone had a lk.bin with working fastboot mode i could replace the current one with. this is the mtk variant using 7.1,2

---------- Post added at 11:31 AM ---------- Previous post was at 11:19 AM ----------

hi there

i have an lmx210ulma k8+ mt6755 android 7.1.2 that im trying to unlock the bootloader to but i cant get it into fast boot mode. i have tried adb, key combos and the recovery menu but it just reboots the system each time. I made a partition img dump and was wondering if i could remove and replace the laf.img to uncover fastboot or if maybe someone had a lk.bin i could use with working fastboot. i have temp root using mtk-su so i can do whats needed. Any other ideas would be welcome as well.
[Android General] tecknight:
Great !! Thanks
[Android General] Duhjoker:
sorry didnt mean to double post. im using the app and it doesnt give you a confirmation and takes a few minutes to post i see.

Any way is there any chance at all any one coukd help me. I was wondering if flashing the og firmware might do the trick as well.

i also grabbed the source code.
[Android General] TaZeR369:
Problem solved.
[Android General] zamiel2112:
OEM Unlock Problem - Vexed

I cannot for the life of me get the boot loader to unlock, despite having OEM Unlock flipped, Debugging enabled, Automatic System Update Disabled I still get the error "waiting for device" - forever.. . also when I try to go through the tutorial to install MK_M171_EVD, Install Pre-Rooted ROM, I get stuck at Step 10, and again - "waiting for device. I have LG Drivers installed, Device drivers installed successfully, and have been on IOS for the past 6 months - kind of rusty. dont remember or never knew how i overcame this before. TechKnight, your experience is sorely needed. Can you help another Vegas phone nut?
[Android General] Duhjoker:
Ok so on my lmx210ulma i did remove the laf.img from the laf partition and turned the phone off. I held the volume up button and plugged the phone into the computer and it tepeats the K8+ logo over and over in a loop. If you hit any button after that it boots back into system
[Android General] Duhjoker:
ok so im also trying to port a twrp over to the device but im having trouble on the repack. The total size after repacking is about 156mb way to large to flash and i cant seem to get it back to its normal size.

Also i had this crazy idea. What would happen if i temporarily dd'd my lk.img into laff.img place. Would it allow me to get to the bootloader and unlock it then dd back laf.

Im including stock recovery and boot images if they could be of help. Any thing else you might need just let me know

Oh one favor would any happen to have or be able to point me to an mbn recovery file for tjr fortune 2. I had bricked it and it has life but i need something to be able to restore it. From what i gather thats the first step.
[Android General] stormielane:
Hi there I'm in serious need of help. I have an lg fortune 2 and I dont understand how I did it but I seemed to have wiped all the partitions of my phone. Fortunately in the process of adding drivers to it for bootloader unlock and root I installed the 9008 driver and I have qdl mode running in linux. I have tried extracting the .kdz to .dz on the stock firmware download but I cant seem to be able to get the .mbn out. I was wondering if someone might be able to help by extending a stock .mbn file for the aristo 2 or fortune 2 so I can repair it and flash the .kdz.
[Android General] Duhjoker:
Hello

I am in a rather strange predicament. I have a new fortune 2 that will not boot into fastboot or recovery and my old one did. My old fortune 2 is in hsusb 9008 mode and i need an mbn to start revival. I extracted the .kdz and .dz but no mbn was found.

Meanwhile my K8+ plus mtk had its screen shattered in a fall and i have a k8+ qc with busted screen but works a bit. Now both k8+ will not boot into fastboot or recovery.

What is going on with these lmx210`s and not being able to recover or fastboot them.

And can someone please help me figure out how to revive my old fortune 2 in HSUSB 9008 mode.
[Android General] Duhjoker:
I have been on several threads about my problems and no one has any definitive answers on how to fix the problem i have with my phones. I came to you because you have so much experience working with the lmx210 variants. I dont know what else to do and these lmx210 are my favorite out of all of the androids i have ever used. could i please get some help.
[Android General] TaZeR369:
Edit-Nvm I found it. For anyone wondering where the mobile hotspot apk/widget is, it's part of A2_OP_carrier_flash.zip if missing flash that and you will have it, along with every other app from MetroPCS.

Link from tecknights host: https://androidfilehost.com/?fid=6006931924117887505
[Android General] rlrevell:
Hi. Is there any known route to Oreo on an AT&T device while preserving root?

Also is there any known way to flash this on a device without TWRP that I stupidly bricked by re-locking the bootloader?

Finally, do you have any idea why LGUP is unable to talk to these devices from a Windows VM, but it works fine if Windows is running on bare metal?

Thanks for all your great work!
[Android General] Duhjoker:
So i just noticed that my fortune 2 now has oreo on it. Does that mean that im now stuck with two working phones and boards that will never be able to be rooted again.
[Android General] Duhjoker:
Ok im really starting to feel ignored here. I could really use some help. I will tell you what i have and maybe someone who has experience will pop up and answer. I really hope so because i really like my lmx-210 phones and it would be nice to fix one or root the other two.

1st we have a lg fortune 2 that was twrp'd and rooted using magisk. It went dead after trying to flash a custom ROM for an aristo 2 using twrp as instructed. It is in QDL mode. I dont know wether its in recoverable QDL or not but i found a firehose.mbn for it and dont know how to find the xml files to try. Would love to know wether i blew the fuse and if not could i get help briging it back to life.

2nd we got a k8 + of the mtk variety that ends with ULMA it has no fastboot mode.

3rd i have a fortune 2 brand new and working with oreo on it and has no fastboot mode or recovery mode. Would love to twrp and magisk the hell out of it and would solve alot of problems with a few lessons learned.

Please im begging here. Ill donate, like, love, get down on my knees and grovel before you. Im running around in circles and getting nothing done meanwhile i have 5 months woth of a project all for nothing and i just want to give back with it.

Please help me fix or twrp my phones preferably the fortune 2's. Thank you
[Android General] tecknight:
Duhjoker,

Sorry about my lack of responses to your posts, the main reason is that my stuff is not gonna work on your phones.

My images will work interchangably on the Aristo 2 (MetroPCS) or the Aristo 2 plus (T-Mobile) as both of these devices share the same Qualcomm hardware key and thus will boot the same bootloader images.

Your Fortune 2 devices, which I am assuming are::

LG X210CM(LMX210CM) aka LG Fortune 2

are Cricket devices and very likely use a completely different hardware key.

This means they will very likely refuse to boot the Aristo 2/ 2 plus bootloader images, even with OEM unlock enabled.

I have downloaded the .kdz file for your Fortune 2, so I have the partition images you need if you really have a working firehose.

As for your working Oreo Fortune 2, we should be able to get that one rooted without a problem.

Just download and install my LGUP Dual mode, then use it to downgrade your Fortune 2 to Nougat.

Install LGUP Dual Mode(Dev/User) on your Windows PC​

Nougat .kdz file for Fortune 2

https://www.androidfilehost.com/?fid=4349826312261681925​

Then follow these instructions to downgrade and install TWRP:

Install a pre-rooted ROM to your LG Aristo 2 / 2 + / Best root method​

Then give me a day or 3 to create a flashable rooted image for your Fortune 2.

I currently only see Nougat images for the Fortune 2, so I will have to use Nougat as a base:

See here:

https://lg-firmwares.com/lg-lmx210cm-firmwares/#tab=firmwares
[Android General] Duhjoker:
Ok thank you so much for getting back to me and i sincerely apolagize for my impatience in the matter. Ive actually been doing some brain storming witn lg and pizza at who helped with the root of the tetra. And i have some stuff to report.

Ok my original fortune 2 and yes i have an .mbn file which im posting with my findings for verification. Any way when i first rooted it i used the aristo 2 twrp recovery you and the aristo 2 walkthrough you posted to get it up and running in root. Now i did have a slight problem with the aristo 2 magisk rooted boot.img which shifted the graphics up the screen about 3/8s but i was able to pull a stock boot.img and flash it afterward which fixed it. All this is fortune 2 running android 7.0 nougat

Last weekend after failing for three hours straight to flash the stock kdz on oreo fortune 2 using lg flash tool i went ahead and downloaded and set up your dual mode lgup and tried and guess what error i got upon trying to flash?

Protected by ARB3. My heart sunk. But im wondering why it didnt try and then brick the phone using lg flash tool.

As far as the mtk k8+ ULMA im using the mtk tmp root. Its a half @#a$ root and doesnt give me the full root control im used to but the fact that it has some kind of root means that i can use dd and replace the partitions that are blocked off with the ones from the update that blocked them. Also it doesnt seem to have an arb restriction that i have found and only one stock rom. So now rom updates have been made to restrict its flashing.

My and others idea was to just replace each part from that is blocked from the stock kdz. i have started a twrp on it but i cant get it to repack right and the image wont shrink down below 156mb.
[Android General] tecknight:
Wow !!!

Protected by ARB3 ?

Your phone is the first cv1 device I have heard of that has ARB enabled.

I guess it figures with it being a cricket phone.

Could you do me a favor. Bring up a shell on your Fortune 2 running Oreo and type the following command:

getprop >/sdcard/Download/getprop.txt

You can bring up a shell using adb or you can use an Android terminal emulator.

I am curious what the variables:

ro.lge.swversion.arb

and

ro.lge.factoryversion

contain, among other things.

Once you run that command, post the contents of the getprop.txt file in your phone's Download folder.
[Android General] Duhjoker:
ok leaving the .mbn and the build.prop.text and ty again.

Oops uploaed a zip for twrp and canr remove

ADMIN please remove hotspot enabler
[Android General] tecknight:
OK, the Fortune 2 is now officially the first cv1 device I have seen to utilize ARB (Anti RollBack) in any manner.

The Fortune 2 Oreo image has ARB 3 enabled. This means it cannot be downgraded to Nougat (ARB 0)

This makes it impossible to root the phone, if it is already running Oreo, as the Oreo bootloader will not flash partitions under any circumstances.

It looks like Cricket wanted to close the loophole that allowed rooting after downgrading to Nougat.

However, I have an idea on the mtk k8+ ULMA.

It is possible to turn your temp root into a permanent root. I have done it on my Amazon Fire 7 tab and 2 different fire sticks. Let me do a little more research and I will post something here.
[Android General] Duhjoker:
Ok i had an idea on both the k8+ and the fortune 2. For the K8 just replace the affected partition images to get fastboot back. According to LG there is no reason that fastboot should be missing or unreachable. Also i could compile a new kernel if i had some help with configuring some of the things and finding and activating the fastboot feature.

Ok i see two options for the fortune 2. First and this is risky but with a lil help and a controlled enviroment it could be teted.

Wipe every partition on the device to force hsub 9008 mode without blowing a fuse. Then use fire hose to reflash with downgraded software.

2nd option.

I was in the process of compiling the source code to upgrade my own fortune 2 to oreo. So compile fortune 2 oreo with fastboot and needed drivers and such check mark the ARB3 option in kconfig and flash.
[Android General] tecknight:
For the K8+, NO that will not work. The bootloader partition is what provides fastboot functionality and it is a signed partition. The fact that the phone even boots up indicates that the bootloader is PROPERLY signed and it doing what LG intended.

You can't just start flashing your bootloader with various images. As soon as the bootloader is flashed with an improperly signed/unsigned/image from another device, you have a brick.

Check out this thread:

https://xdaforums.com/amazon-fire/general/fireos-6-3-1-0-amazon-fire-7-2019-t3937209​

This amonet exploit actually patches the boot sequence to acquire root, while APPEARING to be booting the stock boot image.

It is implemented by first acquiring temp root via mtk-su, which we know works on your phone.

I have used this successfully on 3 different mtk devices and all of them are now perm rooted and running perfectly.

It does require a modded TWRP that is able to properly accomodate/recognise the exploit
[Android General] tecknight:
What kind of phone do you have and what instructions are you following ?

This is the recommended root method and it is only for the LG Aristo 2 or LG Aristo 2 plus:

Install a pre-rooted ROM to your LG Aristo 2 / 2 + / Best root method

This procedure is DEPRECATED (Obsolete, no longer updated or viable)

Root your LG Aristo 2/2+/K8+, remove encryption/verity & install TWRP and Magisk
[Android General] Duhjoker:
Well i didnt mean flash with different device images. I actually acquired the original stock rom for the device that as far as i know has been certified to be untouched and ready to put the device to factory stock condition. So all i should have to do is replace the laff partition i already dd`d off and replace the fastboot partition that isnt working back to factory and see how it goes. But if that doesnt work i will definitely try the methid you mentioned.

So what did you think about creating the alternate stock rom for the fortune 2 with fastboot enabled?
[Android General] tecknight:
Enabling fastboot functionality means modifying the bootloader.

Without LG's proprietary hardware key, bootloader mods=instabrick
[Android General] tecknight:
There is no fastboot partition, it's called the bootloader and you ARE running the stock bootloader, trust me.

If you were running an other than stock bootloader, you would know it, because the phone would not boot up at all.
[Android General] Duhjoker:
Ok you mentioned an altered twrp version. I have had a burning question that i have not been able to find an answer to. I have seen where people flashed thier custom recoveries using sp flash and such with out having to unlock the bootloader. Wouldnt doing a restore from twrp with a locked bootloader brick a device?

Ok so just to make sure no fortune 2 alt rom compilation?

And i guess i couldnt compile a k8+ bootloader with working fastboot either?
[Android General] tecknight:
FYI, thanks for uploading the hotspot enabler script.

While it did not work on my MetroPCS Aristo 2, there may be other provider devices that it does work on.

I have already spent a good 25-30 hours researching tethering and hotspot functionality and have made little progress.

Where did you find the script ?
[Android General] tecknight:
#1, No you couldn't compile it as you have no idea how LG organises their bootloaders.

#2, ever if you somehow could compile it, you could NEVER sign the image, so it would be unbootable
[Android General] tecknight:
To see if your device will boot an unsigned recovery or boot image w/o bricking, get an adb shell and type the following command:

getprop ro.boot.bl_unlock_complete

if it displays anything other than true, your phone will not boot TWRP, period.
[Android General] Duhjoker:
That was accidental. i cant say its not mine and i have to find a way to remove it but i hope it helps.

Ok not trying to argue or second guess at all just want to understand. I grabbed the source code a couple months ago and ive been trying to create a way for any one with thier phone that has been rooted to compile a stock rom on thier phone. Its completely possible of course but im having trouble with space for repo. I thought adoptable storage would help and will if fornwall could get termux working with adoptable,

Any way and ill have to double check but im pretty sure thier were options in the config file for debug build and signed. The bootloader would be compiled in the rom build so i would just need to make sure fastboot is set up and cinfigured in the build, then tell it to use the ARB3 and go.

I dont know though for sure im a c++ and java programmer so im still learning android. Please if im wrong teach me. Im here to learn and my questioning academic.
[Android General] Duhjoker:
ok i now have the firehose mbn file as well as the rawprogram0.xml file and the patch0.xml file and i have them in a folder on my ubuntu desktop and i entered the comnand

qdl --debug prog_emmc_firehose_8917.mbn rawprogram0.xml patch0.xml

The output is an error stating it doesnt know what kind of rawprogram it is