yashsingh1/xdaforums huggingface dataset:
[Nokia 2.2] areallydumbperson:
I wish we could pull kernel logs but nope because recovery is locked down BTW I think I know what's stopping us from entering fastbootd (its only accessible from adb and the device has to show as a recovery device) but how's it gonna show as a recovery device if its not authorized so we might need to fix the adb issue if we want to have a chance of entering fastbootd yes I know it could be pointless but its better than not trying right?
[Nokia 2.2] areallydumbperson:
Some news: I have cracked hmd`s hmd devicekit tool for hmd phones and the tool was extraordinary it looked like pretty much all of its functions one were used by sending boot images by fastboot boot for even erasing frp and user data and entering metamode (weakness in the program was it not being obfuscated which is shocking to know this is engineering tools that people make money off by selling them like it's a secret method but all it takes is ONE line of code to be changed and all the authentication has been bypassed)
[Nokia 2.2] areallydumbperson:
Also mt6761 database files for what might this phone be is in the devicekit I didn't have time to test it in the sn write tools
[Nokia 2.2] TheBeast941:
You can temporarily boot into images using this tool?

Please send me the files if it is indeed true. I want to test it out as I've been trying to fastboot boot images a lot of times without success.
[Nokia 2.2] areallydumbperson:
Sure will!
[Nokia 2.2] areallydumbperson:
i have a theory on a more simpler unlock where u still need to downgrade to android 9 but you dont risk your imei being wiped and then patching the sec1 and seccfg it sounds crazy but i might try it
[Nokia 2.2] areallydumbperson:
only difference in the hex editor when inspecting both files is sec1 on the unlocked on having some random bytes on it
[Nokia 2.2] areallydumbperson:
LMAO FLASHING THE SECCFG ON ITS OWN UNLOCKED THE BOOTLOADER
[Nokia 2.2] areallydumbperson:
after a second unlock the random bytes stayed the same so yeah next thing is asking someone to dump their unlocked seccfg for me to compare
[Nokia 2.2] areallydumbperson:
TWRP Ported To Android 10 (Thanks Hovatek And Beast)

I used hovatek's script to port to android 10 but i had to edit some file names to fix recovery boot

And then i used beast's twrp.fstab to fix partitions not mounting

anyways installation stuff

fastboot --disable-verity --disable-verification vbmeta "any vbmeta image u have.img"

fastboot flash boot "TWRP Android 10.img"

fastboot format userdata

fastboot reboot recovery

YOU HAVE TO FORMAT USERDATA OR ELSE TWRP STAYS ON THE SPLASH SCREEN

EDIT: BACKUP YOUR ORIGINAL BOOT IMAGE IT WONT BOOT INTO ANDROID
[Nokia 2.2] SB3P:
As of Nokia 2.2, I seemed to managed to hard brick it (I believe I flashed multiple partitions wrong, including boot, system and recovery) – there was no sign of life from my phone, even it didn't vibrated at boot or went to fastboot mode – but the serial port (i.e Mediatek COM via USB functionality) still worked fine and I could reflash it again with stock Android 9 image using SP Flash Tool... From my experience, ARM SoC usually handles the boot process using its firmware included on the separate memory device like EEPROM instead of flash, so I guess that's something similar for the MTK devices... Anyway, you might find that note useful when you actually manage to hard brick it...

Personally, I doubt corrupted or wrong system and boot image would cause the hard brick, but rather a soft brick in worst scenario.
[Nokia 2.2] TheBeast941:
I believe I may have fixed the headphone jack issue on the Android 12 GSI.

Please test to see if the attached Magisk module fixes the headphone jack.

Tested on my phone with Build Number SPB4.210715.014 (ARM64+GMS variant)

If the headphone icon isn't showing up in the status bar when you connect your headphones then you can install "System UI Tuner" by Bryan C and enable the "headset" option in "Status bar". The app is merely a shortcut to the hidden System UI Tuner in Android and can be removed once you enable the headset icon if disabled.

It should work in most GSIs which have no headphone jack output, but you would probably need to edit the zip yourself to put the overlay in the right folder (either /system/overlay or /system/product/overlay, depending on which one is present on the GSI).
[Nokia 2.2] sasan50cent:
any stable custom roms for this phone yet ? android 11 is very laggy...
[Nokia 2.2] areallydumbperson:
No one has compiled a ton yet
[Nokia 2.2] TheBeast941:
If you are on GMS Android 12 Beta 4 GSI, do not attempt to flash the Beta 5 GSI. It does not boot for me.

(if you like taking risks and want to attempt please do and share any steps you have taken if successful)
[Nokia 2.2] sasan50cent:
ok thanks, another question, how can i root after unlocking bootloader, cause the factory reset in the last step erases root, right ? and can i update the magisk ?
[Nokia 2.2] TheBeast941:
The root in the guide is temporary (i.e. after each reboot you would have to use the mtk easu su app to gain root again). For a permanent root you need to take your stock boot.img, patch it through Magisk Manager and then flash that through fastboot or SP Flash Tool
[Nokia 2.2] sasan50cent:
do you mean this way ? after readback and extract boot.img from dump right now that device is unlocked ?

Installation

The Magic Mask for Android

topjohnwu.github.io
[Nokia 2.2] TheBeast941:
Yeah

If you are going to stick to Android 9 you don't have to readback again you can just get it from the firmware file in this guide.

If you updated to Android 10 or 11 you would need to use SP Flash Tool to readback and extract the boot.img from that.

Once you got the boot.img follow the guide you linked and you should be good to go.

If successful you can uninstall the MTK Easy Su app as you won't be needing it anymore.
[Nokia 2.2] sasan50cent:
Thanks friend, you mean that i have to temp root first, and then do as you say?

and sorry, another question, if i update to android 10 or 11, bootloader stays unlocked ?
[Nokia 2.2] TheBeast941:
No, you don't need to temp root to patch the boot.img. In fact you can remove it right away since the patched boot.img will give you permanent root access.

And yeah it stays unlocked. (but if you do update you can't use the same magisk image you have to readback to get the boot.img to patch)
[Nokia 2.2] sasan50cent:
Thanks friend, really appreciate your help, gonna do this right now.

UPDATE : there is two boot files, boot_a.img and boot_b.img, which one should i use ? they are the exact same size.

and i can't extract boot_b.img, it says "enexcpected end of file".
[Nokia 2.2] areallydumbperson:
Boot_a
[Nokia 2.2] TheBeast941:
To find which one to use, enter Fastboot mode and send fastboot getvar all then look through the lines to find current-slot. If it is _a, use boot_a.img and if it is _b, use boot_b.img
[Nokia 2.2] sasan50cent:
used boot_a before reading this, phone is gone black and vibrates after some time, flashed the original boot_a.img even within the black screen at still doesn't boot ! what now ?
[Nokia 2.2] sasan50cent:
done the process with this file you said and bricked the phone, it doesn't boot now, only vibrates sometimes, say nothing if you're not sure about anything.
[Nokia 2.2] TheBeast941:
Have you copied the image over to your phone first and patched it through Magisk? If not then you should be able to flash the stock boot.img through fastboot. After that type fastboot reboot and wait patiently for the phone to boot up. The boot.img file

(the one with your current active slot) from your readback should work.
[Nokia 2.2] sasan50cent:
flashed the unlock firmware again via sp flash tool and now the phone booted, should i use the "fastboot getvar all" command now ? and yes i have copied the boot_a.img in my sd, then patched it then copied to pc again, then flashed it using fastboot flash boot command.
[Nokia 2.2] TheBeast941:
If you flashed the unlock firmware again then you need to flash your IMEI files (the 7 files the guide told you to save) else you will have no IMEI. (basically just go back to the step where the guide tells you to flash your phone with the scatter file and use the 7 files from before).

With that out of the way, if you plan on sticking to Android 9, then you can use the boot.img from the firmware file so that you can patch it and flash via fastboot.

Else, once you update to Android 10 or 11 you can use SP Flash Tool Readback to get the boot.img. Then you can reboot to fastboot and use the command to get the current active slot so you can extract the correct boot.img and reboot into Android and copy that to your phone and patch it then flash via fastboot.
[Nokia 2.2] sasan50cent:
that 7 files are in the first dump or 2nd dump ?

by the way that command gave me boot_a, so what to do now ?

and one more thing, phone forces to upgrade to android 11, why ? i want to stay with 9 and because of that i can't get to home screen to restore those 7 files.
[Nokia 2.2] TheBeast941:
From both, whatever files the guide tells you to save from both the first dump and the second dump.

Since you stated you wanted to stick with Android 9 you don't have to care about that command and you can simply use the boot.img from the firmware file

That's because Android's default settings cause it to auto update. To work around this, you would have to reflash the firmware file then on Android Setup remove your sim card and skip Wi-Fi connection then when it is set up, activate Developer Settings and turn off the auto update option then reinsert sim card and enable Wi-Fi again so you can download the mtk easy su app to restore your IMEI files

Basically just follow the last part of the guide again and then use the boot.img from the firmware file and patch it through Magisk Manager.
[Nokia 2.2] sasan50cent:
thank god i have both dumps, thank you friend, you helped so much, another last question, boot.img from unlocked firmware ?

Edit : the wifi screen does not have skip option.
[Nokia 2.2] TheBeast941:
The boot.img firmware that you used to flash Android 9. You'll find it at the place you extracted the ROM for use with SP Flash Tool.
[Nokia 2.2] sasan50cent:
ok, thank you so much, think i'm forced to use laggy android 11, readback and then use boot.img, i don't know the length value for readbacking android 11.
[Nokia 2.2] TheBeast941:
If you know your current slot (a or b) then open the scatter file in a text editor and look for boot_a (or boot_b). Then use the linear (or physical) start address for that section as the start address for the readback and the partition size as the length value then readback. Once finished you will get your boot image (you don't need to extract it).

Do the same for vbmeta_a (or vbmeta_b), so you have your boot image and vbmeta image.

Reboot into fastboot then send these commands:

fastboot flash --disable-verity --disable-verification vbmeta (name of vbmeta image).img
fastboot flash boot (name of boot image).img
fastboot reboot

If successful you should be rooted with Magisk.
[Nokia 2.2] sasan50cent:
do i have to patch vbmeta with magisk too ?

really sorry for too many questions, do android 11 update restore my imei ?
[Nokia 2.2] TheBeast941:
No, vbmeta is just to disable verification so you can flash unsigned images (i.e. custom roms if they ever become available, GSI's, etc)

No, the partition restore does that (from the guide). The guide used the mtk easy su app to gain temporary root to be able to do that but since you will be flashing Magisk to your boot partition first you will already have permanent root, so you can follow the last part (Step 7) of the guide where you copy over the IMEI files to phone, send the commands and perform a factory reset.
[Nokia 2.2] sasan50cent:
i do not copied those 7 files after flashing unlocked firmware again, and immediately updated to android 11 using the phone itself, now it shows my imei, even without restoring those 7 files.
[Nokia 2.2] TheBeast941:
You won't need to do that step then. Just flash the boot.img via fastboot and you should be good to go.

Just a handy tip: Keep the files in case it turns out that you do need them in the future. If you like experimenting with the phone then it would be very handy to keep the files in case your IMEI gets wiped.
[Nokia 2.2] sasan50cent:
extracted Nokia_2.2_V3.270_OTA.zip's payload.bin file using payload dumper, now i'm gonna patch boot.img and use the extracted vbmeta.img .

EDIT : finally got root on android 11 thanks to you my friend :-) .
[Nokia 2.2] inadd:
I'm stuck on step 1. I use SP Flash Tool 5.1924 and select altunlock-MT6761_Android_scatter.txt as scatter file. I follow the video but when I try to read back I get 'The Preloader file format is invalid. Please retry another official load'. My model is TA-1188 and I also tried the other scatter file from the zip file.

And what's your best guess to increase performance? Android 9 or 11? Stock or custom?
[Nokia 2.2] areallydumbperson:
Tell me the list of files in ur folder

Android 9 is the best to use imo lineage or stock I prefer lineage tho

And make sure u fully extracted the zip file
[Nokia 2.2] inadd:
I only extracted the .txt files but I needed all files. Thank you very much!
[Nokia 2.2] inadd:
By default the system takes 11 GB of storage. It's a known problem. Is there a way to merge slots A and B into one? I'm on Android 9 with root

https://xdaforums.com/t/is-it-possible-to-remove-the-a-b-partitioning-to-save-space.3806365/

Manually create A/B partitions

I have a Xiaomi Mi 6X which is the Chinese version of A2. There is a way to convert it into A2, but OTA updates won't work because 6X has only A partition. I'm not sure, but I've read, it is possib...

android.stackexchange.com

Is Android 11 smaller? How to free more space or how to move apps to sd without formatting it as internal storage?
[Nokia 2.2] areallydumbperson:
Converting to aonly will be near impossible
[Nokia 2.2] inadd:
Sadly Apps2SD does not work.

What if the A/B partition layout can stay the same. You remove some folders from system_B and mount B during boot of A. Then move some system folders from A to B and symlink them so the ROM uses space from B without knowing.

I don't know where to put a shell script that does the mounting.
[Nokia 2.2] areallydumbperson:
Idk maybe unpack boot image and try experimenting there u might get lucky
[Nokia 2.2] ugeen75:
Hello! I had this phone in the bootloop on the Android One label. I flashed it with erasing memory using the firmware from step 1 and SP Flashtool. Now it is not responding to any taps at all. How can I fix this? Thank you very much in advance.
[Nokia 2.2] areallydumbperson:
Do u mind being a bit more detailed and if the phone is still plugged into the pc unplug it and then press the power button and also if u didn’t backup ur nvram you have lost your imei and serial number
[Nokia 2.2] ugeen75:
SP Flashtool detects it, but the smartphone does not respond to any pressing of the volume down button + power button or up button + power button. The screen does not light up. Is there a chance to restore it?
[Nokia 2.2] ugeen75:
I have already pulled out the battery and tried to reboot it. But the smartphone doesn't sell signs of life. Although in SP Flashtool, the firmware goes with a green sign at the end.
[Nokia 2.2] areallydumbperson:
Try reflashing
[Nokia 2.2] ugeen75:
Ok, i will try tomorrow.But is there any original image of the system with which this smartphone came?
[Nokia 2.2] Starkow:
Добрый день всем. На днях попросили телефон, вроде не правильно, протерли IMEI и SN, подскажите как быть в такой ситуации, может у кого есть эти файлы для оживления питомца?

Телефон Nokia 2.2 TA 1188. Заранее спасибо за помощь.
[Nokia 2.2] areallydumbperson:
Serial number cannot be written but imei can be written using modem meta

Серийный номер нельзя записать, но imei можно записать с помощью мета модема
[Nokia 2.2] Starkow:
Tell me how to do it point by point?
[Nokia 2.2] areallydumbperson:
download the modem meta program launch the setup and then install it and after it’s installed press the start button and connect your phone powered off and the volume down button held down then you can fix your imei
[Nokia 2.2] Starkow:
Тhank you
[Nokia 2.2] SMd Ashiq:
I've found one of the best gsi ROM for this:
[Nokia 2.2] areallydumbperson:
Nice but android 9 gsi roms aren’t our focus right now we have to find a working android 11 gsi rom (a custom one not a phh treble or google)
[Nokia 2.2] areallydumbperson:
Android 9 TWRP Tree (most likely will work)

i tried to build with travis ci cause of how high powered the vms are but it kept failing (clang wasnt found but it was in the same folder) if anyone wants to tackle getting non ported twrp on the device (might be useless) then here is the stuff

edit: THESE TREES DO NOT WORK PLEASE SEE BOTTOM COMMENT FOR WORKING TREE

GitHub - SmallPP420/finally-building-twrp-for-my-device-: i beg this works

i beg this works. Contribute to SmallPP420/finally-building-twrp-for-my-device- development by creating an account on GitHub.

github.com

let me know if there are any errors
[Nokia 2.2] areallydumbperson:
android 11 tree i generated by using scripts

GitHub - Fatso420/android_device_wasp-nokia

Contribute to Fatso420/android_device_wasp-nokia development by creating an account on GitHub.

github.com

GitHub - Fatso420/vendor_nokia_wasp

Contribute to Fatso420/vendor_nokia_wasp development by creating an account on GitHub.

github.com

the previous trees i posted are android 9/10

android 9/10 trees (not mine)

GitHub - AndroidBlobs/device_nokia_Wasp: Dummy device tree for Nokia 2.2

Dummy device tree for Nokia 2.2. Contribute to AndroidBlobs/device_nokia_Wasp development by creating an account on GitHub.

github.com

GitHub - AndroidBlobs/vendor_nokia_Wasp: Vendor tree for Nokia 2.2

Vendor tree for Nokia 2.2. Contribute to AndroidBlobs/vendor_nokia_Wasp development by creating an account on GitHub.

github.com
[Nokia 2.2] areallydumbperson:
Hey guys I’m working on getting orange fox on this device rn I’m just doing android 9 (builds are finishing I need to get it to boot) and also shoutout to the people in the orange fox developer telegram they are actual legends
[Nokia 2.2] areallydumbperson:
News: i have a working twrp tree for the nokia 2.2

twrp and magisk can b installed on one image wooohooo

GitHub - halal-beef/FixedTree

Contribute to halal-beef/FixedTree development by creating an account on GitHub.

github.com
[Nokia 2.2] areallydumbperson:
Guide: installing my **built** twrp on android 9

if you dont follow this guide correctly after reboot twrp will break

first flash twrp

fastboot flash boot recovery.img

above command wont replace ur boot with recovery itll boot into system and twrp just fine

fastboot erase userdata

fastboot reboot recovery

now in twrp

wipe userdata to remove encryption

click the triangle button at the bottom

reboot recovery (NOT SYSTEM)

ok now go onto install tab and install the zip below this will fully remove encryption so ur twrp wont break
[Nokia 2.2] areallydumbperson:
PITCH BLACK RECOVERY BUILT!

how to flash

fastboot flash boot recovery.img

fastboot erase userdata

fastboot reboot recovery

now in pitchblack erase internal storage to fully remove encryption

reboot into recovery (not system)

flash the zip below
[Nokia 2.2] areallydumbperson:
Hello people! i have orangefox built and working but i want to fix some screen issues before releasing
[Nokia 2.2] areallydumbperson:
im working on fixing orange fox right now but decided to build a unique recovery i found

SkyHawkRecoveryProject

how to flash?

fastboot flash boot recovery.img

fastboot erase userdata

fastboot reboot recovery

click wipe on your phone

click format data

type yes and press enter

press the check mark

flash the zip i provided below
[Nokia 2.2] areallydumbperson:
THE LONG AWAITED ORANGEFOX BUILD!

i couldnt get the screen fixed sadly but you can visit my twrp device tree repo in github

how to flash?

fastboot flash boot OrangeFox-Unofficial-Wasp.img

fastboot erase userdata

fastboot reboot recovery

erase internal storage to remove encryption

reboot into recovery

flash zip below
[Nokia 2.2] areallydumbperson:
FOR ALL RECOVERIES PLEASE ROOT WITH MAGISK STRAIGHT AFTER INSTALLING THE ZIP (FORCE ENCRYPT MIGHT NOT FULLY BE DISABLED IF YOU DONT)
[Nokia 2.2] areallydumbperson:
Addon patches for orangefox:

this fixes orangefox addons

first boot your device into recovery from fastboot

extract extractme.zip

go inside extractme folder

open a cmd prompt window in the folder

now do this command:

adb sideload sdcard /sdcard

sdcard is what custom recoveries mount as like a data so it wont matter if u dont have a micro sd card in ur phone

patches for other recoveries coming soon
[Nokia 2.2] areallydumbperson:
pitchblack addon patches:

This will fix tools not being able to run in pitch black recovery

first boot into recovery mode thru fastboot

now extract the provided zip file

go inside the folder and open a cmd window

now type

adb push PBRP /sdcard/
[Nokia 2.2] areallydumbperson:
SkyHawk Patch (this isnt by me but from the officical skyhawk team :D)

this will fix non working addons

all you have to do is

boot your device into recovery thru fastboot

adb sideload SHRP_AddonRescue_v3.1_Wasp-1636884361.zip

adb reboot recovery
[Nokia 2.2] areallydumbperson:
MANDATORY TWRP UPDATE!

Bug Fxes: Fixed Codename and Branding issues

Changelog: update to the newest twrp 3.6.0

for new installations

fastboot flash boot recovery.img

fastboot erase userdata

fastboot reboot recovery

erase internal storage in twrp

install zip provided (NEEDED)

ROOT WITH MAGISK IN THE RECOVERY STRAIGHT AFTER (NEEDED)

For people who already installed the previous version of my twrp

fastboot flash boot recovery image

fastboot reboot recovery

(all my builds will be posted on github from now on)

(also ive made new trees without room service errors so u can use them with build servers no issues) you can find them at https://github.com/SmallPP420/new-test-9/tree/main

my builds are located at https://github.com/SmallPP420/Nokia-2.2-Recovery-Builds
[Nokia 2.2] areallydumbperson:
News: I nearly have a working android 10 tree

Bad news: the kernel keeps being wrong so twrp won’t boot and sometimes the system will bootloop if anyone has potential ideas please send me a message
[Nokia 2.2] areallydumbperson:
Decided to give up on a10 and I’m having a go at a11 😳if it builds I let u guys know
[Nokia 2.2] areallydumbperson:
It didn’t sadly
[Nokia 2.2] Sbaj45:
No dont go for android 11 upgradation it is the one of the worst android 11 it is too much buggy and laggy i almost got irrited with this android 11 all my files were corrupted and now whatever i am playing games or some google apps got crashes in 20-30 sec while entering the apps or games
[Nokia 2.2] Sbaj45:
Is there any possibility to downgrade from Android 11 to android 9 i am tired of patience for nokia developers to provide patchs for bugs, lagging and hanging also crashing issues

please guide me to downgrade from android 11 to android 9

i have not played any game from 2 months i waited too much
[Nokia 2.2] Sbaj45:
My device is Nokia 2.2 android one Ram: 2 GB Storage:16 GB
[Nokia 2.2] areallydumbperson:
Yeah there is

If you don’t want to unlock the bl DO NOT FOLLOW CALYX HIKARIS PROCEDURE AND FOLLOW THE ONE BELOW

open sp flash tool

Click browse on scatter file and browse to

MT6761_Android_Scatter (NOT ALTUNLOCK)

MAKE SURE UR DOWNLOAD MODE ISNT FORMAT ALL + DOWNLOAD OR FIRMWARE UPGRADE

SELECT DOWNLOAD ALL

and press download

While the phone is powered down hold the volume down and connect a usb cord which is plugged in to ur computer

This won’t erase ur imei but YOUR DATA WILL BE ERASED
[Nokia 2.2] Sbaj45:
So first of all I need to download the firmware