How To Guide [GUIDE] How to unlock the bootloader for Nokia 2.2

Search This thread

Badzsa

Member
Mar 25, 2021
31
3
hey , if bootloader is locked , only official android software can be flashed ... if you downgrade that way, (flash lower android 9-10) you brick the device ? o_O
i remember , from last year when i try first time to downgrade from Q to Pie , i flashed back Pie with Sp Flash Tool clean flash , and i downgraded without bricking :)
only lost telephone's imei and serial numbers when i accidently auto format all partitions! xD
 
Last edited:

sgetr1

Member
Sep 8, 2019
7
1
hey , if bootloader is locked , only official android software can be flashed ... if you downgrade that way, (flash lower android 9-10) you brick the device ? o_O
i remember , from last year when i try first time to downgrade from Q to Pie , i flashed back Pie with Sp Flash Tool clean flash , and i downgraded without bricking :)
only lost telephone's imei and serial numbers when i accidently auto format all partitions! xD
if you with me

im not dev and im not flashed new phones(flashing of xiaomi and samsung is not hard except nokia:cautious:)

and i only have a phone and i want that its not be break
i only want back from 11 to 10 and a friend say that if you dont want to do risk
dont do it

its a confident way for back to 10 with simple flash with sp flash without unlocking bt???

i want to make a sure


edit:and if i want to do simple flash with sp flash

i must connect phone to pc and after it click download

or first click download and after it connect the phone to pc??
 
Last edited:

Badzsa

Member
Mar 25, 2021
31
3
if you with me

im not dev and im not flashed new phones(flashing of xiaomi and samsung is not hard except nokia:cautious:)

and i only have a phone and i want that its not be break
i only want back from 11 to 10 and a friend say that if you dont want to do risk
dont do it

its a confident way for back to 10 with simple flash with sp flash without unlocking bt???

i want to make a sure


edit:and if i want to do simple flash with sp flash

i must connect phone to pc and after it click download

or first click download and after it connect the phone to pc??
first , click dowload button , then press "volume down" on phone, and connect usb cable in
-but , if you want clear flash, select "download only" and uncheck "userdata" partition . other partitions reflash :) if done click ok , and disconnect usb cable
later enter in fastboot mode : press "power button+volume down button" at once , on pc terminal enter command :
" fastboot format userdata " and " fastboot reboot " ..
and all done
 

sgetr1

Member
Sep 8, 2019
7
1
first , click dowload button , then press "volume down" on phone, and connect usb cable in
-but , if you want clear flash, select "download only" and uncheck "userdata" partition . other partitions reflash :) if done click ok , and disconnect usb cable
later enter in fastboot mode : press "power button+volume down button" at once , on pc terminal enter command :
" fastboot format userdata " and " fastboot reboot " ..
and all done
thanks dude😉
 

AAditya846

Member
May 16, 2016
26
0
FEW THINGS I WANTED TO SAY--

1. <to everyone> Hey guys, hope y'all are doing fine. Can I please get to know which Lineage OS has booted thus far (or anything >android10 with root access)? I tried Phh's AOSP 12. Need root access. But as mentioned by other fellow members only "secure" version boots into Nokia 2.2 (the one with no Su).

2. I wanted to know that is the TWRP on the official website fine? I noticed that it is exactly when I flash it my device end's up in bootloop. I tried formatting the data. There used to be a method in this forum to patch fstab. I can't seem to find it now. Any idea about any of that?

3. "Securizing" a GSI isn't very hard. Phh and Andy Yan both have sas-creators which can be found here and here respectively. BUT EVERY TIME IT RESULTS IN A FILE OF SIZE 3.7 GB! Which is un-flashable as it is too big. Is there a method to decrease the size?

4. I don't know if it's the same with everyone but there's a weird problem with this device. The brightness issue! More about it here. Hence I cannot even think of going back to Android 9, Stock or GSI. The problem existed in Stock android 10 as well but since I've never been able to boot any Android 10 GSI, I wouldn't know if android 10 GSI is also a headache like stock. This was fixed in android 11.
Now coming to the point, did anyone of you guys have had the same brightness issues? if yes, were you able to fix it on android 9 or 10? If yes, can I please get your stock firmware? (I don't think it's fixable just like that, looks more like a problem with the hardware). But Nokia did fixed it with an Android 11 software update! Maybe it will work.

Thank you.
 

areallydumbperson

Senior Member
FEW THINGS I WANTED TO SAY--

