Hovatek Forum MOBILE Android [Please help] Tecno NX bricked
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[Please help] Tecno NX bricked

[Please help] Tecno NX bricked

Pages (7): 1 2 3 4 57 Next
RMT
RMT
RMT
Techie Member
73
08-09-2018, 09:28 AM
#1



Hello guys,

Very bad story I have for you :

Finally, I flashed my first custom rom (this https://forum.xda-developers.com/project...e-t3709659, system.img for A-only ARM32 devices with Go GApps and SU) and I used fastboot method (here https://www.xda-developers.com/flash-gen...le-device/). Successful !
And after that, when I rebooted my phone, everything seemed working good. Android started well and after, before I accessed to home screen or configuration screen, I had a screen that said me : Unable to decrypt data, please do a factory reset to recover it (or something like that). Then I clicked on the factory reset button, it rebooted and .... It booted in my philz recovery.
I tried to reboot and reboot but it always boot into my recovery (but I never have a bootloop, always go to philz even when I just press power button).

Now, sadly, I can say : I soft brick my phone.

So, as expected if I have this situation, I tried few way to restore my system :

(1)
First, I just tried to flash my stock system but I always have this error message :
Invalid sparse file format at header magi. And then nothing more, fastboot's waiting for new command.
Screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkX3ViAXORWHoysRj (the second test won't work too, I do the screenshot too early)
Then I think I have to flash not only my system but all (boot, recovery, system, vendor). But if I flash my recovery and if it doesn't work, I'll never can access bootloader anymore because my computer (adb) can't recognize my stock recovery.
I've also tried to flash another custom rom (system.img for A-only ARM32 devices vanilla) because I think that the first rom which contains su can damage something. Flash successful but always directly boot into recovery.

(2)
Second, I restored my system backup (performing using philz). So with philz, step by step, I did a factory reset, mounted /system, formated /system, wiped cache and Dalvilk/ART Cache, then restored from /storage/sdcard. It said succesful. But still, when I booted, it always go to recovery, not into system.
And I tried something : I tried to install a zip (Magisk). Philz can mount system, but log says "cannot mount /vendor" and can't install the zip.
So now, I think that system is here, but the problem is the /vendor partition. It is missing. I tried to flash it using fastboot but the problem is when I looked at my stock firmware, vendor file isn't a .img file (weird right ?). I tried to change extension file to .img and flash with fastboot but I had the same error that I had with my stock rom earlier : Invalid sparse file format at header magi.

(3)
And finally, the third, I tried to download using sp flash tool :
Before doing that, I'll do some modifications with my scatter file : change platform into mt6737M instead of mt6735 (I think it's a WwR issue) and delete nvram section.
Next, in download section, I checked boot, system and vendor (I didn't check recovery). Then I clicked on Download, plugged in my powered off phone and I had this error :

ERROR : S_SECURITY_SECURE_USB_DL_IMAGE_SIGN_HEADER_NOT_FOUND (6045), MSP ERROE CODE : 0x00.
[HINT]:

Screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkX_RSo4fcsZ0pjRN

I found in "List of sp flash tool error codes, meanings & how to fix (solution)" thread in hovatek forum that I have to use specific version of sp flash (V5.1532.00) but when I downloaded it, google drive said that the file contains virus and only the owner can download the file. Please give me another link to bypass that.

So, guys, that's the story (very very big). Please I do need your help and I hope that those information could help for that.

Also, this is a screenshot of all files of my stock firmware, dumped with sp flash tool (as you can see, vendor isn't actually an image file) : https://1drv.ms/u/s!AmUA1o5VkY3XkX4uC2XULb2MeO-7

Thanks for advance.

RMT
Yohanan Piadoso
Yohanan Piadoso
Yohanan Piadoso
Senior Member
163
08-09-2018, 03:37 PM
#2
Bro you need to get your stock Rom

and flash with this command format all +download


and please after Download do not change edit the scatter.txt
RMT
RMT
RMT
Techie Member
73
08-09-2018, 04:32 PM
#3
(08-09-2018, 03:37 PM)Yohanan Piadoso Bro you need to get your stock Rom

and flash with this command format all +download


and please after  Download do not change edit the scatter.txt

I've dumped my stock rom with sp flash tool earlier (so I can 100% trust that this is my stock rom).
But, is it really necessary to download all because I only SOFT brick my phone ?

And sorry, I forget to mention that in main post :
Please, which solution is the best now (1, 2 or 3) because I think using fastboot method is easier and how to fix the issue of selected solution ?

Thanks

Edit : Now, I have the specific Sp flash tool (found here https://mega.nz/#F!GdhEEThR!3ipRPMl4acgH...w!mZxxlaTa from this forum https://forum.xda-developers.com/showthr...?t=1982587) but when I loaded my scatter file it said : 

SP FLASH TOOL ERROR: (8417)

The load scatter file is invalid!

[HINT]:
Please check the scatter file and select again!

Screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkgGUsBu6a8Elp7St
This post was last modified: 08-09-2018, 04:39 PM by RMT.
X3non
X3non
X3non
Recognized Contributor
22,062
08-09-2018, 07:36 PM
#4
(08-09-2018, 04:32 PM)RMT ...
[HINT]:
Please check the scatter file and select again!
...

don't format your phone using SP flash tool for any reason yet.

grab your boot and system.img make a flashable zip using the guide at https://www.hovatek.com/forum/thread-20497.html
then try flashing the zip using custom recovery
RMT
RMT
RMT
Techie Member
73
09-09-2018, 03:00 PM
#5



(08-09-2018, 07:36 PM)X3non
(08-09-2018, 04:32 PM)RMT ...
[HINT]:
Please check the scatter file and select again!
...

don't format your phone using SP flash tool for any reason yet.

grab your boot and system.img make a flashable zip using the guide at https://www.hovatek.com/forum/thread-20497.html
then try flashing the zip using custom recovery

Ok,

I followed step by step instructions on the thread and I have that when I extracted files from [system.img] :

FAILED TO GET [file_contexts]
THIS FILE IS IMPORTANT TO CONTINUE
IF YOU HAVE THIS FILE COPY IT TO [TOOLS\tmp\kernel_file_contexts]
OTHERWISE THE ROM MAYBE CONTENTS BUGS AND MAYBE DOESN'T BOOT

screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkgLFQujD3MXCgBuY

And I don't know where I can find this file.
However, I continued the tutorial and I have the flashable zip.
But at many times I have this warning (see screenshots below).

screenshots :
https://1drv.ms/u/s!AmUA1o5VkY3XkgRjUHnYRaL07ZlB
https://1drv.ms/u/s!AmUA1o5VkY3XkgPLSLvrklgk0zOv
https://1drv.ms/u/s!AmUA1o5VkY3XkgW-TW714Z4iof6g

I think it's a bad idea to check the zip out by flashing it now.
And there's some information of my device and ROM info if it could help :
https://1drv.ms/u/s!AmUA1o5VkY3XkgYDF7Yv0-dbbaW2

So, please, where is this file ? In my firmware or by uploading it ?

I would like, also, to point something weird :
I tried to flash twrp like I do in this thread (https://www.hovatek.com/forum/thread-24144.html) and as I said over there, when I flashed in boot partition using fastboot, it works. But now, it always boot into philz after I reboot the phone.
Maybe the custom recovery has a problem too ?

Thanks
hovatek
hovatek
hovatek
Administrator
49,570
10-09-2018, 10:51 AM
#6
(09-09-2018, 03:00 PM)RMT Ok,

I followed step by step instructions on the thread and I have that when I extracted files from [system.img] :

FAILED TO GET [file_contexts]
THIS FILE IS IMPORTANT TO CONTINUE
IF YOU HAVE THIS FILE COPY IT TO [TOOLS\tmp\kernel_file_contexts]
OTHERWISE THE ROM MAYBE CONTENTS BUGS AND MAYBE DOESN'T BOOT

screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkgLFQujD3MXCgBuY

And I don't know where I can find this file.
However, I continued the tutorial and I have the flashable zip.
But at many times I have this warning (see screenshots below).

screenshots :
https://1drv.ms/u/s!AmUA1o5VkY3XkgRjUHnYRaL07ZlB
https://1drv.ms/u/s!AmUA1o5VkY3XkgPLSLvrklgk0zOv
https://1drv.ms/u/s!AmUA1o5VkY3XkgW-TW714Z4iof6g

I think it's a bad idea to check the zip out by flashing it now.
And there's some information of my device and ROM info if it could help :
https://1drv.ms/u/s!AmUA1o5VkY3XkgYDF7Yv0-dbbaW2

So, please, where is this file ? In my firmware or by uploading it ?

I would like, also, to point something weird :
I tried to flash twrp like I do in this thread (https://www.hovatek.com/forum/thread-24144.html) and as I said over there, when I flashed in boot partition using fastboot, it works. But now, it always boot into philz after I reboot the phone.
Maybe the custom recovery has a problem too ?

Thanks

1. Flashing recovery.img to your boot partition is only supposed to be a test or temporary thing. The phone will always boot straight to recovery mode until you flash back stock boot.
2. To get the file_contexts file, unpack boot.img using https://www.hovatek.com/forum/thread-15817.html . You'll find it in the ramdisk folder
3.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
hovatek
hovatek
hovatek
Administrator
49,570
10-09-2018, 10:53 AM
#7
(10-09-2018, 10:51 AM)hovatek
(09-09-2018, 03:00 PM)RMT Ok,

I followed step by step instructions on the thread and I have that when I extracted files from [system.img] :

FAILED TO GET [file_contexts]
THIS FILE IS IMPORTANT TO CONTINUE
IF YOU HAVE THIS FILE COPY IT TO [TOOLS\tmp\kernel_file_contexts]
OTHERWISE THE ROM MAYBE CONTENTS BUGS AND MAYBE DOESN'T BOOT

screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkgLFQujD3MXCgBuY

And I don't know where I can find this file.
However, I continued the tutorial and I have the flashable zip.
But at many times I have this warning (see screenshots below).

screenshots :
https://1drv.ms/u/s!AmUA1o5VkY3XkgRjUHnYRaL07ZlB
https://1drv.ms/u/s!AmUA1o5VkY3XkgPLSLvrklgk0zOv
https://1drv.ms/u/s!AmUA1o5VkY3XkgW-TW714Z4iof6g

I think it's a bad idea to check the zip out by flashing it now.
And there's some information of my device and ROM info if it could help :
https://1drv.ms/u/s!AmUA1o5VkY3XkgYDF7Yv0-dbbaW2

So, please, where is this file ? In my firmware or by uploading it ?

I would like, also, to point something weird :
I tried to flash twrp like I do in this thread (https://www.hovatek.com/forum/thread-24144.html) and as I said over there, when I flashed in boot partition using fastboot, it works. But now, it always boot into philz after I reboot the phone.
Maybe the custom recovery has a problem too ?

Thanks

1. Flashing recovery.img to your boot partition is only supposed to be a test or temporary thing. The phone will always boot straight to recovery mode until you flash back stock boot.
2. To get the file_contexts file, unpack boot.img using https://www.hovatek.com/forum/thread-15817.html . You'll find it in the ramdisk folder
3. When repacking, select RAW so that the flashable zip will contain a boot.img and system.img
4. Speaking of SP flash tool, why not try flashing all the files contained in your backup instead of just a few? Just don't format for any reason
5. Hope you're using the DA file when attempting to flash
This post was last modified: 10-09-2018, 10:55 AM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
RMT
RMT
RMT
Techie Member
73
10-09-2018, 04:25 PM
#8
After I unpack the boot.img using carliv, I don't find the file_contexts file.
See in this screenshot : https://1drv.ms/u/s!AmUA1o5VkY3Xkgc6y0tE0Lfo8xnY

However, I found these two file_contexts files in my recovery>ramdisk :
- nonplat_file_contexts
- plat_file_contexts
screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkgjVkzEt-12g3kGP
And when I paste one of them and rename it to kernel_file_contexts, it works. No error anymore.

So, can I use one of these file instead of the boot.img file_contexts file ? And if yes, which of them I need ? Because I tried both and it always works but it's not the same file. Or is it dangerous using that ?

About sp flash, X3non said to me :
don't format your phone using SP flash tool for any reason yet.

Please what is this reason ? (or maybe I don't understand the sentence)
Also, I can't use sp flash tool now because I have the error I said before :

ERROR : S_SECURITY_SECURE_USB_DL_IMAGE_SIGN_HEADER_NOT_FOUND (6045), MSP ERROE CODE : 0x00.
[HINT]:

I choose download only option, never flash all + download but I'm afraid to choose download all too because no need to flash preloader now and I can have some problem by flashing it without reason (also I read this warning thread https://www.hovatek.com/forum/thread-1996.html

And finally about flashing recovery in boot partition, even if I press vol up + power, I always go to twrp so much so that I flash the stock boot.
This post was last modified: 10-09-2018, 04:33 PM by RMT.
hovatek
hovatek
hovatek
Administrator
49,570
10-09-2018, 07:28 PM
#9
(10-09-2018, 04:25 PM)RMT After I unpack the boot.img using carliv, I don't find the file_contexts file.
See in this screenshot : https://1drv.ms/u/s!AmUA1o5VkY3Xkgc6y0tE0Lfo8xnY

However, I found these two file_contexts files in my recovery>ramdisk :
- nonplat_file_contexts
- plat_file_contexts
screenshot : https://1drv.ms/u/s!AmUA1o5VkY3XkgjVkzEt-12g3kGP
And when I paste one of them and rename it to kernel_file_contexts, it works. No error anymore.

So, can I use one of these file instead of the boot.img file_contexts file ? And if yes, which of them I need ? Because I tried both and it always works but it's not the same file. Or is it dangerous using that ?

About sp flash, X3non said to me :
don't format your phone using SP flash tool for any reason yet.

Please what is this reason ? (or maybe I don't understand the sentence)
Also, I can't use sp flash tool now because I have the error I said before :

ERROR : S_SECURITY_SECURE_USB_DL_IMAGE_SIGN_HEADER_NOT_FOUND (6045), MSP ERROE CODE : 0x00.
[HINT]:

I choose download only option, never flash all + download but I'm afraid to choose download all too because no need to flash preloader now and I can have some problem by flashing it without reason (also I read this warning thread https://www.hovatek.com/forum/thread-1996.html

And finally about flashing recovery in boot partition, even if I press vol up + power, I always go to twrp so much so that I flash the stock boot.

You can use plat_file_contexts renamed just to go through the process of creating the flashable zip.
Once created, replace the boot.img in the zip with your stock boot before flashing
As for formatting, you should avoid formatting a secure boot mtk device because the da file you're using will very likely stop working
Speaking of the error 6045, you might need to risk flashing preloader among the file(s) you're flashing
This post was last modified: 10-09-2018, 07:35 PM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Yohanan Piadoso
Yohanan Piadoso
Yohanan Piadoso
Senior Member
163
10-09-2018, 07:36 PM
#10



if you can boot into twrp

do a twrp backup to SD

and wipe
advanced wipe
cache davik
cache
sys tem

data option


now go to install

and intall the flashable zip you did bro


if your zip is ok your phone will boot ok


you can restore your backup anytime
Pages (7): 1 2 3 4 57 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram