yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
Disclaimer:

/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 8 (oreo), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in theLineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

What's working :

Boots

Volte

RIL (Calls, SMS, Data)

Fingerprint

Wi-Fi

Bluetooth

Camera

Camcorder

Video Playback

Audio

Sensors

Flash

LED

GPS

FP gestures

Known issues:

You tell me!

Instructions :

Download the latest build and GApps

Reboot to recovery

Flash the latest build and GApps

Flash Magisk

Reboot

Downloads:

Build: lineage-15.1-20180723-UNOFFICIAL-kuntao.zip

Gapps: click here

Telegram Group: Lenovo P2

Kernel: here

Donate to support development:

Donate via PayPal to Subham

Donate via PayPal to FireLord

Credits: [MENTION=6257538]FireLord[/MENTION] for always being helpful. [MENTION=8037603]arghyac35[/MENTION] for always being up when i needed!

And all my telegram friends for being cooperative.

XDA:DevDB Information

[ROM][8.1.0]LineageOS-15.1[P2][Kuntao][UNOFFICIAL], ROM for the Lenovo P2

Contributors

Subham, firelord

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.x

ROM Firmware Required: S241 or S255

Based On: LineageOS

Version Information

Status: Stable

Stable Release Date: 2018-07-23

Created 2018-05-08

Last Updated 2018-07-23
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
Bugs! Report them!

DO NOT Report bugs if you're running a custom kernel or you installed Xposed

Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)

If it is a random reboot, grab dmesg . (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues.

Changelogs

First BETA Build

Initial build

Second Stable build

-Upstream stuff from LOS

-June security patch

-Fixed Double tap to wake

-Fixed NFC Switching ON & OFF

-Fixed 5ghz hotspot option

-Model number is now set to P2a42

-Update blobs from latest oreo build

-Removed HD symbol for VoLTE users

-Fixed Proper Bluetooth voltage in settings

-Used 2.1 Fingerprint HAL wrapper

Third Stable build

-Upstream changes from LOS

-Added exfat support on kernel

-Fix rear cam portrait mode (thnx to highwaystar)

-Added call recording on default dialer

-Use low level shutdown trigger

-upgrade zram to 1gb

-Enable msm_irqbalance

-rebrand doze to lenovodoze

Old Builds

Initial build

lineage-15.1-20180508-UNOFFICIAL-kuntao.zip
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
FAQs!

Q. Sounds good. How can I contribute to project?

A. Test the build as much as you can and report bugs which can be reproduced with exact steps and are not random.

Q. How to disable "Apps running in background" dialog?

A. When you see the dialog, long press on it and select "Settings". From there, you'll have a toggle to disable it.

Q. Can this ROM be flashed through TWRP?

A. Yes, proceed with the latest TWRP image

Screenshots added!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
Wow nice! Great work
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 911-Future_Maker:
Finally the wait is over! Los 15.1 from Subham! Big thanks man!:D
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tapunger:
What is "Dt2w"??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sohit5s:
Double tap to wake
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shabab malik:
Can someone tell me Selinux is Enforcing or Permissive.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] cuoresporttivo:
Congratulations for this ROM! Hope that is bugless and maybe our daily driver! ? One question... Subtratum support?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kuganeswaraan:
Permissive for now.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mysteres:
Kernel v.4 !? :p
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] FireLord:
Haha no..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 911-Future_Maker:
Substratum works with root on los 15.1
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] PL15:
finally the hard work is here :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nihil39:
Does bluetooth work in conversation? Any deepsleep problems?

Thank you.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] anilyarki:
Many thanks for this shubham.. Because of developers like you, our device can still give a run for money to many new phones. So far so good...

I will post a detailed review in few days. Thanks again.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wlan1:
FC all time...:(
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
I have been having issues with my finger print sensor not working on Cardinal and now this ROM, I'm not prompted during setup and I cannot find it in settings, the phone is encrypted. Do i need to reflash stock and if so what should i flash?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] gagankprajput:
I know this is a silly question but what about google camera HDR support on back/rear camera? BTW Great work !!!?!!!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fahim_68:
I am using los 8.1 beta 3 can I dirty flash this or have to do a clean flash.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shabab malik:
since both rom are developed by different developer clean flash would be recommended.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subteras:
No.☹️
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Cuvillier:
Why these lineage os builds are always nightly?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
For some reason my playstore stays awake
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Untalentedllama:
I'm so grateful to you and all the other devs for keeping this alive! It's such a shame the whole bootloader unlocking has been stopped by Lenovo, I want this so badly!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Egyptiandroid:
What about battery backup here? especially deep sleep status and SOT time
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tanzeel.ahmed1306:
Please someone test the ROM and let us know the review. I will flash it if it is good for daily driver. Thanks Shubham for the new ROM.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] wlan1:
install rom is ok but when i install gapps i have constant force close google play servicess! I tried nano and pico, the same result!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] eugineprakash:
Same here anyone know the solution to add fingerprint unlock functionality.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] royyanhabibi:
So far, bugs that i feel is on Bluetooth for phone call or conversation. The other seems fine for me now.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Fullbustah:
What about bug with nfc switch? Can you switch it off and on multiple times without stucking on either of states? Also how SOT looks like if you approximate it?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] anilyarki:
Hi guys here is my review after using it for two days. A huge round of applause for Subham. :D

What works ?

1. Excellent signal stability. During my time of usage never saw signal bar drop to zero.

2. In call volume is great. Ar par with stock rom.

3. No issues connecting to Wifi, no signal drops and intermittent disconnections for me.

4. No airplane mode bug.

5. Volume levels are on the lower side but still good enough for daily usage. Dolby magisk won't work with Oreo.

6. Unified adblock magisk works perfect

7. Permissive linux. Magisk safety net profile true. I have no issues using any of my banking apps.

8. Stock camera is excellent for still photography.

9. Battery life is excellent. During my usage, i got a SOT of around 11 hrs with mixed Wifi and Data connection used to watch Youtube and some casual games.

10. No deep sleep issues. No unusual battery drain overnight.

11. Substratum works perfectly fine after installing Magisk root. I am using swift black theme. You need to apply all overlays then reboot the phone. Then again go to substratum and enable overlays. This is a mandatory action after March security update.

12. No GPS issues.

What needs improvement ?

The only bug i found in this rom is video recorder. The dark video continues to haunt us here as well. Even open camera wont help in recording playable videos. Only footej camera was able to record videos properly. Enbling Camera API2 helped in recording but after a while it wont work again so i recommend using Footej if you really need to capture something.

If you are some one who doesn't need camcorder often then go for this . This is one of the smoothest Oreo roms available for our device. I can bet this is even better then official LOS if all you need is good Battery life. Hope we soon see the end to camcorder issues. Nice work Subham. Thank a lot.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] royyanhabibi:
Ohh yaa,, you're right. I haven't notice about it before, because i always left the nfc on everytime.

About the SOT, i can't give the real SOT, because I never use the phone till lowbat, but i feel it's a little bit drain faster than the stock rom.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tanzeel.ahmed1306:
I just wanted to know if the bluetooth on call works? and wanted to know why we are facing the dark video recorder issue?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] christboanerges:
Dolby atmos work on oreo rom
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nomenclatura:
Camcorder working. Just remove this line from build.prop: persist.camera.HAL3.enabled=1

BTW: One of the best roms really. Thanks Subham.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iNTER5LOve:
How to solve dark video recording issue ?

Btw thanks for great rom

Everythings work fine
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] cool_nin:
Very nice ROM Subham. Please plan to make this official.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] anilyarki:
can you share the file please. It never worked for me. I used the magisk classic Lenovo version.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] cool_nin:
YouTube randomly force closes...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] christboanerges:
https://xdaforums.com/android/software/app-dolby-atmos-axon-7-oreo-port-t3740508
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Nanmufeng:
Hi Sir,the Lenovo tab 3 8 plus (8703X) tablets :"CPU msm 8953,3GB+16GB,LTE, it's a big P2. ：p

Lenovo announced the open source code for 8703X.

Would you like to make a lineageos for this device?

URL:https://xdaforums.com/general/general/lenovo-tab3-8-plus-source-code-t3785845

Github :https://github.com/highwaystar/android_kernel_lenovo_TB-8703X

Thank you very much!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] colaxs:
Good Morning

Thank you Subham for your great work in bringing Oreo LOS to the P2.

Your efforts are most appreciated.

I downloaded the ROM zip along with Gapps and attempted to install it on my phone yesterday.

I've already installed TWRP 3.2.1 on my phone and my stock ROM was on S251.

I boot into recovery and did a wipe to clean up the phone.

After this, whenever I launch the Zip file installation for the ROM, the screen proceeds but gets stuck at the "patching system image unconditionally", after which there is no progress. It doesn't proceed to Gapps installation either.

I checked the MD5 of the zip and and it shows exact match, so the file was downloaded completely.

Please advise on where I could be going wrong.

I tried testing with another Oreo ROM from here, but that got stuck in the "flashing kernel" stage.

Finally, I had to reinstall the 7.0 S251 stock rom to get my phone working again.

Thanks
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iNTER5LOve:
Where is the option to add Fingerprint?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] FireLord:
Don't post this off topic stuff here.. and no we can't work on devices which we don't own
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
You need to be encrypted to make it work
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
Maybe the zips you are downloading are incomplete downloads or i would say wait for 10 mins atleast to let it flash
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iNTER5LOve:
how to encrypt phone ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
I'm encrypted and still no fingerprint in the settings or during setup.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
For me there is
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iNTER5LOve:
after encryption phone from security setting fingerprint option come back again but i need to enter pattern every time I restarting phone (to starting android you need to enter pattern)

how to disable it ? cant disable it from security setting
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] razatthakur:
does anyone can confirm that video calling from native dialer is supported or not (For Jio hd video calling)? other calling apps don't work well for me due to network, only jio 4g video call works great. please anyone can tell?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
You cannot disable it from settings. You need to start all over. Including wiping all partitions to remove the encryption data.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iNTER5LOve:
​

If I start it over I will lose fingerprint option

What is the right step to flashing rom now ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
You need to be sure that you start over. With that I mean not only reflash the ROM. Recreate the partitions also because the encryption data is saved on the partitions.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nihil39:
Live Display (night light) is not working, please add this to the bug list in the first post. Other than that bug it seems a pretty stable and energy efficient rom.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iniro:
Please can you share link for stock camera app?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lp2yisdfu:
Same here. I use this feature a lot and I can't get it to work at all.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sambadii:
Found a new bug: once memorized, the fingerprints can't be deleted.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] FireLord:
Never faced
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
I am currently on p2a42_s251_171107_row

Can i install this OS?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
Does this ROM support fast charging upto 24watt(12v*2amp) as stock?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
I wiped dalvik/system/cache/data two times because before the file was corrupt, then installed lineage and pico gapps

It successfully installed everything, then i wiped cache and dalvik cache again.

But now when i boot into system it says decryption unsuccessful.

It says the pass u entered is correct but data is corrupt.

Then asks for reset and when i do that is reboots to recovery, same thing over and over again.

This is my first flash, according to me everything went perfect, can anyone suggest what to do? Thanks in advance.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] FireLord:
Go to format > select advance > select data > change file system > select ext4 > done

Might help
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
What a coincidence, i just did that and it worked.

Still thanks.

You reply so fast to queries.

I really appreciate that.

?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lozohcum:
I'm trying to choose custom rom for my daily run and work. Is this build as stable and functional as Official LineageOS 14?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] vijaykmr:
I haven't tried Official one. But I can say that this one is very stable and deep sleep is also fine.

And I think I remember you from Xperia M2? You built CWM for it, right?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tiiiit:
Hello, long ago that I did not tinker with my phone, just a question, please :

Should I touch something about the kernel on my Lenovo P2?

Need to wipe something ?

Flash Magisk for root ?

what version of Gapps ? OK <use the arm64 architecture

Thanks !

(Sorry for the Google translation)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fady saher:
I am on linage 14.1 official version and I want to try this rom is it worth to change what about battery life is it good on 14.1 I reached 15 hours sot
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lozohcum:
Thanks for info.

Yes I did some builds for M2. I think it was my last Android I was building for.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
REVIEW:-

Using this ROM from yesterday

Almost everything works

Speaker volume is a lil low but acceptable. And maybe a lil screen flickering one or two times.

I noticed one thing, in my stock ROM i didn't have any idle drain at all like at night maximum 1% would drop and in this one almost 6-7% dropped overnight.

Otherwise in usage battery backup is quite good.

And there is dark mode in display settings but maybe add a full blown black option? As it is a amoled display pure black will be better than just dark. Just a suggestion ?

P.S. My first ROM and this stable, i was very sceptical at first that i would be messing with my phone but this build is Daily Driver Ready from the start.

Thank you Developer ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
It can be deleted. I tried that 3 times and it works perfectly. Check again
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subham:
You need to go with 2-3 battery cycles and check apps if any which could drain battery. Regarding screen flickering i cannot find any
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
Ok i will do that.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sambadii:
I booted in TWRP and from file manager, deleted /data/system/users/0/fpdata/fptemplate.db and /data/system/users/0/settings_fingerprint.xml and now everything is ok, I can delete and learn new fingerprints.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] spunxhoe:
It is a beautiful rom and definitely a daily driver. I have been using it as a daily driver for about a week now. Everything works almost as good as the official lineageos 14 for our phone. I hope to see that this rom also becomes official. I definitely deserves to be.

Some of the bugs that I came across

1. There seems to be an issue with bluetooth - It drains a lot of power even in the off state.

2. Some app crashes - especially in the initial setup of the app eg Amazon, some expense mangers etc

3. Dark video in the video recorder.

4. The night mode is not working. - the screen does not turn yellowish at night.

5. SElinux is permissive for now
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
Totally agree with this.

I hope this becomes official and the lil no. of bugs get resolved. ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kinngk:
Still the battery drain at night is 7-8%,

Battery stats doesn't show any particular app causing it.

Maybe it is some bug or something that's causing it.

If you get some time please check it maybe you find something and then fix it in the next update.

Thanks in advance. ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] atrirocks:
Does this rom support face unlock??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
I think my fingerprint had stopped working on all 8.1 roms now. Hoping it is not a hardware issue.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] PriyeshP:
:good::good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 1pratham:
Does this support Lenovo super cast or at least the ability to turn screen off while mirroring?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Shuvamilu:
You need encrypted your phone the you use your fingerprint
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
Yes I know, it is encrypted, fp still stops working after setup.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Shuvamilu:
What is last build install on stock firmware
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] gagan_ahuja11:
Encrypt your phone. Fingerprint will start working again.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
As I've already said, it doesn't.

---------- Post added at 10:12 PM ---------- Previous post was at 10:10 PM ----------

I went back to stock then reinstalled L15, same issue, works for a bit then vanishes out of settings, fp gestures stop working too
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Chillmann:
U do ur test without any additional apps installed? Very weired if functions just vanish :eek:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
I know, it happens on most 8.1 roms, AKOP works best, but still vanishes from time to time. I'm not the only person it's happening to either.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] spunxhoe:
I had a similar issue.. after varying periods of time the fingerprint sensor stops working.. used to happen on stock and los roms.. I finally had to change the sensor. Luckily I had a screen-cracked p2 lying around
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
Ruh Roh!

It's reconditioned and only 3 months old, still under warranty, anyone know how to relock the bootloader?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
You can't, it's registered on the lenovo servers
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Danoz88:
Of course he can relock the bootloader. If they check the bootloader was unlocked or not is another topic.

Look in the guide section second site.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Shuvamilu:
S251 is required for lashing Oreo 8.1
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] fourthletter:
I shall give S251 a go next and see what happens. Thank you