[Nokia 4.2 ROMs, Kernels, Recoveries, & Other Devel] Deleted member 7280252:
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

/*
* 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.
*/

PROJECT STATUS:

- Everything seems to work fine at this point.

- If Nokia ever cares to release both up-to-date kernel and techpack/audio driver, I will try to move from unofficial to official.

HOW TO INSTALL LINEAGEOS:

- Check your current firmware version: required version is V3.150 (March 2021 update, Android 11).

- If you're not on this version or unsure:

1 Reboot to recovery​

adb reboot recovery

2 Download https://android.googleapis.com/packages/ota-api/package/37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip​

3 Sideload the file​

adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip

4 Reboot to recovery again​

5 Sideload the file again to have it in both slots, A & B​

adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip

- Flash Lineage recovery/bootimage to active slot via fastboot:

- Find out active slot:​

fastboot getvar current-slot

- Flash boot.img to active slot:​

fastboot flash boot_$slot boot.img

- Reboot to Lineage recovery via the fastboot UI

- Sideload LineageOS via Lineage recovery

adb sideload lineage-19.0-20220105-UNOFFICIAL-panther.zip

- Optional: flash GAPPS before rebooting to system: Click Advanced, then Reboot to Recovery, then when your device reboots, click Apply Update, then Apply from ADB, then adb sideload filename.zip those packages in sequence.

GOING BACK TO STOCK:

- Sideload https://android.googleapis.com/packages/ota-api/package/37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip in Lineage recovery

- Wipe data / factory reset

DOWNLOADS:

- LineageOS 20

- Lineage recovery

- Google Apps: ?? (MindTheGapps)

DEVELOPER RESOURCES

- LineageOS source code: https://github.com/LineageOS @ lineage-20.0

- Device tree: https://github.com/trautamaki/android_device_nokia_panther @ lineage-20

- Kernel: https://www.nokia.com/phones/en_int/opensource (prebuilt, for reference: https://github.com/trautamaki/android_kernel_nokia_sdm439)

Android version: Android 13

Kernel version: Linux 4.9.y

Required firmware: December update, Android 11, V3.240 (Nokia/Panther_00WW/PAN_sprout:11/RKQ1.200928.002)

THIS IS ONLY TESTED BY ME ON MODEL TA-1157.

Other variants may or may not work with this.

Telegram: https://t.me/los_panther