[GUIDE][Nougat & Oreo] How to flash TWRP and Magisk with locked bootloader

Search This thread

arsalan j

New member
Nov 16, 2018
3
0
Steps i followed but no root.
NOKIA 3 7.11
1) unlocked bootloader
2) put magisk.zip in my sdcard
3) flashed twrp (which on every boot goes to twrp)
4) in TWRP i clicked installed and selected magisk.zip
5)after installation i tried to boot again and it opened normally this time.i
6)I installed root checker to see if nokia is rooted but it says device is not properly rooted.
what steps am i missing ??
 

JBData

Member
Jan 28, 2018
19
1
Steps i followed but no root.
NOKIA 3 7.11
1) unlocked bootloader
2) put magisk.zip in my sdcard
3) flashed twrp (which on every boot goes to twrp)
4) in TWRP i clicked installed and selected magisk.zip
5)after installation i tried to boot again and it opened normally this time.i
6)I installed root checker to see if nokia is rooted but it says device is not properly rooted.
what steps am i missing ??

"Somewhere" you have to patch a boot.img file with magisk and install it.
See my 2018 roadact
 

11NQU151T0R

New member
Nov 19, 2019
1
0
I formatted my Nokia 3 bootloader and every other partition with so flash tool. it no longer shows pre-loader in device manager. How do I fix it and reflash it.
 

_XblackshadowX_

Senior Member
Mar 21, 2014
62
5
Taguig City
Bug report.

Hello developer of old TWRP for Nokia 3, i am going to report some bugs based on what i have seen and experienced, if you do see this message, please note that i am willing to become a tester for the recovery of this device, i am now going to start stating the problems, please also note that i am using Nokia 3 with Pie ROM, Bootloader unlocked, rooted with Magisk, i am using TWRP 3.2.3 from https://unofficialtwrp.com/nokia-3-root-twrp-3-2-3/, i also believe this is the same with the TWRP that @RevanthTolety made, i know that the TWRP you made is old, but still hopefully you could do something about this, let's begin.
i have attached the pictures of the bugs, as well as logs, to help you all regarding about this problem, i have messaged all five of you in hopes that some of you are still willing to develop a proper, working recovery for the Pie ROM of this device, or at least team up in making one, anything as long as this project will still continue or something will be done.
Bugs i have found:
1. Decrypting of data, the recovery is asking me for a password and i have no idea what to do, i have never encrypted my device, or anything, and here is what i have done so far:
1a. Formatted data through TWRP, rebooted into recovery and applied root.
1b. Wiped data through TWRP, rebooted into recovery, then applied with root.
1c. All of the above, except this time i flashed no verity opt encrypt, didn't work.
1d. Formatted data through fastboot, rebooted into recovery immediately and applied root.
For the most part, by the time i managed to format or wipe my data/userdata, i am able to gain access on it through TWRP, and the recovery isn't asking me for a password, but once i am able to fully set up my device and it reaches the home screen, not putting any screen locks, just Swipe, rebooting into recovery again, and now it asks me for a password, i tried "default_password" and "password" but it didn't work, at this moment, i can only flash zips through my MicroSD Card, the recovery doesn't have access to my internal storage and i couldn't make a backup with my userdata.
2. TWRP gets replaced with stock recovery if you do not boot into it immediately after flashing, trust me, this is where i got frustrated the most, i was about to smash the phone because of this! I still had to root to ensure that the recovery will stay, or else at next boot the stock recovery will be back.
3. Battery percentage is shown incorrectly, based on the 5 forums i've seen which is all related to porting TWRP for this phone, this error has been very consistent.
4. The recovery keeps showing me a prompt of asking whether to keep System read-only or not, even though i selected the box "Don't show me this screen again.", it still comes back anyway.
5. The recovery complains about '/hidden/emmc_hidden" not being found and all that.
6. I cannot save my language, even though i already toggled it through the settings of the recovery.
7. Touch is very slow during the first screen which is the "Keep System read-only?"
Here are the things i confirmed to be working:
MicroSD Card access
OTG access
Installing .zips
I cannot test the backup and restore option since i can't access data through it, i don't want to lose progress.
That's all of the bugs i have seen so far, i am going to use my friend's phone who happens to own a Nokia 3 for testing the recovery, if i still haven't received a response within 1 week i will return the cellphone, you could contact me through Telegram, Facebook and other social media sites such as Instagram, i am willing to take the risk, please contact me if you all are still willing to continue with the development of TWRP for this cellphone.
 

Attachments

  • dmesg.log
    126.7 KB · Views: 3
  • recovery.log
    32.1 KB · Views: 2
  • IMG_20200228_153011.jpg
    IMG_20200228_153011.jpg
    235.6 KB · Views: 53
  • IMG_20200228_153059.jpg
    IMG_20200228_153059.jpg
    246.4 KB · Views: 54

