yashsingh1/xdaforums huggingface dataset:
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
I understand the translation is not easy, no worries.

So, to answer your question, it goes in the boot partition. The reason is that with the newer devices, that are dual slot, there is not recovery partition anymore. The recovery is now included in the boot partition.

So, use qfil and flash it to boot_a. After if finishes, exit out of edl mode normally (hold vol minus and pwr until u hear windows chime). But don't let the device boot, when the LG logo appears, release Pwr button and re press it, that will take you to newly installed twrp.

once in twrp, swipe for mods, cancel if it ask for pw. Format data, reboot recovery, flash magisk and dm_verity. Reboot system, should be all set.

good luck
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
i flashed your 30btwrp in boot a. I started manually with volume - button and power button. the phone does not display lg it returns to lg v40 screen and fastboot menu.

is there another way to go to twrp? or does it mean that something is still wrong?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
This may be because of another slight complication with these types of devices. I said to flash to boot_a because "most" of the time our devices are running from boot_a.

But that's not always the case, your device active partition might be boot_b. It's easy to tell with fastboot. Just, at fastboot prompt, type 'fastboot getvar all. Towards the end of the output it will tell you which slot is active.

Assuming it's b, flash that boot+twrp image to boot_b and try the same thing as before. Keep in mind, both buttons (vol minus and pwr) need to be held down together, when LG logo appears, only release pwr (not vol minus), for a second, then reapply pwr (keeping vol minus down all the time).

release both buttons when recovery screen appears, follow guide to get to recovery. Twrp should then appear.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
I have the impression that slot a is the right one
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
yes, exactly right. It says 'current slot a'.

But there may be one additional thing you may not understand. The v35_engineering_abl.img gives us fastboot. But it is NOT the abl image you need to boot your phone. Once the eng_abl has been used to unlock the phone, you have to put the original abl_a back for your phone to boot.

The only OS that eng_abl_a will boot is Oreo. If you're not running Oreo, then it won't boot. Make sense?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
so that I resume

1 / on flash V35 engineering bootloader file in abl_a partition for the fastboot mode and unlock the bootloader.

and your 30btwrp ebw in boot a.

2 / we reboot in fastboot mode and unlock the bootloader.

and flash fastboot flash abl_a path / to / ablpiestock.img

but he only work with oreo systems.

i flash a backup that you advised me i don't know what system it is in.

have you a universale ablpiestock.img please?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
No, there is no 'Universal' abl_a.img. Ea device it is specific and they have to match the other partitions installed - the OS version and device. They aren't 'interchangeable'.

I'd suggest to pay attention to which kdz you are flashing with lgup. Write it down. And also, any time you flash something to a partition, like the v35_eng_abl_a or any boot_twrp_img, be sure to BACK UP the original image, in case it is needed.

maybe best for you to start again, write things down, back up anything before you change it.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
so I reflashed an official pie image. the phone, works perfectly except for a really buggy wifi problem that lasts since the beginning that I have the phone. I can't limit surfing with the phone or download apps via wifi (a conflict between the 4g and wifi components seems to be)

he still has the bootloader visibly unlocked. i will try to put the twrp with flashify. I'm getting fed up with edl modes, fastboot commands and partition juggling ....

if you had any other advice please but this is my plans.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
You shouldn't use the boot_twrp.img I gave with your new 'android pie'. Remember, each image is specific to the OS version and level. They cannot be interchanged.

I'd point this out; this device, along with all the newer phones, that are 'dual slot' phones (aka treble enabled), are more complicated than they used to be. It's not as easy to root and have twrp anymore. Only you can decide if it's worth it to you or not to have it with the new, more complicated, process.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
okay I understood it is double slot telephones it is more complicated.

but I have an android 9 system with the bootloader unlocked.

and also I am obliged to put a custom firmware because of my hyper disabling wifi bug (I hope that the custom rom will solve it). I cannot use the internet or wifi for more than 2 minutes at a time max.

i have a lg v40 from hongkong. I did not find oreo firmware for these phones. I managed to crossflashed a firmware at a time but I do not remember how .....

you have an idea a track please?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Sorry, must be the translation, I don't understand what your question is? You have a different phone with android 9? Right? You also have an LG V40 from HK? Right? There has to be an Oreo firmware for it as they were released with Oreo.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
I'm still talking about the same lg v40 from the start that I'm trying to modify.

my lg v40 is a hong kong version and it works right away with an android 9ft firmware.

it is very difficult to find an official hongkong oreo firmware.

there are plenty of other regions but not hongkong.

LG V405EBW(LMV405EBW) aka LG V40 ThinQ - LG-Firmwares.com

LG V405EBW download the firmware for free! Detailed installation instruction. Video review of the model and its features. User feedback and latest news.

www.lg-firmwares.com

(I searched on lots of different sites)

I succeeded in a cross flash but I don't remember how (before the present android 9 pi) (I put a uk rom in my hk phone).

otherwise I saw that there were lots of versions of magisk for different versions of android there is not the same thing with twrp?

https://xdaforums.com/t/root-eu-lmv405ebw-magisk.3912959/

or can I not directly flash os lineage by fastboot?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
So, if I understand correctly, your main goal is to have Lineage? To have the latest version of Lineage on your phone, you use LGUP to flash an Android 10 version ROM on your phone.

No, you can't directly flash lineage using fastboot.

No, there is not the same thing with TWRP as there is with Magisk. It used to be similar but not with new devices. Now, TWRP has to be Recovery Ramdisk installed in ea of the various boot partitions (remember I said it is now a part of the boot partition, and ea variant and os version has it's own boot partition).

To get lineage, first decide on which android 10 Rom you want to use, lgup it to the device. Then you need the specific boot+twrp for that specific rom.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
also, this is the link to the firmware you want, I think anyway.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] 2566SB:
Thanks.OK Now.I rooted ‘boot.bin’ from QFIL by magisk.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] bsteph27:
ok thank you very much for your patience and your advice. whether I succeed or not I will write a howto about lg and todays flashing. (please watch lgv40 guides and lg v40 roms recovery ect ... I have already written a quick little howto to easily go into bootloader mode)

but I think I understood something. if we wanted to flash let's say "android 15" and lg does not make official lgv40 roms for android 15 there can never be custom firmware for android 15 on lgv40?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] 2566SB:
oh I think TWRP will solve the problem.We know lots of old devices have android Q ROM now.Like Samsung s7，Xiaomi4.Maybe It's not difficult to flash TWRP at that time,just because we can now right?

Just like now we can replace “abl” to flash TWRP ，maybe directly install the NEWest Android ROM is OK.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Not necessarily. The Lineage OS Rom developer (of let's say android 15) *could* make it work with an earlier base rom of say android 10.

I believe there's already an custom android 11 rom and it of course works with lg base rom of android 10. I can't say for sure how long LOS developers will put in the time to make roms that work with older LG versions. Most times they buy a new phone and move on.

But recently, it seems many are finding that new phones and new OS versions aren't different enough to justify the expense.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
When ever i '' flashboot boot TWRP-judypn-boot.img'' TWRP does not load. Instead it loads the OS (A10,30d)

When i '' flashboot boot judypn_TWRP_bootable-metadata.img'' the TWRP loads but there is no option in Advanced -> Install Recovery Ramdisk
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Which 30d do u have? is that Korean open? Are other variants also 30d? I don't know. Can't help if don't know.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
I am using the UK 30d for European 405ebw from lg firmwares.

I ve flashed using partition DL from lgup dev

unlocked officially
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Well a couple of things, 1) with newer firmware, you can no longer 'fastboot boot twrp'. The way to create a boot loader with twrp in it, you have to do 'ramdisk inject'.

I explain that because, near as I can tell, no one has created your needed boot partition with twrp injected into it. It exists for many other versions, but 30d is very new.

2) The 'overview' of how u do it goes like this; Use qfil to flash to boot_a an older version of yoour type of firmware like this one for 30b, that way u can exit qfil and go directly to twrp. Once in twrp, you'll want to use advanced option and do a dd copy of the boot_b image over to the boot_a image (replacing the twrp u just put there). Then, u use the twrp file in the 'inject' option to ramdisk inject the twrp file into the original boot partition you just copied from b_slot.

it's confusing, maybe wait a bit and someone with more experience will get it done. Or u can send me your boot_a partition and I'll do it.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
I ve decompressed the dz from 30D and i found two boot partitions :

boot.img_65286 and boot.img_163830

How do i tell which is a and b?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
They are identical. The way you can verify that is look at the file sizes, pretty good indicator, but even better would be to run an md5 checksum, they will be identical.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
Yes they appear to be identical.

Can you do it for me please? I dont have the experience that you obviously have...
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
give me a bit, I'll get to it. But first, you realize you'll have to use qfil to load this? Can't be done with fastboot. I mention that because you went to all the trouble to decompose a kdz to dz to images to get the boot_a. but wiht qfil you could have just read the partition data and saved it?

I'll do it nonetheless, but it has to be flashed with qfil, then follow the additional instructions.

here's a gdrive link to your ebw 30d with twrp ramdisk injected. Remember, use qfil to first back up existing boot_a (u already that that though), then flash this file. Once flashed, back out of qfil and hold vol minus and power button to exit edl mode on the device. Keep holding until lg logo, then quickly release only pwr and then reapply it. That brings to twrp. Sel cancel if it asks for pw, swipe to allow mods, format data, then reboot recovery. Once back in twrp flash magisk and dm-verity.

