yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] IDontKnowMang:
My Linux partition was out of room. I'm debating killing windows all together and installing it either external or a fresh partition. I have unmoveable files at the end of almost 350 gigs
[Miscellaneous Android Development] IDontKnowMang:
Now that I've gotten these partitions sorted let's get back to building
[Miscellaneous Android Development] IDontKnowMang:
I had a stock base building when I went to sleep let's hope it will flash when I get home:good:
[Miscellaneous Android Development] TewSlo:
Standing by! Fingers crossed! :good:
[Miscellaneous Android Development] IDontKnowMang:
my error flashing is that my device is an lv517? build.prop says cv1 and superr kitchen says cv1

---------- Post added at 10:22 PM ---------- Previous post was at 10:20 PM ----------

517 is the k10 but what im wondering is why that would get pulled from my recovery?

---------- Post added at 10:38 PM ---------- Previous post was at 10:22 PM ----------

from the updater script #ASSERT

assert(getprop("ro.product.device") == "cv1" || getprop("ro.build.product") == "cv1" || getprop("ro.product.name") == "cv1" ||

abort("This package is for "cv1" devices; this is a "" + getprop("ro.product.device") + ""."););

build.prop :

ro.product.device=cv1
[Miscellaneous Android Development] IDontKnowMang:
the problem is coming from the twrp recovery buildinfo.sh im uploading my zip to my google drive ill link it in the morning if anyone wants to take a stab at fixing it before i get home. i really want to get lineage ported over to this stock rom
[Miscellaneous Android Development] teknoweanie:
Isnt lv517 the lg k20 plus?
[Miscellaneous Android Development] IDontKnowMang:
Yeah I think you're right on that.

The zip is up on my drive. if anyone wants to take a look and see where that info is getting pulled from send me a PM. I don't want to link it here and have people trying to download and flash it saying I broke their device :svetius:
[Miscellaneous Android Development] ToolBoyNIN:
Sorry for the late reply. I redid the whole xposed thingy but have not used any options other than kill foreground app with back button. It was my wain craving, aside from reboot menu options to reboot to recovery (but I csn use Titanium Backup for that). Yes, kill app does work but I think it might have been the power menu options that might have done it. I, also, did want to change some visuals on my notification bar, lock screen, and notification drawer. Thanks, anyhow, again!
[Miscellaneous Android Development] tecknight:
Yes, the problem is definitely in the TWRP build:

This is from a getprop from a TWRP command line:

[ro.cm.device]: [lv517]

[ro.cm.display.version]: [14.1-20171209_060121-UNOFFICIAL-lv517]

[ro.cm.releasetype]: [UNOFFICIAL]

[ro.product.model]: [lv517]

[ro.product.name]: [lineage_lv517]

[ro.product.device]: [lv517]

[ro.cm.version]: [14.1-20171209_060121-UNOFFICIAL-lv517]

[ro.build.description]: [lineage_lv517-userdebug 7.1.2 NJH47F 4ec01913d3 test-keys]

[ro.build.display.id]: [lineage_lv517-userdebug 7.1.2 NJH47F 4ec01913d3 test-keys]

[ro.build.fingerprint]: [lge/lineage_lv517/lv517:7.1.2/NJH47F/4ec01913d3:userdebug/test-keys]

[ro.build.flavor]: [lineage_lv517-userdebug]

[ro.build.host]: [lubuntu]

[ro.build.id]: [NJH47F]

[ro.build.product]: [lv517]

---------- Post added at 10:33 PM ---------- Previous post was at 10:32 PM ----------

The reboot menu options don't work for me either.

I'm pretty sure it doesn't work on Nougat ROMs, they changed how the power menu is implemented.

---------- Post added at 11:23 PM ---------- Previous post was at 10:33 PM ----------

Armandop,

Any chance you could rebuild TWRP after changing these references in buildinfo.sh from lv517 to cv1 ?

