yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lamentxthe:
Ah, sorry I misunderstood. Maybe validation servers are down.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] giannis008:
Is there anything I can do???
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sohit5s:
Official twrp page showing error 404...

Please anyone gib official twrp 3.3.1
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] JuliãoSaeba:
https://eu.dl.twrp.me/kuntao/
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] rkpg:
Hi nandakis4,

Can you give the link plz, i don't see the backup rom for android 7.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] GPSSlovakia:
version 3.4.0

https://eu.dl.twrp.me/kuntao/

---------- Post added at 06:33 PM ---------- Previous post was at 06:33 PM ----------

version 3.4.0

https://eu.dl.twrp.me/kuntao/
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] GPSSlovakia:
version 3.5.0 - https://twrp.me/site/update/2020/12/31/twrp-3.5.0-released.html

For our devices: https://eu.dl.twrp.me/kuntao/
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] leo_97:
Version 3.5.1 available: https://dl.twrp.me/kuntao/

Thanks developer for keeping it updated.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] utwer:
Is only for Android 9 ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] leo_97:
No, I used it with Lineage 17.1 official (by Mike) and it's working fine. I don't know about android 11 ROMs because I didn't tested it yet.

PS: Just for the record, I'm not the developer of the recovery, I'm just sharing it here.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] LEIBE:
works w android 11 tested by me.

CHEERS
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bataki2002:
Hello, i note in this version 4.4 crash with "lenovo part" in sytem, also android auto don't work. the version 4.2 all works perfectly.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hk73:
What worked for me in past is yukle.exe flashing after twrp backup --- precisely yukle.exe S048 flashing + [Stock Rom] [Lenovo P2] [NOUGAT 7.0] [Deodexed_P2a42_S244_170725_ROW]b4 return to previous rom....but now don't have these files due hdd crash else will share & if i am requesting then it's been removed by xda....so if you have try these & will resolve your problem
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hk73:
Link not working....kindly reupload....
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ZephyrBlaze:
Can someone provide me with a twrp restore file? I tried to flash the stock rom but the bat file that came with it tampered with some files and I can't even boot into the stock rom
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
So I've installed both 3.2.3.1 and the latest 3.7.0.9. The popup to allow for system modifications never show. I cannot permanently install TWRP.

Does anyone have a solution?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
For the time being I reverted to 3.2.1.0. Maybe TWRP will stick if I updated through TWRP using this version?

Edit: So it seems this procedure worked.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Good Morning!!!

I offer a working link to download the latest as well as older dedicated versions for Lenovo P2.

TWRP Kuntao Lenovo P2

Warm Greetings to All !!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Sorry.

Am I to understand that newer versions are not very stable than the t you are writing about?

Fact also such I noticed that the newer version does not start at all using vol+/- power on Len.P2.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
It is a known issue with newer versions being unreliable.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
It's finished. Just waiting for an official build to be finished by TeamWin. I don't have access to their project build servers.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wimmetje:
Question:

I need to wait 12 days for my bootloader to be unlocked, but when the time comes does it clear all my data in the process? (both system/internal sd?)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Yes just like with any bootloader unlock.

It's an security measurement by Google.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wimmetje:
Thanks for the reply,

Just what i thought, this happend to my other phones to.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
To switch to custom Roms someone has to make them first for our device... right? or are there some 'generic' roms that can be installed? (sorry for the ignorance...)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Yes,

No.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
Sorry to bother you again... but i guess you are capable of building a custom rom... so maybe you can point me in the right direction.... if i would like to try where should i start? Do you know any good site with guides to do so? I'm a programmer and I use mainly linux I think it shouldn't be a big problem... except for the time :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Use the forum search feature. It is full of "how to"'s.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wzedlare:
We can't enter into recovery with a key combination, booting with fastboot or adb reboot recovery is the only way right? I tried everything but I couldn't enter into recovery without adb or fastboot.That is really bad
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tom Inek:
Enter into recovery mode

You can enter into recovery mode by pressing volume key up + volume key down + power button together for a few seconds.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wzedlare:
I end up with qfil mode after doing that but if I do adb reboot recovery, it works perfectly.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ilmervanhattem:
ROM

How's it going with compiling a CM ROM or/and kernel? Have a great day! :D
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wzedlare:
I can compile rom successfully and I have the cm13 zip but I can not try it bcz my oem is locked :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
I suggest you build a debugable first. That allows for adb debug while booting.