1. <to everyone> Hey guys, hope y'all are doing fine. Can I please get to know which Lineage OS has booted thus far (or anything >android10 with root access)? I tried Phh's AOSP 12. Need root access. But as mentioned by other fellow members only "secure" version boots into Nokia 2.2 (the one with no Su).

2. I wanted to know that is the TWRP on the official website fine? I noticed that it is exactly when I flash it my device end's up in bootloop. I tried formatting the data. There used to be a method in this forum to patch fstab. I can't seem to find it now. Any idea about any of that?

3. "Securizing" a GSI isn't very hard. Phh and Andy Yan both have sas-creators which can be found here and here respectively. BUT EVERY TIME IT RESULTS IN A FILE OF SIZE 3.7 GB! Which is un-flashable as it is too big. Is there a method to decrease the size?

4. I don't know if it's the same with everyone but there's a weird problem with this device. The brightness issue! More about it here. Hence I cannot even think of going back to Android 9, Stock or GSI. The problem existed in Stock android 10 as well but since I've never been able to boot any Android 10 GSI, I wouldn't know if android 10 GSI is also a headache like stock. This was fixed in android 11.
Now coming to the point, did anyone of you guys have had the same brightness issues? if yes, were you able to fix it on android 9 or 10? If yes, can I please get your stock firmware? (I don't think it's fixable just like that, looks more like a problem with the hardware). But Nokia did fixed it with an Android 11 software update! Maybe it will work.

Thank you.
The twrp on the official site is **not** signed so dm verity will bootloop so u need to flash an empty vbmeta
 

Badzsa

Member
Mar 25, 2021
31
3
News : Andy Yan's Lineage OS 19.1 now boot in succesfully on nokia 2.2 !.. tested on android 11 firmware (updated to latest build with security paches), and flashed stock vbmeta android 9 . :)
- i tested out 'bvn' ( vanilla variant ) because i dont want gapps on phone ( its slows down android system after a time ), lineage-19.1-20220510-UNOFFICIAL-arm64_bvS-vndklite , probably with gapps one works too .. :)
 
Last edited:

SMd Ashiq

New member
Nov 5, 2018
3
0
Links to the ROM please?
What did you install it on? (stock android 9, 10, 11)

after unlocking bootloader ,i did a system update from settings and rebooted with latest update.. then with android 11 ,i flash twrp with android 11 vbmeta file (extracted from sp tools) through fastboot and installed these roms from https://github-wiki-see.page/m/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
 

AAditya846

Member
May 16, 2016
26
0

after unlocking bootloader ,i did a system update from settings and rebooted with latest update.. then with android 11 ,i flash twrp with android 11 vbmeta file (extracted from sp tools) through fastboot and installed these roms from https://github-wiki-see.page/m/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
I found that one already. Saw the crdroid version 8.4 in your video. Thanks
 

AAditya846

