• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

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

mikeioannina

Recognized Developer
Mar 22, 2011
1,900
26,531
113
Ioannina
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
 

mikeioannina

Recognized Developer
Mar 22, 2011
1,900
26,531
113
Ioannina
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.
 
Last edited:

Erazor84

Senior Member
Apr 4, 2011
184
62
0
Vienna
Normally the build of the images starts on sunday 8utc am, so 10am my time. we'll see ^^ thx mike!

@philje123 i will test it out, as soon as the rom is available. i am too on ext4 already, i am using the new twrp since february, even with the 15.1 build. i will try to simply upgrade from 15.1 to 16, so i don't have to reinstall all apps. i will write, if it was working for me.
 
Last edited:

Lyceus

Senior Member
Jun 15, 2017
94
25
18
So if I already have ext4 data partition I can simply install the new 16.0 update without having to migrate the data etc?

Do I need the new recovery too?
Yes, you need new recovery, but flashing new recovery do NOT wipe your data. It contain a newest format of f2fs format. On TWRP page you have a guide, how to flash it step by step on your phone without meet do plug your phone to PC.
 
Last edited:

htunze

Member
Feb 17, 2015
24
4
0
I remember last year on presentation 15.1 it took a couple of days before we could download after announcement.
Mikes work is awesome. But his timing :eek:

But anyway, I'm looking forward for this rom and I thank all the developers :good:
 

Erazor84

Senior Member
Apr 4, 2011
184
62
0
Vienna
i mean it depends, when the build for the 16 roms is starting everyday, but according to this site https://www.lineageoslog.com/build/scheduler we will get nightly builds, instead of weekly ones.

so that means, daily snapshots, like we had with 15.1 from july till november, before we only got one update a week. but no matter when, i am just happy that 16 is finally here ;D
no matter if we have to wait another day or not for the first build. but still - it's just amazing how much love the p2 gets. it is still one of the best, if not THE best device i've ever had. perfect performance for daily usage, even with slight gaming and i only need to charge my device once or twice a week. that's incredible! my device is now over 2 years old and my battery still lasts 4~6 days with one charge <3 best phone ever created hahahaha - and thx to people like mike, it is up to date too =) i hate lenovo as brand, when it comes to software updates, but the hardware is awesome, for that price tag...
 
  • Like
Reactions: dzidao and sunando