Join us on Tl   Wh

Hovatek Forum MOBILE 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): 1 2 3 4 5 9 Next
hovatek
hovatek
hovatek
Administrator
49,764
24-12-2019, 08:00 PM
#1



This guide will explain how to fix, hide or remove Yellow, Red and Orange state warnings on a Mediatek Android device. It's ideal for those who feel irritated by constantly seeing these warnings on reboot or who have bricked their devices after flashing or rooting.

Note

What are Yellow, Red and Orange state warnings?


They are verified boot states. You'll get these on some devices after either unlocking the bootloader or flashing a modified/non-factory-signed file to the device. Red State is synonymous with a bricked device.
  • Green state means the device is locked or verified, the Keystore is verified with an OEM key, and the boot image was verified by the Keystore
  • Yellow state means that an alternate keystore was used to verify the boot image
  • Orange state indicates that the device is unlocked, so no verification was done.
  • Red state means that a device in the locked or verified state had a boot image that did not verify.

The warnings look something like:

Quote:Red State
Your device has failed verification and may not.....work properly...Please download %s image with correct signature.....or disable verified boot....Your device will reboot in 5 seconds

Quote:Orange State
Your device has been unlocked and can't be trusted..Your device will boot in 5 seconds

How to hide or remove Orange State warning on Mediatek devices



Requirements

  • LK.bin or .img either from your device's firmware or backed up / dumped from the device
  • Hex Editor (HXD @ https://mh-nexus.de/en/hxd/ is used in this guide)


See the video below or @ https://youtu.be/wFi7Ao4liNw


  1. Launch HXD

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-1.webp]

  2. Click File

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-2.webp]

  3. Click Open

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-3.webp]

  4. Highlight the LK file and click Open

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-4.webp]

  5. It should get loaded in HXD. Click Search

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-5.webp]

  6. Click Find

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-6.webp]

  7. Change Datatype to Text-string

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-7.webp]

  8. Type Red State or Orange State (depending on which you wish to hide) then click OK

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-8.webp]

  9. Take note of where the text you wish to hide begins and ends (highlighted in this example)

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-9.webp]

  10. Change each character pair to 00 (at the second column), this will translate to . at the third column

    [Image: How-to-hide-Orange-and-Red-State-warning...es-10.webp]

  11. Take note of the range for Orange State warning

    [Image: How-to-hide-Orange-and-Red-State-warning...es-11.webp]

  12. Change each character pair to 00 (at the second column), this will translate to . at the third column

    [Image: How-to-hide-Orange-and-Red-State-warning...es-12.webp]

  13. Click File and select Save

    [Image: How-to-hide-Orange-and-Red-State-warning...es-13.webp]

  14. You can now flash the LK file. The LK.bak is a backup of your unmodified LK. You can always flash the .bak backup if something goes wrong

    [Image: How-to-hide-Orange-and-Red-State-warning...es-14.webp]


How to remove 5 seconds boot delay time in Orange State warning on Mediatek devices


  1. Launch HXD

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-1.webp]

  2. Click File

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-2.webp]

  3. Click Open

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-3.webp]

  4. Highlight the LK file and click Open

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-4.webp]

  5. It should get loaded in HXD. Click Search

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-5.webp]

  6. Click Find

    [Image: How-to-hide-Orange-and-Red-State-warning...ces-6.webp]

  7. Click Hex-values tab (or set datatype to hex-values depending on the hxd tool you're using)

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-1.webp]

  8. Search for this Hex depending on your Android version:
    Below Android 10:      7B441B681B68012B
    Android 10 and above: 7B441B681B68022B 

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-2.webp]

  9. Once found, ensure that the 8 values before what was found is 08B5**** (asterisks means any random numbers but the first 4 values must be 08B5). If the found values does not have the 8 characters mentioned as prefix, then search again until you find the right one

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-3.webp]

  10. Basically you should have 08B5****7B441B681B68012B or 08B5****7B441B681B68022B (24 characters in total). Highlight all 24 characters

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-6.webp]

  11. You copy this new 24 characters then return back to HxD window then right click on the highlighted items and select "Paste Insert":
    08B5002008BD1B681B68012B for below Android 10
    08B5002008BD1B681B68022B for Android 10 and above

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-7.webp]

  12. The newly modified 24 characters will be displayed in red

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-4.webp]

  13. Click File and select Save

    [Image: How-to-remove-5-seconds-boot-delay-time-...ces-5.webp]

  14. You can now flash the modified lk file (preferably using fastboot so the 000000s stays hidden)