Member
May 16, 2016
26
0
News : Andy Yan's Lineage OS 19.1 now boot in succesfully on nokia 2.2 !.. tested on android 11 firmware (updated to latest build with security paches), and flashed stock vbmeta android 9 . :)
- i tested out 'bvn' ( vanilla variant ) because i dont want gapps on phone ( its slows down android system after a time ), lineage-19.1-20220510-UNOFFICIAL-arm64_bvS-vndklite , probably with gapps one works too .. :)
Fastboot > flash system > flash vbmeta from stock OS (Android 9) > fastboot -w > reboot
Right?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Fastboot > flash system > flash vbmeta from stock OS (Android 9) > fastboot -w > reboot
    Right?
    yepp , thats right
  • 10
    To moderators: There's no Nokia 2.2 forum in XDA-Developers, please move this topic when available.
    To content farms: DO NOT COPY AND PASTE THE ENTIRE GUIDE!

    Now the last piece of puzzle of Nokia x.2 series bootloader unlock line has been completed, thanks to the help of a member called Woke_World.
    After I read his procedure, I decided to optimize the entire procedure and use my own firmware file to achieve it.

    Step 1: Do full backup
    (For this case please use SP Flash Tool 5.1924 or newer that can be found on spflashtool.com )

    The firmware for this procedure can be downloaded here: https://www.androidfilehost.com/?fid=2188818919693749336
    SHA256: D056631A8A795A06795B3A4E5F334DBF9B55C3C71269831F8E7926FA3ABA5637

    Please follow the procedure in this topic to do readback: https://forum.xda-developers.com/t/...-global-nokia-5-1-plus-unbrick-guide.3858253/
    For this case, you need to keep Download Agent file as the same came with SP Flash Tool, and altunlock-MT6761_Android_scatter.txt

    Once readback done, please extract these images inside your backup for later use:
    Code:
    nvcfg.img
    nvram.img
    proinfo.img
    protect1.img
    protect2.img

    DO NOT SKIP STEP 1, OR YOUR PHONE WILL NOT HAVE IMEI AND SN!

    Step 2: Format all + Download to flash the firmware with altunlock scatter file
    Switch to Download tab, and choose format all + download to flash the entire phone with this scatter file: "altunlock-MT6761_Android_scatter.txt"
    Once flash complete, disconnect the phone.

    Step 3: Bootloader unlock
    Press and hold volume down key and connect to PC - keep that condition for around 12 seconds then the phone will boot to Fastboot mode.
    Execute these 2 commands to perform bootloader unlock:
    Code:
    fastboot flashing lock_critical
    fastboot oem unlock

    Look at your phone and press volume up to confirm unlock. Once done, disconnect the phone and remove the battery, wait 5 seconds and place the battery back.

    Step 4: Do readback again
    Once readback done, please extract these images inside your backup for later use:
    Code:
    sec1.img
    seccfg.img

    Step 5: Format all + Download to flash the firmware with original scatter file
    Switch to Download tab, and choose format all + download to flash the entire phone with the original scatter file named as "MT6761_Android_scatter.txt" - note there's no altunlock at the beginning of filename.
    Once flash complete, disconnect the phone.

    Step 6: Power on the phone and enable USB debugging, root the phone with MTK Easy SU
    [NOTE: DO NOT INSERT ANY SIM CARDS AND YOU MUST SKIP INTERNET CONNECTION]

    You can download the MTK Easy SU apk from here : https://github.com/JunioJsv/mtk-easy-su/releases/latest
    And Magisk APK from here : https://github.com/topjohnwu/magisk/releases/latest

    When you have both MTK Easy Su and Magisk APK installed, please enable the "Run as 64 Bits" option, and tap the hash (#) button to enable root.
    Once root complete, we can now re-enable bootloader unlock and restore IMEI.

    Step 7: Re-enable bootloader unlock and restore IMEI
    Please copy the 7 img files to your phone's internal storage:
    Code:
    nvcfg.img
    nvram.img
    proinfo.img
    protect1.img
    protect2.img
    sec1.img
    seccfg.img
    We assume you copied them to root directory of internal storage (a.k.a. /storage/emulated/0/ )

    Then execute these commands on your PC:
    Code:
    adb shell
    su
    dd if=/storage/emulated/0/nvcfg.img of=/dev/block/bootdevice/by-name/nvcfg
    dd if=/storage/emulated/0/nvram.img of=/dev/block/bootdevice/by-name/nvram
    dd if=/storage/emulated/0/proinfo.img of=/dev/block/bootdevice/by-name/proinfo
    dd if=/storage/emulated/0/protect1.img of=/dev/block/bootdevice/by-name/protect1
    dd if=/storage/emulated/0/protect2.img of=/dev/block/bootdevice/by-name/protect2
    dd if=/storage/emulated/0/sec1.img of=/dev/block/bootdevice/by-name/sec1
    dd if=/storage/emulated/0/seccfg.img of=/dev/block/bootdevice/by-name/seccfg

    When it's done, please perform factory reset to apply the NVRAM restoration.

    Please watch this video for entire procedure demonstration:

    That wraps up the entire procedure of bootloader unlock, and have fun for modding this device!

    Credits:
    Woke_World from triple-color company product community
    diplomatic for his MTK-SU Exploit and simplified utility called JunioJsv
    topjohnwu for MagiskSU
    3
    @areallydumbperson @VR25

    You may notice that this thread now is located at its own Nokia 2.2 forum.

    Along with this change, several other threads have been moved to this forum as well.

    Please report any thread outside this forum needs to be moved. Thank you very much and hope you enjoy the new place for Nokia 2.2. :D
    2
    TWRP 11 Bugfix:

    Fixed system refusing to mount (finally) thanks lopestorm :) ur fstab flie really helped me out
    bootloops from twrp.me is soon gonna be fixed hopefully i have made a pull request in their git
    more partitions should be able to be backed up (again thanks to lopestorm)