FORUMS

[GUIDE] How to install Android 10 internal update for Nokia 5.1 Plus

436 posts
Thanks Meter: 655
 
Post Reply Email Thread

WARNING: This package is never meant for non-experienced members!
Chinese translation of this guide is on the way. (本教程的中文版仍在编写中)


Code:
#include <std_disclaimer.h>
/*
* 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.
*/
We changed the flashing procedure this time, so it will:
- Prevent noobs without any experiences
- Avoid installing many dumb security updates

Target: PDA-311A-0-00WW-B02

Now it's available for public.

Please download and install this to your phone via ADB sideload of 874 command: https://android.googleapis.com/packa...614317510e.zip

To Chinese Nokia X5 owners: Please convert your phone to Global Nokia 5.1 Plus before flashing, and don't forget to change SKUID to 600WW.

What's the requirement for flashing?
- Nokia 5.1 Plus X5 with Global Android one firmware installed (any version)
- Rooted phone (either MTK-SU or regular root method are OK)

Or:
- The Bootloader is Unlocked

Here's how (if rooted):
Quote:

Due to the spelling error of the script, the correct one is attached below.
Please replace it to the one inside package, if you want to use "Click_Me_To_Flash.cmd"..


- Download the package and extract it. You'll get 17 img files, and 6 other files.
- Create one directory called "pda-3110" on your phone's internal storage. THIS IS CASE SENSITIVE, so don't use uppercase "PDA".
- Copy all the img files to the pda-3110 directory.
- Execute this under command prompt:
Code:
adb shell
- Check what's your current slot:
Code:
getprop ro.boot.slot_suffix
Take a note whether the slot is "_a" or "_b".
- Grant root permission:
Code:
su
If necessary, grant root permission on the phone. If grant successful, you'll see the dollar ($) symbol will become into hash (#) symbol.


If your phone is rooted with MTK-SU, you must do this:

- Open Magisk Manager and install Magisk on another slot.
After installation complete, stay at installation complete screen and don't reboot.


- Now execute following commands.
If current slot is "_a", then execute these:

Code:
dd if=/storage/emulated/0/pda-3110/boot.img of=/dev/block/bootdevice/by-name/boot_b
dd if=/storage/emulated/0/pda-3110/cam_vpu1.img of=/dev/block/bootdevice/by-name/cam_vpu1_b
dd if=/storage/emulated/0/pda-3110/cam_vpu2.img of=/dev/block/bootdevice/by-name/cam_vpu2_b
dd if=/storage/emulated/0/pda-3110/cam_vpu3.img of=/dev/block/bootdevice/by-name/cam_vpu3_b
dd if=/storage/emulated/0/pda-3110/cda.img of=/dev/block/bootdevice/by-name/cda_b
dd if=/storage/emulated/0/pda-3110/lk.img of=/dev/block/bootdevice/by-name/lk_b
dd if=/storage/emulated/0/pda-3110/logo.img of=/dev/block/bootdevice/by-name/logo_b
dd if=/storage/emulated/0/pda-3110/md1img.img of=/dev/block/bootdevice/by-name/md1img_b
dd if=/storage/emulated/0/pda-3110/odmdtbo.img of=/dev/block/bootdevice/by-name/odmdtbo_b
dd if=/storage/emulated/0/pda-3110/preloader.img of=/dev/block/bootdevice/by-name/preloader_b
dd if=/storage/emulated/0/pda-3110/scp.img of=/dev/block/bootdevice/by-name/scp_b
dd if=/storage/emulated/0/pda-3110/spmfw.img of=/dev/block/bootdevice/by-name/spmfw_b
dd if=/storage/emulated/0/pda-3110/sspm.img of=/dev/block/bootdevice/by-name/sspm_b
dd if=/storage/emulated/0/pda-3110/system.img of=/dev/block/bootdevice/by-name/system_b
dd if=/storage/emulated/0/pda-3110/systeminfo.img of=/dev/block/bootdevice/by-name/systeminfo_b
dd if=/storage/emulated/0/pda-3110/tee.img of=/dev/block/bootdevice/by-name/tee_b
dd if=/storage/emulated/0/pda-3110/vendor.img of=/dev/block/bootdevice/by-name/vendor_b


