yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
If I remember it correctly

1: enable USB debugging

2: reflash twrp

3: reflash Los

4: Reflash Gapps

See also the detailed steps on the wiki

https://wiki.lineageos.org/devices/kuntao/install
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Today is the day, get ready for new build.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Liacon:
Guys I have a question regards the update

I use substratum, will have some problem if I update with a overlay different from the default ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
Here are my results
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Pretty Nice :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Ishann15:
You mean an ota update?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sohit5s:
Are FP gestures working??

Will it give error when I will wipe this ROM on twrp..blank screen with blue led??(it destroy all my data so that's why asking)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Its been in week so ota update. Can anyone specify time...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ragunathan:
Battery drain is there in the latest 13 may build
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
I haven't had the issue ( yet). Same build here.

---------- Post added at 10:01 AM ---------- Previous post was at 09:59 AM ----------

Nope not here. For me it is even better than previous build.

---------- Post added at 10:02 AM ---------- Previous post was at 10:01 AM ----------

Best way to root is direct after flashing Los and gapps, to flash magisk.

No problems here and Also safety is passed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Taranis:
Hi. I'm using the latest build and have to admit that battery life seem to be wonderful. I have charged it almost 2 days ago, SOT is 4:50 and I have 69% remaining (WiFi almost always+auto brightness+social media+sometimes NFC and LTE) :D No battery drain for me, I don't play games and don't have a lot of apps, but I'm shocked for now :) I hope it is not "battery percentage bug" :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
[MENTION=999770]Kevindiepenmaat[/MENTION] Thanks man, did it like you said and works like a charm! Do you also have experience with installing Viper4android? Should I install it via Magisk, or .. ?

---------- Post added at 12:46 PM ---------- Previous post was at 12:34 PM ----------

I have tried this, but after reboot there is no Viper app icon or anything. Are you sure it still works with this rom?

---------- Post added at 12:47 PM ---------- Previous post was at 12:46 PM ----------

I have tried this, but after reboot there is no Viper app icon or anything. Are you sure it still works with this rom?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Erazor84:
yeah i can sign that, battery life is awesome. 3-5 days of battery with one charge (bt, wlan, 2 sim cards, nfc - everything turned on)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
No problem man. Sorry I have no answer for you. I don't use it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
must be your setup im running the latest build and its 1.2% per hour. and I have pretty much everything turned on and my average usage as it system engineer.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
What is the best way to get viper4Android working on this ROM? I have latest Magisk installed,. Already tried Witcher's sound mod but it didnt do anything after flashing.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Frenetik123:
With SELinux enforced?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Yes totally
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Again nightly IDLE battery drain in Airplane mode. 25% in 6 hours by Android System.

I have a fresh installation of 20180513, nogapps, rooted with addon-su (official lineage) and no more customization and modification.

It occurred in 2 of 3 nights.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
How did you perform the fresh installation?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
1. Anyone else have unresponsive touchscreen on this rom? Every time I want to do smt I first have to swipe up and down couple of times to get the touchscreen working, after it responds, I can use it normally, untill it is left untouched for couple of seconds, then again it wont respond to touch, and have to swipe up and down couple of times. On stock rom I had this problem too, but it only occured when phone was plugged in charger.

I've already flashed this rom a couple of times, hoping it was just a buggy flash, but can't fix it. Anyone have an idea?

2. What is the best way to get viper4Android working on this ROM? I have latest Magisk installed,. Already tried Witcher's sound mod but it didnt do anything after flashing.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Fresh/Clean installation in twrp:

Wipe system, cache, dalvik, data.

Install LOS.zip

Install addon-su.zip

wipe cache and dalvik.

Reboot.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Frenetik123:
1. I think it is a manufacturing defect of your terminal. I am using the phone for a year, my sister for around 10 months, we did not encounter such issues. The fact that it happened in stock also points toward my guess. I would try different roms, or even the Magma kernel, but it doesn't look like a software defect.

2. I am interested in this point too, only I am without Magisk.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tiiiit:
Hello, I have too much trouble with ROM 8.x, I would like to return to LineageOS 14.1.

