yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hk73:
Ok... tried few hours ago but no difference in my case

I think i feel more bad than you because your sot & baseband info's maybe could have guided me in right direction & would have made my restoration process TIMELIER.....

yukle.exe is file we get in stock 048 restoration firmware....by username abhay but now it's no more available...that file saved me Lot's of time because it restore stock great than other flash.all (lock -bootloader) or start.bat (unlock bootloader)......but i got fluke to get it back no one here uploading its just size in kb's

Sorry didn't understand -you have p2c72 or p2a42 ? Have you flashed or posted ? In any case essence of question how is your experience on CHINESE nougat Firmware ?

You mean screen on time best on los 16 than stock nougat or deodex nougat ?

😉 You given time to reply is appreciated.....👍
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] x_fight:
someone can add the step to install certificate to request oem unlock

https://forums.lenovo.com/t5/P2-P2a42-Smartphones/bootloader-unlock/m-p/5052203

it wasn't easy to find that information

1. you go to this site with a Desktop Firefox: https://unlockrowapi.lenovo.com

2. It is ok that it says 'Error 400 Bad Request' etc...

3. Click on the 'Secure Lock' left to the address

4. Click on 'Connection is Secure'

5. Click on 'More Information'

6. Click on 'Show Certificate'

7. Then Download all Certificates on all Tabs left to right 'unlockrowapi.lenovo.com', 'Secure Site Pro CA G2', 'DigiCert Global Root CA'

Then you have all the needed Certificates.

8. Move certificate on phone

9. Then, on the Lenovo P2, import the issuer certificate by navigating to Settings->Security->Credential Storage->Install From Storage.

The phone will open up a file browser intent, where you can select the certificate. It will then ask you how you want to import the certificate. Choose "VPN / apps". You can give it any name you like afterwards.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bojkonil:
Regarding battery drain issues and deep sleep drain in particular.

I remember It's been discussed before but maybe some people missed it, others may be unwilling to tinker with the kernel, or are just too busy to go into it, but alirazaagha mentioned fixing the battery drain issues by flashing BlaZeMaX kernel. Sadly my phone glitched every time i tried one of the versions but 1 thing stuck with me. Max frequency BlaZeMaX kernel allows is 2208Mhz while LOS's kernel is set to 2016Mhz.

So recently I decided to give BlaZeMaX kernel another try, just play around with the max frequency and voltages.

So far i've been unable to make my phone stable at 2208Mhz, but I have no issues at lower frequencies.

And best of all - deep sleep battery drain is gone.

Now it drains only 1-2% per night and overall experience is same as LOS16.

My current settings are Min Frequency 1036Mhz, Max Frequency - 2150Mhz. Alucard governor.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] whispersatthegate:
What software did you use to adjust CPU settings?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bojkonil:
Kernel Adiutor (specifically https://xdaforums.com/t/app-root-4-4-reborn-kernel-adiutor-mod-v18.3714105/)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] whispersatthegate:
Thanks. Did you do that recently? I thought that Kernel Adiutor was not maintained any more? Although maybe it still works...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Use SmartPack-Kernel Manager, it is a heavily modified version of Kernel Adiutor developed by Willi Ye.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] whispersatthegate:
Thanks - heard of it but will give it a try. Planning to revert my P2 back to original stock and OTA it to the latest before re-flashing Lineage. Hoping a scorched-earth reboot will solve a few issues it may have picked up through tinkering...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Is it possible to flash a custom kernel on this ROM (official LOS with encrypted data)?

Edit: yes it went without any problem. I compiled LOS kernel with GCC 10 and flashed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
This job is required to be done for kuntao too, because we have the exact problem and the same msm8953.

https://review.lineageos.org/c/LineageOS/android_device_bq_msm8953-common/+/304101
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] amdyss:
Had an issue with the latest update. As usual the package downloaded, reboot to twrp and then phone fail to boot up. Had to install previous build manually.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bgxx:
FYI, I had no issue with the latest update. Procedure is the same, package download, start update, reboot to twrp (ver. 3.5.2_9-0) and then boot. Everything is working properly.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] amdyss:
I guess it must be my twrp. Its out of date.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] cocopipou:
Hello Mike,

Thanks again for this great rom that I am leaving now because my kuntao is definitely dead.

It is irreparable (Wifi out of service, same problem with GPS and mobile services).

I bought a Xiaomi Redmi Note 10 Pro.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
We will miss you...

How it became so irreparable?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] cocopipou:
It happened 2 and a half weeks ago.

I was in conversation with a person who had just contacted me, when the conversation was suddenly cut off.

I tried to call this person back several times but nothing happened.

I couldn't hear anything anymore : no ringstone.

