yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
If you have read the previous thread then you would have known that they work together. Next to that is that he is an official LOS developer which means that he can push a release to official status. This means OTA. He also clearly mentioned that he is doing everything in his spare time. And that he is online a few times a month if he has the chance.

Without Mike nobody would have an official LOS release at all so stop complaining and be grateful that he spends his time to provide us a good and stable ROM.

If you disagree than I would suggests to do it yourself instead nagging.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
Why do you people want drama all the time?

Where were I? I brought up chiron, finished find7/n3/bacon bringup, brougth up tomato/jalebi/lettuce/crackling/kipper, almost finished ether bringup.

Subham and firelord published their sources *after* I uploaded my initial 15.1 kuntao gerrit changes. You can go look at how different is the commit history when I publish my sources later today, because I did it from scratch again, because nobody posted their trees all these months and I got stubborn and did it myself after waiting for so long.

Please stop continuously creating drama, you're wasting precious time that could go into something more productive.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Mike you don't have justify this ridiculous question.

Just keep up the his work man and thanks again.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Many people doesn't realize how many devices are supported by a few dev's.

Good dev's are hard to find and willingly to spend their spare time.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] devianz:
You should be ashamed of yourself for posting this cr@p here.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
To answer your question, it is a very stable rom.

there are some bugs (correct me if i'm wrong)

One-Key slider (Disabled)

Mobile Signal icon fluctuating (not the actual signal)

video recording slightly black

Alarm clock crash when the phone is shutdown and turned by the alarm (t.b.d.)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Video recording in low light is very very dark.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sm00th4f3:
One-key is disabled because of high battery consumption and the way it was implemented.

everything else varies... i don't have the mobiledata icon bug, and my video recording is actually normal.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
correct, you can solve it it edit the saturation +2

---------- Post added at 08:02 PM ---------- Previous post was at 08:00 PM ----------

Yep i know (some that the key as a bug, i don btw) i know that mike or a different dev is looking assign en different function to that key.

i do have the mobile data bug, (at least not always).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hsheemi:
We hope that lenovo p2 goes official for Oreo soon like xiaomi note 4
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Thanks Mike.

Treble is the most important revolutionary change we may see in our device. Please keep your focus on it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Aegir81:
It won't: https://forums.lenovo.com/t5/P2-P2a42-Smartphones/Update-to-Android-O/m-p/3928615#U3928615

But there are some good 8.1 ROM's on these forums.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Krist7:
That homo sapien is taking about Lineage os oreo i.e 15.x
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Frenetik123:
You don't need to justify anything you're doing. I've stayed away from all the drama, regardless of the threads, but be sure the silent majority appreciates your work, providing a stable custom rom is a delight for people like me. Some people just can't say something nice, but they're in minority.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
I wanted to root my phone with Magsik.

Is it compulsory to change the file system from f2fs to ext4.

Well, f2fs is much better in speed than ext4.

So, if I dont change it what will happen.

plz help
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Change it or else will not work

Do u want speed

Or everything best available for ur android?

The choice is yours.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
Thanks
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
Magisk work with f2fs.

First in TWRP flash's magisk, then "f2fs loopback bug workaround" and voila.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
Thats great I'll try this

Thanks
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
yes i can confirm i use it more that a month now with f2fs
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
I have magisk with f2fs and you can install the work around using recovery (download from magisk). The weekly update install fine after too, which is nice.

I also used it with ext4 and f2fs seems much more responsive.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Uniposka:
Hi everybody. Finally today my OEM counter reached 0 and I could unlock the bootloader. Time to install Lineage OS. :)

I installed TWRP 3.2.1-0, wiped the partitions system, cache and data, and installed the previous nightly (2018-05-18).

It crashed on the Lineage OS booting animation: the screen became black with a long vibration, and the led became solid blue. Nothing more would happen.

I restarted to recovery and I went to wipe, in order to re-flash the rom. Factory reset produced a very long vibration, followed by the screen turning black, another long vibration and the led turning solid blue. Again, no point in waiting further.

I managed to wipe individually the partitions in this order: system, data and cache. Then I re-flashed the rom: same results.

The md5 is correct, if you are wondering.

Then, to change, I flashed the unofficial LOS 15.1 beta 3 by CodeElixir: again same behaviour.

I even downgraded TWRP to 3.1.1: everything still the same

I couldn't find a similar case neither on xda, nor on google.

