[EOL][11.0][UNOFFICIAL] LineageOS 18.1 for Nokia 4.2

  • Thread starter Deleted member 7280252
  • Start date
Search This thread
D

Deleted member 7280252

Guest
2okPze5.png

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.

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

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​
Code:
adb reboot recovery
3 Sideload the file​
Code:
adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip
4 Reboot to recovery again​
5 Sideload the file again to have it in both slots, A & B​
Code:
adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip
- Flash Lineage recovery/bootimage to active slot via fastboot:
- Find out active slot:​
Code:
fastboot getvar current-slot
- Flash boot.img to active slot:​
Code:
fastboot flash boot_X boot.img
- Reboot to Lineage recovery via the fastboot UI
- Sideload LineageOS via Lineage recovery
Code:
adb sideload lineage-18.1-20210718-UNOFFICIAL-panther.zip
- Optional: flash GAPPS before rebooting to system

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

DOWNLOADS:
- LineageOS 18.1
- Lineage recovery
- Google Apps: MindTheGapps

DEVELOPER RESOURCES
- LineageOS source code: https://github.com/LineageOS @ lineage-18.1
- Device tree: https://github.com/trautamaki/android_device_nokia_panther @ lineage-18.1
- Kernel: current: https://www.nokia.com/phones/en_int/opensource (prebuilt)

(for reference: https://github.com/trautamaki/android_kernel_nokia_sdm439)

Android version: Android 11
Kernel version: Linux 4.9.y
Required firmware: March update, Android 11, V3.150 (Nokia/Panther_00WW/PAN_sprout:11/RKQ1.200928.002)

THIS IS ONLY TESTED BY ME ON MODEL TA-1157.
Indian variant may or may not work with this.

Telegram: https://t.me/los_panther
 
Last edited by a moderator:
D

Deleted member 7280252

Guest
Info for curious:
This uses prebuilt stock vendor, hence the need to have 2 proper slots (as well as correct firmware version)
 
  • Like
Reactions: PPajac
D

Deleted member 7280252

Guest
UPDATE:
* Sync LineageOS sources
* Audio is fixed

* Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

All the basic functionality appears to be working now. It is still built with selinux permissive and eng-variant, which reduces security.

* Download
 
Last edited by a moderator:
  • Like
Reactions: PPajac
D

Deleted member 7280252

Guest
UPDATE:
* Sync LineageOS sources
* SELinux is now enforcing
* Built the userdebug variant

* Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

All the basic functionality appears to be working now.

Todo:
* Light HAL for notification indication LED
* Firmware version checks for checking vendor & firmware version

* Download
 
  • Like
Reactions: PPajac

vladabgd

Member
Jun 30, 2021
9
6
I was surprised when I saw lineage for my nokia 4.2 that sits in box since I got it for free from operator when renewing contract.

I am not a novice for lineage, but first time working with nokia. I unlocked bootloader, although I still have message every time when I turn it on, that bootloader is unlocked and device is not secure. I hope that is fine.

I checked slots and slot B is in use, so, as a novice and because of securing my existing OS (i hope that counts) decided to set slot A as active.

I didnt touched anything else except tried to sideload suggested image and install it. But, everytime I encouter a error at 47% - pc saying "adb: failed to read command: No error" while device saying that it is wrong image and it is for PAN_sprout?

Then I tried to sideload Nokia-4.2-V3.150_B01.zip with same error, wiping data between retries. And on slot B I have latest update - march 2021 and andr 11.

Also, I presume that my device is locked to operator and it is dual sim. I returned to slot B and device is in working condition.

Any idea what can be done so I can install lineage?
 
D

Deleted member 7280252

Guest
I was surprised when I saw lineage for my nokia 4.2 that sits in box since I got it for free from operator when renewing contract.

I am not a novice for lineage, but first time working with nokia. I unlocked bootloader, although I still have message every time when I turn it on, that bootloader is unlocked and device is not secure. I hope that is fine.

I checked slots and slot B is in use, so, as a novice and because of securing my existing OS (i hope that counts) decided to set slot A as active.

I didnt touched anything else except tried to sideload suggested image and install it. But, everytime I encouter a error at 47% - pc saying "adb: failed to read command: No error" while device saying that it is wrong image and it is for PAN_sprout?

Then I tried to sideload Nokia-4.2-V3.150_B01.zip with same error, wiping data between retries. And on slot B I have latest update - march 2021 and andr 11.

Also, I presume that my device is locked to operator and it is dual sim. I returned to slot B and device is in working condition.

Any idea what can be done so I can install lineage?
The instructions were purposefully a bit obsecure when the project status was hardly WIP. I should update the instructions soon.

Basically you need to flash LineageOS with the provided recocery image (see downloads).

Going back to stock, use boot-no-assert.img (it doesn't check device before install).
This is needed because I named the device panther instead of PAN_sprout. I will fix this some day.
 
  • Like
Reactions: PPajac and vladabgd

vladabgd

Member
Jun 30, 2021
9
6
T1mb3, thanks on all efforts. And thank you on reply! It is easy to follow your procedure once I figured out how these devices working - well I figured out enought to work with installing lineage. I am little bit more rusty. Ive heard for a slots for the first time now. lol. I have 2 sony compact devices - with lineage, only because windows 8.1 died. and I had 8.1 only because 6 died. hah...

So, after your explanation I successfully installed lineage on Nokia 4.2!!!

T H A N K YOU!!!

for those who will give a try I can add this:

- I had problems with unlocking bootloader - device was visible in adb mode, but once restarted fastoot didnt worked - check device manager in windows and if you see nokia 4.2 as other device just manually update driver with android adb device from list.

- once that worked well, everytime I start phone I see screen with warning that bootloader is unlocked. just wait for some seconds and it will disappear.

- once booted back to operating system check for enabled developer options and check does adb working. if it works reboot to fastboot with "adb reboot fastboot"

- with fastboot choose right slot for experiment: "fastboot getvar current-slot" shows current. mine was b so I changed to a with "fastboot set_active a"

- once set slot, flash boot with "fastboot flash boot_a boot-no-assert.img" where _a is slot you choose.

- reboot with "fastboot reboot"

- enter new boot and choose adb. with adb sideload zip "adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip". maybe there will be warnings but continue anyway. after some time and with step 2/2 check on computer did adb command finished. after finish restart nokia.

- i went directly to os, expecting that this is android from zip flile, on slot a. but then I checked and saw that active slot was again b and that android was mine.

- i went to fastboot again and set active slot to a again, tried to restart device and got message that operating system is corrupt. holding power button turns off device and i entered again bootloader with power button and vol down.

- then I decided to sideload lineage on same slot - a, who cares, hah, and sideloaded it after I wiped all data.

- restarted device and voila - lineage works!!!

maybe this will help someone who have nokia 4.2 and want to install lineage. time consumed is about one hour.

thanks T1mb3
 
D

Deleted member 7280252

Guest
T1mb3, thanks on all efforts. And thank you on reply! It is easy to follow your procedure once I figured out how these devices working - well I figured out enought to work with installing lineage. I am little bit more rusty. Ive heard for a slots for the first time now. lol. I have 2 sony compact devices - with lineage, only because windows 8.1 died. and I had 8.1 only because 6 died. hah...

So, after your explanation I successfully installed lineage on Nokia 4.2!!!

T H A N K YOU!!!

for those who will give a try I can add this:

- I had problems with unlocking bootloader - device was visible in adb mode, but once restarted fastoot didnt worked - check device manager in windows and if you see nokia 4.2 as other device just manually update driver with android adb device from list.

- once that worked well, everytime I start phone I see screen with warning that bootloader is unlocked. just wait for some seconds and it will disappear.

- once booted back to operating system check for enabled developer options and check does adb working. if it works reboot to fastboot with "adb reboot fastboot"

- with fastboot choose right slot for experiment: "fastboot getvar current-slot" shows current. mine was b so I changed to a with "fastboot set_active a"

- once set slot, flash boot with "fastboot flash boot_a boot-no-assert.img" where _a is slot you choose.

- reboot with "fastboot reboot"

- enter new boot and choose adb. with adb sideload zip "adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip". maybe there will be warnings but continue anyway. after some time and with step 2/2 check on computer did adb command finished. after finish restart nokia.

- i went directly to os, expecting that this is android from zip flile, on slot a. but then I checked and saw that active slot was again b and that android was mine.

- i went to fastboot again and set active slot to a again, tried to restart device and got message that operating system is corrupt. holding power button turns off device and i entered again bootloader with power button and vol down.

- then I decided to sideload lineage on same slot - a, who cares, hah, and sideloaded it after I wiped all data.

- restarted device and voila - lineage works!!!

maybe this will help someone who have nokia 4.2 and want to install lineage. time consumed is about one hour.

thanks T1mb3
Nice!
The issue you had in the end was that you only flashed the 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip once to slot a. Now when you go install Lineage, it installs to slot b -> there's a mismatch. Therefore you should install the stock rom twice.
 
  • Like
Reactions: PPajac
D

Deleted member 7280252

Guest
UPDATE:
* Sync LineageOS sources
* Light HAL works now, features include battery light and static notification light (no breath effect)

* Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

Todo:
* Firmware version checks for checking vendor & firmware version
* Fix tethering

* Download
 

vladabgd

Member
Jun 30, 2021
9
6
Thanks on new update!!!

1 yes, you are right. I noticed that lineage is on slot b. I didnt understood when you wrote mismatch - do you mean that I needed to flash zip twice on slot a, or once on slot a and once on slot b?

2 also, I do not know how to flash updated version of lineage: if I just sideload it on existing and working lineage on slot b should I wipe data on slot b before install or I can just install over existing version?

3 finally: I never used opengapps - I meant mindthegapps so I wanted to try - I was late: already installed lineage and booted into it. do you have idea what to do now.

thanks on great efforts T1mb3!!!
 
D

Deleted member 7280252

Guest
Thanks on new update!!!

1 yes, you are right. I noticed that lineage is on slot b. I didnt understood when you wrote mismatch - do you mean that I needed to flash zip twice on slot a, or once on slot a and once on slot b?

2 also, I do not know how to flash updated version of lineage: if I just sideload it on existing and working lineage on slot b should I wipe data on slot b before install or I can just install over existing version?

3 finally: I never used opengapps - I meant mindthegapps so I wanted to try - I was late: already installed lineage and booted into it. do you have idea what to do now.

thanks on great efforts T1mb3!!!
1. Yes, you need to have the correct stock rom (vendor partition and firmware) version on both slots. Flashing it twice with a reboot back to recovery will do the job.
2. Download the zip, reboot to recovery and sideload normally. Data-partition does not have a/b slots, it's shared across both slots so no need to wipe it.

In your specific case, you will likely need to flash the stock rom once again to populate the vendor and firmware partitions, then Lineage update (both on the same slot).

3. Wipe data, flash Gapps, reboot. This makes you to start from the setup wizard.
 
  • Like
Reactions: PPajac and vladabgd
D

Deleted member 7280252

Guest
UPDATE:
* Previous update I accidentally built eng variant instead of userdebug, this is same but userdebug.

* Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

Todo:
* Firmware version checks for checking vendor & firmware version
* Fix tethering

* Download
 

el-chuerro

New member
Jun 12, 2021
1
0
Germany
Nokia 4.2
I just tried it yesterday. Am I the only one whose nokia 4.2 constantly reboots after a minute or sth? Bc it seems like there are stability issues with the current build
 

vladabgd

Member
Jun 30, 2021
9
6
2 days with lineage on nokia 4.2 and no single issue. all is working even notification led.

i had issues with gapps - even i tried to wipe data and reinstall clean lineage google kept returning and crashing system. so I ended with what I didnt do at first place - complete wipe and starting from step one - stock rom on both slots with whole procedure one by one. it was exhausting but all worked fine after.

even I have branded phone I tested it with sim card from another operator and device is sim free now.

at the end, thanks to Timb3 we have very nice debloated and degoogled device. and I thought that I will never take it in hands... brilliant work...
 
D

Deleted member 7280252

Guest
UPDATE:
* Wifi causing whole system to crash (only affected a few) is fixed
* Wifi tethering is fixed
* Updated CarrierConfig

* Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

Todo:
* Firmware version checks for checking vendor & firmware version

* Download
 

CarrioTine

Member
Dec 30, 2016
6
1
I tried installing MindTheGApps from the start a handful of times. I don't know why, but it's never worked. I then tried to install OpenGApps too, but that also didn't seem to work? I'm very confused.
I don't get any errors, so I don't know what's happening. They seem to install fine, but when I get into LineageOS, there's no google apps installed.

UPDATE: I figured it out. I didn't realize I had to reboot back into recovery after the lineage install.
 
Last edited:
  • Like
Reactions: vladabgd

Vellweb

New member
Jun 11, 2020
3
1
Wifi wont even turn on at all, I tap the quick button for it and it just turns itself off, I go into the settings themselves and switch it on, it turns itself off again.. so I guess wifi isn't causing system to crash now, but that's only because you cant even turn WiFi on at all
 
  • Like
Reactions: Clydeza

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    D
    Deleted member 7280252
    2okPze5.png

    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.

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

    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​
    Code:
    adb reboot recovery
    3 Sideload the file​
    Code:
    adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip
    4 Reboot to recovery again​
    5 Sideload the file again to have it in both slots, A & B​
    Code:
    adb sideload 37a17a09b0b0d8ab0a3c398f373af4f0e1f067a1.zip
    - Flash Lineage recovery/bootimage to active slot via fastboot:
    - Find out active slot:​
    Code:
    fastboot getvar current-slot
    - Flash boot.img to active slot:​
    Code:
    fastboot flash boot_X boot.img
    - Reboot to Lineage recovery via the fastboot UI
    - Sideload LineageOS via Lineage recovery
    Code:
    adb sideload lineage-18.1-20210718-UNOFFICIAL-panther.zip
    - Optional: flash GAPPS before rebooting to system

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

    DOWNLOADS:
    - LineageOS 18.1
    - Lineage recovery
    - Google Apps: MindTheGapps

    DEVELOPER RESOURCES
    - LineageOS source code: https://github.com/LineageOS @ lineage-18.1
    - Device tree: https://github.com/trautamaki/android_device_nokia_panther @ lineage-18.1
    - Kernel: current: https://www.nokia.com/phones/en_int/opensource (prebuilt)

    (for reference: https://github.com/trautamaki/android_kernel_nokia_sdm439)

    Android version: Android 11
    Kernel version: Linux 4.9.y
    Required firmware: March update, Android 11, V3.150 (Nokia/Panther_00WW/PAN_sprout:11/RKQ1.200928.002)

    THIS IS ONLY TESTED BY ME ON MODEL TA-1157.
    Indian variant may or may not work with this.

    Telegram: https://t.me/los_panther
    4
    D
    Deleted member 7280252
    UPDATE:
    * Wifi causing whole system to crash (only affected a few) is fixed
    * Wifi tethering is fixed
    * Updated CarrierConfig

    * Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

    Todo:
    * Firmware version checks for checking vendor & firmware version

    * Download
    3
    D
    Deleted member 7280252
    UPDATE:
    * Previous update I accidentally built eng variant instead of userdebug, this is same but userdebug.

    * Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

    Todo:
    * Firmware version checks for checking vendor & firmware version
    * Fix tethering

    * Download
    3
    D
    Deleted member 7280252
    UPDATE:
    * Headphone jack fixed

    NOTE:
    You may need to update recovery (= fastboot flash boot_X boot.img) to install this update.
    Download updated recovery: https://sourceforge.net/projects/lineageos-panther/files/recovery/boot-2021-08-01.img/download

    * Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

    * Download
    3
    D
    Deleted member 7280252
    UPDATE:
    * Sync LineageOS sources
    * Light HAL works now, features include battery light and static notification light (no breath effect)

    * Using prebuilt kernel & dtbo image (due to Nokia not releasing the source code for audio-kernel aka techpack/audio).

    Todo:
    * Firmware version checks for checking vendor & firmware version
    * Fix tethering

    * Download