yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
This is no longer supported since the device is receiving LineageOS 15.1 official builds

[COLOR="Purple"]#include <std_disclaimer.h>[/COLOR]
[COLOR="Navy"]/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* 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.
*/[/COLOR]

Installation:

If you are on stock OS, you need a custom recovery first. You can get the recommended TWRP recovery in the official installation instructions link below.

If you are coming from stock or other ROMs, you need to make a factory reset.

As always, make sure to backup before installing this ROM.

More detailed instructions at:

Install LineageOS on kuntao

Download link:

LineageOS Downloads

Recommended Google Apps package:

Open GApps (choose the variant you want)

Changelog:

Changes for kuntao

Bug reports:

How to submit a bug report

LineageOS JIRA

Donate to support development:

Donate via PayPal to mikeioannina

Donate via PayPal to LineageOS

XDA:DevDB Information

Official LineageOS 14.1 for P2, ROM for the Lenovo P2

Contributors

mikeioannina, highwaystar_ru, FireLord

Source Code: https://github.com/LineageOS

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.x

ROM Firmware Required: Any version of stock 6.0. Recommended: P2a42_S251_171107_ROW

Based On: LineageOS

Version Information

Status: Nightly

Created 2018-03-20

Last Updated 2018-11-15
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amithaj133:
Wow.... Official support thats great...thank you so much
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jaks218:
Short review of this rom:

i flashed this rom three days ago (GAAPS nano)

battery life seems slightly better than stock rom

GPS works really reliable (drove 500km today with Google maps)

Rooted via magisk - Adaway/Systemizer/youtube as magisk module - no problem at all

Call quality is good but phone-speaker seems a bit too quiet - flashed Viper magisk module, speakers are loud enough now

performance is outstanding! this rom is so smooth! its like a new phone for me (after freeze/stutter bug from stock nougat rom)

fp sensor is working great

Fast charging is working but there is no indicator for it

over all this rom is great, far better than any stock rom and i did not encouter any bugs so far
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abdal2006:
My experience so far, I'm missing few features

I will update one by one

1. Cast is not working ( I have Samsung smart TV and it is not connecting)

2. No theme manager

3. No native video calling option in dialler

4. Camera quality is good but video recording is dark

5. Some time signal completely goes for few seconds then appears

6. No temporary disable option for navigate bar

7. Mobile download speed is low when compared to stock ROM download speed

Can someone confirm whether face unlock is working properly in this rom to unlock the screen
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amithaj133:
What about camera.... Is video recording working
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] GuestK00412:
My Review -

Pros - ROM is second to none, not even stock comes close in stability & battery performance.

Though i hope these issue will be resolved in upcoming builds later...

1- Sound starts playing from speaker even if you are plugged with ear phones during senarios.

2-Signal bars indicator keeps fluctuating often between 0-4(full strength) though data & calls works without breakage.

3-WiFi connections drops in between & connection works again automatically within 3-4 seconds.

4-Phones hangs little bit during Casting on Android TV.

5- Video recordings are little bit darker as of now.

*Tell you if found any.

This ROM is stable as much as stock ROM, I'm using this ROM as daily driver its better than stock with many features + latest security updates every week.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] vish.tgod:
Does stutter issue is still there or it's gone?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Videos are very dark in low light
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jaks218:
it is gone! no freezes, lags, stutter what so ever in this rom
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] GuestK00412:
Ofcourse video recordings are a little darker as of now in any custom ROM, but video thing barely falls into my daily driver agenda, & those issues I've listed are bareable
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VWijenberg1987:
Very nice to see and i am really happy that LOS is finaly official for this device.Great job from the devs!I am curious are there plans to switch from LOS 14.1 to LOS 15.1?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Experiencing random WiFi drops and inconsistent speeds, anyone else having issues with WiFi too?

Besides the WiFi issues the latest build is nearly flawless, was a bit of a hassle to get it running since I've never done this before but so far it's pretty good.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] b50corei5:
Thanks for the hard work
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] vish.tgod:
Have u tried any substratum theme so far?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jaks218:
Nope
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] vish.tgod:
Can u list the bugs which u found while using this rom
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] danielcepa:
Rock solid

Thanks devs !

Using this for some time now (January).

Everything works great and is smoother than the stock ROM.

The only minor bug is the fluctuating mobile connection display that has already been mentioned.

Had some odd torch-would-not-start issue after a long uptime (2 weeks), a reboot fixed that.