If current slot is "_b":

Code:
dd if=/storage/emulated/0/pda-3110/boot.img of=/dev/block/bootdevice/by-name/boot_a
dd if=/storage/emulated/0/pda-3110/cam_vpu1.img of=/dev/block/bootdevice/by-name/cam_vpu1_a
dd if=/storage/emulated/0/pda-3110/cam_vpu2.img of=/dev/block/bootdevice/by-name/cam_vpu2_a
dd if=/storage/emulated/0/pda-3110/cam_vpu3.img of=/dev/block/bootdevice/by-name/cam_vpu3_a
dd if=/storage/emulated/0/pda-3110/cda.img of=/dev/block/bootdevice/by-name/cda_a
dd if=/storage/emulated/0/pda-3110/lk.img of=/dev/block/bootdevice/by-name/lk_a
dd if=/storage/emulated/0/pda-3110/logo.img of=/dev/block/bootdevice/by-name/logo_a
dd if=/storage/emulated/0/pda-3110/md1img.img of=/dev/block/bootdevice/by-name/md1img_a
dd if=/storage/emulated/0/pda-3110/odmdtbo.img of=/dev/block/bootdevice/by-name/odmdtbo_a
dd if=/storage/emulated/0/pda-3110/preloader.img of=/dev/block/bootdevice/by-name/preloader_a
dd if=/storage/emulated/0/pda-3110/scp.img of=/dev/block/bootdevice/by-name/scp_a
dd if=/storage/emulated/0/pda-3110/spmfw.img of=/dev/block/bootdevice/by-name/spmfw_a
dd if=/storage/emulated/0/pda-3110/sspm.img of=/dev/block/bootdevice/by-name/sspm_a
dd if=/storage/emulated/0/pda-3110/system.img of=/dev/block/bootdevice/by-name/system_a
dd if=/storage/emulated/0/pda-3110/systeminfo.img of=/dev/block/bootdevice/by-name/systeminfo_a
dd if=/storage/emulated/0/pda-3110/tee.img of=/dev/block/bootdevice/by-name/tee_a
dd if=/storage/emulated/0/pda-3110/vendor.img of=/dev/block/bootdevice/by-name/vendor_a


- Now back to Magisk Manager.
If your phone is rooted with MTK-SU:

Tap Reboot on installation complete screen now, and enjoy Android 10.


If your phone is rooted with regular method (which is, latest Magisk installed properly):

- Open Magisk Manager and install Magisk on another slot.
After installation complete, reboot immediately. Then you should be able to enjoy Android 10 with rooted state.




And here's how (if bootloader unlocked and prefer flashing via fastboot):

- Download the package and extract it. You'll get 17 img files, and 6 other files.
- Use some hex editor (e.g. HxD) to open preloader.img file, and remove the content from 0x0-0x7FF, save it.
Because fastboot will flash preloader.img file you inputted to the offset 0x7FF of actual fastboot partitions, so we must remove header from preloader.img dump, otherwise it will kill the phone.

- After removing header, file size should be 284,672 bytes (278 KiB).

Content range for reference:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  45 4D 4D 43 5F 42 4F 4F 54 00 00 00 01 00 00 00  EMMC_BOOT.......
00000010  00 02 00 00 FF FF FF FF FF FF FF FF FF FF FF FF  ....ÿÿÿÿÿÿÿÿÿÿÿÿ
00000020  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

