Unlocking bootloader [For all MTK devices] - Nokia 3.1 Guides, News, & Discussion

Unlocking bootloader on Nokia 3.1​
Code:
#include <std_disclaimer.h>
/*
* Your warranty is... still valid/probably? (Subject to OEM's)
*
* We are not responsible for bricked devices, dead SD cards
* unpleasant experiences. Custom ROM's are Custom for a reason and
* as developers, we try our best to give you the most complete experience
* When you choose our ROM, its a choice which you make but it doesnt make us
* liable to any unfortunate events. But we will be happy to help for the greater good.
*/
Requirements:
PC with Linux/Windows/MacOS.
Nokia 3.1 with any version of Android.
Installed mtkclient with official instruction.
Straight arms.
If you using windows, installed preloader vcom driver.
Unlocking bootloader:
Open terminal (cmd) on folder with mtkclient.
Power off device.
Run command:
Code:
python mtk da seccfg unlock
Hold a Vol- button and connect device to PC.
Wait for the script to finish.
Enjoy unlocked bootloader.
Notes:
Data won't be wiped, but it is better to make backup.
Works on all MTK devices, except entering on BROM.

Sorry, but this is a bit confusing...
Is this for all mtk devices, or is this guide for only Nokia devices with mtk chips?

Nicknackpaddywack101 said:
Sorry, but this is a bit confusing...
Is this for all mtk devices, or is this guide for only Nokia devices with mtk chips?
Click to expand...
Click to collapse
In theory for all MTK. But on some devices you need to hold down different key combinations to enter BROM, and on some it does not work at all.

thanks you, i tried on nokia 3.1 and it worked

Works!
Thx a lot.

Related

Is it possible to root Xperia M5 6.0?