tsiqahbetta

Member
Nov 9, 2021
5
0
Before following guide check this:

If you never unlocked bootloader or you flashed Android 7.1.1 nb0 with locked bootloader, then you need to go back to Android 7.0, after that unlock then lock bootloader. If you want to update, use OTA, don't flash nb0 because it have stock LK inside.
Here is the explanation why:

Downloads:
SP Flash Tool:
https://spflashtool.com/download/
VCOM Drivers:
https://spflashtool.com/download/MediaTek_USB_VCOM_drivers.zip
Scatter file (extracted from nb0, use this scatter to avoid renaming issue):
https://mega.nz/#!qJh1TSLL!5afi-7NYqKT3H62tqBISYSAdBDgN6eIM20WRSbtq3qE
Compatible DA (Download Agent):
https://mega.nz/#!xd8B3AJQ!PW82IpLzMzyNQk55BdwMnRMPlKQA0Yzj_8k_xN5r9XM
Stock boot.img and Stock recovery.img:
https://forum.xda-developers.com/nokia-3/development/link-stock-boot-img-stock-recovery-img-t3785576
TWRP 3.1.0-0 by mediafire007:
https://onedrive.live.com/?authkey=!AGoNls86njtBUxU&cid=768DA1AA966F93C9&id=768DA1AA966F93C9!3126&parId=768DA1AA966F93C9!3122&action=locate
TWRP 3.2.1-0 by SkaboXD:
https://mega.nz/#!qIhFkKia!AkUMvQJ0PGVnSePabTvOgO-oUAMZahlCNaZfy2gE4vE
Magisk ZIP:
https://github.com/topjohnwu/Magisk/releases/download/v16.0/Magisk-v16.0.zip
Magisk Manager APK:
https://github.com/topjohnwu/MagiskManager/releases/download/v5.7.0/MagiskManager-v5.7.0.apk
unSU script:
https://forum.xda-developers.com/attachment.php?attachmentid=4410561&d=1517853382

First Step: Installing and setting SP Flash Tools
Install VCOM Drivers (video tutorial):
Then extract SP Flash Tool to Desktop. Open extracted folder and open flash_tool.exe. Create new folder on Desktop and call it ''magisk twrp sp flash tool'' or something like that and move scatter to that folder. Then go back to SP Flash Tool and load scatter file. Close SP Flash Tool. Now copy/move DA_SWSEC_CRYPTO20.bin (Compatible DA that you downloaded) and replace it to sp flash tool folder. Then open sp flash tool and load DA that you replaced.

Second Step: Flashing TWRP and Magisk
Extract twrp to ''magisk twrp sp flash tool'' folder. Rename it to NE1-0-215H-00WW-recovery so SP Flash Tool can recognize it. Turn off your phone. Now open SP Flash Tool, tick recovery, select Download only mode and click Download. Hold power + vol up button at the same time and quickly connect phone to USB. Then it will go to META mode and downloading will begin first with red bar and second with yellow bar. When download completes, green tick/circle mark will appear. Now you have TWRP. Rename NE1-0-215H-00WW-recovery to twrp-recovery.img so you can remember file name.

If you don't have root, just flash Magisk ZIP with TWRP.
If you have SuperSU and you want to switch to Magisk, flash unSU script with TWRP which uninstalls SuperSU, then you need to flash stock boot.img. Switch from install zip to install image and click on stock boot.img. Tick boot partition and flash. When it's done with flashing, you can flash Magisk.

OPTIONAL
If you are for some reason scared to flash TWRP or don't want to mess with recovery partition, this is step for you.

Second Step: Flashing Magisk without touching recovery partition
If you want to switch from SuperSU to Magisk, unroot SuperSU in SuperSU options. Transfer stock boot.img to your device from PC. Go to your phone and install Magisk Manager APK and open it. Click install then click "Patch boot image file" then select stock boot.img then it starts downloading Magisk ZIP and patching boot.img. You will get patched_boot.img in /sdcard/MagiskManager. Now transfer stock boot.img and patched boot.img back to PC and move it to "magisk twrp sp flash tool" folder. Rename stock boot.img to NE1-0-215H-00WW-boot. Turn off your phone. Now open SP Flash Tool, tick boot, select Download only mode and click Download. Hold power + vol up button at the same time and quickly connect phone to USB. Then it will go to META mode and downloading will begin first with red bar and second with yellow bar. When download completes, green tick/circle mark will appear. Close SP Flash Tool. Rename NE1-0-215H-00WW-boot to stock-boot.img and rename patched-boot.img to NE1-0-215H-00WW-boot. Turn off your phone. Now open SP Flash Tool, tick boot, select Download only mode and click Download. Hold power + vol up button at the same time and quickly connect phone to USB. Then it will go to META mode and downloading will begin first with red bar and second with yellow bar. When download completes, green tick/circle mark will appear. TA-DA you have Magisk root. Rename NE1-0-215H-00WW-boot to patched-boot.img so you can remember file name.