But I have to install [KERNEL] [3.18.108] [8.x] Magma Kernel for Lenovo P2 / Kuntao and my file system under ext4.

I do not know where to download the kernel for 7.1 ROMs and the file format system for this...

How can i do to go back please?

Thank you in advance !
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
You can just clean flash it
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Don't flash magma kernel. It does not support lineage os.

As he said just clean flash.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tiiiit:
Nice Guys ! Thank you ! Sorry for my english...

All is ok with 14.1 (most 15.1 tried but photo app not working, videos issues, no caller appears...).

By cons, failed to Root the device by installing the LineageOS su add-on, i used Magisk, it's ok.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Magisk is the present and future. Its the best
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
Yes probably a manufacturing defect. But what's weird is that when I was runningg stock P2 firmware, there was no problem at all. Only when charging had the same problem. Now its all the time, even when not charging. Very annoying.. I'm trying to figure out what changed the behavior. Maybe I need to try another Rom
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
download display tester by braintrapp from the play store. and run the touch display test and touch pressure test. see if you find dead spots.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
Thanks. I just tried it out. Once the touch registers touch, it has no faults at all. No dead pixels or anything. But for the touch to register I again had to swipe over screen couple of times.. It's really weird, like it needs to warm up or smt? Or smt with electrical conductivity? idk..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
could be. what did the pressure test show?

it's a long shot but give the attachment a try.

rename the content to "synaptics_dsx_i2c.idc" and place it into /system/usr/idc/

you will have to remount /system as read/write and reboot the phone.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Taranis:
Hi. I managed to get almost 14 hours of SOT on this ROM with mixed usage and no energy saving options. On stock I could get 10-12 usually.

Although I found the second bug. Yesterday I enabled flashlight twice or more and suddenly it stopped working. It does not work on camera either. I will reboot phone soon today and that should help.

(First bug was slightly too dark videos)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tahir Baig:
Which is better for rooting the Lenovo P2 on stock rom?

Is it by using super su or magisk? Also can anyone give me insights on the the setbacks and benefits of using either of those two methods and which one is recommended?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Magisk all the way
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] danielcepa:
Found a bug.

Replying a call that has been "waiting" (call waiting) results in no sound. Must always hangup, redial to speak to the second caller.

Using latest nightly, but this is not a regression - i dont remember this ever working.

Will try to logcat and report in bugtracker
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
yes if you found a bug please use jira for bug reporting it will be assigned to the official maintainers.

bugs can only be fixed with a proper jira report and a way to reproduce it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] raiprasant62:
Pls help me to enable volte calls on this ROM. It's showing LTE only. I tried Magisk Voenabler but it didn't fix the issue.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
This ROM does not show volte on notification bar but you can call. Even then if ur not able to call then swap sim card .
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
You haven't read the complete didn't you?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mrmahi42:
You have been using this for a long time right, can you tell which gapps should I use for faceunlock. I want to try this in weekend and tell me about battery backup I haven't tried this rom since April
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Hi man

Yeah correct. For face unlock you need the have a version other than pico or nano. All other versions supporting face unlock because it is not ROM dependent if I remember correctly.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
I recently posted about touchscreen issues I had after installing this Rom. Seems I had to switch couple of things off to get rid of this bug. TBH it probably is a hardware issue, but this fixes it for now:

Turn off:

1. Settings, display, tap to wake

2. Settings, gestures, double-tap to sleep

Could come in handy for someone.

Thanks to [MENTION=9110060]raiprasant62[/MENTION] for the tip!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
Where can I find settings to disable quick settings in lockscreen?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Not sure what you mean? Can you explain a bit more?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
anyone else have no battery data usage counters since the latest official build? I just flashed it this morning. built 20180518

update: everything back to normal. guess it took quiet a while to gather enough stats to actually show stats.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
That if phone is locked, one cannot swipe down to access quick toggles like wifi, do not disturb, etc..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Its not present in this ROM.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
OMG!? Thats a huge security flaw then! Or am I missing smt completely here?!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Even I wanted that, but lineage os provides lowest customization . u can try other ROMs

---------- Post added at 11:00 AM ---------- Previous post was at 10:59 AM ----------