[ro.cm.device]: [lv517]

[ro.cm.display.version]: [14.1-20171209_060121-UNOFFICIAL-lv517]

[ro.cm.releasetype]: [UNOFFICIAL]

[ro.product.model]: [lv517]

[ro.product.name]: [lineage_lv517]

[ro.product.device]: [lv517]

[ro.cm.version]: [14.1-20171209_060121-UNOFFICIAL-lv517]

[ro.build.description]: [lineage_lv517-userdebug 7.1.2 NJH47F 4ec01913d3 test-keys]

[ro.build.display.id]: [lineage_lv517-userdebug 7.1.2 NJH47F 4ec01913d3 test-keys]

[ro.build.fingerprint]: [lge/lineage_lv517/lv517:7.1.2/NJH47F/4ec01913d3:userdebug/test-keys]

[ro.build.flavor]: [lineage_lv517-userdebug]

[ro.build.host]: [lubuntu]

[ro.build.id]: [NJH47F]

[ro.build.product]: [lv517]
[Miscellaneous Android Development] ToolBoyNIN:
Well, I'm actually glad it wasn't some one-off problem I was having. Thank you for that info about power menu options. At least, now, I can test other options a bit more confidently. Also, I'm really hoping they can build that, I hate MetroPCS' bloat. CM/LOS is a proven god-send, hahaha! Thanks to all of you!
[Miscellaneous Android Development] tecknight:
Glad to hear it's working for you.

Did you turn SELinux to permissive ?
[Miscellaneous Android Development] ToolBoyNIN:
Nope. Didn't mess with anything. Just *didn't* mess with power menu. Still not too bothered to actually try any other options since I'm fine with only 'kill foreground process'. That was the main thing I wanted. I'll get to tweaking in a few minutes and update this if I'm still able to boot into my phone. I sense a TWRP getting restored a few times, haha.
[Miscellaneous Android Development] tecknight:
Corrected TWRP image

Guys, I unpacked armandop's latest TWRP from this thread and modified the default.prop on the ramdisk image.

I changed:

ro.cm.device

ro.product.model

ro.product.device

ro.build.product

from lv517 to cv1.

This should properly enumerate the device, allowing custom ROMs to be flashed.

Here is the modified image:

https://drive.google.com/file/d/1_7TeUBQnWDXfiKdAwtRGAq8U_LpML-uQ/view?usp=sharing

You can flash it using TWRP, fastboot or by running this command from a root shell:

dd if=/sdcard/newtwrp.img of=/dev/block/mmcblk0p49

this assumes you have placed the newtwrp.img into your /sdcard folder
[Miscellaneous Android Development] TewSlo:
So, we're close to having a custom ROM?
[Miscellaneous Android Development] teknoweanie:
Looks like it. :)
[Miscellaneous Android Development] TewSlo:
Also, thank you for you TWRP. I flashed the recovery and it works perfectly!
[Miscellaneous Android Development] IDontKnowMang:
We're pretty close tecknight has created a twrp that flashes perfectly and your computer will recognize your device as cv1 while it is in recovery. I built a stock base that will flash with no issues, porting is being difficult but we're getting there. Huuuuge shout out to tecknight
[Miscellaneous Android Development] TewSlo:
Hell yeah, can't wait. Please PM me if you need a tester, I backup my phone daily so I have no issue reflashing if I have to!
[Miscellaneous Android Development] guytalluto:
reflashed rooted boot image and Magisk after update yesterday to X210MA10f (and of course had to debloat again). Plenty fast after uninstalling most Google junk. Looking forward to Lineage being ported to this device!
[Miscellaneous Android Development] IDontKnowMang:
We're not going to Port anymore, I'm working with tecknight to build it from source. It will be much cleaner and more components will work.
[Miscellaneous Android Development] guytalluto:
excellent! Looking forward to a cleaner ROM than stock. Even after blasting some of the stock LG stuff and Google apps, there are way too many hooks left in from Google taking up space and occasionally RAM - tracking and logging.
[Miscellaneous Android Development] IDontKnowMang:
does anyone have the stock recovery.img they can link me? i named them both recovery.img and forgot which one was twrp XD
[Miscellaneous Android Development] guytalluto:
will a recovery_606208 dot bin work - extracted with LG Firmware extractor
[Miscellaneous Android Development] IDontKnowMang:
I found the stock on my external drive in windows thanks. I'm just working on the kernel now I'm almost done setting up the build
[Miscellaneous Android Development] IDontKnowMang:
I have a lineage port put together while I work out the kernel for source build. gonna see if she flashes. Wish me luck:svetius:
[Miscellaneous Android Development] tecknight:
FYI: The stock recovery is actually saved in the recoverybak partition.