What about OTA?:
If you want to have OTA updates, remember to flash stock recovery back if you flashed TWRP. With installed update you will not lose:
- Data (apps, internal storage data)
- Xposed framework (if flashed directly to system)
- Xposed modules

you will lose:
- Magisk
- Magisk modules
- Xposed framework (if you flashed it systemlessly)

To gain root, just flash Magisk again.

Comment if links need to be updated.

Credits:
@sp flash Tool developers for providing SP Flash Tool
@blackpanther0582 for nb0 and scatter file
@Max brackenz for Download Agent
@mediafire007 for TWRP
@topjohnwu for Magisk
@osm0sis for unSU script
@bigrammy for useful tips
This method can use for ta-1032 android 9.0?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Before following guide check this:

    If you never unlocked bootloader or you flashed Android 7.1.1 nb0 with locked bootloader, then you need to go back to Android 7.0, after that unlock then lock bootloader. If you want to update, use OTA, don't flash nb0 because it have stock LK inside.
    Here is the explanation why:
    In theory and put simply as possible it should not work on a never unlocked before device if the LK does it's job properly. :confused:
    The LK does all the checking down the secure boot chain prior to allowing the recovery or boot.img to boot.
    If a device has been officially Unlocked then the LK should write (normally hidden) 1 bite identifiers to partitions like secro, misc, oem, etc etc (Depends on the OEM where and how) so when you flash a new ROM the new LK should still look for these bite's and if it see's them then it will allow the none stock .img's like twrp to boot normally.
    So to sum up
    1. Nokia made a huge screw up and the Nokia 3 is a totally insecure device like most of cheap MediaTek Chinese phone's out there.
    2. The LK knows the bootloader was officially Unlocked before and therefore ignores the secure boot chain.
    Downloads:
    SP Flash Tool:
    https://spflashtool.com/download/
    VCOM Drivers:
    https://spflashtool.com/download/MediaTek_USB_VCOM_drivers.zip
    Scatter file (extracted from nb0, use this scatter to avoid renaming issue):
    https://mega.nz/#!qJh1TSLL!5afi-7NYqKT3H62tqBISYSAdBDgN6eIM20WRSbtq3qE
    Compatible DA (Download Agent):
    https://mega.nz/#!xd8B3AJQ!PW82IpLzMzyNQk55BdwMnRMPlKQA0Yzj_8k_xN5r9XM
    Stock boot.img and Stock recovery.img:
    https://forum.xda-developers.com/nokia-3/development/link-stock-boot-img-stock-recovery-img-t3785576
    TWRP 3.1.0-0 by mediafire007:
    https://onedrive.live.com/?authkey=...126&parId=768DA1AA966F93C9!3122&action=locate
    TWRP 3.2.1-0 by SkaboXD:
    https://mega.nz/#!qIhFkKia!AkUMvQJ0PGVnSePabTvOgO-oUAMZahlCNaZfy2gE4vE
    Magisk ZIP:
    https://github.com/topjohnwu/Magisk/releases/download/v16.0/Magisk-v16.0.zip
    Magisk Manager APK:
    https://github.com/topjohnwu/MagiskManager/releases/download/v5.7.0/MagiskManager-v5.7.0.apk
    unSU script:
    https://forum.xda-developers.com/attachment.php?attachmentid=4410561&d=1517853382

    First Step: Installing and setting SP Flash Tools
    Install VCOM Drivers (video tutorial): https://youtube.com/watch?v=w3whZ2QMGvo
    Then extract SP Flash Tool to Desktop. Open extracted folder and open flash_tool.exe. Create new folder on Desktop and call it ''magisk twrp sp flash tool'' or something like that and move scatter to that folder. Then go back to SP Flash Tool and load scatter file. Close SP Flash Tool. Now copy/move DA_SWSEC_CRYPTO20.bin (Compatible DA that you downloaded) and replace it to sp flash tool folder. Then open sp flash tool and load DA that you replaced.

    Second Step: Flashing TWRP and Magisk
    Extract twrp to ''magisk twrp sp flash tool'' folder. Rename it to NE1-0-215H-00WW-recovery so SP Flash Tool can recognize it. Turn off your phone. Now open SP Flash Tool, tick recovery, select Download only mode and click Download. Hold power + vol up button at the same time and quickly connect phone to USB. Then it will go to META mode and downloading will begin first with red bar and second with yellow bar. When download completes, green tick/circle mark will appear. Now you have TWRP. Rename NE1-0-215H-00WW-recovery to twrp-recovery.img so you can remember file name.

    If you don't have root, just flash Magisk ZIP with TWRP.
    If you have SuperSU and you want to switch to Magisk, flash unSU script with TWRP which uninstalls SuperSU, then you need to flash stock boot.img. Switch from install zip to install image and click on stock boot.img. Tick boot partition and flash. When it's done with flashing, you can flash Magisk.

    OPTIONAL
    If you are for some reason scared to flash TWRP or don't want to mess with recovery partition, this is step for you.

    Second Step: Flashing Magisk without touching recovery partition
    If you want to switch from SuperSU to Magisk, unroot SuperSU in SuperSU options. Transfer stock boot.img to your device from PC. Go to your phone and install Magisk Manager APK and open it. Click install then click "Patch boot image file" then select stock boot.img then it starts downloading Magisk ZIP and patching boot.img. You will get patched_boot.img in /sdcard/MagiskManager. Now transfer stock boot.img and patched boot.img back to PC and move it to "magisk twrp sp flash tool" folder. Rename stock boot.img to NE1-0-215H-00WW-boot. Turn off your phone. Now open SP Flash Tool, tick boot, select Download only mode and click Download. Hold power + vol up button at the same time and quickly connect phone to USB. Then it will go to META mode and downloading will begin first with red bar and second with yellow bar. When download completes, green tick/circle mark will appear. Close SP Flash Tool. Rename NE1-0-215H-00WW-boot to stock-boot.img and rename patched-boot.img to NE1-0-215H-00WW-boot. Turn off your phone. Now open SP Flash Tool, tick boot, select Download only mode and click Download. Hold power + vol up button at the same time and quickly connect phone to USB. Then it will go to META mode and downloading will begin first with red bar and second with yellow bar. When download completes, green tick/circle mark will appear. TA-DA you have Magisk root. Rename NE1-0-215H-00WW-boot to patched-boot.img so you can remember file name.

    What about OTA?:
    If you want to have OTA updates, remember to flash stock recovery back if you flashed TWRP. With installed update you will not lose:
    - Data (apps, internal storage data)
    - Xposed framework (if flashed directly to system)
    - Xposed modules

    you will lose:
    - Magisk
    - Magisk modules
    - Xposed framework (if you flashed it systemlessly)

    To gain root, just flash Magisk again.

    Comment if links need to be updated.

    Credits:
    @sp flash Tool developers for providing SP Flash Tool
    @blackpanther0582 for nb0 and scatter file
    @Max brackenz for Download Agent
    @mediafire007 for TWRP
    @topjohnwu for Magisk
    @osm0sis for unSU script
    @bigrammy for useful tips
    2
    well it should work for them too, but where to find someone who never unlocked bootloader.
    In theory and put simply as possible it should not work on a never unlocked before device if the LK does it's job properly. :confused:
    The LK does all the checking down the secure boot chain prior to allowing the recovery or boot.img to boot.
    If a device has been officially Unlocked then the LK should write (normally hidden) 1 bite identifiers to partitions like secro, misc, oem, etc etc (Depends on the OEM where and how) so when you flash a new ROM the new LK should still look for these bite's and if it see's them then it will allow the none stock .img's like twrp to boot normally.
    So to sum up
    1. Nokia made a huge screw up and the Nokia 3 is a totally insecure device like most of cheap MediaTek Chinese phone's out there.
    2. The LK knows the bootloader was officially Unlocked before and therefore ignores the secure boot chain.

    I've never unlocked a Nokia (HMD) device bootloader and to be honest, after reading all the issues and problems some have been having trying to unlock their Nokia 3's, I don't think I want to try.

    I am getting very frustrated about the fact my TA 1020 (UK) is still stuck on Android 7.1.1 and the march security update.

    I've tried all the hacks suggested like taking the Sim out and resetting, connecting to Indian vpns and pressing check for updates every hour over a 14 hour period.
    My Nokia 3 is an unlocked (Sim free) version as well.

    Your not the Only one bubba1601 both mine and a friends TA 1020 still have not received the official Oreo update yet. :(
    My Friends phone is 100% pure stock and never been rooted or bootloader unlocked both of us have sim free devices too so not sure why UK users are not getting the update yet. :silly:
    2
    Works in variant TA-1028 on official Oreo. Great guide tnx
    2
    I waited a week for this guide when I saw you talking to each other in the Nokia 3 TWRP thread..
    And when I lost hope that you're going to make the thread I had to break down what you were saying amd make my own way..
    It took me 6 hours to get all the tools and files and figure it out.. :)
    Thank you anyways <3
    2
    did you cleaned Google services data after that?

    Flashing ost will work on TA-1020 right? Now I wonder if that's the reason why the vpn thing has been working for most people. Perhaps since it's the nb0 files are Asian (India and UAE)
    @bubba1601 maybe flashing OST is the only way to go.