As it will most likely crash or bootloop due to the binarys being arm32 and not arm64. (If you used the Moto Z Play vendor blobs).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wzedlare:
Thanks for suggestions, I used blobs from our device
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
The first obstacle will be the proper graphic blobs to match with the kernel. If lucky it will work with the vendor blobs. If not it will be stuck on the bootlogo.

But there will be follow-up problems.

I would recommend creating a separate "bring-up" thread. It can be moved into the P2 forum as soon as we have one.

The Official TWRP has been build. It's been tested now. Official push is any day now.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wzedlare:
I don't think about another thread because its not even tested yet.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
That's why it's called a "bring-up" thread.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wzedlare:
Here we go :) : https://xdaforums.com/android/development/dev-cyanogenmod-bring-thread-lenovo-p2-t3537365
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
I have some problems with the recovery. When I wipe after the updating partitions it says unable to mount storage but if I try to mount the partitions manually everything works. Another one is when I use the power menu the phone stucks on the lenovo logo and I have to reboot with the power button even if I use the power off into the power menu the phone reboots. Also I have to copy many times a file to the otg cause the file is corrupt and every time I connect the usb key to the pc windows says it need to be restored. I haven't tried yet with a microsd.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Make sure your ADB drivers are correct. Install Googles latest Universal adb drivers.

Please provide logs while experiencing those issues.

I can't help without logs.

Logs in question:

Recovery.log

Dmesg.log

Also I don't quite understand what you wiped? Or perhaps mean formatting. You have to be more specific.

And what power button and when?

TWRP can't make you "get stuck" on itself. Only if you flash something that is not compatible.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jimmybeimer1972:
root fails for me

root fails for me

TWRP works fine , but after flashing SuperSU and reboot the Phone hangs at the Lenovo Bootlogo.

I can only enter TWRP Recocery and restore the saved image. The the phone boots up normal.

I have tried both methods ([Install] in TWRP or adb sideload SuperSU.zip) with the same effect.

Any suggestions?

Thanks!

jimmybeimer
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
I'll try to explain the procedure better after wzedlare will have released the next test zip. I forgot to mention that the mtp isn't working. I had this problem also with other devices and sometimes worked sometimes not. If the phone is booted up the mtp works. Also the root you mentioned isn't working for me. Every version stucks on lenovo logo. At the end I've converted the data partition into ext4 and installed the latest version of supersu and then it worked, systemless mode.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Sounds like you didn't push the dot.supersu file into /data.

Please test this build. I went with a "more generic" approach for MTP.

*(Link Removed, See Opening Thread for this Version)*

Please test MTP thoroughly and please provide recovery.log and dmesg.log.

The root method was confirmed working. But you do realize that you don't have to root a custom rom such as CyanogenMod?

If you do it will get stuck on the bootloop logo as CM ships with their own supersu.

to everyone else

If you expect help or any fixes. Describe what you did in detail and provide recovery.log and dmesg.log.

If not. I won't be able to help and simply ignore your post. I don't have time to keep asking questions and questions all over.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
Yes sorry I'll provide the logs when I'm home. For the root I followed the op but the phone stucks on the lenovo logo. Stock rom

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ilmervanhattem:
Root methods

Is this a good method?

rootoreviews.com
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
That site is BS.

That's auto generated click bait.

That site was listed before the device was even released!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jimmybeimer1972:
I did the same thing and system boots up normal with working root :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
Everything seems working with the new version but you renamed the device from P2a42 into p2a42 xD I don't know what happened before but I use the twrp recovery for a long time and on different devices but I never had this type of problems excluding mtp
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
What problems?

Didn't you read my post about F2FS not being properly patched by LENOVO?

Where do you see it renamed?

When connected to the PC as MTP device name?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
The device name is changed when the updater-script checking it but this isn't a problem. I had only to edit the first row into the updater-script. With problems I mean the problems mentioned before and I've already formatted the /data into ext4. Now I don't have these problems anymore I have only to test better the otg. Next time I have a problem I'll upload also the logs

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
I had run a script to rename all strings from P2A42 into p2a42 for the Official builds. The additional "p2a42" was a derp.

If you haven't noticed I enabled double tap to wake in the TWRP recovery too.

