[ROM][9][OFFICIAL] LineageOS 16.0 for P2

Search This thread

celoxocis

Senior Member
Apr 12, 2010
1,597
2,179
Belgrade
I've just noticed in step "5. main menu -> wipe -> format data" it defaulted for me to be formated into ext4 even though i was on f2fs.
If you want data in f2fs you will need to reboot the recovery once more and go into advanved wipe => format/change file system and select "f2fs".
Make one last reboot into recovery and start flashing ROM+GApps.
 

mikeioannina

Recognized Developer
Mar 22, 2011
1,969
27,129
Ioannina
Lenovo P2
Xiaomi Mi Mix 2
I've just noticed in step "5. main menu -> wipe -> format data" it defaulted for me to be formated into ext4 even though i was on f2fs.
If you want data in f2fs you will need to reboot the recovery once more and go into advanved wipe => format/change file system and select "f2fs".
Make one last reboot into recovery and start flashing ROM+GApps.

Yes I intentionally default to ext4 this time because who knows if f2fs is going to break again sometime in the future... The f2fs developers make me sad with all these bugs.
 

Erazor84

Senior Member
Apr 4, 2011
182
62
Vienna
Well done mike! :D The Upgrade went absolutely perfectly. My Homescreen was messed up after my first boot, all folders and icons were gone, but thats nothing critical. all my applications are here, the system is buttery smooth! wow, just wow :D awesome work <3
 

theredone51

Senior Member
Aug 1, 2007
136
31
Same here, upgraded without issues, thanks Mike!

As for the fingerprint gestures, I know you mentioned something about an issue with that, is that still relevant? I'm looking into using the fingerprint sensor as before (touch it once -> back, press it => home) which I've set in the "extra buttons" menu by selecting "fingerprint gestures", but it's not working like I expected it to.
 

CrazyLB

Member
Nov 11, 2013
7
3
Lenovo P2
Samsung Galaxy S21
Same here, upgraded without issues, thanks Mike!

As for the fingerprint gestures, I know you mentioned something about an issue with that, is that still relevant? I'm looking into using the fingerprint sensor as before (touch it once -> back, press it => home) which I've set in the "extra buttons" menu by selecting "fingerprint gestures", but it's not working like I expected it to.
FP Gestures don't work for me (clean install and encrypted phone)
 

Erazor84

Senior Member
Apr 4, 2011
182
62
Vienna
It almost went smoothly but I'm getting a load of force close errors for everything Google related.

Stupid question - have you installed the correct pie gapps too, or just L16 without updating the gapps? i flashed 16 and the pie nano gapps - all google apps are working correctly for me.

The only "problem" i am investigating right now is, that wlan deactivates itself in standby, and i cannot find a "stay always connected" option, like in 15.1
 

philje123

Senior Member
Dec 6, 2006
622
87
Paderborn
You hit the nail on the head! I forgot/didn't realise I had to install gapps again.

Downloaded the stock packaged, flashed it, didn't work, uninstalled all Google apps it would let me, re-installed and all working again.

I noticed all the stock apps first appeared too (phone, SMS etc).

Working well now.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 65
    Code:
    [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.
    If you are coming from LineageOS 15.1 with f2fs userdata, you need to format the userdata partition! Read the second post for more information.
    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. Recommended nano package)

    Required TWRP recovery
    twrp-3.2.3-20190209-kuntao.img

    Official root addon
    LineageOS Extras

    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

    XDA:DevDB Information
    Official LineageOS 16.0 for P2, ROM for the Lenovo P2

    Contributors
    mikeioannina, highwaystar_ru
    Source Code: https://github.com/LineageOS

    ROM OS Version: 9.x Pie
    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 2019-04-13
    Last Updated 2019-06-17
    40
    Hi everyone, it took a bit long but I have started working on lineage 17.1. Things look good so far.
    37
    I fixed a bunch of issues and ship blockers, I am not aware of any big issue so I will be enabling 17.1 nightlies soon so we can get wider testing.
    36
    Upgrade instructions from LineageOS 15.1

    Lenovo used a very old version of f2fs which is incompatible with latest f2fs version of 3.18 kernel. In order to keep the device updated with the latest features, it was necessary to upgrade f2fs with the downside of existing users need to format the userdata partition. If you want to keep your userdata, follow these steps. Keep in mind any apps using the keystore will be broken and you will need to clear their app data and set them up from scratch. If you used ext4 for userdata, you can simply upgrade without any breakage.

    If you want to keep and migrate your 15.1 data and internal storage contents (only on incoming official builds!):

    1. backup userdata in your current TWRP and take an internal storage backup on your PC.
    2. reboot to bootloader
    3. fastboot flash recovery twrp-3.2.3-20190209-kuntao.img
    4. reboot to recovery by holding vol up + vol down + home + power buttons
    5. main menu -> wipe -> format data
    6. main menu -> reboot -> reboot recovery
    7. flash lineage zip (and gapps/whatever else you want)
    8. restore userdata backup and internal storage backup
    9. delete /data/system/locksettings.db, you will have to set your lockscreen protection again when it boots

    If you want a completely clean install just skip steps 1, 8 and 9.
    I tested this process and it worked coming from lineage-15.1 or stock ROM.
    35
    @mikeioannina Thanks for your attempts for keeping this device's ROM development alive.

    While ago I saw in gerrit that you have commits about 4.x kernel. Did you succeeded to bring it up?
    And while you are currently working on LOS17, do you promote kuntao to 17?

    I never finished 4.9 kernel because it fails too early and I have no real way to debug it. I might look at it in the future when I have more time, but for now 3.18 still works fine.

    I will start porting 17.0 to kuntao soon and unless there is some major issue, it will be of course officially supported.