yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
I checked it for you, installed this Autopay application, launched it and it said I have root. I added version 23.0 to magiskhide and it works fine. It's strange that you have no root and it shows that it is, but apparently some apps treat custom roms this way.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Zdeslav:
Regards folks,

thanks to great 18.1 ROM my Lenovo P2 is reborn. I didn't seen any mayor flaws in ROM.

P2a42 / My ROM Build / Latest update : RQ3A.211001.001 086569df20

Rooted, Magisk 25.2, Safety Net, All works well with banking apps

Just question for Camera if somebody knows.

Camera APP ver: 2 02.072 (086569df20-00)

org.lineage.snap

For Camera default app and flash, they are not in sync when I take photos in dark places, can focus very well but flash fires to early or to late.

Aldo there is same flaw in OpenCamera APP, same thing

How can it be synced ?

Need some edit correction files or something else to do?

Please help about that. I had also problems in LOS 16.

Regards
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.2, magisk 23.0, ext4 partitions, updated to 2022-10-02 with the updater app. Everything smooth. Thanks to your work Mike. Looking forward for los19!

I also experience the problem with the flash, in both camera and opencamera apps - the second application suffers a little less delay? - but couldn't find a way to fix it.

Also, on every update it doesn't put back the SMS default preference to what it was but it forces it to 'ask every time', which it doesn't properly work: when you try to send a text, if you're on 'ask every time' it won't actually ask.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Klusio19:
Spróbuję jutro go zrootować, a następnie ukryć Autopaya i zobaczymy co z tego wyjdzie. A mam jedno jeszcze pytanie, czy jak zwykle jest to standardowa procedura sflashowania TWRP i potem sideload zipa z Magiskiem? Pytam, bo obecnie posiadam OnePlusa 8T, które jest urządzeniem A/B i tam, osobiście rootuję poprzez wyciągnięcie obrazu boot, spatchowanie go w aplikacji Magisk, i zbootowaniu go przed fastboot.

Chodzi mi o to, czy jest coś charakterystycznego dla tego Lenovo w przypadku rootowania, czy flashowania TWRP.

Mod edit: English please!

Google translation:

I'll try to root it tomorrow and then hide Autopay and we'll see what comes out of it. And I have one more question, is it the usual procedure for flashing TWRP and then sideload zip with Magisk? I'm asking because I currently own a OnePlus 8T which is an A / B device and there, I personally root by pulling the boot image, patching it in the Magisk app, and booting it before fastboot.

I mean is there anything specific to this Lenovo when rooting or flashing TWRP.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
I installed normally TWRP, for this I choose NikGApps, of course, you can choose the recommended one from this thread, then the magisk installation via twrp (I did not do sideload) and everything runs. Finally, I had to install the safetynet fix module in magisk, the first time im install it via twrp and had a bootloop, but man learns from mistakes.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Zdeslav:
I didn't solve camera flesh fire problem, for sms and calls I've installed a google messages app and phone app, dint have any problems.

Reg
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sebcel:
Hi there,

I have a problem with LineageOS 18.1, on my Kuntao P2a42. I am French, and it is impossible for me to connect my phone to the "Bouygues" network.

Impossible to activate 4G (LTE), yet I have an antenna right next to my house. I also tested my sim on another phone, and no problem!

Do you have an idea please?

Thank you for your help !
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ryus25099:
Chrome tidak berjalan di Rom ini dengan baik..apakah penyebabnya?selalu error'

Mod edit: English please!

Google translation:

Chrome doesn't run on this Rom properly.. what is the cause? always error'
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhishekjain.ims:
Guys I am unable to register fingerprints. It says enrollment failed. Any solution?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Zdeslav:
If you are root !!!!

Well, after deleting pin and fingerprint I always need to delete those files. From Lineage OS 16 to 18.1 for Lenovo P2 with Root option, maybe for non root isn't problem, don't know.

Boot into TWRP

Go to advanced>filemanager to acces the files in your phone.

Enter the folder /data/system/user/0

Delete following files: ./fpdata/user.db, settings_fingerprint.xml

Reboot to system and set up new fingerprints with the fingerprint wizard

Everything should work normal

and or...

Delete your Android PIN – TWRP Method

Boot your phone into TWRP recovery.

Go to Advanced > File Manager and navigate to /data/system.

Find the files that end in the .key extension and any files that have “locksettings” in the filename. They will typically be (but vary by manufacturer):

Gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal

some phones have this files or don't

Link
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Zdeslav:
Maybe to report BUG about fingerpint system on

Lineage os 18.1 / Lenovo P2 a42

RQ3A.211001. a177e63d45

Rooted, Magisk 25.2, Universal Safety fix, working