OTG (aka Mass Storage is disabled in the TWRP builds) once I have more time I will look into it.

I don't have the device myself. So I rely on logs.

My device is the Axon-7. But I maintain an Official CM/LOS device which is the Oppo R7S.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
Yes I've noticed it, but I did not remember if there was even before. Can I ask you why the recovery is a bit laggy? When I scroll o swipe it isn't fluid as other devices. What do you mean with the "mass storage

disabled in the TWRP builds"? If it is disabled why I can still read the usb stick? You have enabled it just in this build but officially will not be present?

edit.

ouble tap to wake doesn't work anymore. It worked only the first time I've booted into recovery
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Not fluid?? It runs with hardware accelerated graphics overlay unlike other most TWRP recoverys. Disable that and you will see lagging.

No. MTP is not mass_storage. Attaching an HDD would be mass_storage.

My Unofficial builds have actually more changes than the Official ones. Because TeamWin only syncs their fork of my repo when I tell them too.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
I konw what is the mtp. What I wanted to ask is whether the official build there will still be the possibility to use both mtp and otg mass storage. Anyway it seems to me more laggy compared with s5 and nexus 7 2012 but this isn't a problem it's just a curiosity
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
I will probably leave mass storage disabled as it requires a custom kernel patch to work properly.

If you want to improve "smoothness" in a recovery where most people spend less than a minute.

Learn how to code and join the TWRP development at omnirom.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
I'm already trying. I'm setting up a mint vm where I want to try a few things but with this I'm completely off topic :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] The Dutchman:
It's awesome to see someone actively working on this device! Will it (somewhere in the future) be possible to unlock the bootloader without letting Lenovo know what's up, or is this impossible and irreversible? Id rather not void the warranty on a brand new device. Plus the only reasons I'd like to be rooted is to debloat and lower DPI, the UI is way too big.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] solazz:
You can lower DPI without root just need to use ADB... In developer options in the phone, enable USB debugging... Then, connect to PC and run the code below:

adb shell wm density 400 && adb shell reboot

Change 400 above to the DPI that you wanted to use...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] The Dutchman:
That worked like a charm!

Dear god this device is a thing of absolute beauty on 340 DPI, only downsides are the stock launcher not scaling properly

(I use Nova Prime anyway) and the stock Lenovo app icons being tiny in the notification drawer.

One issue I do have (on stock DPI as well) is when you hide the soft buttons the area where the buttons used to be is not usable.

There is still some kind of invisible 'overlay'
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wimmetje:
Great, I also changed the DPI settings to 340 with adb, finally some good use of the screen .

Thanks for the suggestion.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Infyrana:
I thought I was the only one facing this issue. Due to this, I'm always typing a lot of words without a space in between, as ~ 5mm are just not responsive at the bottom of the screen. Annoying. I hope this will be gone as soon as we get rid of the stock rom (even though I like some of the features here, and it's not completely loaded with crap).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Updated Opening thread to include Link to the latest version (Public Beta V2):

Changelog:

- Included Double Tap to Wake

- Fixed MTP Issue

I recommend everyone to update.

See Opening Thread for Update procedure.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
what is the default dpi? i tried your 340 dpi but don't like it... would like to revert to normal... tried 400 and 420 but icons remains tiny...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wimmetje:
If i am correct it was 460 or 480, didn't write it down:D
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] solazz:
Default is 480
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
Hi... finally unlocked the bootloader... trying to have the systemless root, I wiped data partition and reformatted as ext4... then flashed latest superSU... (2.79) like maxysoft said.... but it always gets stuck on 'flashing boot image'... then it shuts down: one long vibration, screen black and blue led on... if i turn it on again... supersu isn't installed at all.

Edit: I tried supersu 2.76 pointed by celoxocis and superSU installed... it seems... now it's stuck on the "LENOVO" image and doesn't boot at all...

Edit 2: Tried also with the sideload tecnique.... stuck on the "LENOVO" image as well...

running out of ideas...

Ps. last note... while flashing the TWRP i have this output... is it ok?

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

downloading 'boot.img'...

OKAY [ 0.893s]

booting...

OKAY [ 0.481s]

finished. total time: 1.374s
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
did you wipe something in the process? latest version of supersu downloaded from their site hangs for me... it shuts down at the step 'applying hex patches'...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zarGon:
> P2a42 with S048

> OEM unlocked

