yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] EthicalHacker:
I'm facing problem with twrp-3.1.1-0 on marshmallow.

After temporary booting twrp when I try to restore boot backup twrp recovery stuck at "Restoring". It shows " Restoring 64mb of 64mb, 100%. but nothing happens later. It doesn't shows boot restore is successful or failed.

This thing happening only with boot restore.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ilmervanhattem:
SuperSU also works fine, but you have to try different versions, not all of them are working. I've had a lot of problems with Magisk, so I don't recommend it.

---------- Post added at 10:41 ---------- Previous post was at 10:40 ----------

Thank you for the newest version. Did I miss the changelog?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
The link on the 1st Post (https://eu.dl.twrp.me/kuntao_row/twrp-3.1.1-0-kuntao_row.img) is dead.

Working link - https://dl.twrp.me/kuntao_row/twrp-3.1.1-0-kuntao_row.img
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
The link in the main page is working.

It simply is not an direct download link but a link to the TWRP download site.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Korax94:
Tomorrow I will be able to unlock my phone (for the 14 days), I would like to know what did you use to make a backup before installing TWRP
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] dineshpampati:
My bootloader will unlock by tomorrow . So plz any tell me that which version of twrp recovery should I use and which version of supersu should I use .
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] chemeleon:
I needed to boot into recovery this morning, but the normal shortcut of volume up + power didn't work. Instead, the phone would stay on the initial Lenovo logo for about 15 seconds and then reboot - I'm assuming because I had the power button held for 15 seconds.

Instead I had to boot into fastboot, download the twrp image and use the command fastboot boot twrp.img. That got me into twrp, from there I could fix what I needed to fix. However it'd be interesting if anybody else has this problem and if so if there was a better solution to it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
So systemless root and OTA is possible at the same time?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
I am also very interested in this. Systemless Root + OTA...

Can someone with the right knowlegde write down step by step how to do this please..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
I'm a beginner myself, but I believe that as long as the system is untouched it should be alright. Then we have to understand when the system is affected. For instance, do not install TWRP (custom recovery), use the adb fastboot boot command. All rooting has to be done in a systemless way, else you'd had to undo all changes to set it right.

Anyway, I think we'd count ourselves lucky if we get a second update. I have a tablet from Lenovo which was abondened more or less straight away. Nice to at least have the opportunity without having to reflash though.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
Yes.

I have had a Lenovo laptop. Great device. I have also the Lenovo Tab 7.. it's the snake to my mongoose. Or the mongoose to my snake.. :/ I don't know.. Animals!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhayruparel:
(Version 3.1.1-0) while in stock ROM changing data to ext4 causes bootloop. [MENTION=844843]celox[/MENTION]cis please look into this. I was in stock ROM flashed using fastboot and then flashed TWRP and changed data to ext4 using v 3.1.1-0. I'm currently using 3.1.0-3.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Mod may remove this post about OTA. I believe the question has already been answered. If you swipe right in TWRP, forget about OTA.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Mod may remove this post as well of the same reason as above.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Tested your method and was unsuccessful, at least when I look in the security settings of the phone. An important note: Do not try to format data (factory reset, not the advanced option) until you're sure you're decrypted. It will prevent the phone from booting.

The error I get when I use "format data" to decrypt is this:

E: unable to wipe '/data' -- unknown file system 'auto

Unable to format to remove encryption

Failed to mount /data' (Device or resource busy")

Unable to mount storage

It implies that my file system of data is set to 'auto, which is odd since ext4 was displayed in TWRP before I went ahead and chose "format data".

I've tried to decrypt for hours. Think it's time to throw in the towel. Got better things to do.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] turbopas:
TRWP Backup problem on p2a42

Hi all,

i have TRWP 3.1.1-0 and Nougat official 233 rooted on my Lenovo P2.

My problem is to UNABLE to end Backup System Image on MicroSD Card or OTG USB storage.

The backup init regolary, ma after Backup Boot and System regolary, at System Image end and the message Backup Failed. Cleaning Backup Folder.

Backup on Internal Storage work perfect.

IDEAS for solving this?...

Thanks in advance.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kontex:
I read about 200-300 posts in this thread. Please can at least three persons with pure Nougat Firmware P2a42_S233_170404_ROW confirm that they where able to root with the description from celoxocis?

I failed about 15 times.

The device is unlocked.

The twrp-3.1.1-0-kuntao_row.img with SR1-SuperSU-v2.82-SYSTEMMODE.zip leads to blue dots on white backround screen during start. This is described many times in this thread.