As the the title says, is it possible to root M5 on 6.0 Marshmallow?
Thinking of buying this phone 2nd hand, but need to know if root is possible.
Thanks
Yes
LeRobE said:
As the the title says, is it possible to root M5 on 6.0 Marshmallow?
Thinking of buying this phone 2nd hand, but need to know if root is possible.
Thanks
Click to expand...
Click to collapse
I'm still finding ways to root mine (it's an E5606 variant).
I've found guides but it's a bit hard unless you know the whole process. I recommend you see other phones before buying this. Another issue is the battery. It suddenly shuts down because a disfunction of batt's circuit. Ah, and if you want to flash some roms on it, you can't do it symply, you need and scs file, or your phone will brick. Consider it before buying.
PS: I'm waiting root months ago (for 6.0 of course.) There's some guide but it implies DRM keys, and i forgot to backup them. So, if something goes wrong, i'm dead.
Seriously??
Years after...... Xperia M5 has not been rooted successfully yet?
Thanks for the information!
Decided not to buy it
*facepalms*
Yes, and I just rooted mine. Also, it's officially supported by Sony.
I can't post links here because I'm a new user, but the website is:
developer . sonymobile.com / unlockbootloader
PS: I selected "Xperia M" on the select box because there's no M5, but it worked.
loureirorg said:
Yes, and I just rooted mine. Also, it's officially supported by Sony.
I can't post links here because I'm a new user, but the website is:
developer . sonymobile.com / unlockbootloader
PS: I selected "Xperia M" on the select box because there's no M5, but it worked.
Click to expand...
Click to collapse
Can anyone else confirm that it works ?
Afdabrikman said:
Can anyone else confirm that it works ?
Click to expand...
Click to collapse
Just to clarify, there are 3 steps:
1. Unlock the bootloader on the Sony website;
2. Install a custom recovery (like TWRP);
3. Install a custom kernel with sudo support (use your custom recovery for this);
Note about DRM Keys:
Some tutorials recommend you to save the DRM keys before unlocking your boodloader. They say that without these DRM keys, all DRM based software (like Netflix, Spotify and the bravia engine) won't work. I say this is BS. Everything works fine: Netflix, Spotify, the Bravia engine. These Sony DRM keys are not the same DRM keys used by Android software.
----
Detailed steps:
1. Unlock bootloader:
* Note: this will wipe your data, so do a backup before;
* Note II: see "Note about DRM Keys" above;
* Go to: https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
* Select “Xperia M” (there's no M5), put your email and your phone's IMEI
* Confirm your email, get the fastboot command
* On phone, enter in fastboot mode (vol up + put cable, keep pressing vol-up until: vibration and a black screen);
* Run the 2 fastboot commands you received on email (fastboot devices, fastboot ...);
* Reboot with a “fastboot reboot”
2. TWRP Custom Recovery:
* Download: https://mega.nz/#!NZIlBL5Y!xSHX-Gn0Dk9omRG-RJY3QOzr7MQD_uuzCrtv7CMPBTc
* Run: fastboot flash recovery recovery.img
* Tutorial: https://developer.sonymobile.com/20...for-a-range-of-unlocked-xperia-devices-video/
3. Kernel with Sudo:
* Follow instructions here: https://forum.xda-developers.com/xperia-m5/development/kernel-stock-marshmallow-kernel-root-t3453072
* If your kernel version is different, you can install a stock ROM with the right kernel version.
* Other methods won't work:
__* I tried Kingoroot, one click root, etc. None worked.
__* Sudo.apk on custom recovery: DO NOT try to install sudo.apk through the custom recovery. If you do that, you will soft brick your phone - your screen will be freeze on the Sony logo (no panic, it's possible to revert this brick by installing the stock rom).
--
Custom ROMs:
There are some on this forum, all from the "TRXteam" user, but DO NOT install them. They don't have support for camera, phone calls, etc. TRXteam is not working on these ROMs anymore. If you install them, you will need to revert to the stock ROM.
---
Shortcuts:
* Forced shutdown: vol up + power = keep pressing (it takes about 10 seconds) until a small vibration and keep going until a three-vibration.
* Fastboot mode: turn your phone off, then press vol up + put cable, keep pressing until vibrates+black screen. Run a "fastboot devices" command on your pc to test if it worked.
* Recovery mode: turn your phone off, then press vol down + power, then on logo, release the power button but keep pressing the down button until the recovery screen
--
Stock ROM (works on linux, windows, mac):
Usually, a Stock ROM is only necessary if you screwed up your phone.
You don't need this step when rooting your phone (unless you need a specific kernel version or if you soft bricked it).
This reverts your phone to the factory software, like a brand new phone and ALL your data will be wiped.
Step 1: Creating a TRT image
* You can use this tutorial instead: http://www.xperiablog.net/2014/08/1...re-files-using-xperifirm-and-flashtool-guide/
* Download Flashtool: http://www.flashtool.net/downloads.php
* Patch Flashtool: download "x10flasher.jar" from the above website, then copy this file to the Flashtool root folder (if you don't do it, you will get a "unresponsive app" while flashing);
* Download XperiFirm: https://mega.nz/#!0MohiK5A!m6zJs359UxbRgS3fP8a1Qyf0Jcr_I1sGFladNAZODDo
* Open XperiFirm and download stock ROM:
__* Settings > Uncheck “Unpack firmware automatically”
__* Xperia M5 (Holly) > E5663 Dual > Service Exchange Unit > Click on the “Available Firmware” item > Download
* Open the downloaded folder (ex. “E5653_Customized AU_1297-5795_30.2.A.1.21_R4B”)
__* Manually delete this file: “fwinfo.xml” (if it is there)
__* If you don’t delete it, the firmware WILL corrupt and BRICK your phone!!!!
__* Check if is there any FILE_* files. It should have. If there's none, it's because you didn't uncheck “Unpack firmware automatically” option on settings. Uncheck, remove this folder and download again.
* Open Flashtool, select “Xperia M5”
* Click Tools > Bundles > FILESET Decrypt > Chose ROM folder (with FILES_* files)
* Select all files (around 4) > Right arrow (to move) > Convert
* Once it finishes, it will open a new pop up (Bundler)
* Click “Device” field twice > Xperia M5 > E5663
* Branding (it’s just a text field, it doesn’t matter what you put actually): International
* Version (also just a text field): Put the firmware version you downloaded (is in the folder name). Ex.: “30.0.B.1.23_R1A”
* Move all items from left to right, except the “.ta” files (usually 2: cust-reset.ta and simlock.ta)
* Click “Convert”
* “A FSC script was found. Do you want to include it?”: Choose YES!!!! If you choose no, it will HARD F* BRICK your phone. A HARD BRICK can't be undone (not that I know).
* Step 2: Flashing
* Tutorial: http://www.xperiablog.net/2014/06/01/debrand-your-xperia-z2-tutorial/
Do I have to be rooted beforehand to do any of this ?
Afdabrikman said:
Do I have to be rooted beforehand to do any of this ?
Click to expand...
Click to collapse
To backup your DRM keys yes you do
hi. use magisk manager to root device is working fine on my m5 single sim.
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Hello Rinogsm!
Please give more information on how you did this.
Thank you!
connectix said:
Hello Rinogsm!
Please give more information on how you did this.
Thank you!
Click to expand...
Click to collapse
You should take a look at this Youtube video it has link's to download everything you will need for twrp and root (for marshmallow only)
Just flash twrp and then the modified boot.img via command prompt,adb fastboot drivers are also available via the link.
Click here and it will take you straight to the Youtube channel.(at Youtube channel you'll have to select show more to access the link addresses for download)
I have used the method successfully,,The only known issue i have noticed is that my phone switches on when i plug in phone charger, however if your charging your phone i assume that you'll be powering it up
Goodluck..
help me
Does this video work? I'm following the tutorial, and unlock the bootloader now I'm going in the part of installing the twrp but I'm not totally sure, should I install another rom? or can I do it with my marshmallow stock? I read in other tutorials that unlocking the bootloader could downgrade to 5.1 lollipop, I'm a little tangled in that and nobody says anything, nor those who have already achieved, sorry for my bad English
Help
Hi guys! I've tried the root method from this thread and it worked perfectly. After that, I've tried to remove some Sony apps from the firmware and accidentally removed the notorious Download Manager. Now I can't use google play chrome and other Google apps anymore. Does anybody have any advise? Reinstall Download manager would be easy but I can't find the apk file anywhere. Would reinstalling the firmware help?
Thanks in advance!
As it looks, nobody is reading this thread so I have to answer to my self. I found a way to extract firmware apps from ftf but that didn't solve the problem. Download manager was installed but could not start. I already wanted to give up because flashing according to Sony would brick my phone so there was nothing more I could do. Then I thought that I have nothing to lose so I flashed with FlashTool and It's alive again. Many thanks to farshad9500gy cyberzeroXDA loureirorg and others.
spekis said:
Hi guys! I've tried the root method from this thread and it worked perfectly. After that, I've tried to remove some Sony apps from the firmware and accidentally removed the notorious Download Manager. Now I can't use google play chrome and other Google apps anymore. Does anybody have any advise? Reinstall Download manager would be easy but I can't find the apk file anywhere. Would reinstalling the firmware help?
Thanks in advance!
Click to expand...
Click to collapse
Re flash, just be careful next time

[GUIDE][TWRP][INE-LX1/2] How to install TWRP and root Huawei Nova 3i/P Smart+

This is a guide on how to unlock the bootloader, install TWRP, and root your Huawei Nova 3i/P Smart+. (INE-LX1/INE-LX2). You need at least $20 to unlock the bootloader.
Thanks for @medoamer for trying this first and helping me out!
Code:
#include <std_disclaimer.h>
/*
* Your warranty will be void if you follow this guide.
*
* Only YOU are responsible for any damage done to your
* device by following this guide. I'm not affiliated with, or
* responsible for any service mentioned below.
*
*/
You will need:
-A working Nova 3i/P Smart+.
-$20/$22/$55 depending on your preferences.
-A Windows PC. (PM me if you have a Linux one, I will update the guide accordingly)
-A working SD card that is tested and working with your phone.
-A reliable USB cable which works for connecting your phone to your PC.
-A backup (optional)
PART 1: Bootloader Unlock
To unlock your bootloader you need a bootloader unlock code. Huawei stopped giving bootloader codes in end of July. But you can buy one in one of the webistes below. You have to send your IMEI to them, and they will generate the unlock code and send it to you. You can see your IMEI at System>>About Phone>>IMEI.
1.) Global Unlocking Solutions for $20/$22
First of all, I know that the website looks super sketchy. But @medoamer, myself, and a lot of other XDA users had success with this method. I spent the extra $2 for the fast service, but it is up to you.
2.) FunkyHuawei for $55
The advantage of FunkyHuawei is that they have a good track record with XDA and other services, a refund policy, and just you know what you are getting into. You can ask for a refund if the code does not work.
3.) Ministry of Solutions for €30
A lot of XDA users had success with this method also. I don't know much information about this method, but the ysay they offer a refund if the code doesn't work.
Got the code? Good. You are mostly done now...
Install ADB and Fastboot. I'm not going to give a guide on how, you can search for it. Download and install Hisuite from here. Connect your phone to your PC, and open a command prompt on your ADB folder. Run,
Code:
adb reboot bootloader
Wait for your device to reboot and show a screen with title "FASTBOOT & RESCUE MODE". In the next command replace <code> with the unlock code you bought. The next step will wipe all the data on your device, so you might want to backup your important data.
Code:
fsatboot oem unlock <code>
Congratulations, you just unlocked the bootloader of your device. Your warranty is legally void now. Reboot the device with the command;
Code:
fastboot reboot
PART 2: Install TWRP and Magisk
First, connect your SD card to your phone, download Magisk ZIP here, and place it in your SD card.
Reboot to Fastboot again with,
Code:
adb reboot bootloader
Download the TWRP image here and copy it your ADB folder. Use this command to flash TWRP.
Code:
fastboot flash recovery_ramdisk twrp-kirin.img
Hold the power button to turn your phone off. Disconnect your phone from your PC. Now hold the power button and Vol. Up button until the Huawei logo appears, then let go of both buttons. The blue TWRP logo should appear and after a second you would see the TWRP menu. If you see the Keep System Read-Only menu, swipe right.
Go to Install>>Select Storage>>Micro SD Card. You should see the Magisk ZIP you placed there earlier. Select it, and Confirm to flash. After the flashing is over, reboot your phone.
Congratulations, now you have a rooted device!
If you need any help along the way, or end up bricking your device, I will help you the best I can.
Good Luck!
Tested procedure on PAR-LX9
I have tried the method in my Nova 3, PAR-LX9, and I confirm that this works.
I did search a little for the TWRP image since I can't access the TWRP image in your link..
If we can place another thread for the PAR-LX9 thread then that will be great.
By the way, this is my first post at xda, hopefully this post complies with the xda's rules
Cheers
codvph said:
I have tried the method in my Nova 3, PAR-LX9, and I confirm that this works.
I did search a little for the TWRP image since I can't access the TWRP image in your link..
If we can place another thread for the PAR-LX9 thread then that will be great.
By the way, this is my first post at xda, hopefully this post complies with the xda's rules
Cheers
Click to expand...
Click to collapse
Hi, Can you share the link where you got the TWRP? Can't seem to find the proper one. Thank you!
TWRP
june.castillote said:
Hi, Can you share the link where you got the TWRP? Can't seem to find the proper one. Thank you!
Click to expand...
Click to collapse
I can't post outside links for now (haven't got to 10 posts); Will try to send you PM
Note that it works in my unit PAR-LX9. If you have a different phone, flash at your own risk.
Has anyone have tried this with Nova 3i INE-LX2? Also do you have steps for Mac? Thanks!
codvph said:
I have tried the method in my Nova 3, PAR-LX9, and I confirm that this works.
I did search a little for the TWRP image since I can't access the TWRP image in your link..
If we can place another thread for the PAR-LX9 thread then that will be great.
By the way, this is my first post at xda, hopefully this post complies with the xda's rules
Cheers
Click to expand...
Click to collapse
friend do you think you could facilitate the twrp link I also have the par-lx9
TWRP
Julioz13 said:
friend do you think you could facilitate the twrp link I also have the par-lx9
Click to expand...
Click to collapse
here... this TWRP is for PAR-LX1, but I've flashed this and is working in my PAR-LX9
remember to backup before flashing...
drive.google.com/open?id=1X3jaCEUDhR08oPlAHbuwzbA07hrPcmoE
Does Phone unlocked mean bootloader unlocked?
https://forum.xda-developers.com/attachment.php?attachmentid=4633403&d=1541248513
talongt said:
Does Phone unlocked mean bootloader unlocked?
https://forum.xda-developers.com/attachment.php?attachmentid=4633403&d=1541248513
Click to expand...
Click to collapse
It SHOULD, but this device has a bug that causes it to br sometimes incorrectly displayed (Unlocked when actually locked)
Do I have to unlock bootloader first, before root it?
pls specify what version of emui to get the unlock codes.
oof, prices went up. how unfortunate.
codvph said:
here... this TWRP is for PAR-LX1, but I've flashed this and is working in my PAR-LX9
remember to backup before flashing...
drive.google.com/open?id=1X3jaCEUDhR08oPlAHbuwzbA07hrPcmoE
Click to expand...
Click to collapse
thanks friend and some page that you recommend to unlock the bootloader?
jioleight said:
pls specify what version of emui to get the unlock codes.
oof, prices went up. how unfortunate.
Click to expand...
Click to collapse
unlocking bootloader is via fastboot, so I don't think the version of EMUI is important
for reference: I unlocked mine back when EMUI was 8.2
---------- Post added at 09:59 AM ---------- Previous post was at 09:57 AM ----------
Julioz13 said:
thanks friend and some page that you recommend to unlock the bootloader?
Click to expand...
Click to collapse
global unlocking solutions.. the link is in the Nova 3i root/twrp guide
forum.xda-developers.com/nova-3/how-to/guide-how-to-install-twrp-root-huawei-t3878946
payment is via paypal.. you can message them via viber or e-mail.. they respond promptly..
Hi, the link to download the TWRP is not working. I need the recovery for INE-LX1, P Smart Plus. Could you help me? I'm trying to root my P Smart Plus.
Thanks in advance.
I'm using par-lx2...
waiting dear dev did some miracle.
firstly I'm hoping unlock bootloader and root, superSU or magisk. then I'm hoping some lineageOS or statixOS.
a moment of silence for my hopes...
No options to unlock bootloader nova 3i
NO OPTIONS TO UNLOCK BOOTLOADER NOVA 3I,
ABOVE LINKS ARE NOT WORKING.
Supersonic27543 said:
This is a guide on how to unlock the bootloader, install TWRP, and root your Huawei Nova 3i/P Smart+. (INE-LX1/INE-LX2). You need at least $20 to unlock the bootloader.
Thanks for @medoamer for trying this first and helping me out!
Code:
#include <std_disclaimer.h>
/*
* Your warranty will be void if you follow this guide.
*
* Only YOU are responsible for any damage done to your
* device by following this guide. I'm not affiliated with, or
* responsible for any service mentioned below.
*
*/
You will need:
-A working Nova 3i/P Smart+.
-$20/$22/$55 depending on your preferences.
-A Windows PC. (PM me if you have a Linux one, I will update the guide accordingly)
-A working SD card that is tested and working with your phone.
-A reliable USB cable which works for connecting your phone to your PC.
-A backup (optional)
PART 1: Bootloader Unlock
To unlock your bootloader you need a bootloader unlock code. Huawei stopped giving bootloader codes in end of July. But you can buy one in one of the webistes below. You have to send your IMEI to them, and they will generate the unlock code and send it to you. You can see your IMEI at System>>About Phone>>IMEI.
1.) Global Unlocking Solutions for $20/$22
First of all, I know that the website looks super sketchy. But @medoamer, myself, and a lot of other XDA users had success with this method. I spent the extra $2 for the fast service, but it is up to you.
2.) FunkyHuawei for $55
The advantage of FunkyHuawei is that they have a good track record with XDA and other services, a refund policy, and just you know what you are getting into. You can ask for a refund if the code does not work.
3.) Ministry of Solutions for €30
A lot of XDA users had success with this method also. I don't know much information about this method, but the ysay they offer a refund if the code doesn't work.
Got the code? Good. You are mostly done now...
Install ADB and Fastboot. I'm not going to give a guide on how, you can search for it. Download and install Hisuite from here. Connect your phone to your PC, and open a command prompt on your ADB folder. Run,
Code:
adb reboot bootloader
Wait for your device to reboot and show a screen with title "FASTBOOT & RESCUE MODE". In the next command replace <code> with the unlock code you bought. The next step will wipe all the data on your device, so you might want to backup your important data.
Code:
fsatboot oem unlock <code>
Congratulations, you just unlocked the bootloader of your device. Your warranty is legally void now. Reboot the device with the command;
Code:
fastboot reboot
PART 2: Install TWRP and Magisk
First, connect your SD card to your phone, download Magisk ZIP here, and place it in your SD card.
Reboot to Fastboot again with,
Code:
adb reboot bootloader
Download the TWRP image here and copy it your ADB folder. Use this command to flash TWRP.
Code:
fastboot flash recovery_ramdisk twrp-kirin.img
Hold the power button to turn your phone off. Disconnect your phone from your PC. Now hold the power button and Vol. Up button until the Huawei logo appears, then let go of both buttons. The blue TWRP logo should appear and after a second you would see the TWRP menu. If you see the Keep System Read-Only menu, swipe right.
Go to Install>>Select Storage>>Micro SD Card. You should see the Magisk ZIP you placed there earlier. Select it, and Confirm to flash. After the flashing is over, reboot your phone.
Congratulations, now you have a rooted device!
If you need any help along the way, or end up bricking your device, I will help you the best I can.
Good Luck!
Click to expand...
Click to collapse
@Supersonic27543 your TWRP link posted in OP to 4PDA is dead, as seen in screenshot..
 @daveyannihilation why did you delete my previous post?