You can restore stock recovery with this command:

dd if=/dev/block/mmcblk0p50 of=/dev/block/mmcblk0p49

from a root shell.
[Miscellaneous Android Development] tge101:
Any luck?
[Miscellaneous Android Development] IDontKnowMang:
It flashed okay, but it bootlooped. I'm currently working on it
[Miscellaneous Android Development] armandop_:
Dang I haven't been here in a while lol! I see that you need the model to be fixed. I will upload my source code for twrp so it can be easier to fix bugs in the twrp build. I hope you guys can get a full working lineage ROM! :D Too bad I have a zte zmax pro
[Miscellaneous Android Development] IDontKnowMang:
i think the bugs with twrp are pretty much worked out., im still trying to get the kernel put together for a source build. we're getting there.

i have the pro as well, there's a server for it on discord server for it and while they have achieved root i don't think that there is high hopes for custom roms on that device. its a shame really
[Miscellaneous Android Development] tecknight:
Thanks Armandop !! you are the man !!

and you don't even own an Aristo 2. We appreciate you !!

---------- Post added at 03:42 PM ---------- Previous post was at 03:39 PM ----------

Unfortunately, ZTE is very anti developer in my experience..

I am still amazed that LG lets us unlock the bootloader on a sub $50 phone !!

but I'm not complaining
[Miscellaneous Android Development] armandop_:
Source code for twrp will come out tonight or tomorrow morning; it depends on my internet speed upload :)
[Miscellaneous Android Development] IDontKnowMang:
the zte's are locked up pretty tight. it takes a UNI license to even root the pro and thats about is far as they have gotten

sweet dude thanks
[Miscellaneous Android Development] armandop_:
Ok I need someone to test the latest twrp build from source. PM me if you want to test. I will also upload to GitHub right now
[Miscellaneous Android Development] armandop_:
Here ya go guys. You can do whatever to the source :)

https://github.com/armandopartida0/android_device_lge_cv1
[Miscellaneous Android Development] guytalluto:
ZTE

Have a perma-bricked Zmax and Avid. Spent too many hours looking for the right tools and still couldn't get right TOT files. LG has great tools and interface for us to hack away. (after all, we paid for them).
[Miscellaneous Android Development] tecknight:
Thank you so much armandop !!

You know MetroPCS is giving away the Aristo 2 free with a new account.

That's how I got mine
[Miscellaneous Android Development] armandop_:
Too bad I already got my free zte zmax pro with Metro :(
[Miscellaneous Android Development] tecknight:
That sucks
[Miscellaneous Android Development] ricosuave88:
I'm stuck with no os could someone please help me ?? ...
[Miscellaneous Android Development] armandop_:
Hmmm did you try to reboot into twrp by using the power and volume combo?
[Miscellaneous Android Development] ricosuave88:
Yes ... the problem is I have no backup and lgup does not work for me ... it is giving me a error ... any help would be gladly appreciated :( I was trying to flash a custom rom and eñded up having no o.s ...
[Miscellaneous Android Development] armandop_:
Hmm you should always do a backup before you flash anything. Anyways what's the error that lgup gives you?
[Miscellaneous Android Development] IDontKnowMang:
Can you get to download mode still?
[Miscellaneous Android Development] ricosuave88:
I know silly me ?...

Error:please use latest dll

Laf Protocol version is not match dll

---------- Post added at 07:56 AM ---------- Previous post was at 07:56 AM ----------

Yes sir ...
[Miscellaneous Android Development] IDontKnowMang:
Try this

https://xdaforums.com/showthread.php?t=2797190

---------- Post added at 01:05 PM ---------- Previous post was at 12:59 PM ----------

If you still have twrp I have a stock zip that works as well let me know if you need it
[Miscellaneous Android Development] ricosuave88:
wow bro you are the man ? that zip would be gladly appreciated ? because lg flash tool did not help ?
[Miscellaneous Android Development] armandop_:
Seems like the lgup is causing the problem
[Miscellaneous Android Development] IDontKnowMang:
Give me 10 I'm at work

---------- Post added at 02:11 PM ---------- Previous post was at 01:56 PM ----------

You get my pm?
[Miscellaneous Android Development] 5tranger:
I'm pretty new to all this rooting, custom recovery, and flashing stuff, so i have soft bricked this Aristo 2 at least 3 times. The first time was due to getting button happy in twrp and wiping the OS, along with everything else. Lol. Not knowing how to do much of anything, I tried about everything. I finally just updated all drivers, put my phone in download mode, and clicked "update" in LG Bridge on my PC. Works every time. Again, I'm a complete noob at most of this, so there might be a better way. That's just a quick and easy way to hit the "reset button" for those of us that think busybox is just a nickname for our ex.
[Miscellaneous Android Development] IDontKnowMang:
Lg flash tool and a stock kdz file always does the trick. Can't stress enough how important it is to take a twrp backup before doing anything else.
[Miscellaneous Android Development] 5tranger:
I actually just finally took the time to figure out how to format and get that "failed to decrypt" error taken care of. Before i did, i made a backup in twrp. However, when i tried to restore, it didn't replace my apps or settings. So i just quickly rooted the device again. The question is, do i check ALL the partitions when making a backup? Also should i enable compression in backup settings and save to sd card? Thanks in advance.
[Miscellaneous Android Development] IDontKnowMang:
You only need the standard 3 to get it back working. I'm not sure if backing userdata gets you stuck on encryption or not but if you wipe user before you boot you don't hit that screen
[Miscellaneous Android Development] 5tranger:
Yea, i honestly don't remember if i wiped data and cache before i flashed magisk this time, because i was half asleep. However, i do know that thiswas the first time that the "force encryption" wasn't checked on the magisk manager. Again, this is the first phone i have dabbled in all this fun stuff with, so it's all a big game of trial and error. I appreciate how eager everyone seems to share information and help us noobs.
[Miscellaneous Android Development] IDontKnowMang:
I'm no expert myself but I am actively working on getting a custom rom to this device. As far as I can tell the encryption is only for the user data so as long as it's a fresh install it hasn't been a problem for me. I was reading up some newer devices and it seems like LG is starting to roll out encrypted OTA's that decrypt after the system is mounted and that's bad news
[Miscellaneous Android Development] 5tranger:
I'm looking forward to learning about custom roms as well. So I'm certainly willing to help by being a flash test dummy. You might have to answer a few questions as to how to flash a custom Rom, but I'm all about it. Lol. Just let me know what i can do to help.
[Miscellaneous Android Development] Sands207:
if you guys have a system dump or firmware, now that you have twrp i can build a test rom if you want. Just let me know
[Miscellaneous Android Development] teknoweanie:
Aw no one eh?
[Miscellaneous Android Development] IDontKnowMang:
I have system, boot, and recovery dumps. Just can't seem to get it to compile correctly.
[Miscellaneous Android Development] Sands207:
Could you upload it? I'll give it a try if you want
[Miscellaneous Android Development] IDontKnowMang:
I will but I can't until this evening I'm at work currently. I can give you my stock zip I made that had the system and the boot and recovery IMG

---------- Post added at 04:27 PM ---------- Previous post was at 03:49 PM ----------

I have them all extracted but thats the best I can do without my computer
[Miscellaneous Android Development] Baymaxshrum:
Lg aristo 2 stock zip

Wanted to see if you could link me the stock zip please I really need it. Much would be appreciated. Thank you so much.
[Miscellaneous Android Development] Laevatienn:
Newbie here, I have the stock KDZ the phone released with, and wish to downgrade my firmware due to the latest version making my phone go a lil wonky. I've tried out LG Flash/LGUP with no results.

Can't even figure out how to extract system and boot.img to flash so I've been at a loss.

That zip would be nice, if possible. If not, how does one go about installing KDZ?
[Miscellaneous Android Development] IDontKnowMang:
Lg up works nmake sure that you're using the latest driver's and your phone is set to COM5 under device manager give me a moment I'll link you to the kdz you need also make sure that your kdz file is in the same folder that you saved lgup
[Miscellaneous Android Development] Laevatienn:
Ahh, I've been doing it all wrong lmao, thank you for the clarification.

I deff appreciate it, I have the MetroPCS variant if that's a factor when it comes to the necessary KDZ.
[Miscellaneous Android Development] IDontKnowMang:
here's the kdz:

http://www.mediafire.com/file/x0461j63ub7lmj1/X210MA10c_00_MPCS_US_OP_1207.kdz

make sure you have the latest lg drivers installed:

http://www.lg.com/us/lgeai/Drivers/pages/mobile-drivers.html

also make sure your usb serial is set to COM5:

https://plugable.com/2011/07/04/how-to-change-the-com-port-for-a-usb-serial-adapter-on-windows-7/

if lgup says that there is no device go ahead and close it and download the uppercut tool and run it from the lgup folder:

http://downloads.codefi.re/autoprime/LG/Flash_Tools/LGUP/

connect your phone to your computer in download mode

make sure you choose CSE flash when you're returning to stock when it connects you will see COM5 on the device and it will begin flashing
[Miscellaneous Android Development] Laevatienn:
You're the man! This last update completely threw off my root and Xposed refuses to install so I've been half tempted to throw my phone at a wall lmao

Definitely gonna give it another shot once I'm home, I doubt a Lineage port or any other custom rom would work on the latest firmware.

Thanks again!
[Miscellaneous Android Development] IDontKnowMang:
Definitely don't do any OTA updates when rooted you'll update security and soft brick

We've been working on it for a while, I'm patiently waiting for sands to see if he gets further. I have just about everything needed to compile it just hasn't run successfully yet. Also patiently waiting for my new rig finally but processor doesn't come in till Wednesday:cyclops:
[Miscellaneous Android Development] Laevatienn:
Ah, good to know. I haven't rooted or flashed roms since marshmellow so I'm rusty, thankfully this phone is extremely dev friendly. xD

So, I installed the drivers and everything correctly, set it up, lgup finds it via uppercut, however right as I flash it, it gives me an error code saying "please install latest drivers" and gets stuck at 4%.

Should I change the name of the KDZ or is there something that I'm missing?

Lineage is pretty nice, from what I've read up on it so far. It's pretty cool that you're porting it, this device truly deserves it.

If you need a tester at all, I'd be happy to look for bugs in early builds.
[Miscellaneous Android Development] IDontKnowMang:
Do you have the kdz in the same folder as lg up and is the phone in download mode?
[Miscellaneous Android Development] $UbconciousNavig@tor:
tfollowed steps to the letter i get a no command with red exclamation mark what am i

did all the steps to the t and i get a no command scren with red exclemtion or the twrp.img will flash adb says its finished fastboot boot recovery gets me to sstock recovery no ability to slide right an flash anythingg

:crying::crying::crying:
[Miscellaneous Android Development] IDontKnowMang:
Any way you can upload a photo of that? I'm a little confused

---------- Post added at 08:54 AM ---------- Previous post was at 08:51 AM ----------

What commands did you run exactly? You should start adb reboot bootloader

*Your recovery.img should be in the same folder as fastboot*

Type fastboot devices to make sure device is detected

Fastboot flash recovery insertname.img

Usually stuck at that point after seeing success on command prompt just pull battery and reboot
[Miscellaneous Android Development] $UbconciousNavig@tor:
pull battery a reboot how just turn it on my aristo 2 dont have the button combo for reebot into recovery

im gonna run those commands with the file in folders an ill get back with screenshots if i can

:confused:
[Miscellaneous Android Development] $UbconciousNavig@tor:
anyonegot a video of this process for this phone specifically

any one got a video of this phone an this processes specifically because idk bout the rest of u but my lg aristo 2 dont have button combination for reboot into twrp or regular recovery :eek::confused::(:crying:
[Miscellaneous Android Development] IDontKnowMang:
It's kind of a pain to get it with buttons. You have to hold volume down and power and as soon as you see the LG logo let go of power real quick and hold it again. Hold volume down the whole time
[Miscellaneous Android Development] Laevatienn:
Update: flashed back to stock, twrp was a pain to get on this device and decrypt but I got it. Google kept trying to force update the march security patch on me, so I disabled service updates. Only drawback currently is a massive vibration delay.
[Miscellaneous Android Development] IDontKnowMang:
The best way I found is to wipe userdata in twrp that usually takes the encrypted away
[Miscellaneous Android Development] Laevatienn:
Yupyup, took me 3 hours to figure that out lmao

It's great being back to stock though
[Miscellaneous Android Development] IDontKnowMang:
I found a weird bug the other day. If you try to install cracked Pandora one it says it's corrupt and forces a security update thusly bricking the device
[Miscellaneous Android Development] Laevatienn:
Whoa, good thing I haven't installed it.

Try installing this: https://play.google.com/store/apps/details?id=me.swineson.disablesystemupdateservice

It's been working really well for me so far. Also enable run on boot.

Use Titanium Backup to freeze these apps:
[Miscellaneous Android Development] Laevatienn:
Okay so question. I noticed in the build.prop that there is an option to enable fingerprint? Has anybody else seen it and enabled it? Just curious, I'm going to test it out in a second.

Provided is a screenshot.
[Miscellaneous Android Development] IDontKnowMang:
I never noticed that, curious to see.
[Miscellaneous Android Development] Laevatienn:
It hasn't done anything, I do remember seeing a fingerprint option in the settings once but it was greyed out, can't recall if it was in a later build.

Gonna look into it some more once I'm home from work.
[Miscellaneous Android Development] IDontKnowMang:
I'll look around in a bit i still need to re root after the Pandora crash it's completely stock atm
[Miscellaneous Android Development] tge101:
I just installed the latest security update pushed out and I'm trying to push TWRP again. It says that it's been pushed and flashed successfully, but when I try to boot into recovery it's saying "no command". Am I missing something?
[Miscellaneous Android Development] tge101:
deleted
[Miscellaneous Android Development] Laevatienn:
Had the same problem, along with, "Failed to mount system/data/cache" when it would successfully boot.

After trying to unencrypt and troubleshoot for a few hours, still had the same result no matter what. That and when I did boot the phone after giving up on TWRP, root would uninstall itself.

I haven't tested the MX210i update though, since reverting back to stock again.
[Miscellaneous Android Development] IDontKnowMang:
I believe I kept the system as read only then in twrp flashed no verify then magisk and then wiped cache and user data rebooted into twrp again and then hit modify. I'll do the process again today to confirm