[ROM][11][OFFICIAL] LineageOS 18.1 for Lenovo P2

Search This thread

mikeioannina

Recognized Developer
Mar 22, 2011
1,969
27,118
Ioannina
Lenovo P2
Xiaomi Mi Mix 2
Code:
#include <std_disclaimer.h>
/*
* 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.
*

Installation:
If you are on stock OS, you need a custom recovery first. You can get the recommended LineageOS recovery in the official installation instructions link below.
You can use TWRP for installation, however it is no longer officially supported since we do not have full control of its update cycle and potential issues.
Previous recommended TWRP image: twrp-3.2.3-20190209-kuntao.img

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.

Detailed installation instructions:
Install LineageOS on kuntao

Detailed upgrade instructions from previous version:
Upgrade LineageOS on kuntao

Download link:
LineageOS Downloads

Recommended Google Apps package:
MindTheGapps (choose ARM64 11.0 zip)

Changelog:
Changes for kuntao

Bug reports:
How to submit a bug report
LineageOS GitLab

Donate to support development:
Donate via PayPal to mikeioannina
Donate via PayPal to LineageOS

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

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

cocopipou

Senior Member
Jul 24, 2016
259
89
Gembloux
Lenovo P2
Hi,

Can you check please, if your download link is for Lenovo P2 ?
I think is wrong...
The link given by Mike is OK.

Hi,

Can you check please, if your download link is for Lenovo P2 ?
I think is wrong...

View attachment 5330379
When You click on the link given by Mike You obtain the sreen here above, but chiron isn't kuntao.
You must then click in the left column on Lenovo to extend, then click on P2.
You will then see then the build 18.1 isn't still there.
 

Bipo

Senior Member
Sep 30, 2010
120
7
Montpellier
Thank you mikeionnina for keeping our devices up to date!

Quick question:

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

I have only flashed roms since I bought the device a few years back. Should I flash the stock firmware at some point? And where can I find it?
 

mikeioannina

Recognized Developer
Mar 22, 2011
1,969
27,118
Ioannina
Lenovo P2
Xiaomi Mi Mix 2
When You click on the link given by Mike You obtain the sreen here above, but chiron isn't kuntao.
You must then click in the left column on Lenovo to extend, then click on P2.
You will then see then the build 18.1 isn't still there.
There was a copy paste error in first post, I have fixed the link now to point at kuntao page
 

matias49

Member
May 12, 2012
26
12
Paris
Currently reinstalling apps after a full wipe (System, data, cache, dalvik and "Format Data" TWRP option). No issues yet. And fingerprint enrollment worked for me.

It is unbelievable for me this phone gets "official" 5 major Android updates (the phone first released on Android 6). But here we are on Android 11. It can be done. Major thanks.

I have only flashed roms since I bought the device a few years back. Should I flash the stock firmware at some point? And where can I find it?

It shouldn't be an issue. If you had the latest official ROM (& firmware) installed before running custom ROMs, it should work.
 

hnsaba

Senior Member
Sep 17, 2017
112
36
It is unbelievable for me this phone gets "official" 5 major Android updates (the phone first released on Android 6). But here we are on Android 11. It can be done. Major thanks.
Thanks Mike for his attempts keeping our device alive. This phone is worth to be kept up to date.

OTOH, we have a device like LG G2 which is either older and inferior to P2 and is still being maintained by LOS developers. I hope P2 remains on the line as long as G2 will be.
 

garvit girotra

Senior Member
Aug 5, 2014
471
72
Lenovo P2
OnePlus 7
Can i dirty flash this 18.1 on los 17.1 latest build. As fingerprint enrollment failed on 18.1 works in los 17.1 so switched to los 17.1. how can i dirty flash on los 17.1 also gapps need to flash separately or gapps from los 17.1 works fine ???
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    Code:
    #include <std_disclaimer.h>
    /*
    * 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.
    *

    Installation:
    If you are on stock OS, you need a custom recovery first. You can get the recommended LineageOS recovery in the official installation instructions link below.
    You can use TWRP for installation, however it is no longer officially supported since we do not have full control of its update cycle and potential issues.
    Previous recommended TWRP image: twrp-3.2.3-20190209-kuntao.img

    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.

    Detailed installation instructions:
    Install LineageOS on kuntao

    Detailed upgrade instructions from previous version:
    Upgrade LineageOS on kuntao

    Download link:
    LineageOS Downloads

    Recommended Google Apps package:
    MindTheGapps (choose ARM64 11.0 zip)

    Changelog:
    Changes for kuntao

    Bug reports:
    How to submit a bug report
    LineageOS GitLab

    Donate to support development:
    Donate via PayPal to mikeioannina
    Donate via PayPal to LineageOS

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

    ROM Firmware Required:
    Any version of stock 6.0. Recommended P2a42_S251_171107_ROW
    12
    Builds will be available once next weekly build cycle starts.
    10
    I planned to enable monthly 18.1 builds, however the kernel is missing 2 whole years of security patches at this point. 4.9 kernel port has had no progress at all and now 4.9 is also end of life...

    Honestly not sure what to do here, I am extremely busy nowadays and don't really have time to go through 2+ years of Android Security Bulletins and apply the missing kernel patches.
    10
    Next build will be including the battery drain fix, sorry it took so long I haven't really checked this thread in a long time.
    8
    First, thanks for following up the development of this worthy device and expressing your concerns.

    About the kernel, wouldn't it be better to base the work on one of the CAF android kernels which have SLTS support for example 4.19 or 5.10 (which have support until 2029 and 2030 and already include all security and functionality patches) and then only port kuntao's specific drivers to it (including camera, charger, touch, ...)?
    IMHO, this approach is far better and more straightforward in comparison to cherry picking more than 2 years of left patches and port them to an old kernel.
    In theory it's easy but in practice there are certain difficulties in porting a new kernel.

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

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

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

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

    I have posted my work in progress 4.9 kernel a year ago here https://github.com/mikeNG/android_kernel_lenovo_msm8953/commits/lineage-18.1-4.9
    and nobody else seems to be interested. I have almost 30 phones to maintain now for lineage and work, so I don't really have time to dedicate and do this alone.