I can register only one correct fingerprint, second, third ... is non recognized.

Even if I delete those files in data/system/user, stil I can use only one registered.

Regards
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhishekjain.ims:
Thank you very much for the solution. I tried another ROM but that didnt work either then I read about another solution to downgrade it to Lineage OS 16 & voila it worked. Now I am using Lineage OS 16 with this issue (y) The only thing which bothers me in LOS 16 is its weak network strength. Can we increase it with root?

Thank you very much again.

Regards,

Abhishek J
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
I lived for a while in Perpignan and I had your same problems with Free. I eventually managed to make it working with LTE, playing around with the 'Network and Internet' > Free section > 'preferred network type'. The configuration that eventually worked for me was LTE/WCDMA, but with a little patience you can try if there is another one and if you find, please tell us!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
How's the development of LOS19 going? @mikeioannina
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ryus25099:
Chrome selalu error' di lineageos 18.1 ada solusi[kuntao]
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
What development?

*trollface image here
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Thank you for your great contribution! Much appreciated by everyone on the forum. Hoping that you (or someone else) manage to get 4.9 properly working.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] MagicMedlar:
Unfortunately our device has been dropped.

devices: Drop dead 18.1 devices · LineageOS/lineage_wiki@3bf2a74

Change-Id: I457d0b94490ab5058847f50752ff3dc3cbff1fcb

github.com

Info about kuntao | LineageOS Wiki

wiki.lineageos.org

Warning: The Lenovo P2 is no longer maintained. A build guide is available for developers that would like to make private builds, or even restart official support.

Anyway, thanks @mikeioannina for these 4 years supporting our device.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abhishekjain.ims:
I am getting communication error 17 while setting up the Android Auto, I am using Mindthegapps. Any fixes for the same?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hypomaniak:
Hello

I had that problem when I installed LOS, and if I remember correctly, the solution I found was to manually set the authorizations for Android Auto in the System/apps settings and give access to the microphone.

Strangely enough, Android Auto wanted to access that before getting to the Wizard screen where it says which authorizations are needed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Today im installed latest build from 25 October, and i see my battery drain quickly, in cpu spy i see that phone not use 652Mhz and 1036Mhz, anybody have that problem too or just me? Edit: Installed this same build once again and now lower frequencies fix but 1958Mhz not used now 🤣 Edit : Its only works for 2 minutes now back to previous situation... I try downgrade to lower build number.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Clean flash when installing the rom followed by wiped cache usually take care of my battery problems. Gsam and AccuBatt are great if you need to investigate further and track down different culprits.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Im always update this rom with clean cache only and never have problems. I have installed accubattery but this not solution for that. Im checking in kernel adiutor clocks and set to 652Mhz minimal cpu frequency, but this not change anything.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Anyone have zips with older builds than lineage-18.1-20221002-nightly-kuntao-signed.zip and can share?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Post in thread '[ROM][10][OFFICIAL] LineageOS 17.1 for P2' https://xdaforums.com/t/rom-10-official-lineageos-17-1-for-p2.4087605/post-85862847
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Why there? Im need older weekly builds of LineageOS 18.1, not previous version...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Nope. Also looking.

Who maintains it nowadays? Still @mikeioannina?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Nobody now. Im send 11 days ago private message to him, but he not respond.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] cav74:
List of dropped devices, kuntao included (unfortunately)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
What a pity, I enjoyed so much the weekly routine of rom updates!

@mikeioannina : following this quotation

is it possible to put this rom in monthly build? At least it'll last another year.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
How's everyone idle discharge? In deep sleep I get 0.3-0.4% per hour. That is almost three times more than what I had on stock.

I use the universal GMS magisk module and Naptime to attempt to improve idle battery time.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
That problem was fixed in January this year. Hmm. Must have been triggered again somehow.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Some apps are overly sensitive to custom ROMs. In Denmark I cannot use MItID no matter what tricks I pull. It somehow extracts the Lineage OS build and says that I'm rooted.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Mike, would it be possible for someone else to take over where you left off?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Savonarolo:
I've followed the install instructions but I'm stuck on "patching vendor image unconditionaly...". Can anyone help?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Would it be possible for someone to do quarterly builds? Willing to contribute monetary-wise.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.6.2_9-0, magisk 23.0, ext4 partitions, updated to 2022-10-23 with the updater app. Needed to restart a couple of times but then everything's smooth. Thanks for your work Mike.

So, I'm here to give my 1pence. Given atm lineageos build for this still pretty good device has been abruptly interrupted, I've managed to build the 18.1 image by myself, it's unofficial and not signed but it contains last changes and 5 Dec 2022 security string.