Battery rocks, usually 5-ish days, 7-8 hours SOT

Love Lineage OS - CM user since 2.3.x, wont buy a phone that has no chance of using LOS
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
Thank you for your hard work. In two days I noted only one problem: under battery usage Bluetooth is always on the first place with impossibile values (110%, 110000mAh) but it's not a real battery drain.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Superb ROM

First of all, Thanks for this great ROM, much better than stock or ridiciously fast compared to stock. Not even talked about stability.

Very smooth, fast. Long story short: VERY good ROM as daily driver.

I used this rom now almost a week and haven't had any noticable issue

1. Cast is not working.

I did not have this issue, i cast a lot but it is working better than stock

2. No theme manager.

not important to me but i can imagine that it would be important to other people

3. No native video calling option in dialler.

I don miss it, i normally use whatsapp for it, but it would be an welcome option

4. Camera quality is good but video recording is dark

For me it is better than stock, i don have any issues with this

5. Some time signal completely goes for few seconds then appears

I don have any issues with this, i use this phone for work al i call at least 4 hours a days (work only) i haven't had this issue once

7. Mobile download speed is low when compared to stock ROM download speed

For me i don have this issue, i think it is faster than stock but it is close

if i find any other things i will update this post.

But i want to mention i am happy that i flashed this ROM. It is a relieve that this great device as a great ROM which it deserves.

so thumbs up for all devs [MENTION=3839575]mikeioannina[/MENTION], [MENTION=7737930]highwaystar_ru[/MENTION], [MENTION=6257538]FireLord[/MENTION]
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
Can you guide how to change?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Will be solved probably in an update.

You cannot compare a build with another. So give him time to patch the bugs and problems.

Highway star also had bugs in his builds. I haven't had the issue myself but from my point of view it is do able. It wouldn't stop me from flashing this ROM.

Rome was not build in 1 day..

---------- Post added at 10:22 AM ---------- Previous post was at 10:19 AM ----------

Which recovery do you have? I assume TWRP.

You need at least an redeploy of the ROM. And not with the SD card inserted.

See also

https://android.stackexchange.com/questions/170030/lineage-os-sd-card-as-internal-storage

Create a back up before starting.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
Ok what next
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Assuming you have a backup of the phone and from the content of the SD card remove the card from the phone. Do you use the card only for your phone. Then you need to format the card into an filesystem like ext4 or fat32 for more support. This can be done in windows.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
In pick Android version choose "Android 7 - lineage" and in "Android system" and "System UI" doesn't pick any option. lineage 14.1 doesn't support OMS so when you try to apply different colour it get error or automatically set default blue. This is only for Swift Black.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] pootie_tang:
Since 03/16 update (1st official release), onekey isn't working for me, although it had no issues previously.

Anyone notice this?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jaks218:
onekey? you mean the battery side-switch?

This button/switch is disabled due to bugs and difficulties that came with it
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
No wifi problem with my phone and with my router
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] danielcepa:
No Wi-Fi issues here. Download speed is consistent, connection is stable.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Enricosteph:
I think the WiFi issue belongs to the different models...P2a42 and P2c72 seam to have different WiFi chips...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Billytromp:
Same here.

---------- Post added at 02:01 PM ---------- Previous post was at 01:59 PM ----------

That could be a good explanation. No issues here for me and on P2c72.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Aegir81:
Wifi is working fine here too. Never had a problem. I'm using the P2a* model.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sijben:
Mine is one of the problem OTA, i did only the wiki to install lineage and have unchanged f2fs on data partition with encryption.

No problem with installation, but stucks at Lineage-OTA after the Pattern Screen.

(I repair it with TWRP by install lineage zip)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
As for the WiFi disconnection problem I seem to only have it in the XDA Labs app for some reason, speeds however won't hit a full 40mbps for me, it's always 20-30mbps, thought bandwidth might have been being shared first but retesting with no other devices connected to the router still gave the same results.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Egyptiandroid:
Everything is great but how to have dark notifications on lockscreen? I've tried through rom, and also installed nova launcher, but still notifications are default not dark.

---------- Post added at 04:14 PM ---------- Previous post was at 04:14 PM ----------

how to make notifications dark on lockscreen?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
You have to go to settings>dispaly>ambient display and turn it on. In your notification app (in my case Textra) you have to turn off option to "wake up screen"
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] littlepandemonium:
[removed]
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Mine WiFi is also working fine! But the problem we are sharing is beyond your conscience.