Even I wanted that, but lineage os provides lowest customization . u can try other ROMs. U can use xposed if u want that feature
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
That's a real downer.. I'll check Xposed out, hope it's easy to install.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Clarifies a lot haha. I haven't found anything in this ROM and satejh had answered this question already ;)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Yes unfortunately! Maybe it is worth to ask LOS developers about this via jira. [MENTION=3839575]mikeioannina[/MENTION]
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
It's not an security flaw, it's working as designed. Even though you want to change something. It asks for an unlock code or fingerprint.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Screen lock means: I do NOT want to let anyone to access the phone contents and functionality, NOR *control the phone.*

But in current situation, one can control device, e.g. turn location, cellular data, silence, etc. On/off While screen is locked without asking PIN, pattern, etc.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
As I said works as designed. It's part of android and not the ROM. That's does not mean you can change the behaviour with the ROM. So no security flaw (based on Google's terms). LOS is known about almost complete stock and stability. You can always ask the LOS development for this function though.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
When it comes to security, it doesn't matter where the flaw belongs to; whether the design or implementation, whether a giant like Google or an unknown new developer or LOS. Flaw is flaw and should be fixed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Like I mentioned, if it is an flaw in your opinion then report it to the developer(s) via LOS page.

Apparently by Google it is not an flaw. Nevertheless everybody has his/her opinion, which is always good. Therefore I recommend to report it. If you or someone does not report it it will not be solved (I guess).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lozohcum:
In stock ROM you can access toggles on locked screen too.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
In stock, you can disable quick settings on lock screen.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
weather info on lockscreen isn't working I've turned settings on & installed & selected Yahoo weather, any help?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
Make a big widget with cLock app and set weather location in there. It will work but only with Yahoo.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Which yahoo weather the one available on Lineage extras? or from play store?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
Lineage extras
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Thank you bro i manually put location on it, it was not detecting automatically.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
No problem.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 1pratham:
I want to switch to this ROM but I do a bit of casting/mirroring as well regularly. In stock ROM, there is an ability to turn screen off while mirroring. Can anyone please tell me if screen off while mirroring is possible in this ROM?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bocekm:
[MENTION=3698853]melchiar[/MENTION], [MENTION=8561344]hnsaba[/MENTION]: there's a workaround app that disables the quick settings on lockscreen: Smart Lockscreen protector
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] melchiar:
Thanks for a solution. I hope the impact on battery is minimal
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
[MENTION=844843]celoxocis [/MENTION] [MENTION=1534193]mike c[/MENTION]an you able to make gcam working for p2 also cause the back cam has purple line which is irritating as all the same processors and hardware devices pike rn4 and zenfone 3 , k6 note/power and many more gets that gcam working perfectly fine in custom roms so can you help in that for p2 as this devices also has some good hardware. Please
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garrygarvit:
Please work on gcam mode for p2 as that is the only thing left for p2 to gets latest features
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] devianz:
Please don't quote the whole OP.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
it has been looked in, about 6 months ago while it was still in bring-up. HighwayStar has spend hours making it work but was unsuccessful in the end. from what I know. the Russian dev who originally came up with the port has been contacted by him to help out. the last reply to my knowledge is "every device is different" and that he would need the actual device to figure out why it isn't working properly.

jfyi this information has been given already in another thread "future of p2 development" months ago.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
But you and mike can fix the pink line coming in the gcam app in portait mode
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ptrxz:
Activate power off alarm

Hello !

I'm considering flashing this ROM on my soon-to-be unlocked P2.

One of its key feature (for me) is its capability to power itself when an alarm is set.

Is it still possible with lineage 14.1 as asked some time ago by this person ?

Thanks a lot !
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nandakis4:
Hi Bro, i doubt that it's all happening because of HDR..

because the HDR in the stock camera too has produced some weird results (over saturated,improper photos rather than other phone's HDR), may be Lenovo didn't bake the camera drivers in full.. that might be the reason why our lenovo p2 has no proper workaround for back camera portrait.. we just have to loose our hope on this..and i am sorry to say this..:(
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
Well one can disable the hdr and use the gcam hdr . As gcam has top class hdr capability . Also this depends on the will of developers of the device to work on it or not . If they have will then the definitely solve that issue .
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
no. read above statement.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
By using device developers i mean the device developers itself mean you and mike or even highwaystar not the arnova couse the gcam is working fine in most of the devices of this same level hardware similar to p2 such as g5 plus , rn4 even all xiaomi devices running androis 7.0

---------- Post added at 05:45 PM ---------- Previous post was at 05:43 PM ----------

[youtube]OiJlXuCyxrg[/youtube]

Also watch this video if it somehow motivate our p2 devs for bring gcam for p2 also
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Hi man

Funny and good question and i don't know actually. i will test it tonight for you ;)

but a question for you though, like i mentioned i haven't tested it so i didn't switched off my phone during the night.

i've notices that this phone in combination with this ROM uses only 4 ~ 5% during the whole night. compared to the stock ROM, between 10 ~ 15%.

so i don basically don't need it ;)

but i'll test it and come back to you ;)

Edit: I've tried your question and it does NOT work.

The phone switched on which is good but after booting the clock app crashes and then you have to reboot again. After booting the alarm goes BTW. I've tried it several times and every time same result. This is a bug!

[MENTION=3839575]mikeioannina[/MENTION] can this be placed on the bug list?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Hi everyone,

That would be great if the alarm wake function could be implemented.

Only ever seen it on the stock Lenovo ROM

I tested it too and same thing happened. Phone booted (with a different boot animation) and the alarm went off then crashed. Needed to restart the phone to get back to full Lineage.

Thanks for keeping the ROM updated for the P2
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
if it's a reproduce able bug. please post it to jira with proper logs.

mike is to busy to scavenge. the forum threads for bugs.

---------- Post added at 09:37 ---------- Previous post was at 09:26 ----------

you either don't understand or simply won't.

nothing is wrong with P2's camera hal. it is even up to date with Qualcomm's code. something Lenovo itself never gave you. for gcam to work properly you need to be flawless in interpreted code debugging and change the binary annotations of gcam to match those of the P2.

it's not something you just "do" because you are flawless in C++ or C# or Java etc. it's a completely different world!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Krist7:
I am about to unlock my bootloader and flash this Rom.

Could anyone tell me is it necessary to change file system from f2fs to ext4. What will be consequences if I not change.

And also I will not root my phone.

Thanks in advance
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
You only need to change file system if you want magisk
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ptrxz:
Thanks a lot for taking the time to test it !!

I hope it will be treated as a bug and the function will be added :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] b50corei5:
What sort of stuff would you need to know to be able to fix?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] GianluCara:
How this Rom works? Known bugs? It's possibile to hide the navbar?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
Offline alarms being broken is a known issue on cm-14.1 for all devices. Attempts to fix it have been made, but they are all incomplete and at this point nobody works actively on cm-14.1. It's not supported at all on lineage-15.1 at the moment, because codeaurora changed their implementation again (they do it on every single version :( )

Good news is that I have lineage-15.1 in a pretty good shape with almost everything working. Now I'm just working on updating whatever proprietary files are possible to oreo version from other 8953 devices, need to rewrite SELinux policy and maybe experiment with treble using /preload partition as vendor before shipping official builds. Sources will be on gerrit as soon as I cleanup my local mess.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] garvit girotra:
But you kang everything from shubham and firelord work
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ShakuniMama:
Where were you when subham and firelord's sources were closed? Isnt it convenient that you pop up exactly after some time with an almost working rom after subham released sources? Quaint isnt it?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
That is completely BS. They work together to provide an official release. They manage it as an project and 1 or more persons are merging the best items together as one complete release. As everybody knows it is better to work together then to reinvent the wheel all over again on your own.

If you do not know how things work then it is better for everyone that you don't reply.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] :
Yes bro, some people write anything because they have to use their bundled data somewhere.

Even official los stated four maintainers including Firelord for Kuntao.

Even if someone did their work before other, they're eventually helping the P2 community.

Many LOS based ROMs would get official status easily after Official LOS 15.1 will get released for our device.