Bear with me, it's the first time I've built an android image from source so basically everything is still new to me and I don't have the skills nor the time to fix problems in the code.

I've installed it on a spare p2a42 I have and it worked (needed to restart couple of times clearing cache though)

File on MEGA

mega.nz
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Good effort, @en666! Greatly appreciated. It's a reliable basic daily driver even today.

Looking at the Android smartphone market I can't find a good replacement. We should do what we can to preserve this beloved baby of ours.

To anyone who wants to prolong the life of P2, the OEM batteries look like this, note specifically the logo:

Make sure the seller is reputable.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
Lenovo p2c72, twrp 3.7.0_9-0, magisk 23.0, ext4 partitions, updated to 2022-12-19 flashing my unofficial image posted above on my daily drive p2. Needed to restart a couple of times, manually clearing the cache, but then everything's smooth, including banking apps and Google pay.

@mikeioannina I know you don't maintain this anymore but thank you for your precious previous work. If you can make it into a monthly build, then it'll be great for still almost a year.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Question: Why Magisk 23 and not 25?

Edit: Monthly builds would be great, but I'd settle for quarterly just to keep it alive. Since it is officially dropped devs have focus elsewhere.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
The monthly build idea for @mikeioannina comes from this Gerrit message:

https://review.lineageos.org/c/LineageOS/hudson/+/341380/6

Which makes a point in saying that abandoned projects can be still on the official LineageOS monthly build pipelines, so to prolong the distro for about a year. Let's keep the fingers crossed for @mikeioannina to read our comments here!

I keep magisk v23 because since v24 the owner deprecated and removed the embedded 'hide' functionality, now coming with a third party module.

The 'hide' together with disabling Magisk manager (I've made an Automate script for this, Post in thread '[How To] Bypass Lloyds and Santander Root Detection' https://xdaforums.com/t/how-to-bypass-lloyds-and-santander-root-detection.3837206/post-87421041) still work great for my banking apps!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eried1:
Thanks for the disabling idea! Will have to try it out. Think I've done it before, but without success for a very stubborn bank app that detects LOS. Should be done using different combos of modules, apps and specific magisk settings.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
I planned to enable monthly 18.1 builds, however the kernel is missing 2 whole years of security patches at this point. 4.9 kernel port has had no progress at all and now 4.9 is also end of life...

Honestly not sure what to do here, I am extremely busy nowadays and don't really have time to go through 2+ years of Android Security Bulletins and apply the missing kernel patches.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
Nvm
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
First, thanks for following up the development of this worthy device and expressing your concerns.

About the kernel, wouldn't it be better to base the work on one of the CAF android kernels which have SLTS support for example 4.19 or 5.10 (which have support until 2029 and 2030 and already include all security and functionality patches) and then only port kuntao's specific drivers to it (including camera, charger, touch, ...)?

IMHO, this approach is far better and more straightforward in comparison to cherry picking more than 2 years of left patches and port them to an old kernel.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] omginput:
Sounds not bad
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
In theory it's easy but in practice there are certain difficulties in porting a new kernel.

QCOM has released 4.9 kernel that supports msm8953 SoC, but it depends on firmware and proprietary blob updates which we will obviously not get from lenovo. That can be bypassed by writing some compatibility layers in kernel to make older blobs work, and in other cases update some blobs from other devices to make it work.

Then you have the device specific drivers that need to ported and adapted to new kernel ABI. which is also hard.

After doing all that and making everything fully work, you are still left with 4.9 kernel which is EOL and you are left on old android version because our proprietary blobs are too old in some cases (for example camera) and they can't work easily on new android versions.

Porting an even newer kernel like 4.19 would require also porting the base drivers for msm8953 SoC support which could also take quite a while to do properly.

I have posted my work in progress 4.9 kernel a year ago here https://github.com/mikeNG/android_kernel_lenovo_msm8953/commits/lineage-18.1-4.9

and nobody else seems to be interested. I have almost 30 phones to maintain now for lineage and work, so I don't really have time to dedicate and do this alone.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Thanks for describing the current situation and required steps for the future work.

About the proprietary blobs, as far as I know (and it may be incorrect, so please you correct me), the blobs are loaded and used for API call by the device specific drivers, therefore if we have our specific drivers ported to a newer kernel, those drivers take the responsibility for loading those blobs and using them and we should not need compatibility layers. Again as said, I may be incorrect because I have a very shallow experience with android core so please let me know in that case.

About porting those kuntao specific drivers to the newer kernel, last year I examined porting them to the QCOM's 4.9. API changes fortunately were not so horrible, sure it needs a good amount of focus, knowledge and experience and it is a demanding job, but it is not impossible if there is a strong will for development of a device, which usually it is there for new launched devices but not for an old device like Kuntao.