The twrp-3.1.1-0-kuntao_row.img with Download Packaged and Sideloading lead to the blue dots on white backround, too.

The twrp-3.1.1-0-kuntao_row.img with SuperSU-v2.82-201705271822.zip and an ext4-Data Partition leads to a freeze/stop in TWRP. It gathers some data, builds some image and compresses a ramdisk. When it says flashing the boot image it does not proceed further. After restart you have a working but unrooted device.

This is my fourth Android device within about 5 years. I managed to root all of them so I would say I'm an experienced user. But the TWRP-Version or SuperSU don't work with this description. [MENTION=2494638]celoxocis[/MENTION] Can you check the files yourself or can I provide you some logging-data? I saw that you answered all notices of defects with the request to read the description again. I want to mention that I read it over and over again but it is NOT rooting with the provied files and description.

EDIT: Can confirm that something is wrong with the provided SuperSU versions. With twrp-3.1.1-0-kuntao_row.img and phh's SuperUser root was done in 5 minutes. I'll test if there are issues because phh's SuperUser capabilities may be not as good as the SuperSU functions.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
FINALLY managed to decrypt the damn thing.

You will, no matter what you do, receive errors and red text about it not being able to mount etc. Well, that's BS. The decryption does succeed, but after the data failed to format (be aware that all user data on the phone will be wiped at this point!) you need to reboot to recovery and flash no-verity-opt-encrypt.zip a second time. Now reboot to system before returning to TWRP to flash the SU of your choice.

Volume up + volume down + power have to be pressed before the device boots. I don't think its enough to press just during boot.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] EthicalHacker:
It's not twrp's problem. Lenovo P2's system_image.emmc.win backup file is larger than 4GB and FAT32 file system format do not allow to store single file larger than 4GB therefore your backup is getting failed. To solve this problem you have to format file system of storage device to file system like exFAT, NTFS etc.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Uibon:
Edit: read your edit. Currently phh's is the way to root the device
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
I'm having problems getting the system to mount. Worked at first, but not any longer. The box in TWRP=>Mount can't be ticked. FYI, I'm experimenting with systemless root.

Also, the system partition displays an an insane size: https://image.ibb.co/exEJUa/20170702_111031_Night.jpg

SOLVED. Ticked the option system partition read only which then allowed me to mount it. When I'm rebooting via TWRP it always warns me of "No OS installed", but I ignore it every time and don't encounter any issues doing so.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Yes for Nougat stock rooting, phh'SuperSU is the recommended way to go.

It thought it would be clear ever since techxplicit posted a video guide. One of the reasons why I linked both (Marshmallow/Nougat) Video guides.

I will edit the Opening Post and add that information once I'm back from vacation.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fahim_68:
Can we flash stock ota with twrp

Asking for a friend ????
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Nice with a rescue Nandroid! I made one myself before rooting.

I'd be interested in a full stock MM image (preferably, but not necessarily, exclude recovery and cache in case something was to go wrong in the process).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] turbopas:
WORK FINE!!!

Very Tanks
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
Today my 14 day term completed and have TWRP installed and am testing various ROMS now.

Thanks celoxocis for making this happen. Really appreciate your effort.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ankitkumar.in:
14 day term to unlock bootloader implemented by Lenovo, right?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
Yes.

Not really sure why someone has to wait for 14 days. Why not just run "fastboot oem unlock" without going through the whole 14 day process.

Running AICP ROM right now.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ankitkumar.in:
Yeah, right. Thanks. But what's the point of choosing AICP over stock ROM?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
I like to be on the latest version, slimest, more feature rich version. (I am coming from OnePLus One)

There is more Bloat-ware in even the Deodexed version.

I wouldn't mind going to Deodexed version, if it could be tweaked a little more + more bloat-ware removed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hoppingpanda:
Hi,

One quick question.

Unlocking oem bootloader on Lenovo P2 will void warranty ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kiristiba:
Yes
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
I am not sure because in NL the warranty is not void. This is only the case if an "issue" is not related to the unlock or root action. If that can be proven than the warranty is not void. At least in NL. Not sure how this is arranged in other countries.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Here is an info for everyone patiently waiting and want to help in any way possible for the Project "Official LineageOS for the Lenovo P2".

All donations which are send to me (TWRP appreciation donations) or Mike (development appreciation donations).

Will be put forward to buy new PC components/hardware for Mike.