000007E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000007F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000800  4D 4D 4D 01 38 00 00 00 46 49 4C 45 5F 49 4E 46  MMM.8...FILE_INF
00000810  4F 00 00 00 01 00 00 00 01 00 05 05 10 0F 20 00  O............. .
And here's after removed:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  4D 4D 4D 01 38 00 00 00 46 49 4C 45 5F 49 4E 46  MMM.8...FILE_INF
00000010  4F 00 00 00 01 00 00 00 01 00 05 05 10 0F 20 00  O............. .
00000020  44 4E 04 00 00 00 08 00 F0 00 00 00 6C 06 00 00  DN......ð...l...
00000030  F0 00 00 00 01 00 60 C2 4D 4D 4D 01 0C 00 01 00  ð.....`ÂMMM.....
00000040  01 00 00 00 4D 4D 4D 01 64 00 07 00 90 00 00 00  ....MMM.d.......
00000050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
- Use img2simg to convert system.img and vendor.img into sparse images.
If you're Windows user, please find img2simg binaries yourself.
This is known available by default on Ubuntu and Debian (sudo apt install img2simg).

Code:
img2simg system.img system.simg
img2simg vendor.img vendor.simg
- Check current slot:
Code:
fastboot getvar current-slot
In this case, the current slot is a.

- Flash these partitions (including modified preloader) to the slot you currently have (slot a in this case):
Code:
fastboot flash boot_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/boot.img
fastboot flash cam_vpu1_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/cam_vpu1.img
fastboot flash cam_vpu2_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/cam_vpu2.img
fastboot flash cam_vpu3_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/cam_vpu3.img
fastboot flash cda_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/cda.img
fastboot flash lk_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/lk.img
fastboot flash logo_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/logo.img
fastboot flash md1img_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/md1img.img
fastboot flash odmdtbo_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/odmdtbo.img
fastboot flash preloader_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/preloader_header_removed.img
fastboot flash scp_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/scp.img
fastboot flash spmfw_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/spmfw.img
fastboot flash sspm_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/sspm.img
fastboot flash system_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/system.simg
fastboot flash systeminfo_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/systeminfo.img
fastboot flash tee_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/tee.img
fastboot flash vendor_a /path/to/HCTSW_PDA-3110-0-00WW-B01_600WW_10_20200405.fdump.lzma2/vendor.simg
fastboot -w reboot
- After reboot, enjoy Android 10.


Download link:
AFH: https://www.androidfilehost.com/?fid...26312261767469
SHA256 Checksum: f000263c677ff7f0963a34ece67ecaa2ceb16089e3aa1887dd dbbe20d46d590c
Attached Files
File Type: txt flashit.sh.txt - [Click for QR Code] (2.8 KB, 368 views)
The Following 3 Users Say Thank You to hikari_calyx For This Useful Post: [ View ] Gift hikari_calyx Ad-Free
11th April 2020, 04:39 AM |#2  
hikari_calyx's Avatar
OP Senior Member
Flag Wuhan
Thanks Meter: 655
 
Donate to Me
More
FAQ

Q1: Why you don't just leak OTA packages like before?
A1: This time I don't want to make my life harder in the future.

Q2: When Android 10 will be pushed to my country?
A2: I don't know. I even don't know when HMD Chinese localization team will be back. So no hope for localized Android 10 for Nokia X5 now.

Q3: How can I rollback to Android 9 if not satisfied?
A3: If not bootloader unlocked, switch the slot back to A under fastboot mode, then flash the phone with SP Flash Tool (Download only). Always backup the whole emmc to for the worst case.
If unlocked, use NFT featured on Nokia 7.2 forum: https://forum.xda-developers.com/nok...ol-to-t4003267

Q4: How can I unlock the bootloader?
A4: It's paid method and how to request cannot be disclosed here, or it will violate the rules of XDA.

Q5: My phone is bricked!
A5: I'm not responsible at all. We tested it on Nokia X5 sold in China already.

Q6: Can I use GCam?
A6: No. Nokia 5.1 Plus X5 doesn't support Camera2API at all, so no GCam.

Q7: What does HCTSW stand for?
A7: Hikari Calyx Tech SoftWare.
The Following 2 Users Say Thank You to hikari_calyx For This Useful Post: [ View ] Gift hikari_calyx Ad-Free
11th April 2020, 04:50 AM |#4  
bx2_nero's Avatar
Senior Member
Thanks Meter: 46
 
More
Can I roll back to android 9 if I change my active partition to a if installed android 10 on b ??
The Following User Says Thank You to bx2_nero For This Useful Post: [ View ] Gift bx2_nero Ad-Free
11th April 2020, 04:51 AM |#5  
hikari_calyx's Avatar
OP Senior Member
Flag Wuhan
Thanks Meter: 655
 
Donate to Me
More
Quote:
Originally Posted by bx2_nero

Can I roll back to android 9 if I change my active partition to a if installed android 10 on b ??

Probably yes, but you need to perform factory reset under stock recovery before switching slot.
The Following User Says Thank You to hikari_calyx For This Useful Post: [ View ] Gift hikari_calyx Ad-Free
11th April 2020, 04:53 AM |#6  
bx2_nero's Avatar
Senior Member
Thanks Meter: 46
 
More
Any reported bug by your tester?
The Following User Says Thank You to bx2_nero For This Useful Post: [ View ] Gift bx2_nero Ad-Free
11th April 2020, 04:54 AM |#7  
hikari_calyx's Avatar
OP Senior Member
Flag Wuhan
Thanks Meter: 655
 
Donate to Me
More
Quote:
Originally Posted by bx2_nero

Any reported bug by your tester?

CTS probably cannot be passed which expected.
After that, didn't see any bug so far.
The Following User Says Thank You to hikari_calyx For This Useful Post: [ View ] Gift hikari_calyx Ad-Free
11th April 2020, 09:45 AM |#8  
hikari_calyx's Avatar
OP Senior Member
Flag Wuhan
Thanks Meter: 655
 
Donate to Me
More
One known issue:

- This Android 10 build seems cannot be rooted with regular procedure of Magisk Manager.
The Following User Says Thank You to hikari_calyx For This Useful Post: [ View ] Gift hikari_calyx Ad-Free
11th April 2020, 12:21 PM |#9  
bx2_nero's Avatar
Senior Member
Thanks Meter: 46
 
More
Quote:
Originally Posted by hikari_calyx

One known issue:

- This Android 10 build seems cannot be rooted with regular procedure of Magisk Manager.

That means no payment app will work because of SafetyNet and no magisk so no bypassing that.
11th April 2020, 03:48 PM |#10  
bx2_nero's Avatar
Senior Member
Thanks Meter: 46
 
More
Quote:
Originally Posted by hikari_calyx

One known issue:

- This Android 10 build seems cannot be rooted with regular procedure of Magisk Manager.

In MTK-SU thread it says that any update after March 20 will block temp root , so I think April security patch fixed the MTK-SU method and it is included in the Android 10 build.
14th April 2020, 04:14 AM |#11  
hikari_calyx's Avatar
OP Senior Member
Flag Wuhan
Thanks Meter: 655
 
Donate to Me
More
Tips to users who want to downgrade the phone:

- You must perform a regular factory reset on settings (Don't do factory reset on recovery or you will get stuck at FRP lock that requires you to install further updates)

After reset done, don't connect the phone to Internet and just reboot to fastboot mode.

- Switch the slot to A under fastboot mode right after factory reset.

Code:
fastboot --set-active=a
- Use SP Flash Tool to flash any Android 9 firmware on following website:
https://fih-firmware.hikaricalyx.com/hmd_en.html#pda

Any PDA-2***-0-00WW-B** (excluding PDA-209B-0-00WW-B06) are OK. I recommend PDA-214A-0-00WW-B01.

- Skip wifi connection at first boot, or you'll be asked to install latest updates and MTK-SU will be blocked.

- root the phone and follow the guide on topic.

I strongly recommend you, don't login Google account until everything is done.
The Following User Says Thank You to hikari_calyx For This Useful Post: [ View ] Gift hikari_calyx Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes