yashsingh1/xdaforums huggingface dataset:
[Motorola Edge 20 Pro] ko_hi:
Team Win Recovery Project (TWRP) is an open-source software custom recovery image for Android-based devices. It provides a touchscreen-enabled interface that allows users to install third-party firmware and back up the current system, functions often unsupported by stock recovery images. It is, therefore, often installed when rooting Android devices, although it isn't dependent on a device being rooted to be installed.

Instructions

For now you can only boot TWRP you do this by executing the command:

fastboot boot

Bugs: slow bootup

Downloads

Latest v11-10-21

twrp-11-10-21.img

drive.google.com

twrp-pstar-06-10-21.img

drive.google.com

Old

twrp-pstar.img

drive.google.com

Donations

What's new:

Fixed Vibration

Fixed Bootctrl

Contributors

@Electimon, betaxab ko_hi

Version Information

SourceCode: https://gitlab.com/nihonnofanboi/twrp-motorola-pstar

Version Information

Status: Stable

Release Date: October-2-2021

Last Updated: October-11-2021
[Motorola Edge 20 Pro] andry1236:
thnks
[Motorola Edge 20 Pro] LSS4181:
Say does this TWRP allow access to data partition (encrypted)?

Right now I'm running a GSI with vendor untouched so data is encrypted. It would be great if it could (after providing credentials), so backing up stuffs would become easier.
[Motorola Edge 20 Pro] ko_hi:
Yes the decryption works at least on stock rom untested on GSI and unsure about A12 roms
[Motorola Edge 20 Pro] LSS4181:
Just tested. FBE can be correctly decrypted using User 0's security credentials, even though I'm using GSI. I think the encryption is enable/enforced by vendor fstab config and performed independent from ROM itself.

When I start TWRP I see an error saying unable to mount /product (block device required). For GSI usage, this is intended, as it's necessary to remove that ~2.7GB partition (erasing it and set its size to zero) in order to provide enough space in Super to resize and flash the GSI. I don't know if it's possible to suppress this error, though it's harmless.

By the way, there are two Super options when backing up, one simply says "Super", the other says "Super (system, system_ext, product, vendor)". Are the two options different?

Well, despite this TWRP is currently not flashable (boot-only), it looks good enough. I really hope it could be installed and also fastbootd-capable in the future.
[Motorola Edge 20 Pro] ko_hi:
I'll look into it later! AFAIK Fastbootd is working (I think I've flashed this twrp to confirm it) regarding the backup options I can't tell I must check! But thanks for pointing out! More bugs coming in and needs to be resolved!
[Motorola Edge 20 Pro] ko_hi:
Updated TWRP will come later today or tomorrow

Fixed Boot time to twrp

instead of 50s+ it's now dropped down to 14-16s
[Motorola Edge 20 Pro] LSS4181:
Good news. You said you "flashed" this TWRP to confirm fastbootd functionality so... does flashing work? As you currently only recommend booting it instead of flashing, I'm not sure.

If fastbootd also works, I really hope if I could actually flash TWRP at some point, as it's more convenient to make and manage backups with it.
[Motorola Edge 20 Pro] ko_hi:
I'm 100 sure I've tested it but i can confirm it soon again

Edit latest test us broken but i see the cause
[Motorola Edge 20 Pro] sexyDog:
thanks ,but i have a question . is this twrp forever in Edge 20 pro (or edge s pro (china)) ? i tried ，now ,my phone is bricked
[Motorola Edge 20 Pro] ko_hi:
Only tested on edge 20 pro
[Motorola Edge 20 Pro] ilia3367:
Tested on the Moto Edge S Pro as well.
[Motorola Edge 20 Pro] LSS4181:
I don't think this TWRP is safe to flash yet, but you can boot. I have booted this on my own Edge S Pro and it worked fine... so not sure what caused it to brick.
[Motorola Edge 20 Pro] ko_hi:
Only temp boot is working, I've managed to boot TWRP as boot but it crashed system quite good!
[Motorola Edge 20 Pro] MrZZZ123:
Hello, developer！I flash your twrp file，it’s good on my device（moto edge s pro china version），very thank you ,but it just temp working,it's a little disappointing. I wrote a script file to solve this problem，reboot to recovery，need root permission , and i not find recovery partition,maybe in bootloader.img?

my script:)

if [ -f "/sdcard/boot_a.img" ];then rm -rf /sdcard/boot_a.img;fi
dd if=/dev/block/by-name/boot_a of=/sdcard/boot_a.img
dd if=/sdcard/twrp-11-10-21.img of=/dev/block/by-name/boot_a
reboot
[Motorola Edge 20 Pro] LSS4181:
From what I recall our device doesn't have a standalone recovery partition, so it's inside boot.img.

Now that Motorola has released the kernel source code it might be possible to build a kernel with TWRP included.
[Motorola Edge 20 Pro] ilia3367:
This news is a hundred years old, but the development of TWRP has stopped and it seems forever...
[Motorola Edge 20 Pro] otmitia:
Good time, tell me if there will be further development?
[Motorola Edge 20 Pro] Beetle84:
XDA is an english speaking site. You can type a message in your language, but you must provide a translation as well.
[Motorola Edge 20 Pro] @rchrdbrbs:
C:\Users\User\Desktop\Bon\ADB\platform-tools>fastboot flash recovery C:\Users\User\Desktop\Bon\ADB\platform-tools\twrp-11-10-21.img.img

Sending 'recovery' (90216 KB) OKAY [ 2.084s]

Writing 'recovery' (bootloader) Invalid partition name recovery

FAILED (remote: '')

fastboot: error: Command failed

C:\Users\User\Desktop\Bon\ADB\platform-tools>

HEY FELLAS, HOW TO FIX THIS KIND OF ISSUE?
[Motorola Edge 20 Pro] ko_hi:
Pstar don't have recovery partition
[Motorola Edge 20 Pro] @rchrdbrbs:
So what is the best thing to do, then?
[Motorola Edge 20 Pro] MukiAya:
Yep,I have same problem,Fastboot boot recovery is doesn't work 🥲
[Motorola Edge 20 Pro] Mayuri Technology:
maybe you can try this command `fastboot boot C:\Users\User\Desktop\Bon\ADB\platform-tools\twrp-11-10-21.img.img`
[Motorola Edge 20 Pro] fleshka:
Hello! How to compile image? I downloaded the sources, setup the build environment for A11 and uncommented the TARGET_PREBUILT_KERNEL and TARGET_KERNEL_IMAGE_NAME flags. But after compiling and loading the image, the top LED blinks and the phone reboots. There isn't even a TWRP logo(
[Motorola Edge 20 Pro] ko_hi:
Which version did you compile for?
[Motorola Edge 20 Pro] fleshka:
Minimal-manifest-twrp for Android 11.
[Motorola Edge 20 Pro] ko_hi:
I'm unsure which Android branch this is made for,
[LG V50 ThinQ Guides, News, & Discussion] lallolu:
Great job there.
[LG V50 ThinQ Guides, News, & Discussion] dark4m:
Now V50 sprint is getting some serious love.

Much appreciated, keep up the good job.
[LG V50 ThinQ Guides, News, & Discussion] Merlve:
Thanks for putting this out, helped me fix my deep sleep issue on Nemo's A11 😊
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Just curios about step 6. Modem file. This has been asked before but is there any way to get 5g on tmobile running?

Sorry, didn't see your "5G will never work on this phone" comment. Apologies.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Just a quick couple of questions

When I use this command “fastboot --disable-verity --disabl- fastboot --disable-verity --disable-verification flash vbmeta vbmeta.bin” I get an error message.. - unknown command, —disable-verity. So had to run it so… “fastboot flash vbmeta vbmeta.bin”. Don’t know what I’m missing?

This is probably leading to my second problem. I’ve tried flashing both the USA and Korean twrps 3.3.1 from magisk manager. With the USA version i can’t mount any partitions. With the Korean it keeps asking me for a password which I’ve never set. I reinstalled, reboot and set it up specifically without any security but still the same thing. Any suggestions would be greatly appreciated!
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.bin

I used this command multiple time with the abl from the unlock guide

i do not cover twrp here.. but password is set when first booting system.. (it's the encryption) which is why you need to flash the dmverity zip and to format data again.. i used the korean twrp on my phone before...
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Thanks for the info. Much appreciated. Steve
[LG V50 ThinQ Guides, News, & Discussion] yifeileeece74:
I was able to follow your guide and flash my sprint V50 stock to A11. Thanks.

I can get LTE Data from Verizon network. But I cannot make phone calls using my current Verizon network. Is there anything else that I should do to make VOLTE work with Verizon? thanks again.
[LG V50 ThinQ Guides, News, & Discussion] Wolff07:
Hello I have a V450PM sprint but I am not in usa, this device is unlocked gsm (I got it in Ebay), If I try this can I lost the unlocked GSM??

Are the steps clear for the ones that dont know nothing about flash, twrp, partitions, etc... ME!? or there is something that can be complicated at the moment of do it?
[LG V50 ThinQ Guides, News, & Discussion] SBruno:
Working in my V50 Sprint unlocked and rooted.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Were you able to a US mobile network provider? If so who? I tried with Foogle FI and it was a no go?
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
I think this needs further testing. I'm briefly able to get data on Google Fi but can't make a call. And then another poster on this thread had the same problem. I really like the rom, very smooth, but if you can't make a call you don't have a phone. You got a PDA.
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
what OP did you try btw? stock eu or canadian modded?

Edit:

try to go in the hidden menu (*#546368#*500#) > field test > modem settings > lte-a ca setting > all enable

or in the *#*#4636#*#* menu and make sure your preferred network type make sense.

or in the same menu, the 3 dot option on the top right corner > select radio band > United states

after that, make sure the network mode in settings is correct for your carrier.

Edit2 :

Not sure if any of those 2 OP fits the requirement for you carrier volte..

i would assume the canadian one would be closer then the EU one.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
I use the stock eu but have now switched to CAN. I now have data again but still can't make phone call. Suggestion?
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
and i assume you tried everything i said in the edit?

edit: likely.. for some reason, it forces volte.. but the settings are missing and you can't even toggle it off.. do you mind sharing a screenshot of the 4636 menu? (please hide any private information before sharing)
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
For some reason it's not responding to *#*#4636#*#* ???
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
some time it takes multiple try to get the screen to load.. just to make sure.. you don't have an nterror when you boot the phone right?
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
I do have an NT Code 0 error. I lost my vtm partition and had to replace it. The code at 14000 hex was "1","310,120,FFFFFFFF,FFFFFFFF,FF". I loaded TMO_US "1","310,260,FFFFFFFF,FFFFFFFF,FF" but still getting NT-Code: 0
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Now wondering if it should be set back to OPEN_EU "1","FFF,FFF,FFFFFFFF,FFFFFFFF,11"?
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
grab solid explorer, give it root access and edit the file at /product/op/

View attachment 5438889

add a new line matching your nterror (take a screenshot of it if you dont know)

edit: i suggest solid explorer because it doesn't **** the file permission

edit2: the ftm edit never worked on my phone so i do it directly in the OP partition usually
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
after editing that file, you need to reboot the phone.. if the nterror is still present, it wasn't edited correctly.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Dude, wtf I reloaded ftm via qfil with OPEN_EU "1","FFF,FFF,FFFFFFFF,FFFFFFFF,11" then went back and read data on ftm, loaded in hex editor to confirm Open_Eu. Rebooted and rechecked cust_path_mapping.cfg and sure enough it was OK. Line one reads FFFFFFF,FF=/product/OP and still getting NT Code 0 ??
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
wait is it okay or not? can you share a screenshot of your nterror.. thank you
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
BTW I had to change file permissions on cfg to be able to write back but now set as before with -rq-r-r-
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
you do not need to touch any permission setting when editing with solid explorer. i do not support any other editor.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Here you go.
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
nt-code: 0? looks like the phone can't read your ntcode.. sound like your phone got other issue
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
@hooutoo try this.. but it certainly doesn't feel right at all lol

View attachment 5438969
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Where does it get the ntcode from and can I fix it with hex editor?
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
I've never fixed an issue like this.. so i don't know.. maybe some people over on TG can help you with that..
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
I was gonna go back to stock and qfil-ed just old abl_b and boot_b hoping I could just get back into twrp which was already loaded into boot. It was a nogo so then I saw your post about TG and decide to reload EU abl and boot and low and behold now have ntcode fffffff 11. Am I to think now it can't find info in cust_path_mapping.cfg?
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
good add that one in the cust_path_mapping.cfg

View attachment 5439035

Honestly, not sure why your phone doesnt have the sprint ntcode but w/e.. lol this should work
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
ntcode problem solved! No error message now but still nogo on phone/data!
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
do a factory reset and then try the 4636 menu again

all this here :

try to go in the hidden menu (*#546368#*500#) > field test > modem settings > lte-a ca setting > all enable

or in the *#*#4636#*#* menu and make sure your preferred network type make sense.

or in the same menu, the 3 dot option on the top right corner > select radio band > United states

after that, make sure the network mode in settings is correct for your carrier.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Network 1.03 doesn't work with A11, ideas?
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Resetting now!
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
whats network 1.03?
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
OK! *#*#4636@#*#* worked on have phone info but screen shot doesn't work.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Here's phone info
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
hm i really dont know at this point sorry :/ if you tried everything i said.. i have no clue..

Not sure why your sprint phone got the EU ntcode in it too
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
The Eu ntcode is simple. I trashed my ftm partition and that was a real problem. It was then replaced with a ftm copy from a Eu phone. Now that I know what I'm doing there I can easily change (hex edit) my ftm to Tmob TMO_US "1","310,260,FFFFFFFF,FFFFFFFF,FF" and make sure of the corresponding cfg changes. Doing it now.
[LG V50 ThinQ Guides, News, & Discussion] hooutoo:
Today is Friday so I'm gonna let this set for a bit. But I'm pretty damn sure that Ntcodes don't have anything to do with logging on to a US mobile carrier. The Verison kid has/had the exact problem and he certainly never spoke of ntcode problems. This is something different. I"m an old IBM system programmer and I can usually know from where a problem' coming from. It ain't ntcodes. Could it be your modem.bin can't shake hands?

Steve
[LG V50 ThinQ Guides, News, & Discussion] Omar.Lino:
someone tried with the Lg V50 v500n?
[LG V50 ThinQ Guides, News, & Discussion] quearte:
I just discovered a fix for this.

Go to engineering menu *#546368#*500# (500 is the number of your phone variant, aka 500EM)

Go to SVC Menu

Go to MID Info

There you can see and modify IMEI, WIFI MAC, BT MAC... and NT Code.

View attachment 5445557

(is from my V35, but must work for V50 too)

Check the proper code on the list below for the firmware u got flashed, and overwrite it.

https://drive.google.com/file/d/1QL-DTXcI8iI5d0W0SQ_uA-zUfzvE0_dC/view?usp=sharing

After done, reboot and no more error msg. :)
[LG V50 ThinQ Guides, News, & Discussion] Wolff07:
Could you teach me how to do this? I have v50 sprint unlocked
[LG V50 ThinQ Guides, News, & Discussion] Wolff07:
I need a video plz u.u
[LG V50 ThinQ Guides, News, & Discussion] BluntNStunt:
Hello I tried to flash all the binary files to A side partition.. When I went to master reset i got a few errors in the recovery mode log, and its stuck at Lg v50 logo. Ive already rebooted into EDL and reflashed all 7 bin files once again but still stuck at lv50 logo. not sure what else to do but restore the original backup files.

any ideas?

how do i know if my verity disabled correctly? I tried months ago but it wouldnt disable, but it was different method than described here.

thanks
[LG V50 ThinQ Guides, News, & Discussion] Rafe88:
Hi Everyone

I completed the method described but am not able to send/receive messages or calls. Data and everything else works though. I used the Canadian Modded OP version.

One thing I did notice was that in the software version listed on my phone after I finished is V500PM30a. Should this be V500EM after completion? If so I wonder if it is because vbmeta remained locked? I thought I unlocked it but am not sure at this point.

Do we need to overwrite both vbmeta_a and vbmeta_b? I only overwrote all files with the _a slot extension that was being used by the bootloader. Would that be the case for all the other .bin files as well? Do we need to replace both _a and _b slots?

Any help would be really appreciated.

Note: I'm attempting to get this working on the T-mobile network and have the Sprint version of the phone.
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
no, the V500PM30a is correct.. I cant help getting data working on tmo... I highly advise you to repeat the following steps :

try to go in the hidden menu (*#546368#*500#) > field test > modem settings > lte-a ca setting > all enable

(this is important.. it actually reload some modem setting)

or in the *#*#4636#*#* menu and make sure your preferred network type make sense.

or in the same menu, the 3 dot option on the top right corner > select radio band > United states

after that, make sure the network mode in settings is correct for your carrier.
[LG V50 ThinQ Guides, News, & Discussion] kountry83:
Did you ever get it working bud? lol
[LG V50 ThinQ Guides, News, & Discussion] deng072572:
after disabling the verity

after disabling the verity i got a secure start up after boot asking for password. so i decided to flash back in qfil both vbmeta a and b. is that normal?
[LG V50 ThinQ Guides, News, & Discussion] geee0h:
Will this work for v500n??
[LG V50 ThinQ Guides, News, & Discussion] cloud1250000:
The OP partition won't work with the v500n
[LG V50 ThinQ Guides, News, & Discussion] john008:
Hi everyone,

is it possible to get updates with the EM version? I don't think so, do I?

Thanks in advance!

Edit: Can I use this ROM in Europe with Telefonica (VoLTE)?
[LG V50 ThinQ Guides, News, & Discussion] Bassamhizam:
Haw unlock sim lg g8
[LG V50 ThinQ Guides, News, & Discussion] PxYra:
I do this from android v11 korean (v500n) to android v10 european (I download EU files from russian forum, 4pda), I use diferent files from russian forum for flashing v10 EU android

1. unlock bootloader

2. install magisk

3. root with magisk

4. install TWRP over magisk (you need right TWRP for korean versions)

5. flash files with TWRP

6. boot

now thinking about flash files over TWRP again but use android 11 files from this forum
[LG V50 ThinQ Guides, News, & Discussion] PxYra:
you flash over QFIL or TWRP ? in russian forums I found solution crossflash v500n (korean) to v500em android 10 (european) but russian guys using TWRP (you need right version TWRP for korean v500n) to install android 10 img files and disabling encrytion with zip file (flashing over TWRP)

once again - first you need unlock bootloader, install magisk, root, install TWRP

I thinking about change russian maked android 10 img files to files from this forum to flash android 11 files

russians using only 5 files to crossflash

boot_eu.img

OP_OPEN_EU.img

product_a.img

system_a.img

vendor_a.img

but if you say OP file not working....maybe I dont touch system
[LG V50 ThinQ Guides, News, & Discussion] PxYra:
P.S. found this

https://xdaforums.com/t/g8-crossfla...-have-issues-on-korean-more-variants.4183803/

>>> 5. https://bbs.lge.fun/thread-75.htm Use this guide to extract the OP partition from your kdz. This is by far the hardest part because kdztools can't do it correctly on its own.

but URL is dead, I dont know how extract OP from korean v11 KDZ

P.P.S. I have 2 files from android 11 v500n LGU+ KDZ its totc.cfg and cust_path_mapping.cfg, you need alway replace totc.cfg,cust_path_mapping.cfg after flashing partitions if you using TWRP crossflash. maybe if I use totc.cfg, cust_path_mapping.cfg from v500n android 11 with OP file from this forum it will be ok ?
[LG V50 ThinQ Guides, News, & Discussion] Zeiad98:
Ok, there are some things i missed on

In step 2 in the cross flashing guide,

- backup vbmeta and abl

- Flashback the eng abl from the unlock bootloader guide (from step 1)

- boot fastboot on your phone and plug it in your pc (note which slot (a or b) you are using right now)

ok, so the abl got backed up when i unlocked the booloader anyway, but i dont understand what is engabl, is it the attached abl file (modded) from the bootloader unlock guide?

Also what is booting fastboot using slot a or b? how do i know which one i got?

I would for example use the parition manager of the system_a/vendor_a/product_a if i was on slot a?

And in later step I'm more confused

Using the backed up vbmeta, open cmd and enter the following command:

- fastboot --disable-verity --disable-verification flash vbmeta vbmeta.bin

- fastboot oem edl

I dont get if it means open from the adb file or open the file that has vbmeta backup? or does it mean back the vbmeta backup in the adb file?? I'm really confused

I get all the flashing happens from the QFIL when my phone is in edl mode I use firehose file programmer area

And then in tools I choose the manage partition but the steps are missing so it's a bit hard to follow this guide step by step
[LG V50 ThinQ Guides, News, & Discussion] valter.carvalho:
What should I do if I want to crossflash the Verizon version into the Sprint? I must get system and vendor files for Verizon? Where could I find those?
[LG V50 ThinQ Guides, News, & Discussion] rhawkin:
The install of this was ok but the battery life of this rom was horrible. you will get less then 4 hours compared to 11 on the sprint rom. You will also have no fast charging. so your battery drains fast and it takes forever to charge. If your looking for volte in America this dose not work. follow this thread on your factory rom, and your volte will work https://xdaforums.com/t/lg-g8-volte-fix.4113291/page-2#post-85455109.
[LG V50 ThinQ Guides, News, & Discussion] 1maaax:
i tried to flash these partitions but when i boot to system it just boots back into the os i had before. any fix?
[LG V50 ThinQ Guides, News, & Discussion] ValdikSS:
Sounds like you've flashed the partitions of another slot. You either need to switch the slot or flash everything to current slot.
[LG V50 ThinQ Guides, News, & Discussion] 1maaax:
i tried switching slot and i get a bootlogo bootloop. if i try to flash on b partition then i get bootloop too. i can flash rawprogram but when i reboot it says decryption unsuccessful and to reset. i hit reset and it reboots into old os even though i flash to both slots