Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [Tutorial] How to fix MTK orange, yellow & red state warnings

[Tutorial] How to fix MTK orange, yellow & red state warnings

[Tutorial] How to fix MTK orange, yellow & red state warnings

Pages (9): Previous 1 4 5 6 7 8 9 Next
neiviv-ui
neiviv-ui
neiviv-ui
Enthusiastic Member
5
19-03-2022, 11:20 AM
#51



Hello everyone,

I had the same problem than everybody, and with small reverse engineering (Ghidra), I found out the new value, it's :


08B5****7B441B681B680122B, so 08B5****7B441B681B68022B.


The reason is quite simple, it's because the patch prevented a function, which checked if the device could be trusted, from working by making it directly return 0. But, since (probably) Android 10, the function changed a little bit, and the binary code did so (here, it's a variable, 'state', I think, that is compared to 0x02 were it was to 0x01 before).


The same patch works perfectly, so:


If device is less than android 10:

- Dump lk.img, mtkclient works perfectly, but other tools may also work (not for me)

- Locate 08B5****7B441B681B68012B.

- Change the first 6 bytes to 08B5002008BD, so 08B5002008BD1B681B68012B

- Flash lk.img using
Code:

fastboot flash lk lk.img


Else:


- Same

- Locate 08B5****7B441B681B68022B.

- Same, so 08B5002008BD1B681B68022B.

- Same


Since it prevent the function from running, the text (at least for 'Orange state' case) should disappear.

I, or Hovatek forum can't be taken as responsible if you damage your phone.



/* Do it at your own risks */
hovatek
hovatek
hovatek
Administrator
50,956
21-03-2022, 10:00 AM
#52
(19-03-2022, 11:20 AM)neiviv-ui Hello everyone,

I had the same problem than everybody, and with small reverse engineering (Ghidra), I found out the new value, it's :


08B5****7B441B681B680122B, so 08B5****7B441B681B68022B.


The reason is quite simple, it's because the patch prevented a function, which checked if the device could be trusted, from working by making it directly return 0. But, since (probably) Android 10, the function changed a little bit, and the binary code did so (here, it's a variable, 'state', I think, that is compared to 0x02 were it was to 0x01 before).


The same patch works perfectly, so:


If device is less than android 10:

- Dump lk.img, mtkclient works perfectly, but other tools may also work (not for me)

- Locate 08B5****7B441B681B68012B.

- Change the first 6 bytes to 08B5002008BD, so 08B5002008BD1B681B68012B

- Flash lk.img using
Code:

fastboot flash lk lk.img


Else:


- Same

- Locate 08B5****7B441B681B68022B.

- Same, so 08B5002008BD1B681B68022B.

- Same


Since it prevent the function from running, the text (at least for 'Orange state' case) should disappear.

I, or Hovatek forum can't be taken as responsible if you damage your phone.



/* Do it at your own risks */

Guide updated. Thanks for sharing

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Sandeepth
Sandeepth
Sandeepth
Enthusiastic Member
14
07-05-2022, 01:31 PM
#53
(19-03-2022, 11:20 AM)neiviv-ui Hello everyone,

I had the same problem than everybody, and with small reverse engineering (Ghidra), I found out the new value, it's :


08B5****7B441B681B680122B, so 08B5****7B441B681B68022B.


The reason is quite simple, it's because the patch prevented a function, which checked if the device could be trusted, from working by making it directly return 0. But, since (probably) Android 10, the function changed a little bit, and the binary code did so (here, it's a variable, 'state', I think, that is compared to 0x02 were it was to 0x01 before).


The same patch works perfectly, so:


If device is less than android 10:

- Dump lk.img, mtkclient works perfectly, but other tools may also work (not for me)

- Locate 08B5****7B441B681B68012B.

- Change the first 6 bytes to 08B5002008BD, so 08B5002008BD1B681B68012B

- Flash lk.img using
Code:

fastboot flash lk lk.img


Else:


- Same

- Locate 08B5****7B441B681B68022B.

- Same, so 08B5002008BD1B681B68022B.

- Same


Since it prevent the function from running, the text (at least for 'Orange state' case) should disappear.

I, or Hovatek forum can't be taken as responsible if you damage your phone.



/* Do it at your own risks */

So disabling delay function will also remove orange state warning ? Or both needs to be edited ? Kindly clarify
hovatek
hovatek
hovatek
Administrator
50,956
09-05-2022, 01:21 PM
#54
(07-05-2022, 01:31 PM)Sandeepth So disabling delay function will also remove orange state warning ? Or both needs to be edited ? Kindly clarify

Both need to be edited

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
tbtbtata
tbtbtata
tbtbtata
Enthusiastic Member
8
18-06-2022, 01:50 PM
#55

Mediatek Course Mediatek Course


(21-10-2020, 01:14 PM)X3non
(21-10-2020, 04:53 AM)tbtbtata ...

this doesn't seem to have anything to do with the patch explained here
create a new thread for your device issue by clicking "Ask Question" at the top

You were right, this was not related. Flashing the original lk did not get rid of it.
tbtbtata
tbtbtata
tbtbtata
Enthusiastic Member
8
18-06-2022, 01:51 PM
#56
(09-05-2022, 01:21 PM)hovatek
(07-05-2022, 01:31 PM)Sandeepth So disabling delay function will also remove orange state warning ? Or both needs to be edited ? Kindly clarify

Both need to be edited
For what it's worth, on my lk image files, I could not edit the orange / red states as indicated, but I could apply the "5 second delay" patch, and it got rid of the warning at the same time.
Gargoyle
Gargoyle
Gargoyle
Contributor
579
18-06-2022, 06:35 PM
#57
(09-05-2022, 01:21 PM)hovatek
(07-05-2022, 01:31 PM)Sandeepth So disabling delay function will also remove orange state warning ? Or both needs to be edited ? Kindly clarify

Both need to be edited

I tried this method and it is not necessary to delete Red State and Orange State, I left both values, they are not displayed.
Attached Files
.jpg
screen-2022-06-18-[19-32-36]-1.jpg
Size: 192.71 KB / Downloads: 116
.jpg
screen-2022-06-18-[19-33-01]-1.jpg
Size: 254.75 KB / Downloads: 128
.jpg
screen-2022-06-18-[19-33-43]-1.jpg
Size: 315.46 KB / Downloads: 77
Gargoyle
Gargoyle
Gargoyle
Contributor
579
08-10-2022, 10:33 PM
#58
Realme 8 5G / RMX3241

It doesn't work, the device won't start after modification,
automatically waits for MediaTek USB Port (COM)
xerxes
xerxes
xerxes
Senior Member
10,418
09-10-2022, 10:01 AM
#59
Because u did not edit it well ,that is not the start of orange , neither the end
Gargoyle
Gargoyle
Gargoyle
Contributor
579
09-10-2022, 10:06 AM
#60
(09-10-2022, 10:01 AM)kelvinchinedu Because u did not edit it well ,that is not the start of orange , neither the end

Edit only 5 seconds boot delay time,
with Tecno Spark 8 it works without any problem

It won't boot even if I modify the Orange State
This post was last modified: 09-10-2022, 10:20 AM by Gargoyle.
Attached Files
.jpg
screen-2022-10-09-[1].jpg
Size: 89.27 KB / Downloads: 78
.jpg
screen-2022-10-09-[2].jpg
Size: 80.87 KB / Downloads: 108
.jpg
screen-2022-10-09-[3].jpg
Size: 162.23 KB / Downloads: 120
Pages (9): Previous 1 4 5 6 7 8 9 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
WhTlYt