should be all set then. Cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
i understand. i had the kdz downloaded and extraction wasnt that difficult with windowsLGfirmwareextract tool.

Thanks you!

i am reading about qfil as we speak
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
Do i have to format data and remove the dm-verity?

Ideally i would like to keep the encryption while i have root through magisk

is there a link for the dm-verity?

Thanks again!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
common question, the thing is that if you go that way, you can't back up data with twrp, obviously it will be encrypted and unable to do that. There could be more that I"m not aware of, problems doing it that way I mean. I've never myself so not sure.

this is link to dm-verity. I'd say use it and not worry about data not being encrypted, basically, if u loose the device, a hacker could delete finger print and screen lock and get into device even if encrypt. So... don't lose the device ;)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
Thank you !

Everything worked fine!

Cheers!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] martinmh24:
[QUOTE = "AsItLies, publicación: 84565331, miembro: 2129545"]

dame un poco, lo haré. Pero primero, ¿te das cuenta de que tendrás que usar qfil para cargar esto? No se puede hacer con fastboot. Menciono eso porque te tomaste la molestia de descomponer un kdz a dz en imágenes para obtener el archivo boot_a. pero, ¿con qfil podría haber leído los datos de la partición y guardarlos?

Lo haré de todos modos, pero debe actualizarse con qfil, luego seguir las instrucciones adicionales.

aquí hay un enlace de gdrive a su ebw 30d con twrp ramdisk inyectado. Recuerde, use qfil para hacer una copia de seguridad de boot_a existente (aunque ya está eso), luego actualice este archivo. Una vez que haya parpadeado, salga de qfil y mantenga presionado el botón de encendido y apagado para salir del modo edl en el dispositivo. Mantenga presionado hasta el logotipo de lg, luego suelte rápidamente solo pwr y luego vuelva a aplicarlo. Eso trae a twrp. Seleccione cancelar si solicita pw, deslice para permitir modificaciones, formatee los datos y luego reinicie la recuperación. Una vez de vuelta en twrp flash magisk y dm-verity.

debería estar todo listo entonces. Salud

[/CITA]

amigo, se ve que sabes del tema, pase twrp por fastboot a mi v40 pero no abre twrp, tengo la rom koreana android 10 30f, podrias ayudarme a arrancar twrp para rootear e instalar una custom rom?
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
Ever since i rooted my v40 with magisk and your help i ve been wanting to get rid of this annoying message.

I read that i have to modify cust_path_mapping.cfg in root/oem/op but the privileges/rights can not be changed even though i am rooted.

Is there anything you can advise me to do?

Thank you!
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Yes, there are 2 things to consider; 1) to be able to edit that file (or any others) you need to disable vbmeta. It's a basic thing you have to do with fastboot, pretty easy really, follow this to download and read the txt file.

I've not had much luck doing it that way though, some have, so worth a try I guess. But the way that has always worked for me, is to (unfortunately you will be starting over to do this), remove all accounts / fingerprints, use LGUP to do part d/l again of the rom u want to use, then boot to start up (which is normal procedure for part d/l), then shut device off and go back to LGUP.

now, with same exact rom you just used, do a refurbish.

It seems what happens is that the s/n and imei and that nt code info gets propagated throughout the system (especially the ftm partition) during these procedures, and for it to work correctly (with cross flashing) it needs to do both part d/l and refurbish.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
I copied both vbmeta_a.img and vbmeta_b.img from dev/block

i run the command but i got this error

fastboot: unrecognised option `--disable-verity'
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
okay so the command, I think I made clear in the notes, is all on one line. It's not separated out.

additionally, you can't use the 'nuked laf' version of fastboot (that's a crippled version), you have to use the v35_engineering_abl version to flash that.

without seeing exactly what yer doing, that's all I can think of to help.

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
I followed the instructions to the letter and i approached with the easier way to give it a try

C:\Download>fastboot flash --disable-verity --disable-verification vbmeta_a blank_vbmeta.img

fastboot: unrecognised option `--disable-verity'
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
see, I'll have to check my notes in that folder, but that's wrong.

it's fastboot --disable (etc) and THEn it's flash vbmeta_a blank_vbmeta.img

you have the 'flash' part in the wrong position.

Oooops sorry, my bad. I created that a long time ago and got the command wrong, you were doing what it says, but it's corrected now to reflect what I pointed out above.

my goof, Cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
C:\Download>fastboot flash --disable-verity --disable-verification vbmeta_a blank_vbmeta.img