hinxnz said:
@Supersonic27543 your TWRP link posted in OP to 4PDA is dead, as seen in screenshot..
@daveyannihilation why did you delete my previous post?
Click to expand...
Click to collapse
Dude what the fudge are you talking about? I haven't deleted any post of yours.
daveyannihilation said:
Dude what the fudge are you talking about? I haven't deleted any post of yours.
Click to expand...
Click to collapse
Hey sorry bout that man, must of been my bad :cyclops:
Can anyone help me?
I can't for the life of me get Magisk to install on my Nova 3i. Every time i install it with TRWP, the install runs fine, then when i reboot the device, it says "Magisk not installed"??? I've tried updating, it doesn't work. Ive tried to download the official firware, but the extractor tool doesnt work with Nova 3i. Anyone help me???
Thanks

T-Virus - Infect your Nokia 8 with Project Treble (2019-07-02)

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 about modifying your android system before flashing this!
* 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. Hard. A lot.
*/
(if you expected the Resident Evil references to stop, you just got gnomed)
What is this?
T-Virus (for treble-virus) is a tool that takes a stock Nokia 8 firmware and "infects" it with various parts from the Nokia 8 Sirocco firmware, generating a firmware bundle that is compilant with Project Treble and that can be flashed to a Nokia 8 using NOST.
Firmware Sources
The base of T-Virus is the stock Nokia 8 firmware image (5150 / April Security patch at the time of writing). When being run, the build script takes those files and replaces the partition table with the one from Nokia 8 Sirocco. This required for creating a vendor partition that the stock Nokia 8 does not have. The vendor image is taken from the Sirocco firmware as well. During the build, the vendor image is mounted as rw, and various files are copied over from the stock Nokia 8 system image, or get patched to properly support the minor hardware differences between the two phones. Those actions are defined through very basic scripts inside of the vendor folder in the repository.
The boot image is a modified version of my umbrella kernel, which has support for early mounting vendor. It also includes a TWRP build with full support for Project Treble.
SELinux Hell
Because Android does some very weird stuff with SELinux contexts, you cannot launch a service file when it has an unknown context. We have to fix that by force-setting the SELinux context manually, but due to how SELinux works, this is only possible on a Linux system without SELinux. This means, that you cannot build this on a distribution with SELinux (Fedora in my case). I fixed the problem by building the images in a Ubuntu VM.
How to build?
First you have to download the latest firmware image from https://tmsp.io/fs/xda/nb1/firmware, and the exdupe tool from https://www.quicklz.com/exdupe
Extract the firmware into a folder and then clone the repository, like this:
Code:
$ mkdir firmware
$ ./exdupe -R ~/Downloads/NB1-5150-0-00WW-B03.qlz firmware/
$ git clone https://github.com/resident-nokia/t-virus
$ cd t-virus
The build script has two options you have to set: a version and the path to the extracted firmware. This means you have to run it like this:
Code:
$ ./build.sh --version v0.1 --firmware ../firmware
Leave it running and when it asks you, enter your sudo password. This is required to mount the Android ext4 partitions and edit the files that are only accessable by the (Android) root user, and retain their permissions.
When the script has finished the flashable firmware image will be inside of the out folder. You can optionally package this as a .qlz file again using exdupe.
What works?
It boots
Data decryption in recovery
Flashing GSIs / OpenGApps in recovery
WiFi
Mobile Data
Bluetooth
Sound
Vibration
Calling
Hardware buttons
Fingerprint
Camera
GPS
NFC
SDCard
Multi SIM
4k Video
What doesn't work, or isn't tested
Haptic feedback for Hardware buttons
Bluetooth headphones don't get registered properly
Nokia OZO audio support is missing
Fingerprint sensor is reported as being on the back of the phone
There might be issues with USB transfer under Windows
VoLTE (untested)
How to install?
WARNING: This might not be useable as a daily driver. Continue only if you are able to troubleshoot things if neccessary (bootloops, bricking the phone, causing the alarm app to declare nuclear war)
You can download the latest release from the releases page on the repository. It is a .qlz firmware, so you will have to flash it through NOST. You will need a completely unlocked bootloader. When flashing, make sure to select the "Erase Userdata" option, not doing this will most certainly bootloop the phone.
After the installation completed, your phone will reboot into phh's AOSP GSI. If you want to use a different GSI (you most likely will), follow these steps:
Download your favorite GSI
Unpack every form of compression, so you end up with a .img file
Boot into recovery
Copy the .img to the internal storage of your phone, or to your SDCard
Select "Install" -> "Install .img", select the image file you copied and flash it to your system partition
Then install OpenGApps or any other modifications you like.
Wipe /data to allow the new system image to boot properly and then reboot
To update to a newer version without having to erase userdata, download the zipped vendor image from the release page, and flash the image inside in TWRP.
If you want to go back to stock, simply download the 5150-revert firmware and flash it with NOST, with the "Erase Userdata" option enabled. It will revert all changes T-Virus made to your phone. Firmwares from https://tmsp.io/fs/xda/nb1 will not work.
Links?
Repository: https://github.com/resident-nokia/t-virus
Download: https://github.com/resident-nokia/t-virus/releases
Reverting to stock: https://github.com/resident-nokia/t-virus/releases/tag/5150-revert
What if I have a bug?
Upload a proper bugreport. This means logcat and dmesg. If you don't know how to get them, google it. Also, describe the issue and provide steps to replicate it. Everything else will be ignored.
I don't daily drive this phone anymore. I am doing this just because it is an interesting technical challenge. I don't have as much motivation to fix bugs than someone who daily drives it.
I want to say thank you!
I usually don't do this, but since this involved a lot of work on my side, I would be grateful if you would want to say thank you by buying me a coffee (or two): https://paypal.me/thmsp
Ok. After the flashing we have a phone "infected" by the Project Treble. But what it gives to end-user? What is profit of this?
kosmatyj said:
Ok. After the flashing we have a phone "infected" by the Project Treble. But what it gives to end-user? What is profit of this?
Click to expand...
Click to collapse
The ability to install GSIs (Generic System Images). Basically everything from here: https://forum.xda-developers.com/project-treble/trebleenabled-device-development
Oh! Sounds pretty good! Thanks. Will think about it. Really expands posiibilities and needs to be tested.
---------- Post added at 10:54 ---------- Previous post was at 10:29 ----------
Q: Should Ihave an Android Pie be installed first or it can be flashed over ony ROM version (I currently have Nougat ROM installerd on my Nokia 8)?
kosmatyj said:
Q: Should Ihave an Android Pie be installed first or it can be flashed over ony ROM version (I currently have Nougat ROM installerd on my Nokia 8)?
Click to expand...
Click to collapse
It could work, since it is a modified firmware for reflashing, but just to be sure, update to Pie through OTA. That's what this has been tested with and you won't update your bootloader in the process which eliminates some possible incompatibilities.
What is password for t-virus-20190703.qlz? Should I flash the TV-20190703-vendor.zip before or t-virus-20190703.qlz is all I need?
kosmatyj said:
What is password for t-virus-20190703.qlz? Should I flash the TV-20190703-vendor.zip before or t-virus-20190703.qlz is all I need?
Click to expand...
Click to collapse
It's all in the instructions. There is no password on the qlz file. You can't extract it, you have to flash it using NOST. The zip is for updating from previous versions and not for the initial installation.
Oh, I understood. No need to unpack, just download and flash over NOST, right? Thanks ones more. It is new for me, that`s why I have so much questions.
kosmatyj said:
Oh, I understood. No need to unpack, just download and flash over NOST, right? Thanks ones more. It is new for me, that`s why I have so much questions.
Click to expand...
Click to collapse
Yes. Just follow the instructions in NOST and select the T-Virus .qlz when it asks you to. Also, make sure you select the "Erase Userdata" option in the drop down menu that appears after selecting the .qlz.
Thank you for this - hope you enjoy the couple of coffee's
Amazing work. Can the current Android Q GSI be used?
comatrices said:
Amazing work. Can the current Android Q GSI be used?
Click to expand...
Click to collapse
When I tried it it didn't boot. Your mileage may vary, but you probably have to wait until the source code for Q has been published and people can build real phh GSIs from it.
Hello! Author, don`t you planning to build the same but for Android 8.1? Your work is great anyway but would be just amazing to have an Oreo in this appearance. Thank you.
kosmatyj said:
Hello! Author, don`t you planning to build the same but for Android 8.1? Your work is great anyway but would be just amazing to have an Oreo in this appearance. Thank you.
Click to expand...
Click to collapse
Just flash an Oreo GSI? I know you can run Pie GSIs on Oreos vendor, so it should work fine the other way around.
Nah! Didn`t work. After "android" logo it drops into download mode. AOSP 32 (last version of A 8.1 GSI).
kosmatyj said:
Nah! Didn`t work. After "android" logo it drops into download mode. AOSP 32 (last version of A 8.1 GSI).
Click to expand...
Click to collapse
I am not exactly sure if I understand you correctly, but Nokia 8 is not an A-only device, it is an AB device. You need to flash the AB image of AOSP, not the A one.
Right, I did exactly like you said. system-arm64-ab-vanilla-nosu - image that I flashed couple minutes ago. Downloaded from here: https://github.com/phhusson/treble_experimentations/releases/tag/v32
I`m sorry about my English. I`m Russian.
kosmatyj said:
Right, I did exactly like you said. system-arm64-ab-vanilla-nosu - image that I flashed couple minutes ago. Downloaded from here: https://github.com/phhusson/treble_experimentations/releases/tag/v32
I`m sorry about my English. I`m Russian.
Click to expand...
Click to collapse
Ok, then it probably doesn't work the other way around (Oreo with Pie vendor). An Oreo-based T-Virus is unlikely to happen though, because Siroccos Oreo vendor has some problems (calls not going through properly), and I dont want to maintain two versions of it because, as said in the OP, I don't use my Nokia 8 anymore. It seems like Pie is all you can get with this for now, sorry.
Hi all. Just to make it clear. The procedure for the Nokia 8 is:
1. Unlock Bootloader
2. Do "critical unlock" (fastboot flashing unlock_critical)
3. Flash "t-virus-20190703.qlz" with NOST?
Did i miss something? Whats with Security Enabled Linux?
just4me12 said:
Hi all. Just to make it clear. The procedure for the Nokia 8 is:
1. Unlock Bootloader
2. Do "critical unlock" (fastboot flashing unlock_critical)
3. Flash "t-virus-20190703.qlz" with NOST?
Did i missed something? Whats with Security Enabled Linux?
Click to expand...
Click to collapse
That's right. Don't forget to add "erase data" option while flashing t virus with NOST otherwise you'll end up in a bootloop.