I tried to send a SMS, but nothing happened.

I also tried to send an email, but nothing happened.

I went to a well-known repairer in my region who did a lot of testing, in my presence (it took a lot of time).

His conclusion was : maybe I can fix the phone except for the internal memory, but it will definitely cost you more than buying a new one.

Namely, this repairer does not sell new smartphones.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] utwer:
Will we get LineageOS 19.0?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
At the current state, no. 3.18 kernel is missing essential functionality for android 12. I have started some experiments with 4.9 kernel here: https://github.com/mikeNG/android_kernel_lenovo_msm8953/commits/lineage-18.1-4.9

It's in very early state so I can't promise that will ever become fully functional. At the moment I have only tested recovery booting and display/volume button navigation work, however usb and touch aren't working so I can't debug much further yet.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] utwer:
We all hope that you can do it. Pls, dont stop your work. Our BR!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
First, thanks a lot for your work. Having 4.9 on our device would be a great advancement. The hardware is still capable with the day's standards for a mid-range phone so please keep it going.

Second, I have started porting 4.9 to our device in the past week (It is my first experience with porting a kernel to an android phone). I cloned the latest CAF tag for msm8953 (64 bit, android 11)and ported some parts of code like the lenovo camera v2 to it. I compiled it with GCC10 successfully. Other hardware driver seem to be present on the CAF (I may be wrong here). But wit a similar configuration of kernel with 3.18 (and also with adapted msm8953-perf_defconfig), it does not boot and will reboot just after "fastboot boot boot.img". I used dts from 3.18.140 tree.

Telling the above story, I want to say that I will be happy if I could provide any help.

Best of luck.

Edit: I replaced old dts files with new ones from your repo. Now after issuing "fastboot boot boot.img" phone seems to hang after a short vibration and blue led lights up. (pressing the power button for a few seconds makes device reboot to its previous healthy state)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
You should probably just switch to the whole kernel, it has required commits to boot on kuntao (eg. https://github.com/mikeNG/android_k...mmit/619498f1ac595610b454f8afb14118d2c4b57601 )

So far it's missing charger driver (doesn't compile on 4.9 so it's disabled in defconfig), camera stack isn't ported (needs API hacks in order for old userspace blobs to be compatible) and OTG support is missing (required commit wasn't compiling on 4.9). Also some parts of dts are commented out but I don't remember a lot about these commits in general, I started this project originally in summer 2020 but abandoned it until now where I added the above linked commit that fixes the basic boot issue.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
Next build will be including the battery drain fix, sorry it took so long I haven't really checked this thread in a long time.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Big thanks Mike that's great news.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Thanks a lot for your comment. It would be very good if you could resolve remaining problems. And it would be great if the resulting repo can be updated with the latest commits from CAF thereafter.

Again I will be happy if I can do something in this regard. I will try your repo in the next free time.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Thanks a lot. I have tried conservative governor instead of interactive on 3.18.140 (default kuntao config compiled with GCC10). I should try it again with your patch applied, it seems to help battery back.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] utwer:
We all hope that you can do it. Pls, dont stop your work. Our BR

May by this https://sourceforge.net/projects/ro...12-20211011-f.v5.0.0+1.Community.zip/download will help you with A12
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Astridxx:
Posp a12 does not booting and Octavi a12 booted but Ril and Power button not working
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] utwer:
Is it https://sourceforge.net/projects/ro...20211226-0539-VANILLA-UNOFFICIAL.zip/download one ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Mike, now that you are here to fix issues, would you please take a look at the miracast problem? When we chose the target TV for sharing the screen, after a few seconds trying to connect, it fails and says "wfd service keeps stopping"
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.5.2, magisk 23.0, ext4 partitions, pin unlocked, updated to 2022-01-09 with the updater app. Everything smooth. Fantastic 18.1 ROM, thanks a lot Mike.

I can confirm this version fixes the cpu freq problem. Now it stays at 652mhz on idle. Will update on battery performances
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] educowley:
Yes everything, only two bugs , power off alarm not work and cast.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bgxx:
Thanks again for this great rom. With the latest update 2022-01-23, everything is working perfectly. Battery consumption seems lower compared to the previous versions. Lenovo p2a42, twrp 3.6.0_9, magisk 23.0.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] robuser007:
I installed latest version and now my phone only boots in fastboot, not in recovery, no matter what I try (even restoring original OS)...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bgxx:
FYI, I had no problems with the latest update 2022-01-30, everything is working perfectly. The update procedure is standard, i.e. package download, start update, reboot to twrp and then boot... Lenovo p2a42, ext4 data partition, twrp 3.6.0_9, magisk 24.1, zygisk-Lsposed, misc. Magisk and Lsposed modules.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mattrattus:
Guys,