Important Notice
  • If you still see "........." text with black background and white text then flash the modified lk.bin using fastboot instead of SP flash tool
  • Red State might mean your device will be unable to boot to the home screen. Flash the factory / signed firmware if this happens
  • The patch for removing the 5 seconds boot time delay isn't available to all Mediatek devices
  • You might encounter an error like:

    Code:

    dm-verity corruption

    Your device is corrupt
    It cant be trusted and may not work properly
    Press power button to continue or device will power off in 5s

    To fix this, simply flash your factory firmware using Firmware Upgrade option in SP flash tool.
This post was last modified: 24-06-2024, 09:02 AM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Bhupender890
Bhupender890
Bhupender890
Experienced Member
84
25-12-2019, 04:10 AM
#2
Do we need to convert lk.back file to .img for flashing if something goes wrong or we can also flash that one which is present in firmware.

Sent from my TECNO ID5a using Hovatek Mobile
This post was last modified: 25-12-2019, 04:33 AM by Bhupender890.
hovatek
hovatek
hovatek
Administrator
49,764
25-12-2019, 07:18 AM
#3
(25-12-2019, 04:10 AM)Bhupender890 Do we need to convert lk.back file to .img for flashing if something goes wrong or we can also flash that one which is present in firmware.

Sent from my TECNO ID5a using Hovatek Mobile

You can flash that in the present firmware also

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Bhupender890
Bhupender890
Bhupender890
Experienced Member
84
25-12-2019, 08:15 AM
#4
Thanks for the reply, I have successfully removed the orange state warning. Thank you so much for sharing the post.

Sent from my TECNO ID5a using Hovatek Mobile
i6sxred
i6sxred
i6sxred
Newbie
2
24-03-2020, 04:53 AM
#5



How to flash the lk.bin thing using adb?
hovatek
hovatek
hovatek
Administrator
49,764
24-03-2020, 11:03 AM
#6
(24-03-2020, 04:53 AM)i6sxred How to flash the lk.bin thing using adb?

adb shell dd if=boot.img of=mount_point_of_boot
or with root access
adb shell su dd if=boot.img of=mount_point_of_boot
if you still have any problems then create a new thread for your device issue by clicking "ask question" at the top
i6sxred
i6sxred
i6sxred
Newbie
2
24-03-2020, 05:12 PM
#7
(24-03-2020, 11:03 AM)X3non
(24-03-2020, 04:53 AM)i6sxred How to flash the lk.bin thing using adb?

adb shell dd if=boot.img of=mount_point_of_boot
or with root access
adb shell su dd if=boot.img of=mount_point_of_boot
if you still have any problems then create a new thread for your device issue by clicking "ask question" at the top
Thanks for the help. I already flashed the uboot file trough SP Flash Tool.
A S He
A S He
A S He
Newbie
1
01-04-2020, 05:11 PM
#8
how will I flash the lk file?
xerxes
xerxes
xerxes
Senior Member
8,357
01-04-2020, 07:31 PM
#9
(01-04-2020, 05:11 PM)A S He how will I flash the lk file?


If you have scatter file, follow the guide @ http://www.hovatek.com/forum/thread-159.html or follow the guide @ https://www.hovatek.com/forum/thread-21970.html to generate scatter file.
This post was last modified: 01-04-2020, 07:32 PM by xerxes.
Muhammad Auwal Tahir
Muhammad Auwal Tahir
Muhammad Auwal Tahir
Junior Member
24
11-05-2020, 07:20 PM
#10
(24-12-2019, 08:00 PM)hovatek ...

For the time delay removal the Hex code given appeared twice in my LK.IMG file, which one should I take
This post was last modified: 12-05-2020, 08:44 AM by X3non.
Pages (9): 1 2 3 4 5 9 Next
Users browsing this thread:
 4 Guest(s)
Users browsing this thread:
 4 Guest(s)
Join us
WhTlYt