I agree about your point toward porting msm8953 base drivers to e.g 4.19, as a time consuming job.

About your last paragraph, unfortunately I only have this phone and it is my daily driver, so I could not be able to use it as a thorough test platform. I would be happy if I can provide any help, but the living situation is not promising at least currently to dedicate a specific time for this job. But please let me know if I can be of any help.

Thanks again and regards ;)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Gigantus198:
Hi. I want to download the newest LineageOS rom, but as you all know, LineageOS dropped support and download from their site isn't possible anymore. Is this site reliable? If not, where can i download the newest rom?

Lenovo P2 (kuntao) - LineageOS ROMs

LineageOs ROM Lenovo P2 (kuntao) Official roms Download last nightly build (2022-10-23)LineageOS 18.1 – [ Android 11.0 (Red Velvet Cake) ] [Recovery file (2022-10-23)] Previous version (nightly) (2021-05-16) LineageOS 17.1 – [ Android 10.0 (Queen Cake) ] [Recovery file (2021-05-16)] Previous...

lineageosroms.com
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
More than happy to send you a testing p2 device if you have the skills to do the job!

Latest official 18.1 2022-10-23:

File on MEGA

mega.nz

Latest unofficial 18.1 2023-03-28 (compiled by @leo_97):

File on MEGA

mega.nz
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Thanks a lot for your generous help toward development of this device!

As I said in the last paragraph of my previous post, the personal life situation is currently pressuring so I can't dedicate a specific time to this job. On the other hand my experience with android core development is shallow, therefore even if I have a test device, I would not be able to play a meaningful role alone without help of an expert ;(
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
@mikeioannina Can u send me older weekly builds than this: lineage-18.1-20221002-nightly-kuntao-signed.zip You delete all form github and i can't downgrade now, i need older builds because newest works very bad for me.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
I do not have the one you've requested, but these are some older packages:

lineage-18.1-20220626-nightly-kuntao-signed.zip

File on MEGA

mega.nz

lineage-18.1-20221016-nightly-kuntao-signed.zip

File on MEGA

mega.nz

lineage-18.1-20221023-nightly-kuntao-signed.zip

File on MEGA

mega.nz
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Thanks for trying help, sadly 2 builds is newest from that what i have and third is to old, im need builds from september 2022.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tobago2013:
Just found these ones (Sept 04, Sept 11, and Sept 18) on my drive, maybe these'll help.

* files via WeTransfer
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] RAVINTER:
Yes that whats im looking for, thanks you so much for help. 🙂
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
@RAVINTER , thanks to @leo_97 I've recently discovered the unofficial LOS 19.1 (android 12) for our beloved P2 and so far I find it perfect, even the alarm clock started to work again when the device is switched off, like on the stock, and the battery drain is gone. You may give it a try! You'll need to reset your phone though, didn't find a way to do a dirty flash.

https://xdaforums.com/t/rom-12-1-unofficial-lineageos-19-1-for-lenovo-p2.4483227/page-2
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sephiroth1311:
Hi there, could you be so kind to reupload them again?

Unfortunately, the link has expired.

Thanks!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tobago2013:
Sure thing, here you go:

https://drive.google.com/file/d/1H8vGlh83mI4qy_gwRE3D0dSczkOqSINz/

https://drive.google.com/file/d/1HDYbox8rYdSSt2x-SB2S4KZD4761ifA5/

https://drive.google.com/file/d/1JF5ONXB3BWfH1-LimJ5nw5KlEiqqBnW0/
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sephiroth1311:
Thank you so much!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] donjoe0:
By newest you mean 18.1? What worked badly on it for you? I'm still on 15.1 and wondering if any upgrade is worth it, like if the newer ones don't ruin autonomy or something.

How much battery drain is gone? I saw someone up-thread recommending LOS 16 for max battery, would you say this 19.1 is comparable to that?

I'm thinking of upgrading from 15.1 because of all the security improvements added since then, but ideally without increasing battery drain since I'm already at 81% capacity after 5 years of usage.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
Lineage os 15.1 !? Bro you are really out of date.. I suggest to use LOS A12.1 build.. Battery should be more or less..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] en666:
@donjoe0 if you're concerned about security, then the latest OFFICIAL los release is 18.1, it was maintained by mikeioannina and then discontinued a few months ago because P2 kernel is old and requires lot of effort to move it forward.

Compared to 15.1, 18.1 battery drain was ok, not exceptional. Say 35-40 hours life with a little more than 8h of sot.

Unofficial roms are a couple of following builds for los18.1, los 19.1, based on android 12, and los 20, based on android 13, thanks to @leo_97

I have tried to summarise years of P2 LOSes for you, hope to have been useful.