He is developing and working on an 8+ Year old PC and i think we all can agree that an upgrade would be an amazing way to show our collective appreciation to him and keep him motivated on the project. :)

Donation Link, see signature.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] donomar3109:
Can i unlock bootloader without waiting 14 days?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
No.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Jaswanth S:
I don't know but My status shows in warrenty after bootloader unlocked
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
This is what happens if you are married to the best wife in the world!

She buys you a Lenovo P2 as a wedding present!

I will now proceed with bootloader unlocking and look into any issues that TWRP might have left on the P2.

For those that did not know. I did NOT own a P2 before creating TWRP for the P2.

However I do now! Which makes things easier.

Big thanks for all beta testers! And a very big thanks to my wife!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] PL15:
Dats good... !!!.... Congo for wedding present!! .. :good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
Big thanks to your wife from all of us here in this forum. :good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hoppingpanda:
Hi,

Thanks for reply.

Can you please upload screenshot if possible.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] rogat92:
Wow, I wanna marry your wife, :laugh: just kidding

Can't wait any development from you mate
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Updated Opening thread to reflect rooting of Marshmallow and Nougat.

For Nougat stock use phh's SuperSu!

More info, see post #2
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] excitedgeek:
Help me out ....this is what happens when I try to unlock bootloader.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Nabeelp2:
Lots of bugs found in the official twrp

I just finished unlocking the bootloader and flashed the TWRP.

1. After changing the data partition to ext 4 and I tried to flash the stock deodexed rom but the recovery started restart as soon as I swiped to confirm to install and the process continued like a loop Everytime I swiped to install (Was scared to death):(Had to reinstall the recovery to solve this problem . Still changing partition cause the twrp to crash. Need to reinstall it every time after changing partition to f2fs/ext4.

2. When I tried to restore the backup by going to recovery>restore the restore option showed nothing though I had backed up all the data to micro SD card.(I did change the path to micro SD card)

3.When I tried to open the folder containing Los it showed empty folder though it contained the Los.zip.(confirmed it by pulling the SD card to computer).

Is this recovery incompatible with ext4:rolleyes:

Found the actual reason for 2 and 3

The process partially corrupted my memory card
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
It is not a bug. Its 4GB limitation of your FAT32 formatted memory card!

If you had read a few pages back. You would have known.

But nowadays. People no longer read and prefer to watch youtube video of 3-5mins in length.

Anything longer than 3-5mins and their brain can't comprehend due to too much information input.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
If you had actual read what it says!! You would not even have posted this question.

When you register your LenovoID. It will only activate your LenovoID-Account once you verify your email address.

Which obviously you did NOT do. Hence the message in your screenshot!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Nabeelp2:
So what's the fix
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
The fix is reading!...

Especially this reply which was posted just two pages back!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Nabeelp2:
Thanks for helping me out.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Update: Increased the Text size in the opening thread for "generation Y" that no longer reads and prefers Youtube to point to Youtube tutorials!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] excitedgeek:
Thnq..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Jaswanth S:
My bootloader is unlocked and The device is in warranty!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
Just wondering instead of applying for that 14 day waiting period, we one had just run "fastboot oem unlock" ... if it would have made any diff..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
It wont work. The "OEM Unlock" option in the developer options. Set's a flag to "true", hidden somewhere on the device partition table.

That flag will be read by aboot while booting which contains the fastboot binarys. If the flag is set to "true". You will be able to run "fastboot oem unlock" and be able to unlock your bootloader.

If the flag is set to "false" and you try the command. It will reply with "bootloader unlock not allowed".
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
Thanks for the explanation [MENTION=2494638]celoxocis[/MENTION]
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shrutik a:
How
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Jaswanth S:
No clue mate!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhayruparel:
How to disable encryption?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ALISTON PRINCE FERNANDEZ:
Same here,even my device
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Jaswanth S:
Wondering how is that!?:confused:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ALISTON PRINCE FERNANDEZ:
:eek:ya,i rooted my device, flashed custom rom still it is in warranty:silly:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Jaswanth S:
Xiaomi used to do this right?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Siva Mk:
No, not for everyone.

The warranty voids only if the bootloader is unlocked officially (that is requesting bootloader unlock and wait blah blha)

If the bootloader is unlocked using unofficial methods then the warranty won't be void and the bootloader can be relocked by flashing a stock Mi ROM.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ALISTON PRINCE FERNANDEZ:
No i first unlocked bootloader from developer settings,logged in to lenovo id,,,it took 14days,to unlock bootloader,,used adb command oem unlock,and unlocked my bootloader,,later flashed everything