Do any of you know why there is such a high demand for mobile data by Android OS?

I have the highest consumption by NewPipe, but I wonder about the Android OS position - in just over 3 weeks close to 400 MB.

Is it the same for you? Should I think I have some nasty thing on my phone?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tahir Baig:
Some time back when I updated to a weekly update of LOS 18.1, the recommended "twrp3.2.3-2019-02-09" was replaced by Lineage recovery automatically without me knowing.

Now I am trying to flash the above mentioned recovery via ADB, but my phone is not recognised by windows ADB (it had no issues earlier with the same laptop running the same drivers).

I tried to reinstall the ADB drivers, factory reset the phone but to no avail.

PS- I tried with other devices and they get recognised by ADB. So definitely the issue is not with the ADB drivers in the PC.

Can anybody help me sort this out?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] educowley:
Hi, install twrp app from Google play and recovery from it, if you are root
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tahir Baig:
Hello. Thanks for the reply. My P2 is not rooted. Hence, I am trying to flash the appropriate recovery via ADB.

But device is not recognised by ADB (the device code does not appear when "ADB devices" command is sent in)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] educowley:
I would try with the Lenovoroottool you can flash twrp recovery and root if you want.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] educowley:
https://xdaforums.com/t/lenovo-p2-root-tool.3800838/
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Hi Mike,

Thanks a lot for your efforts. The last builds are better optimized in battery consumption.

There is a commit waiting for review here: https://review.lineageos.org/c/LineageOS/android_device_lenovo_kuntao/+/322224

Will it resolve the Screen Cast problem?

Another question regarding the 4.9 kernel. How is it going?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sephiroth1311:
Hello there, and thanks to the author of this excellent guide.

I've flashed this version: lineage-18.1-20220417-nightly-kuntao-signed.zip

And it works like a charm, except for the fingertip device, which does not work.

I've followed the guide step by step (with the exception of flashing the latest TWRP version); plus I installed Magisk after installing the ROM and the Gapps.

Strangely, Android did let me configure the fingertips, and I was able to save 4 of them. However, the unlock feature never worked: the phone does react to my finger but throws an error.

Than, the button stops working until I turn off the screen; when I turn it back on I get the same issue.

Any suggestions? Should I just wait for the next release?

Thanks in advance!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
LOS 19 IS COMING!!!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] utwer:
Wait for
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
Maybe we don't gonna get los 19 as there is no progress in the 4.9 kernel for p2. Fingercross may the dev got it right before android 13 launch.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
Hopefully, amen to that..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.1, magisk 23.0, ext4 partitions, updated to 2022-05-08 with the updater app. Everything smooth.

Fantastic 18.1 ROM; thanks to your work, this fantastic phone is still a very good daily drive for me, my partner and lot of people out there. You've made real difference for people and for the environment. Thanks Mike.

Looking forward for los19!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
@mikeioannina whats about the progress in 4.9 kernel ???
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Source?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.1, magisk 23.0, ext4 partitions.

Updated to 2022-05-29 with the updater app and the phone didn't manage to reboot successfully for the "finishing updates" phase. Tried to reboot, clear dalvik and cache. Nothing worked.

Reverted back to 2022-05-22, which worked as a charm.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] And16rew:
Hello, I am flashing lineage os 18.1 according to the instructions from the lineage website, when installing the firmware everything freezes at 47%, what to do(
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Upgraded to today's version (20220619), everything works. Thanks!

@mikeioannina would you please merge those commits waiting for a long time?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.1, magisk 23.0, ext4 partitions, updated to 2022-06-19 with the updater app. Everything smooth.

Fantastic 18.1 ROM; thanks to your work Mike. Looking forward for los19!

Have you solved it?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeyj001:
Hi,

I just had exactly the same problem this week. Did you find a solution?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] NiTrOwow:
Whats the average screen on time? All I could find was 8:30 hours, which seems to be a bit on the low side, getting 12-13 hours right now with the same original battery! I do have a spare battery but even after 5 years of wear and abuse it keeps on flippin working like a mf fire truck. The only thing is the burn-in in the amoled, but I don't care about that. Will order spares again for this sucker for sure.

Thanks Michael or OP for making this possible, I love Lenovo/Motorola phones. Great quality, I think this is the oldest sucker I have in use never let me down even when I rage quited and thew the damn thing to a tree, it simply won't die. That's the Lenovo P2 in a nutshell. A super durable phone. I also still use the original charge port, it's crazy I've had over 3 USB cables go bad and blew one fast charger but not the usb port or PMIC?!? Yep. All these new phones with USB-C they all tend to fail quite early, wonder why.. I want reliability and durability over speed and all these hypes.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.2, magisk 23.0, ext4 partitions, updated to 2022-06-26 with the updater app. Everything smooth.