> TWRP flashed

> Can't get SuperSU to work, every try results in bootloop

> Already did a factory reset, and tried again, same.

- Using TWRP from intro post.

- Tried SuperSU from intro post (2.76 SystemMode): got zip verfication error with sideload; it installedwith adb push and instill within TWRP without zip check. --> bootloop.

- Tried SuperSU from first post (confirmed working root) -> bootloop

- Tried SuperSU from official website -> bootloop

- Using unSU to get out bootloop

Could somebody provide me the SuperSU zip that has worked without bootloop?

Or am I doing something wrong?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wimmetje:
Yeah, official TWRP!

Now hoping to get the separate forum quick for our device!!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Updated Opening Thread to reflect Official release.

No More Unofficial builds. TWRP for the Lenovo P2a42 is now only available as Official builds.

If you have the TWRP app installed you will be notified of a new version and be able to update through the TWRP app.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
Restore your system from nandroid then convert the /data partition into ext4. Turn on the phone and after the first setup reboot into recovery and flash the latest supersu 2.79

PS. Restore also the kernel with nandroid

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zarGon:
I would rather not switch to EXT4.

F2FS is friendlier to the flash storage (less wear than EXT4).

(Also, OTA updates would be nice (possible with EXT4), but it's not a dealbreaker not to have OTA updates.)

Anybody got SuperSU working with the (default) F2FS /data partition?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
On my phone always got a bootloop with f2fs.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
for bootloop you mean 'stuck on the lenovo image'? :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
yeah
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
ok perfect... i'm in that same situation... but with no nandroid backup (i know i'm an idiot).

I will try to reflash the latest supersu with adb from windows... instead of linux... don't know if it's any difference
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
Download this and flash only the system and boot.img with fastboot then try root again.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zarGon:
Root again after changing /data partition to EXT4, I presume?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maxysoft:
You can try again with f2fs but I don't think is a good idea. As I said on my phone doesn't work.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zarGon:
What is/was the file system of your /data partition you were installing SuperSU as mentioned above?

EXT4 or F2FS?

Mine is F2FS; after installing SuperSU my device doesn't boot further than the Android logo (so, it's stuck).

Other people in this thread have the same problem.

So, I assume you're using EXT4...

Any idea if there is a working solution for F2FS?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
No! read the post why F2FS is not working. It's LENOVO's fault not having required F2FS patches.

It is all described and mentioned in the first three posts.

You need to convert /data from F2FS (which is default) to EXT4 for Systemless Root to work.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
there is a boot.img but not system.img in the file... did you mean all the systemchunkX.img? Also do i need to install the drivers included?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
The system.img are in systemchunkX.img just use the script (flashall.bat) to flash your device.

It will send (fastboot flash) the system.img in _chunks_. That's why it is named chunk.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zarGon:
I have read the first three post where carefully.

- In the steps (post 1), it is not mentioned to format to EXT4 for SuperSU to work.

- Step 10 in post 1 mentions "System Mode SuperSU". (So, not Systemless!)

- Post 2 does not mention any file system.

- Post 3 mentions EXT4, but only in combination with Systemless.

So, this is what I understood:

- If you want F2FS and you're okay with no OTA updates, go for System Mode.

- If you want EXT4 and you want OTA updates, go for Systemless.

EXT4 is less friendly for my flash storage, no? That's the only thing holding me back from formatting /data to EXT4 from F2FS.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Yes your summarize is correct and systemless and system-mode, advantage/disadvantage is common knowledge ever since SuperSu switched to Systemless by default.

EXT4 actually has better access times than F2FS.

F2FS is slower in read and access times. Only when you write thousand files per second is F2FS faster but seriously who does that?

The main disadvantage from F2FS is buggyness as it's a still heavy developed filesystem.

I would not want to use a buggy filesystem with the possibility to lose data. As all recovery tools still have to adapt to a F2FS filesystem. Just read the reason why Systemless doesn't work on LENOVO's F2FS version. (In short because it misses features)

Where with EXT4 you have countless stable and working recovery tools such as EXT4-undelete.

I'm not touching F2FS until it has established a solid base in the Enterprise environment. (It has not!)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] noone1982:
how can i flash just the boot and system partition with flashall? there is no such option in the menu... do i have to find the commands inside and launch them manually?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Yes.

Look for "fastboot flash boot boot.img"

For example