[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] leo_97:
Known Issues​

- Storage encryption is partially broken (if your /data partition is unencrypted, trying to encrypt it using ROM menu will result in a dead OS; if already encrypted, storage encryption may or may not work. IFAIK, it's a kernel side issue)

- Device may not go to deep sleep

- SafetyNet & Play Integrity Fail (more information on this page here) (fixed on lineage-19.1-20240216-UNOFFICIAL-kuntao)

- SafetyNet & Play Integrity are failing again (as of 29th Feb) (check this page for updates on this situation) (fixed again on lineage-19.1-20240312-UNOFFICIAL-kuntao)

- Play Integrity is broken for non-rooted installs (as of May, 2024) (more information here) (fixed on lineage-19.1-20240624-UNOFFICIAL-kuntao)

- Storage forceencrypt flag is disabled (to encrypt /data partition follow the instructions below)

- TWRP backups are broken (read notes below)

- FM Radio is broken (since lineage-19.1-20240624-UNOFFICIAL-kuntao)

- Bank apps may not work or stop working at any moment due to custom ROM detection (see here)

- You tell

Google Play Store Update Bug​

If Google Play Store app keeps failing to find updates for apps with message "Something went wrong. Try again.", just clear its data and then it should work again

SafetyNet Check & Play Integrity Fails​

If your device is not rooted, please, update to the lineage-19.1-20240216-UNOFFICIAL-kuntao build or newer.

If your device is rooted, please, follow the instructions contained on this post here (method #2)

Magisk is Gone After First Boot​

Please, just reflash Magisk again (i.e. Reboot to recovery > Flash ZIP > Reboot back to system)

How to encrypt data partition​

0- Backup your files (this process will erase everything)

1- Boot to TWRP recovery

1.1- Wipe > Format data > Reboot to system

2- Settings menu > Security > Encryption & credentials > Encrypt phone

3- Reboot to system again

Error restoring TWRP system backups​

It looks like TWRP backups are broken for now, so please, if this is a must have for you, you can try to install OrangeFox recovey and follow these instructions (thanks @Zdeslav for that)

ROM Change logs​

06/24/2024
- Fetch latest Device Tree
-- prop: Set HW timeout multiplier to 6
- Sync latest LOS sources
- Merge June security patch

05/29/2024
- Fetch latest Device Tree
- Sync latest LOS sources
-- Prioritize system toasts
-- lineage: Opt-in to shipping full recovery image by default
- Merge May security patch

04/27/2024
- Fetch latest Device Tree
- Sync latest LOS sources
-- RESTRICT AUTOMERGE Added limitations for attributions to handle invalid cases
-- Don't store invalid pkgs when migrating filters
isUserInLockDown can be true when there are other strong auth
-- Fix security vulnerability that creates user with no restrictions when accountOptions are too long.
- Merge April security patch

03/17/2024
- Fetch latest Device Tree
- Sync latest LOS sources
- Merge March security patch

03/12/2024
- Fetch latest Device Tree
-- overlay: Disable Nearby SurfaceService (fix wifi speed issues while using bluetoth at the same time)
-- rootdir
--- Start sensor hals on boot
--- Set top-app cpuset to 0-3
-- Add Dolby Atmos support
-- Update device FP spoof (fix Play Integrity status)
-- mm: Always overcommit memory (improved app performance)
- Sync latest LOS sources
-- Allow signature spoofing for microG Companion/Services
-- Merge updated translations

02/16/2024
- Fetch latest Device Tree
-- Add PlayIntegrity patch
- Sync latest LOS sources
-- AudioService: anonymize Bluetooth MAC addresses
-- Merge updated translations
- Merge February security patch

01/21/2024
- Fetch latest Device Tree
- Sync latest LOS sources
-- prebuilt: Update APNs for Boost Mobile
-- overlay: Change vvm_type_vvm3_mvno to vvm_type_vvm3
-- overlay: update VVM config
-- Validate ringtone URIs before setting
-- Merge updated translations
- Merge January 2024 security patch

12/17/2023
- Fetch latest Device Tree
-- Set the compiler filter for shared apks to quicken
-- Set threshold to filter unused apps
-- Set lmkd's swap_free_low_percentage to 100
-- parts: Fix White and Yellow flash led brightness
-- Bump graphene camera version to 64
-- rootdir: Bump zram 1.5GB to 3GB
-- Build TextClassifier packages
-- sepolicy
--- Allow system app to access HALs
--- Fix sepolicy error
- Sync latest LOS sources
-- Update the branch of Lineage snippets from master to main
-- config: telephony: Advertise telephony support for GMS
-- apn: Fix Play MMS
-- fixup! Add placeholder when media control title is blank
-- Merge updated translations
-- Many other changes
- Merge December security patch

10/12/2023
- Fetch latest Device Tree sources:
-- Move Sensor HAL to system-background
- Sync latest LOS source
-- Track our own frameworks/opt/colorpicker
-- Patch CVE-2023-4863 & CVE-2023-5217
- Merge October security patch

08/15/2023
- Fetch latest Device Tree sources:
-- Added Touch response optimizations
-- Added AdGuard,Open,Quad9,Cleanbrowsing and Cloudflare DNS provider
-- Added battery temp info
- Sync latest LOS source
- Merge August security patch

07/16/2023
- Fetch latest Device Tree sources:
-- sepolicy: Update Camera property sepolicy
-- rootdir: Move read_ahead_kb to init.qcom.post_boot.sh
-- Set lmkd kill timeout value to 50
-- props: Disable Camera Hal3
-- audio: Disable call screen mode support for audio 5.0
-- camera: Update QCamera2
-- Revert "rootdir: Add cpuset for the camera daemon"
- Sync latest LOS sources:
-- apn: Add Uno Mobile Italy
- Merge July security patch

06/11/2023
- Fetch latest Device Tree sources:
-- parts: Update few parts icon
-- vendorsetup.sh: Use depth=1
-- Remove pixel_2016_exclusive
-- Bump graphene camera version to 63
- Sync latest LOS sources:
-- Additional zstd cmdline tools
-- zstd compression support for rsync
-- 2023-06 ASB patching: packages/apps/Traceur
- Merge June security patch

05/09/2023
- Fetch latest Device Tree sources:
-- Bump graphene camera version to 62
-- devicesettings: Protect broadcast to fingerprint gestures
-- rootdir: Remove permission restrictions to the socket file
- Sync latest LOS source
- Merge May security patch

04/19/2023
- Fetch latest Device Tree sources:
-- sepolicy: Silence tracingproxy_service neverallow denial
-- sepolicy: Allow system_app to access storaged via IPC
- Sync latest LOS source
- Merge April security patch

04/09/2023
- Fetch latest Device Tree sources
-- Add navbar enable/disable support
-- fs: Revert sdfat update for OTG
-- block: Add zen io scheduler
-- dts: Decrease BCL low battery threshold to 5%
-- DeskClock:
--- Wallpaper based text coloring for digital
--- Adapt digital clocks to S style
--- Remove night mode
-- Trebuchet:
--- Kill haptics in recents
--- Make overview scrim transparent again
-- Nfc: Fix Mifare Classic reading
- Update LOS components:
-- lineage: Track the FMRadio App and dependencies
- Sync latest LOS source

03/29/2023
- Fetch latest Device Tree sources
-- vendorsetup.sh: Add Trebuchet patch
-- AOSP WFD doesn't support protected Wi-Fi Display buffers
-- Overlays:
--- Enable voWIFI support
--- Disable IMS features for Turkiye networks
-- Don't warn user about FC in Vanced microG
-- DT rootdir:
--- Add cpuset for the camera daemon
--- Remove permission restrictions to the socket file
--- Restore iio sensor device6 on boot
-- Bump graphene camera version to 60
-- Don't force enable ims features
-- sepolicy: Address sensor hal denials
- Update LOS components
-- Manifest: Sync x86_64 webview prebuilts again
-- Update zlib source
- Sync latest LOS source
- Merge March security patch

02/27/2023
- Sync latest LOS sources
- Device Tree change: Use old A12L dt instead of los
- Add Lenovo Parts menu (fp gestures, USB fast charge, in-call audio gain, screen kcal)
- Updates phone vibration strength
- Add fix to device deep sleep issue
- Many more changes

02/22/2023
- Initial release