Does anybody know what could have happened and how I could solve it?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
change your file system to EXT4
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Uniposka:
For which partition? Data?

UPDATE: I formatted the data partition to ext4, and it worked! Thanks mate :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Sutcliffe9:
Glad you got it sorted.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iampijush:
Just installed with gapps stock. It's awesome. Love.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Welcome to the true power of the P2 :p

No thanks to Lenovo though:silly:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] iampijush:
Power saving button has use now. May be developer can make use of it by assigning it to torch.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
That was the idea mainly but as far as i know it does not have an high priority.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
I cant update through OTA update , it takes me to recovery , then nothing happens. Finally I have to rebbot the system . I have flashed magsik earlier.

Anyone know about this ???
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hsheemi:
I mean official lineage 15.1 not the stock one
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Afaik there is no official 15.1 yet

---------- Post added at 07:31 AM ---------- Previous post was at 07:29 AM ----------

Problem is cause due to failure of zip verification. Some say it can also be caused because of magisk.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
I had a ota update issue with one update a few weeks back. I just flashed the zip for that update and after that ota has worked fine. I use magisk with f2fs patch.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
here is some information on this issue as I have come across this issue once on my second Lenovo P2.

and it was so stubborn on the second P2 that I couldn't boot the device when data was in f2fs. I spend hours on trying to pin point the issue.

on my first P2 I didn't encounter this issue. the only difference was the procedure however.

it seems to depend if you reset to factory defaults while still on stock ROM or not.

on my first P2 I run a factory reset from inside stock after having run a bootloader unlock but still with stock recovery.

then using the button combination to enter fastboot mode I flashed mike's TWRP (NOT the official!)

everything went fine and data was encryptable on f2fs after having flashed the LOS official ROM.

on my second P2 I was in between some IT migration process work and used the downtime to setup my second P2. so I skipped the first step and didn't factory reset from stock ROM and no stock recovery. I flashed mike's TWRP straight and run the factory reset in TWRP but I was unable to boot the ROM using F2FS at all. it would simply end up vibrating with blue light. it tried different approaches to format data into f2fs. including back and forth between ext4 (ext4 boot always worked) and f2fs. the furthest I would get with f2fs was up to the android message where it says "unable to encrypt the device".

so here is what I did. I created a backup from my first P2 and restored it on the second P2. went into the TWRP file manager and deleted the security related settings for the pins. booted the second P2 successfully using f2fs encryption.

just a recommendations for those running into the stubborn issue with f2fs and encryption. if the TWRP data formatting is not working for you. give it a try.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
I have no clue what's causing this but ever since the last 3 builds, browsing Reddit has caused the phone to crash and end up with a black screen and blue LED, I haven't been able to reproduce this at will and it happens at random, clearing the cache doesn't really seem to help, never had this happen before on the stock ROM or the earlier builds of the official LOS 14.1, don't know how exactly I report this since it doesn't seem to be reproducible.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
are you using any 3rd party mods such as xposed, l speed mod, magisks mods that alter flags?

try using boost (play store) for reddit. I'm a daily reddit user and never ever had issues with boost.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Uniposka:
[MENTION=2494638]celoxocis[/MENTION]

What worked for me was to format the data partition to ext4.

And, I don't know if it matters, but I came from a stock Android 7.0.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
I don't use Xposed and the only magisk mod I'm using is YouTube Vanced. I'll give boost a try.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
When I export this to my storage and extracted this Zip ,it does not have boot image and other related stuff which are normally there in nightly zips.

I tried to flash this zip manually but 'Zip is corrupt' error comes in recovery
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
it works when it's formatted to ext4 but the described issue was when its freshly formated as f2fs in twrp without a previous factory reset on stock ROM. which will remove the encryption.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
Some update, I spent the past few days working on kuntao and now I've pushed all my device sources to gerrit, kernel to staging/lineage-15.1 branch as usual and proprietary files at my github.

I have kuntao booting with 'preload' partition used as /vendor, enabled full treble and fixed everything to compile with BOARD_VNDK_VERSION := current (although I have runtime linker isolation disabled at the moment).

Everything works except NFC (which worked before enabling full treble), wrong BT/WiFi MAC addresses and I didn't test VoLTE because it's not supported in Greece. I'll keep trying to figure out NFC and MAC in the next days, but the bringup looks more promising than I thought, I hope our old blobs won't cause more issues with treble that I haven't seen yet.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mikeioannina:
Some teasers :p
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] hnsaba:
Thanks a lot Mike ;)