(Moto g fast rav) I bricked my device

So, I was trying to flash a custom ROM onto my moto g fast (product name rav), and it's bricked. I can't seem to flash really anything, is there a chance of saving this phone? Anything will help!
Ill try to help u but there a slight twist, do u have a pc? or lappy?
Icicle2413 said:
Ill try to help u but there a slight twist, do u have a pc? or lappy?
Click to expand...
Click to collapse
If u do have a computer, does it recognize your phone?
Icicle2413 said:
Ill try to help u but there a slight twist, do u have a pc? or lappy?
Click to expand...
Click to collapse
Laptop, on Windows 10 Home 1904
Icicle2413 said:
If u do have a computer, does it recognize your phone?
Click to expand...
Click to collapse
When I do fastboot devices it's detected
JN2002 said:
When I do fastboot devices it's detected
Click to expand...
Click to collapse
What does getvar all say
Code:
fastboot getvar all
JN2002 said:
Laptop, on Windows 10 Home 1904
Click to expand...
Click to collapse
good
JN2002 said:
When I do fastboot devices it's detected
Click to expand...
Click to collapse
also good
Code:
* Your warrenty is now void.
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or your 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 us for messing up your device, I will laugh at you. VERY HARD!
Now follow me:
i-) Connect your device to your lappy, and download SDK Platform-Tools for Windows.
ii-) Go to where u downloaded platform-tools and unzip it. Open the folder.
iii-) Hold Shift and right-click anywhere in the folder, thee should be an option, namely "Open Powershell Window here" or maybe "Open command prompt window here", Its most likely youll get the second option (Open command prompt here). If u see neither. Then open the folder and click "File" in the top right corner. and youll see open either one of the above options.
iv-) Make sure u have connected your device to your lappy, In powershell or cmd and type
adb devices
v-) u should see your device, now reboot to fastboot mode and then type
fastboot devices
. After u see ur device, download twrp-recovery_moto-g8_moto_g_fast.img (Alternate link here)
vi-) Go to the folder where u downloaded the file, next type:
fastboot flash twrp-recovery_moto-g8_moto_g_fast.img
vii-)boot into recovery by pressing and holding the volume down + power button at the same time(when the phone is powered off, obviously).
viii-) This step is crucial!! Click on Settings / File Manager and navigate where u downloaded the lineage-18.1-moto-g8-moto-g-fast-rav-20210222.zip and move it to "/" also called ROOT folder.
Very Important!
Take a complete backup of the phone because the next steps will LITERALLY delete EVERYTHING in your phone INCLUDING the SYSTEM!!​
I think this post is becomig a bit too big so ill post the next part after posting this post.
Icicle2413 said:
Code:
* Your warrenty is now void.
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or your 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 us for messing up your device, I will laugh at you. VERY HARD!
Now follow me:
i-) Connect your device to your lappy, and download SDK Platform-Tools for Windows.
ii-) Go to where u downloaded platform-tools and unzip it. Open the folder.
iii-) Hold Shift and right anywhere in the folder, thee should be an option, namely "Open Powershell Window here" or maybe "Open command prompt window here", Its most likely youll get the second option (Open command prompt here). If u see neither. Then open the folder and click "File" in the top right corner. and youll see open either one of the above options.
iv-) Make sure u have connected your device to your lappy, In powershell or cmd and type
adb devices
v-) u should see your device, if not, reboot to fastboot mode and then type
fastboot devices
. After u see ur device, download twrp-recovery_moto-g8_moto_g_fast.img (Alternate link here)
vi-) Go to the folder where u downloaded the file, next type:
fastboot flash twrp-recovery_moto-g8_moto_g_fast.img
vii-)boot into recovery by pressing and holding the volume down + power button at the same time(when the phone is powered off, obviously).
viii-) This step is crucial!! Click on Settings / File Manager and navigate where u downloaded the rom.zip and move it to "/" also called ROOT folder.
Very Important!
Take a complete backup of the phone because the next steps will LITERALLY delete EVERYTHING in your phone INCLUDING the SYSTEM!!​
I think this post is becomig a bit too big so ill post the next part after posting this post.
Click to expand...
Click to collapse
ill post the next tomorrow im going to bed.
Icicle2413 said:
ill post the next tomorrow im going to bed.
Click to expand...
Click to collapse
ix-) Now Select Wipe / Advanced Wipe and select everything and swipe to wipe. Then again go to Wipe / format data and type "yes" without the quotes.
x-) Next Tap Install / (Go to root folder) rom.zip and swipe to install.
DONE!!!!!!!!!!!!!!!!!!!!!
JN2002 said:
So, I was trying to flash a custom ROM onto my moto g fast (product name rav), and it's bricked. I can't seem to flash really anything, is there a chance of saving this phone? Anything will help!
Click to expand...
Click to collapse
I bricked my Moto G Fast by trying to flash RetUS firmware without unlocking the bootloader first. Attempts to flash Boost official firmware didn't work.
What did work for me was installing the Lenovo Motorola Rescue and Smart Assistant app on my PC. Even that failed the first couple times I tried it. I think the third or fourth attempt it finally succeeded.
Rescue and Smart Assistant Tool - Motorola
<h6><span style="color:#FFFFFF"><strong>Our Rescue and Smart Assistant tool</strong><br />can help diagnose and resolve issues on your<br />Motorola phone or Lenovo phone/tablet.</span></h6>
www.motorola.com
Did you THEN unlock the bootloader? heh
Icicle2413 said:
Code:
* Your warrenty is now void.
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or your 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 us for messing up your device, I will laugh at you. VERY HARD!
Now follow me:
i-) Connect your device to your lappy, and download SDK Platform-Tools for Windows.
ii-) Go to where u downloaded platform-tools and unzip it. Open the folder.
iii-) Hold Shift and right-click anywhere in the folder, thee should be an option, namely "Open Powershell Window here" or maybe "Open command prompt window here", Its most likely youll get the second option (Open command prompt here). If u see neither. Then open the folder and click "File" in the top right corner. and youll see open either one of the above options.
iv-) Make sure u have connected your device to your lappy, In powershell or cmd and type
adb devices
v-) u should see your device, now reboot to fastboot mode and then type
fastboot devices
. After u see ur device, download twrp-recovery_moto-g8_moto_g_fast.img (Alternate link here)
vi-) Go to the folder where u downloaded the file, next type:
fastboot flash twrp-recovery_moto-g8_moto_g_fast.img
vii-)boot into recovery by pressing and holding the volume down + power button at the same time(when the phone is powered off, obviously).
viii-) This step is crucial!! Click on Settings / File Manager and navigate where u downloaded the lineage-18.1-moto-g8-moto-g-fast-rav-20210222.zip and move it to "/" also called ROOT folder.
Very Important!
Take a complete backup of the phone because the next steps will LITERALLY delete EVERYTHING in your phone INCLUDING the SYSTEM!!​
I think this post is becomig a bit too big so ill post the next part after posting this post.
Click to expand...
Click to collapse
you know what to do when device recognize on pc on usb but don't go anywhere?. My device recognize on pc but when i will run the blank flash to open the fastboot it don't run the fastboot screen and continues black. The process that i trying to do is connect the phone on pc and turn it on by the connectors on the motherboard, after that theoretically i have to put it in fastboot with blankflash and install the rom by the qualcom driver but it stops on the blankflash part. It's like my phone don't have the fastboot anymore.