the phones WiFi keeps disconnecting & it auto connects within 2-3 seconds before you notice.

If you use SHAREit or casting or any other thing who depends on WiFi connection, In this build WiFi disconnects around every 30 seconds or so None will notice until you're on SHAREit or casting which breaks your connection in SHAREit/casting etc.

I hope Highway star will push the patch on gerit if he finds out.

God damned no one comes to xda nowadays even Firelord isn't showing,

If someone's know this stuff please make a patch atleast to flash so that we can get rid this off...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Aegir81:
It's possible I'm not understanding what you mean exactly but I just tried casting some YouTube videos, everything was working fine. After that I casted the screen of my phone to an Android TV and that worked great too. Did you mean that with casting?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
Hey guys i just found a solution for wifi disconnecting...my wifi also was keep disconnecting wifi ..i turned this switches off and now everything is fine
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sijben:
Wifi with 2.4 Ghz has only 20 Mhz, but Lenovo P2 can do 40 Mhz

/system/etc/wifi/WCNSS_qcom_cfg.ini

add: gChannelBondingMode24GHz=1

then reboot
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
What's the advantage of this
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sijben:
Wifi is faster, when your router does 40 mhz in 2.4 GHz too.

https://en.wikipedia.org/wiki/Wi-Fi#Throughput
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Thank you man, I'll check that, will confirm later
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Shuichi Akai:
Hello guys, is there any chance to set the battery charged led from 90 to 100%? I saw that in oreo roms it's possible in led notification settings but here I can just change the colour of 90%!

Inviato dal mio Lenovo P2a42 utilizzando Tapatalk
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ttreddy2210:
is the latest build has previous bugs 2018-03-23
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mr73:
Hello. Can the Alarm Clock start the Phone as in Stock Rom? I ask because i need it for work, Marcel.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] JovieBrett:
Awesome work! I was wondering if you're planning to get a Xiaomi device? :fingers-crossed:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
Will flux theme work in this rom..anybody using that? reply fast
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] b50corei5:
Mate this is the p2 forums BTW if you didn't notice ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
Anybody pls?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sohit5s:
For me it didn't.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Enricosteph:
Any Tips for camera? Is Camera2 API enabled? Which app can you recommend with this Rom?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
I've read a few posts about poeple being confused about if f2fs works or not.

Or why some are having the blank screen + blue led + virbation issue.

If you come from any previous Unofficial build like Highwaystar's builds.

In the LOS beta builds. The f2fs was off a newer branch. If you had /data as f2fs you will have to format /data again to f2fs.

Because the Official build is using f2fs stock branch including fixes Mike merged. It is an older branch but way more stable and no issues. (afaik)

Remember Official LOS is all about stability.

What i noticed is that TWRP didn't actually format the /data partition which was f2fs from an beta build even though i set it to format as f2fs.

Here is how to make 100% sure your /data is properly formatted in the f2fs version which lets you boot the Official ROM fine.

In wipe, advanced wipe, select data and change the file system to "ext4". Once done reboot back into recovery (you can use the twrp menu).

Go back into wipe, advanced wipe and select data and change the file system to "f2fs". This time it will properly format the data into f2fs.

When doing (beta ROM)f2fs=>(Official ROM)f2fs. It would end up with the blank screen + blue LED issue + vibrate at boot.

So i hope this clears this thing up and helps those coming from the beta ROMs to run the Official ROM.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Did you solve the problem with your SD card?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
I migrated the data now everything fine...btw thanks
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] widewozzy:
So one question,

I have changed System, cache partition to ext4, do I have to change that also to f2fs ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
You only need to change data into ext4 .. nothing else needs to be changed
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Liacon:
Hi Celoxocis, thanks for the explanation.

You know if magisk can work with the data partition in F2FS at this moment?

I've set in ext4 because the Lenovo kernel missing a f2fs feature.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
For now magisk only supports ext4
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Liacon:
Thanks!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
No problem man. Glad you solved it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
I'm using P2 as daily driver since I got my replacement one.

Hey, long time no see :). I got a Mi MIX 2 thanks to a kind redditor, but nothing matches P2 battery life :P. I got no money to buy new devices now and I don't need to do it anyway. Only way I get phones is from paypal donations or phone donations.

Also a note to everyone: I suggest using the TWRP linked in lineage wiki, not the official one. That has been tested to not have any issues with f2fs, like [MENTION=2494638]celoxocis[/MENTION] said. Any kind of migration from unofficial builds shouldn't be possible or something we support, because I rolled back f2fs to a state close to stock after experiementing for days and failing.

Also keep in mind any bug reports about using unofficial addons or rooting methods are not accepted. Only rooting method we support is the lineage addonsu method. We have 23 pages here and only 2-3 are really useful, don't be surprised I don't answer that often.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] b50corei5:
Thanks for your work ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Glad to know, i also thought to buy some new device, but i depends too much on phone & the battery is the only thing that is keeping P2 into soft corners of my heart :) any other phone in market won't stand beyond 6-7 hours of SOT but this P2 gives anywhere between 12-16 hours of SOT.

[MENTION=3839575]mikeioannina[/MENTION] thank you for your support for giving such a stable ROM to rely on & keep this battery monster pulling along.

JUST one request please fix WIFI probem in next update.

---------- Post added at 12:38 AM ---------- Previous post was at 12:32 AM ----------

Did not work, i turned off wifi scanning in location setting but problem is still there.

When you send some file to other device via SHAREit connections breaks after 3-4 seconds but works when you're recieving from someone's else by latching others phone on your teathering in SHAREit.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] medwatt:
Thanks for this awesome ROM. It's extremely smooth and very battery friendly. Probably, the only bug I face, which is totally inconsequential, is the Bluetooth appearing to consume way more power than it really does.

There is only one thing I hope we might be able to get in the future, and that is support for Google Camera HDR+. There's already a thread here discussing that. One of the GCam devs said something to the effect that the P2's rear camera doesn't support raw images even though the front camera does. Can you take a look at this, if it isn't too much to ask ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] rogat92:
It would be nice [MENTION=3839575]mikeioannina[/MENTION] . Can't wait to see it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] b50corei5:
+1
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ASP02:
This is a much needed thing ... hope one of the devs can take a look at this ...it's been quite a long time since this topic was removed
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
Yeah mine worked fine for few hours..then again the same problem?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amithaj133:
Have you tried the nokia camera app..... It takes some really cool hdr shots...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Enricosteph:
Any fix for dark Video please?

Can you provide a link please?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abdal2006:
Hi Mike, please provide app lock with password option instead of pattern lock.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ASP02:
Yes I use it.. but the portrait mode is all..that is required...which Nokia 8 can't do
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amithaj133:
You can find the camera app... In the apps,mods and theme section of our phone

---------- Post added at 06:02 AM ---------- Previous post was at 06:00 AM ----------

https://xdaforums.com/lenovo-p2/themes/nokia-8-camera-app-t3734558
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Yes, please fix dark video recording.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Amithaj133:
Guys what is this file.... Please tell me can I delete this file
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] -=Fxs=-:
It seems to be (a part of a) backup from the original system of your phone, taken with TWRP. Normally you should keep all of the files from the first Backup, if you later want to switch back to stock ROM.

edit:

It is possible to switch back without any backup, there are good instructions in the internet which tell you how to do this.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] jet_iso:
Perfect rom. Couldn't install Viper via Witch or MagnusOpus. I managed with Magisk module. There ia no issue so far.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] widewozzy:
Anyone else experiencing too much network fluctuations ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Erazor84:
No, my LTE connection has it's stable 155mbits (at home) and my Wifi also stable 35~40 mbits.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Billytromp:
Yes, I do, although it always seems to be the same network (SIM 1 of 2). AFAIK all the custom ROMs have this, although I'm not sure, and I can't remember how it was on stock.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Cuvillier:
Hello devs, EAP-Sim authentication WiFi doesn't work,

I always get error : "Password may be incorrect"

Please fix it in next release thank you.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abdal2006:
Edited
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
In the Official TWRP it doesn't. It's missing the loopback mount feature in the f2fs stock kernel. With the TWRP provided in the LOS wiki as Mike already stated it is supported and works.

Unfortunately we can't push that build Official as commits were used that haven't made it into the TWRP code yet. (Still pending code verification and merges.)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Man! everyone knows signal indicator fluctuates in this build but mobile data works perfectly.

Only problem lies in WiFi in this build.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Flipperdolphin:
Hey,

Can someone tell me if NFC works on this ROM?

Thanks!

EDIT: It seems to work.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] abdal2006:
So twrp from los site
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
Bluetooth "wrong" battery usage is fixed on the 20180323 build released last friday