---------- Post added at 07:04 PM ---------- Previous post was at 07:00 PM ----------

But i unlocked bootloader officially(from developer option putting lenovo id)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Added Magisk as confirmed root method in #2

Tested by myself with latest Magisk version.

Update: Added screenshot for proof Magisk works on the P2.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shatteringlass:
Actually I am roooted with magisk and I didn't switch to ext4. See attached pics.

Although magisk modules do not work and I am not sure about safetynet either.

http://imgur.com/a/Xxp3i
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Magisk modules don't work because of Lenovo's kernel missing F2FS feature.

Because loopback device mounting is missing in the F2FS stack of Lenovo's kernel.

Therefore Magisk modules can't be mounted. I'm suprised that Magisk's "su" works for you.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shatteringlass:
Thanks for the quick clarification.

I guess I should have read this post. Thanks to this discovery, Moto Z Play users have had a patched kernel (with f2fs fix) since the beginning of 2017 (here it is for those interested).

Anyways, I have su working for me, which is nice (for now). It would be amazing if we could get a custom kernel with the same patches as addison. I think it was you (celoxocis) who explained to me the different architectures of the two phones, anyway dreaming is for free.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
I know about the patched kernel for the Moto Z Play. I could do the same for TWRP but once I add it to TWRP, users will have to flash a custom kernel too. Because the booted system still uses the kernel from lenovo from boot.img Which adds complexity to those "main" users that simply want to run stock ROM and root it.

Once we have Official LOS I will push a TWRP with the necessary F2FS changes.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zeus_hunt:
[MENTION=2494638]celoxocis[/MENTION] is there anything we can do/help in expediting the process ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] excitedgeek:
I'm having same problem...did u finally root ur phn...??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
New version pushed Official:

Version 3.1.1-1:

- Fixed "Format Data" when formatting back to default (f2fs)

- Enabled OTA support (only works if system is left untouched)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ALISTON PRINCE FERNANDEZ:
Thanks.but after clicking the download file,,it does not start downloading.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amansinghiam:
Could you please atleast provide a guide used by you for magisk, rather than just providing the link. Pleaseeee
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
Could you please read that there is actually a guide written before asking for a guide that already exists?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amansinghiam:
I can see that. Its a page for magisk rooy and manager n guide. . But is the guide universal?? ? Same guide applies for any every device? Jus confused. So mind guiding?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
WTF?! You are In the Lenovo P2 subforum in the official TWRP for Lenovo P2 thread and ask if the guide I wrote how to apply Magisk for the Lenovo P2 is written for the Lenovo P2 can be applied for every device?

Sorry but I have to ask. Are you on drugs?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhayruparel:
The link takes me to twrp 3.1.1-0 instead of 3.1.1-1 of twrp. Kindly check and update thread.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] kingmercian:
https://eu.dl.twrp.me/kuntao_row/twrp-3.1.1-1-kuntao_row.img.html
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhayruparel:
still inaccessible
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
It's a link that actually takes you to the download link. You don't use that link in a download manager.

It's perfectly accessible.

Has it become standard nowadays that people simply ask for something without having read before posting a question?

Or that people complain before they verify that the problem of the cause sits right in front of the display?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] kingmercian:
You've clicked on the .md5 hash, try clicking the link contained on that page for the .img
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhayruparel:
I was using chrome brower on my desktop. I wasnt using the link in any sort of download manager. I understand the difference between a direct link and a link to a website. I dont know why but it gave me an error i have tried two to three times but it didnt seem to load up. Also not that I have asked only after trying and reading and understanding well.

If you still think like I was posting a question without reading then its maybe your fault.

I'm here (on xda) to learn and explore new things if you have issues with my comment feel free free to add me to your ignored list.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Siva Mk:
Chill out dude... :p
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ALISTON PRINCE FERNANDEZ:
Clicking on the download file(download twrp.img),,it opens up this,,any help please??(uc brower)i will try on chrome/opera mini(have to download)and check if its downloading

[Edit] ,,able to download:)on opera,,,but its not working on uc idk why
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amansinghiam:
We here seek knowledge from him. N look at the way he is talking
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] zalaTheOne:
To get knowledge you should know that where to seek knowledge. This is not rooting guide thread.

Ask in appropriate thread.

PS: He has already posted the steps to root the phone, also added the link to video tutorial.

What else more you need from him?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amansinghiam:
Here comes his lawyer