Fantastic 18.1 ROM; thanks to your work Mike. Looking forward for los19!

I can confirm 8:30 sot, a little less than couple of days in total
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
@mikeioannina is lenovo p2 dead as per the latest lineage os gerrit code review. If not than what about the status of 4.9 kernel and los 19.1 for lenovo p2. Please update
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phantom8329:
I put LineageOS 18.1 and there is such a moment - when the keyboard is called, an indent appears from below. How to remove it?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.2, magisk 23.0, ext4 partitions, updated to 2022-07-17 with the updater app. Everything smooth.

Fantastic 18.1 ROM; thanks for your work Mike. Looking forward for los19!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Shanye:
I have a P2C72 64GB which was converted to P2A42 some years ago. I have been quite happy with the phone, so I haven't messed with it although I have thought about it a few times and had already done the waiting period for unlocking maybe 3 years ago. On Saturday I decided to go for it, and unlocked and installed this ROM with the recovery that goes with it and added MindtheGAPPs. Everything went very smoothly.

And guess what? That's right - I think this ROM might be even better than the original ROM. Everything works as it should and it's smooth and crisp. Funnily enough, a long-standing issue I had with emails arriving without notifications being given has gone. Battery life is great as well. I'm a very happy camper.

I just want to thank you for this ROM, Mike.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Shanye:
Question: How do I secure the lock screen so that a user without my pin cannot disconnect wi-fi, location and bluetooth by swiping down on the notification bar?

See link here -

https://www.askvg.com/tip-no-one-ca...ta-location-when-your-mobile-phone-is-locked/

It's the secure lock setting / lock network and security tab I am looking for.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] slim71:
I'm trying to re-do a clean install of the last LOS 18.1, using recovery and sideload. The installation works fine for both LOS and Gapps, but unfortunately the fingerprint sensor does not seem to work (while it was before).

I've tried installing LOS 16 as someone suggested (I haven't actually booted into it), wiping cache-dalvik-data and flashing LOS 18.1 again, but no luck with the sensor.

Also tried the not-most-recent image, but still nothing.

Has anyone encountered this and solved?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] slim71:
Also (and sorry for the double post), does anyone else uses PayPal app? It seems it does not want to open for me, no matter what I do... This is one of the reasons I've tried to perform a clean install, since it stopped working a while ago, but still no luck...

I've got

- LOS 18.1 17/08/22

- Magisk 25.2 (but it didn't work without either)

- P2a42

EDIT

In case it's useful to anyone: I've found a solution with this reddit post, without pt.2
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
@mikeioannina are you currently working or maintaining the p2 or not ?? please atleast mention in the forum.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.2, magisk 23.0, ext4 partitions, updated to 2022-08-28 with the updater app. Everything smooth.

There's only one thing that annoyed me for long long time now: the option 'ask every time' in the 'SMS preference' doesn't work; when sending an SMS it doesn't ask and it doesn't send the text. You'll need to select one of the SIM cards as Default for the text to be sent.

For the rest, fantastic 18.1 ROM; thanks for your work Mike. Looking forward for los19!
[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] arto_73:
P2a42, magisk 23, f2fs

20220904, 20220911

After updating to these versions, some applications do not start. Rolled back to 20220828 and all applications are launched.

Am I alone?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Klusio19:
Does that ROM passes safetynet? Thus, does Google pay works out of the box?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.2, magisk 23.0, ext4 partitions, LOS 18.1 2022-08-28. Yes and Google Pay no problem
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] amdyss:
Whatever rom I tested, I always end up with official Lineage. Lately i installed couple of A12 roms and everyone, afrer 3-4 weeks gave me terrible lags, which destroyed comfort of using the phone. Tkanks Mike for your work :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] And16rew:
Hello! Yes, the problem is solved, you need to flash the factory2vendor file after the recovery firmware, and everything will work out. I think you will find the file.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Klusio19:
I installed latest LOS on my friend's Lenovo P2. No root, stock LOS only. Google Pay, and banking apps work. SafetyNet passed (basic integrity, and CTS passed). But there is that one app, which doesn't want to start, because it's saying that system is modified or rooted. I think device fingerprint could be the problem. I was also considering rooting it and trying to use MagiskHideProps module, however there is no Lenovo's fingerprint in there. Does anyone have stock fingerprint, or have any idea how to make it work?

The app itself is local app for paying for highway (Autopay), we are from Poland.

Below are screenshot from Momo app.