How To Guide Enable 5G NSA on OOS 11 and OOS 11 based Custom ROMs.

Hi there!
OnePlus didn't enable/add 5G in the modem's Carrier Policy files. This is a quick guide on how to enable it.
This guide will work on both OnePlus 9 and OnePlus 9 Pro devices.
Requirements
Root (Magisk)
QPST
Qualcomm drivers installed (EDL ones should do)
Attached .zip file.
USB Cable, of course.
Code:
/*
* Your warranty is now maybe 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.
*
*/
Got all the things required? Now let's go ahead.
Steps -
1. Root your phone running on OOS 11.
2. Enable USB Debugging
3. Connect your device to your PC in MTP mode and execute the following through cmd
Code:
adb shell
su
setprop sys.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
4. Now open Device Manager to see the connected device. It would be recognized as Unknown if not configured in the past.
5. Right click on the device, select Update Driver -> browse my computer drivers -> Let me pick form a list of available drivers -> click on Have Disk -> show all devices browse then go to the Qualcomm Drivers that you downloaded earlier. Then do the same to the other unknown Driver (if exists). Choose 9018 for both unknown drivers.
6. Open the QPST application. Click on Add new port from the right corner. if it shows 2 add them both. (Skip this step if you already see the ports).
7. Open QPST EFS Explorer and select your device. You should now be able to see your device files.
8. Search for policyman/ directory and enter it.
9. Extract the files in the attached zip. Drag and drop all the files inside the zip to the already open policyman/ directory in QPST EFS Explorer.
10. Overwrite all the files and copy them.
11. Reboot your device
12. Dial *#*#4636#*#*. Select Phone Information -> Set Preferred Network -> Choose NR/LTE/TDSCDMA/CDMA/EvDo/GSM/WCDMA.
PS :- You might need to select preferred network on every reboot in OOS11.
This guide will also work with Custom ROMs. Assuming the Custom ROM already has 5G enabled in the Carrierconfig (Like AOSPA), you can skip step 12 and 13.
These files in policyman/ directory have been taken from OOS 13 (F.20) modem.
Please don't bite on me if this guide doesn't work. I tried it personally on my local carrier in India (Airtel), it is working fine. (AOSPA and also OOS 11).
Cheers if this works for you as well!
Like my work? Buy me a coffee
PayPal
Thank you very much! Will test ASAP.
EDIT: Does anyone know why my device does not show up in Device Manager after setprop in adb shell? Any fix for that?

Categories

Resources