You are working on a vital feature which will make our device future proof. Bravo.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shi-guang:
sounds good
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tahir Baig:
I always had a question but was very reluctant to ask it in the first place. I know that maintaining and pushing updates for devices every week is not a piece of cake. Hence I wanted to ask whoever is maintaining and working on lineage builds for so many devices, developers in particular, how do these developers earn? Who pays them?

This question is just a by-product of my curiosity.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
They don't get payed, only donations
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lozohcum:
Amazing work dude. I keep my fingers crossed for you
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] barrybobslee:
After the last nightly update my Lenovo P2 keeps hanging on the boot logo. Any idea's?

Already tried re-installing LineageOS via twrp. Still same issue

also wiped cache, dalvik, data, etc

Edit:

When re-installing lineageOS i get the message: encryption unsuccessfull. When pressing reset phone it boots back into twrp, twrp runs it openrecoveryscript and then i get the same encryption unsuccessfull message

Looks like the phone does not load the OS anymore and TWRP is not able to decrypt the phone.

Internal storage has 0mb

Edit2:

FINALLY after hours of searching i was able to fix the issue.

Followed the tutorial: How to Fix "Unable to Mount /data" from Samuel Trew on YT

Re-installed LineageOS from external SD card. And now it is launching again
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
Its the best Rom out there except the camera. Pics are darker and video is way more darker.

Any solution for this ?

I have tried snap but its hdr is way too slow
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shailuk301:
Use footej camera

Set exposure value to +2 in auto mode or use manual exposure (for recording videos).

U will be amazed by the results.

It record far better videos than stock rom because of the manual control over camera.

Enjoy :good::)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
Thanks a lot it worked

Videos are great now..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Akhil Lalji:
Hey guys. I'm currently on Lineage OS 14.1, rooted with Magisk. But when i installed xposed framework, I lost the Safetynet pass.

So is there any way that we can use xposed framework without tampering with the safetynet pass.

:confused:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
You can install xposed framework with a magisk module, than it's systemless
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Akhil Lalji:
It doesn't work.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sm00th4f3:
Xposed will always trigger safetynet. Currently there isnt any other way to get both.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ichomi:
pls help... im stuck at "patching system image unconditionally" while installing this ROM and im running the latest twrp (3.2.1)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nandakis4:
maybe its Magisk stopping .. :rolleyes:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
A: Use mike's specific TWRP. Read Opening Post.

B: Factory reset in his TWRP. Format data as f2fs.

C: Flash ROM + Gapps as usual.

What you are describing sounds like the f2fs issue that came with an kernel update to the f2fs branch. When data was formatted in that f2fs revision it resulted in what you are describing.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kiki.G:
Viber

Hi all !

Have issue with Viber calling since switch from Unofficial to Official LOS14. On attempt to call app just stops and crash.

Clean install done on two different P2 and same thing happening.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Akhil Lalji:
Can anybody suggest me an alternative to this ROM to use as a daily driver. I need VOLTE, GPS, Fast Charging, Bluetooth Call and LED notification light working.

Also should deliver better battery backup compared to stock ROM.

And I don't care if it's Nougat or Oreo.

And yes, I need full Substratum support. :D

In Lineage OS 14.1, even though the battery backup has improved compared to stock ROM, the charging time is very long. Also while charging the Phone in switched off condition, the LED doesn't light up. The "Clear All" button while multitasking is in the top right corner which is inconvenient for me.

But apart from the above probs, everything else seems super fine. The ROM is buttery smooth. :svetius:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
takes to long to charge?

it contains exactly the same charging drivers as in the stock ROM. you should know however that the charging speed fluctuates depending on the battery temperature.

it does so to keep the battery from overheating!

let's say its summer wherever you are in the world and you leave your P2 charging on a wooden counter in straight sunlight.

it will start throttling very soon because the direct sunlight and the thermal properties of wood being the reason that the battery will heat up much quicker as the heat can't disperse properly anywhere.

but if u charge it on a glass table in shade. you are less likely to notice any throttling while charging.

if you want to overcome the throttling independent of above given factors. you have two solutions:

A: re-write the code for lenovos turbo charge driver and risk an exploding P2.

B: re-write the law of physics and change the universe.