fastboot: unrecognised option `--disable-verity'

so its three commands?

fastboot flash disable-verity

fastboot flash disable-verification

flash vbmeta_a blank_vbmeta.img
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
No! absolutely not, that's a mistake. I was doing that at first and it's not doing what it should do.

It's one command, all on one line. See post above, I corrected the info. Sorry.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] iannisb:
Again i get the same error :

C:\Download>fastboot --disable-verity --disable-verification flash vbmeta_a blank_vbmeta.img

fastboot: unrecognised option `--disable-verity'

IS there a special fastboot that i should install in my windows 10 laptop?

Thank you for your time
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
not a special one on the pc, but it does need to be the v35 eng abl on the phone. The fastboot we get by nuking the laf image isn't as powerful as the v35 eng abl one is.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] nikothebarber:
i need the latest Q boot img for ATT im stuck on Lg V40 screen please
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
What is the 'latest for ATT'? They don't make their kdz available, the only people that will have the 'latest' are the ones that receive it OTA?

I've no idea (as I don't use ATT) what that version is? Maybe if u had a version number someone could help, but without that it's just a guess, unless you find someone that is unrooted and locked and getting updates from ATT...
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] Scorcerer:
maybe try with --disable-verify

:)
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] osaka35:
Hi, looked through all the pages here and a few threads, but couldn't find a 30E boot image with TWRP. From what I've read, I'll need that particular one to get TWRP and then MAGISK (or should I update to the latest version, whatever that is, then find boot with TWRP?).

Actually, how relevant is this guide given I'm on Android 10? Should I follow these steps with modifications, or is there someone willing to help get me from point A to point B?

to note: I'm successfully back on ATT unlocked android 10 (obviously), after successfully unlocking the bootloader using V35engineering and getting it back to stock.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
**maybe** just type fastboot -h and look at the output to verify the correct commands, instead of **guessing** what they might be?

options:

-w Wipe userdata.

-s SERIAL Specify a USB device.

-s tcp|udp:HOST[:PORT] Specify a network device.

-S SIZE[K|M|G] Break into sparse files no larger than SIZE.

--force Force a flash operation that may be unsafe.

--slot SLOT Use SLOT; 'all' for both slots, 'other' for

non-current slot (default: current active slot).

--set-active[=SLOT] Sets the active slot before rebooting.

--skip-secondary Don't flash secondary slots in flashall/update.

--skip-reboot Don't reboot device after flashing.

--disable-verity Sets disable-verity when flashing vbmeta.

--disable-verification Sets disable-verification when flashing vbmeta.

--wipe-and-use-fbe Enable file-based encryption, wiping userdata.

--unbuffered Don't buffer input or output.

--verbose, -v Verbose output.

--version Display version.

--help, -h Show this message.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Don't think you'll find one until someone copies their att 30e boot partition and posts it so they can patch it with twrp.

Their kdz isn't available, so no one can extract it from that. Use qfil and save your 30e boot_a and I'll patch it with twrp for u and post back here.

But that's the only way it will happen, is if someone posts it, but be sure to specify exactly what it is, like this: att_30e_boot_a.img, it avoids confusion with say korean oepn 30e, or ebw 30e... etc etc

cheers
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] nikothebarber:
Dude I need 30E boot img PLEASE i cant boot with out it
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] osaka35:
Thanks, I really appreciate it. Attached are the stock boot_a+b.bin gotten from QFIL.

ATT - Android 10 - V405UA30E

For those curious, this is the latest update for US ATT V40 as of march 13, 2021

My goal is to flash Magisk after flashing TWRP and run on the modified stock. Which guide should I follow, and with any modifications, considering I'm on android 10?

Much thanks, you've saved me. Let me know if I can ever help you out with anything
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Okay here are your 2 images. Just as an fyi, these 2 images were not identical, I think it's safe to assume whichever one is the inactive slot (b or a) is the older att version, and the active slot will be the 30e.

cheers

also, in case yer not sure, use 'fastboot getvar all' and at the end of the output it will tell you which slot is active.

Additionally, these images should be flashed using qfil, then upon exiting edl, use the key combo to go directly to recovery (now twrp). First, format data (not wipe), then, reboot recovery. Then flash magisk and dm_verity, and u should be all set.

So, just to make sure it's clear, even though I labeled these both as 30e, one of them is not. One of them is the older att version. We can't know which is which until we know which slot is active, that will be the 30e.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] osaka35:
Thank you! You're my hero.

For anyone else who's curious. "slot B" was my active slot.

I couldn't get me into recovery using the key combination, but a normal reboot and a simple "ADB reboot recovery" got me in.
[LG V40 ROMs, Kernels, Recoveries, & Other Developm] AsItLies:
Yer welcome no probs.

I went ahead and deleted the boot_a one as that's not for 30e. Don't need any confusion. In case others don't know, the b and a are interchangeable. so the one above labeled b could be used on a or b. The important thing is that it's the right one for att 30e.

cheers