yashsingh1/xdaforums huggingface dataset:
[Nokia 2.2] nissun93:
Hey!

First of all I'd like to thank you for creating and attending to this thread. It helped me a lot, even though it's kinda messy, bringing back to life my new second hand Nokia 2.2 bought especially for playing with custom ROMs and eventually switching to it. I think it's a nice, small smartphone with poor hardware and replacable battery, but I believe every hardware with a solid software can run smooth enough for daily usage.

I was managed to unlock the bootloader and I played with three different versions of AOSP 12.1 v416 from Phh Treble and all I can say every each of them sucks.

- system-squeak-arm64-ab-vndklite-floss-secure.img.xz - dedicated for linux / open source enthusiasts loving to spend hours on setting up basic functionality. I had a problem with reading location on Google Maps etc. Dealt with it by installing 3rd NLP party software from Aurora and digging inside settings. The next problem that forced me to give it up was integrating Google Calendar widget. It simply showed no entries for events or tasks.

- system-squeak-arm64-ab-vndklite-gapps-secure.img.xz - spent the most time with it, also used the device for daily usage. From the beginning it worked acceptable, but with time it was getting slower and slower. One day, when I needed Google Maps navigation urgently, it took me around 3 minutes to set the route which simply crashed after a while... Not to mention it was failing on searching options in settings.

- system-squeak-arm64-ab-vndklite-gogapps-secure.img.xz - similar issues with location. Maybe Google Maps works fine, but car rental apps couldn't read location with permissions set.

Today I gave it one last chance, but on different rules. I flashed it to the serial Android 9, unlocked the bootloader and flashed AOSP 9.0 v123 from Phh Treble (system-arm64-ab-gapps-su.img). It's my trusted source. :) By now everything is more or less fine. Some heavy applications need time to think, but I'm a patient user.

What important I observed is memory average usage differences between two mention versions (Developer options > Memory use). AOSP 9.0 consumes 1.3GB whilst AOSP 12.1 was on 1.5GB at the beginning but increased up to 1.6GB.

Hope I will come back to you in some period of time and tell how stable it's been.

Btw. Have any of you any idea if it's possible to mod the serial Android 9 system files in a way that will block OTA updates? I tried locking automatic software updates from the developer options and deleting otacerts.zip file, but it recovers itself. In my opinion the very first version of the Nokia 2.2 OS was optimal.
[Nokia 2.2] python1320:
After trying a few android 13 gsis I finally managed to boot "lineage-20.0-20230621-UNOFFICIAL-gsi_arm64_vN.img" from https://sourceforge.net/projects/andyyan-gsi/files/lineage-20-light/

It has not rebooted for a day and lock screen worked and even camera appears to initially work. What doesn't work is internet unfortunately. The stock browser says name not resolvable no matter if I use private dns or not. There are likely many other bugs, such as calling, so don't try it, but it's a start. Without gapps the phone is surprisingly, even extremely snappy, but that won't last, of course.

Also getting a constant spam in logcat of:

McDaemon.ENIN: type=1400 audit(0.0:1062): avc: denied { read } for name="00000000.authtokcont" dev="mmcblk0p44" ino=243870 scontext=u:r:mobicore:s0 tcontext=u:object_r:mobicore_data_file:s0 tclass=lnk_file permissive=0

Also, on adb shell I can resolve and ping google.com but on android side no such luck. Will keep on investigating.

Found the same issue from trebledroid side (in my testing the nokia 2.2 only boots the light variant, which might actually be a good thing): https://xdaforums.com/t/gsi-13-lineageos-20-trebledroid-based.4517345/page-19#post-88337731
[Nokia 2.2] mvikrant97:
A more safe way to unlock and root

https://xdaforums.com/t/bootloader-...va-and-nokia-c2-tennen.4640922/#post-89156591
[Nokia 2.2] Sbaj45:
hii everyone long time ahh do anybody successed in flashing twrp from pc to mobile from sp flash tool to nokia 2.2 i want it either for android 9 or android 11 as i want to download/flash custom rom as stock rom do take much system storage
[Nokia 2.2] Sbaj45:
one more thing i have bought sandisk sd card of 128GB my phone storage is 16GB and i am trying to do the sdcard of 128GB as internal storage But applications not working also i have already unlocked the bootloader as followed step by step
[Nokia 2.2] patrickfrei:
Yes, I've successfully flashed TWRP on the Nokia 2.2 (after having unlocked the bootloader; using ADB). Just follow the guide on https://twrp.me/nokia/nokia2.2.html on how to download the TWRP-tool and vbmeta.img. Then apply the following commands:

adb reboot bootloader
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot twrp.img
fastboot reboot recovery
[Nokia 2.2] patrickfrei:
Hi,

I've also managed to boot lineage-20.0-20240215-UNOFFICIAL-gsi_arm64_vN.img from https://sourceforge.net/projects/andyyan-gsi/files/lineage-20-light/ . Internet connection is not working, but this can be resolved by executing the following command:

adb shell settings put global restricted_networking_mode 0

I've tried the very latest lineage-21.0-20240212-UNOFFICIAL-gsi_arm64_vN.img from https://sourceforge.net/projects/andyyan-gsi/files/lineage-21-light/ , but it's always stuck on the LineageOS boot logo screen.

Did you find a solution to make lineage 21 working properly?
[Nokia 2.2] patrickfrei:
This is the solution for the network issue: https://xdaforums.com/t/gsi-13-lineageos-20-light.4509315/post-87620773
[Nokia 2.2] SANJIIII:
Hii I am nokia 2.2 user i did unlock bootloader and followed all steps and everything was going fine since 1.5 years and also updated to latest version android 11 now after the use till now from last 20 days the system hangs on several apps while browsing or watching videos it restarts after 2 minutes hanging automatically then i downgraded the phone to android 9 still issue is arising help me solve the problem what it is causing this its troubling me
[Nokia 2.2] Fransmart:
Make Your Android Phone Extremely Fast

90% of everything you want/need to know about technology is/will be available on this blog

fmcooltech.blogspot.com
[Nokia 2.2] KarlS08:
So I got a problem. I followed this guide to downgrade to Android 9, and I have all the readback files necessary, but my IMEI info is gone even after factory resetting my phone. Any help is appreciated
[Nokia 2.2] areallydumbperson:
are you flashing the right vbmeta image if not ill send you the right one
[Nokia 2.2] RidyaGD:
i'm using vbmeta on HCTSW_WSP-1680-0-00WW-B01_600WW_9_20191005_huaqin_ZAL1670.full.lzma2.d056631a firmware, is it the same or no?

i'm gonna try this with this vbmeta.
[Nokia 2.2] areallydumbperson:
its the same which gsi are you using and how are you flashing it
[Nokia 2.2] areallydumbperson:
i'd like to add maybe firmware bases are messing your flash up flash system a and b from sp flashtool to get the original firmware base an try flashing the gsi
[Nokia 2.2] areallydumbperson:
hey i think i reproduces your problem im 70% sure it is firmware base just reflash system a and b in sp flashtool using the stock rom and then install your gsi
[Nokia 2.2] RidyaGD:
so i need to re-unlock bootloader again?

because if i re-flash the system it will locked bootloader again
[Nokia 2.2] areallydumbperson:
nope all the unlock stuff is in the nvram
[Nokia 2.2] areallydumbperson:
make sure you UNTICK everything EXCEPT system a and system b
[Nokia 2.2] RidyaGD:
ok i will try
[Nokia 2.2] RidyaGD:
done, and the condition right now is bootloop, so i need to flash a GSI now?
[Nokia 2.2] areallydumbperson:
it shouldnt bootloop thats weird
[Nokia 2.2] RidyaGD:
@areallydumbperson oh btw those vbmeta that you given to me should be use for what kind GSI rom?
[Nokia 2.2] RidyaGD:
oh no
[Nokia 2.2] areallydumbperson:
if its gotten that bad you might actually have to format all and unlock your device again but if you still have those files you had in the readback you have a bit of a headstart
[Nokia 2.2] RidyaGD:
fine i guess, i will do, it will be get a long time XD
[Nokia 2.2] areallydumbperson:
do you still have the files such as proinfo nvcfg and stuff
[Nokia 2.2] RidyaGD:
yes, so i don't need to readback again right?
[Nokia 2.2] areallydumbperson:
dont need to do readback just flash android with format all and dont connect to wifi and then do step 6 on the thread
[Nokia 2.2] RidyaGD:
okok got it
[Nokia 2.2] RidyaGD:
@areallydumbperson done, now what?
[Nokia 2.2] areallydumbperson:
you can try flashing again and we luckily unbricked your device so if it bricks again u can follow the steps
[Nokia 2.2] RidyaGD:
which i should do? flashing system a and b or GSI?
[Nokia 2.2] areallydumbperson:
gsi
[Nokia 2.2] RidyaGD:
about the vbmeta that you given to me before, is it for what kind GSI? lineage or arrowOS? since i already downloaded both the rom
[Nokia 2.2] areallydumbperson:
for any gsi its from the stock rom calyx hikari has also explained in a github you need to flash the one from the stock rom
[Nokia 2.2] RidyaGD:
ohhh i see... okay wait
[Nokia 2.2] RidyaGD:
@areallydumbperson sadly, it bricked again :(
[Nokia 2.2] areallydumbperson:
:( cant help then just unbrick it like last time and try again tomorrow maybe im experimenting on seeing which gsi works for me cause i havent found a perfect one yet
[Nokia 2.2] areallydumbperson:
i wished there was some kind of log to see what went wrong
[Nokia 2.2] RidyaGD:
no problem, anyway i would to say thank you so much for helping me even though we can't solve it :D , but it's okay i will not be disappointed at all :) .
[Nokia 2.2] areallydumbperson:
always happy to try and help even though it didnt really go as planned lol :D
[Nokia 2.2] areallydumbperson:
hey by the way https://xdaforums.com/f/treble-enabled-device-development-a-ab-roms.7260/ you can find roms here (has to be based on android 9.0) (sorry wrong link :P)
[Nokia 2.2] RidyaGD:
thx
[Nokia 2.2] areallydumbperson:
how'd it go
[Nokia 2.2] areallydumbperson:
managed to patch my boot image using magisk and i didnt need a custom recovery yay

this might be useless but u wont have to use mtk easy su everytime u reboot

i put my boot_a image on my phone and let magisk patch it using the magisk manager

i got the output file and used the MT6761 scatter put it on download only mode on sp flash tool and unticked all the boxes except boot_a and double clicked the file location to change it to the patched one i transferred onto my computer and flashed i and now i have magisk

if anyone isnt bothered to patch their boot image with magisk ill send mine below
[Nokia 2.2] areallydumbperson:
it is safe to update to the latest update on your nokia 2.2 it wont brick
[Nokia 2.2] areallydumbperson:
android 11 magisk has problems trying to boot so i deleted it
[Nokia 2.2] areallydumbperson:
GOOOD NEWS GUYS!! U CAN RESTORE YOUR LOST IMEI WITH A TOOL CALLED MODEM META!
[Nokia 2.2] areallydumbperson:
new findings not very important and seems like common sense but the recovery partition stuff is hidden you can see where the path would be in recovery logs which is:

/dev/block/platform/bootdevice/by-name/recovery 0 (dont know if the 0 is important)

later down shows a selinux command which is "sbin/recovery"
[Nokia 2.2] TheBeast941:
For me AndyYan's Lineage OS 16 GSI (from https://sourceforge.net/projects/andyyan-gsi/files/lineage-16.x/ ) and Mini Open GApps (from https://opengapps.org/ ) seems to have worked.
[Nokia 2.2] areallydumbperson:
did you install it manually
[Nokia 2.2] TheBeast941:
I ported TWRP then flashed it using that
[Nokia 2.2] areallydumbperson:
WHAAAAT YOU GOTTA SEND ME THAT TWRP IMAGE BRO
[Nokia 2.2] areallydumbperson:
like bro u must be some talented mf
[Nokia 2.2] TheBeast941:
It's not fully functional, flashing and ADB Sideload works but you have to format your phone to be able to read from internal storage, and MTP does not work.

With that in mind, here is the link: https://drive.google.com/file/d/1pWqu7rdTyu4q4Bos4zOGBrlxLoI1RJKp/view

Remember that this is not an official image and simply just a lazy port of TWRP by unpacking, swapping files and repacking so there might be bugs.

I would have wanted to get it working with Magisk but every time I tried tinkering with files I could only get Magisk or TWRP to work, but not both at the same time.
[Nokia 2.2] areallydumbperson:
oh ok with that in mind ill remove my magisk img
[Nokia 2.2] areallydumbperson:
i do fastboot boot TWRP.Img and it didnt work :(
[Nokia 2.2] areallydumbperson:
im gonna try with a fresh android system
[Nokia 2.2] areallydumbperson:
didnt work :((
[Nokia 2.2] TheBeast941:
That's because most MTK devices do not support fastboot boot, in order to access TWRP you must flash it to your boot partition then access recovery by plugging your phone into a PC and holding down Volume Down
[Nokia 2.2] areallydumbperson:
omg thanks ur a legend
[Nokia 2.2] TheBeast941:
I meant volume down instead of power down if you didnt see my edit, my bad
[Nokia 2.2] areallydumbperson:
credits to thebeast for showing me that recovery is in boot.img with his twrp image so i flashed original boot.image and dumped the recovery but youre going to have to dump the boot.img if u want to use it and repack
[Nokia 2.2] areallydumbperson:
guess what i found out its very easy to update ur twrp just replace the files in sbin
[Nokia 2.2] areallydumbperson:
Found out why mtp don’t work it’s trying to look for a file: /sys/class/android_usb/android0/f_mass_storage/lun0/file
[Nokia 2.2] 0DDA0:
Hi. I'm trying to follow the guide to unlock my bootloader, but I'm getting ERROR : STATUS_SHUTDOWN_CMD_EXCEPTION (-1073414142) , MSP ERROE CODE : 0x00. and

ERROR : STATUS_EXT_RAM_EXCEPTION (-1073414139) , MSP ERROE CODE : 0x00. errors on both tries to do a readback.

I'm thinking I might need to turn off/disable/delete ADB & Fastboot, because initially, I wasn't seeing a moving progress bar when powering on connected with both Volume down & power off button being pressed. My phone would simply enter fastboot blank screen with fastboot at the bottom left corner, then I'd obviously get an error from SPFT that's trying to do a readback, when I shut off from fastboot.

I restarted my PC, and redid the whole process. This time around, I kept holding the volume down and power button after the fastboot screen came up, and my phone screen went blank fully and SPFT readback bar immediately moved to 100% in red and stayed there for a minute or two, before popping up the first error message.

The second time I tried, the same thing happened but with a different error message - the second one posted above. I've not tried a third time.

From what I could find online, the second error code is because of wrong compatible firmware file. I use the same nokia 2.2 as the guide, used the scatter file from the HCTSW firmware folder in the guide, download agent file is the same default set that comes with SPFT(the guide says to leave it as so. - Importing the preloader_wasp.bin in the firmware folder gives an error, even, so I leave as default).

I use linux, so I can't install the linked drivers in the linked guide for backing up before flashing to unlock bootloader. But, I did install libpng 12 - i.e; libusb-dev.

What could be the problem pls? I initially did the ADB and fastboot from a general guide to unlocking bootloaders, till I reached the MTK based hiccup. I want to root my nokia 2.2 with twrp and magisk. Unlocking bootloader is just the first step.
[Nokia 2.2] nswed:
Would that work for Nokia 2.3 (TA-1206)? It has the same CPU, MT6761.

In case that fails, would testpoint method work to recover working firmware?

Thanks.
[Nokia 2.2] areallydumbperson:
try doing it on a windows machine maybe drivers are screwing up
[Nokia 2.2] areallydumbperson:
isnt recommended because of firmware differences and this method consists of flashing a modded bootloader and reflashing stock bootloader and restoring nvram backup
[Nokia 2.2] areallydumbperson:
quick search finds a private method for ta-1211
[Nokia 2.2] nswed:
It requires software that costs $30, yet it needs a key that costs $100. It's like $15 cheaper than the same phone. Not worth it.

Tried finding a cracked version. It doesn't run, as it needs the hardware.

If I reflash original firmware after I'm done with unlocking bootloader, will it work? I'm doing it for the sake of restoring IMEI.
[Nokia 2.2] areallydumbperson:
Ignore my post before the edit my bad can you elaborate more
[Nokia 2.2] nswed:
IMEI is corrupted.

I tried reflashing firmware, using tools to write IMEI, flashing nvram from other phone. Neither worked, maybe excluding nvram, as it fixed the MAC address problem. But serial number and IMEI are still empty.

I'm not sure where is IMEI written, I tried using grep to find this partition, I haven't found it.

IMEI tools need authentication, as secure boot is enabled.

I analyzed ABOOT partition, and I found OEM commands for entering META mode and flashing IMEI. Both need verification. There are exploits for secure boot, but not the verification.

And it's completely not worth to buy the box, as Nokia 2.4 would cost around that price, if including shipping.

-----

Nokia 2.2 and Nokia 2.3 are similar when it comes to hardware. Even if screen wouldn't work, it's not needed to unlock bootloader, so it isn't a problem. Problem is that I don't want to brick it permanently.
[Nokia 2.2] 0DDA0:
*Sigh* I don't know anyone with a windows system I can borrow. I'll have to delete files to free up space to install windows as dual boot. *Heavy sigh*
[Nokia 2.2] areallydumbperson:
i have an idea

if you have a scatter file use it but if not make one

try remove verification

flash an empty vbmeta

flash boot image without verification
[Nokia 2.2] areallydumbperson:
sorry for a late reply but if u have a usb stick u can do a windows to go install on the usb
[Nokia 2.2] nswed:
Just tried it. It stopped booting, "no valid os found". Currently trying to flash the backup I've made before the attempt.
[Nokia 2.2] areallydumbperson:
sorry!!
[Nokia 2.2] areallydumbperson:
found out nokia has realeased 2.2 source code i think it might be kernel http://nokiaphones-opensource.azureedge.net/download/phones/Nokia2.2_V1.630.tar.gz
[Nokia 2.2] RidyaGD:
sorry for late respond, i've unninstalled all adb driver and now i'm using non-minimal adb and it worked! Conclusion: don't ever use minimal adb.
[Nokia 2.2] RidyaGD:
thanks, i really need it.
[Nokia 2.2] 0DDA0:
It's no problem.

Of course! Thanks for the idea. KInd of gave up on/put on hold the rooting because of the windows thing. This is an alternative I can do.
[Nokia 2.2] areallydumbperson:
happy to help and im happy to see that you got a gsi working on your phone
[Nokia 2.2] areallydumbperson:
Yep
[Nokia 2.2] areallydumbperson:
seems like my reply didnt attach to your reply but yes you can in fact unlock your nokia 2.2
[Nokia 2.2] areallydumbperson:
Android 11 Magisk Patched Boot Image (Yes after unlock you can in fact update to android 11 without the device getting bricked)

Flashing Method:

fastboot flash magisk_patched-23000_QNm3D

fastboot reboot

android 10 image coming soon if you managed to update to android 10
[Nokia 2.2] areallydumbperson:
I couldn’t get magisk to work but to make it up I made an android 10 spflash tool file which I want to send out

(build 2300)
[Nokia 2.2] areallydumbperson:
i have got what seems to be every oem command from the lk file

oemkeystore
oem p2u
oem off-mode-charge
oem key
oem lks
oem scp_status
oem scp_log_thru_ap_uart
oem usb2jtag
oem ultraflash:
oem ultraflash_en
oem secureBoot getfusestatus
oem battery getcapacity
oem getversions
oem alive
oem getprojectcode
oem getUID
oem auth_timecount clr
oem auth_timecount set count
oem auth_timecount get
oem auth_start
oem permission
oem getpermissions
oem getsecurityversion
oem md5
oem repair
oem simunlock
oem simlock
oem simlock_status
oem getdllname
oem unlock
[Nokia 2.2] areallydumbperson:
if you dont like the wait 5 seconds message after bootloader unlock i made a modded lk image that has removed the orange state message

(android 9 build 1680)
[Nokia 2.2] areallydumbperson:
since the message is gone and the bootloader is still unlocked heres a picture of an edited logo.bin i made View attachment 5353109
[Nokia 2.2] RidyaGD:
Finnally, not flashbang XD. Great work!
[Nokia 2.2] areallydumbperson:
thanks :)
[Nokia 2.2] brewzip:
I noticed that Windows Defender labels mtk-easy-su as ransomware.
[Nokia 2.2] areallydumbperson:
same here but we all know defender isnt the greatest
[Nokia 2.2] brewzip:
If I follow the procedure, can I eventually return back to a stock unrooted/locked OS that can receive OTA updates and passes safetynet?
[Nokia 2.2] areallydumbperson:
You can but there will be no way to write a serial num and this unlock procedure still preserves ota functionality
[Nokia 2.2] AAditya846:
Something's going wrong with me. Please tell me how did you flashed it? (The command I mean).
[Nokia 2.2] areallydumbperson:
fastboot flash boot TWRP.img
[Nokia 2.2] AAditya846:
Thanks a lot.
[Nokia 2.2] BobStrop:
Hi. Firstly, thankyou very much for putting the time and effort into this for someone like me who has limited knowledge and is trying to learn...

I am slightly confused on step 1 with the readback... in the youtube video at 0:57 you add the "dump.img" file. I am not sure where that is to come from?

Any help much appreciated!
[Nokia 2.2] AAditya846:
You have to create that. By default the name is ROM_0 (or ROM_2, ROM_2,...) when you do the readback. He just renamed it to dump.img

I hope this is what you wanted to know.
[Nokia 2.2] BobStrop:
View attachment 5375299

Thankyou!

I have done that but now i get this error message?

Did i use the correct value here?
[Nokia 2.2] TheBeast941:
Make sure to download and install the mediatek drivers if you haven't done so yet just search for "mediatek vcom drivers" on google (or if you don't want to waste time manually installing it use the drivers from this site https://gsmusbdriver.com/nokia-2-2 )
[Nokia 2.2] AAditya846:
Try this if installing/updating Mediatek drivers didn't work: As soon as you get that error, hit space bar (OKAY) and immediately restart readback. You might have to do it a couple of times before readback starts.

I've encountered the same problem many times with several phones.
[Nokia 2.2] areallydumbperson:
Wng

Wrong read back address

for both readbacks use address 0xd4000000
[Nokia 2.2] BobStrop:
Ok, I have downloaded the Mediatek drivers and have changed the readback Length to 0xd4000000.

On Readback, it stays at 0% til about 4 minutes and then get the same error code...

Again, thankyou all
[Nokia 2.2] areallydumbperson:
, I have downloaded the Mediatek drivers and have changed the readback Length to 0xd4000000.

I've had this problem with the newest driver use the ones on the spflashtool website it works with my Nokia 2.2

Before u install the spflashtool drivers make sure to delete the old ones in device manager so when you are deleting the driver make sure to check the box that says delete driver software and then install so flash tool drivers
[Nokia 2.2] TheBeast941:
Try the readback address you highlighted before, it may have failed due to missing drivers
[Nokia 2.2] BobStrop:
Ok, i uninstalled the original Mediatek driver and installed the one from the SPFlash, although they both were version 1.1352. And tried with all these readback lengths and still get the same error...

Is it possible the readback length value i am using is incorrect? I have no idea what it means and have only tried the ones mentioned in the Youtube video, the readback link (In the first post) and 0xd4000000 (as suggested by areallydumbperson).

Does it matter where the ROM file is saved?

Am i missing something important from this point:

For this case, you need to keep Download Agent file as the same came with SP Flash Tool, and altunlock-MT6761_Android_scatter.txt

??