but please don't blame it on the ROM!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Akhil Lalji:
Well, I can assure you one thing that from where I'm from, the weather has been almost the same since a couple of weeks and I charge my phone at one place only, from the same power socket, from the same charger. So obviously I can rule out your first point regarding "Throttling". I'm well aware of that.

And my phone heats less while charging in LOS compared to stock ROM. So, honestly I don't know what is wrong. This is my 4th day on this ROM. And now I'd like to try some other ROM. That's all.

Edit: I tried to measure the current drawn by the phone through this app called 'Ampere' but it gives me this error "This device does not seem to support Power Profiles for Android correctly. Therefore, ampere will probably show 0 mA".

Then I used another app called 'Ampere Meter' and it shows around 1000mA intake which I believe is not fast charging. I'm attaching screenshots.

I've also tested the same with different chargers.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] topoldo:
Mike specific TWRP

Hi!

I'm almost ready to switch my P2 from stock ROM to LOS 14.1.

As I saw that some people reports some problems (see last 2-3 pages of this thread), I would like to try to start correctly.

So, in particular with reference to what I quoted above, I would like to ask where is the link to Mike specific TWRP?

In the OP (and if I'm correct) in the first 10 pages of this thread I did not see any reference to TWRP in general and to the specific patch made by Mike for P2, or am I blind?

So at the moment I downloaded TWRP 3.2.1 version as can be downloaded from the TWRP for P2 thread.

TIA for any help/clue!

Topoldo
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
You can find TWRP on lineage official website in our device wiki in installation guide "installing a custom recovery using fastboot" section
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ichomi:
Thanks man...

i tried all these still no success...

im still getting stuck at "patching system image unconditionally"

I formatted my system,data and cache as f2fs and install the TWRP on the installation page but still no luck....

:crying:

I flashed LOS 15.1 and it flashed successfully but im stuck on bootloop..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
try this.

factory reset in twrp go back into the twrp menu to reboot back into recovery. format /data to ext4. reboot back into twrp. try flashing the ROM + gapps. boot the ROM.

if that worked. you should be able to switch to f2fs in twrp and flash the ROM + gapps.

it sounds to me that it doesn't mount /data properly for you.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
From what I know this is normal behavior for Lenovos Rocket Charge. It works different than what you might be used from QC and Dash/Oppo. You will never see a constant amperage of 2A for a very long period of time. You will see something like 12V and 1.2A for about 30mins and it will then burst up to 5V and 1.9A for a shorter time and back to 12V/1.2A again.

I just tested the app you mentioned for a few minutes and I get around 12V/1.2A as I remember it from stock with an USB safety tester. (You can get those for cheap!)

I do remember before I switched the stock cable that came with the phone. (I didn't like the locking and the length and the cable itself felt too thin.) To Aukey cables. It even used to drop below 1.2A somewhere around 0.9A. So you might want try to switch the stock cable to something with better awg.

For those curious of you.

The Aukey ones I use are Model: CB-D10 its a three pack of 120cm length. They are 28/20 awg. (28 gauge data wires, 20 gauge power wires).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] topoldo:
Lineage 14.1 first installation: advices

Hi all.

I just wondering if it could be better to install the latest version of LOS 14.1 (2018-05-25) as the first one moving from the original Nougat, latest stock, of if it coukd be better to initially install an "old" version (which one?) and then update to the latest. I mean, all the releases are the same for what the possibility of some problems can arise is concerned or there are some version which are particularly indicated?

Regards,
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ichomi:
I finally get it to work by formatting my internal storage and flashing an older version of the ROM....

Now i'm stuck at the boot animation...

i tried installing AOSP roms and i'm still stuck at boot animation..

Pls guys anyone has any idea why i'm getting stuck at boot animation....?

I made a fresh install over and over again and still the same bootlooping...

pls help....
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
if your /data is f2fs:

stuck at endless boot animation = it try's to encrypt /data and it fails.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ichomi:
I started all over by flashing the official firmware and then the ROM... The ROM is working flawlessly now.... Thanks.....
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
I had the same experience (see my past write up). did you run a factory reset from within the stock ROM before flashing twrp and los? I think if users skip this step they will run in the issue mentioned.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ichomi:
Yes.. I did a factory reset..

Pls do you have any idea how i can get rid of the app drawer icon and use the slide up to get to the app drawer? i'm using google now launcher..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] potatoman4321:
Not possible in google now launcher, just use another launcher
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ichomi:
Pls does anyone have an idea how i can get rid of the lineageOS notification?..?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lozohcum:
[de]