Join us on Tl   Wh

Hovatek Forum DEVELOPMENT Android Remove Orange state on Qualcomm devices?

Remove Orange state on Qualcomm devices?

Remove Orange state on Qualcomm devices?

rei20
rei20
rei20
Newbie
2
10-02-2024, 02:08 AM
#1



Hi all,
I read this thread that works for Mediatek https://www.hovatek.com/forum/thread-31664.html

However I have a Oneplus 8 and a Moto g53, both qualcomm...

On OP the way to remove orange state was to edit the abl.img with hex editor and remove the warning (never managed to remove the 5s wait though). However after update in August 2023 it stop working (search for Orange state comes out empty, nothing to replace)

For motorola, you had to edit logo.img and replace the warning with a different image. This also stop working, instead of the new logo now it gives you a text warning. I believe this is due to a function on abl.img as well:
Code:

undefined8 FUN_00030b38(void)

{
  char cVar1;
  int iVar2;
  ulonglong uVar3;
  char *pcVar4;
  undefined8 uVar5;
  uint local_24;
  longlong local_20;
  longlong local_18;

  local_18 = DAT_000fc8d0;
  local_20 = 0;
  local_24 = 0;
  cVar1 = FUN_00024968();
  if (((cVar1 != '\0') || (iVar2 = FUN_0005b190(0xffffffff,"logo"), iVar2 < 0)) ||
     (uVar3 = FUN_0001fbd0("/security","validate_logo_disabled"), (uVar3 & 1) != 0)) {
    uVar5 = 1;
    goto LAB_00030b64;
  }
  uVar3 = FUN_000a972c(0x1000,0x20,&local_20,&local_24);
  if ((uVar3 & 1) == 0) {
    pcVar4 = "Failed in loading logo for validation\n";
    goto LAB_00030bf8;
  }
  if (local_20 == 0) {
    pcVar4 = "%a: Invalid logo data buffer!\n";
LAB_00030c0c:
    FUN_00043fa8(0,pcVar4,"ssm_validate_logo");
LAB_00030c1c:
    uVar5 = 0;
  }
  else {
    if (local_24 < 0x1221) {
      pcVar4 = "%a: invalid logo data size!\n";
      goto LAB_00030c0c;
    }
    uVar3 = FUN_0002bfa0(1,&DAT_000d06ec,0x208);
    if ((uVar3 & 1) == 0) {
      pcVar4 = "logo image boot validation error\n";
LAB_00030bf8:
      FUN_00043fa8(0,pcVar4);
      goto LAB_00030c1c;
    }
    uVar3 = FUN_00030c98(local_20 + (ulonglong)local_24 + -0x1020,0);
    if ((uVar3 & 1) == 0) {
      pcVar4 = "logo footer error\n";
      goto LAB_00030bf8;
    }
    uVar5 = 1;
  }
  if (local_20 != 0) {
    FUN_00017290();
  }
LAB_00030b64:
  if (DAT_000fc8d0 == local_18) {
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000589b8();
}

It looks like you'd have to pass an efuse checkor set 'validate_logo_disabled' variable somehow. Then it looks like it checks the logo partition against vbmeta.

If anyone else is interested in also finding a way for qualcomm devices, please help Smile
AutoResponder
AutoResponder
AutoResponder
Verified Account
609
10-02-2024, 02:08 AM
#2
Thank you for reaching out for support. Due to high demand, our free support services may experience some delays in response time. We apologize for any inconvenience this may cause.
Alternatively, we offer private support where you can receive dedicated attention and prompt support. These sessions are designed to provide personalized solutions to your specific needs.
If you are interested in scheduling a private session, please visit https://www.hovatek.com/remote
maxpayne
maxpayne
maxpayne
Intern
3,836
12-02-2024, 01:54 PM
#3
(10-02-2024, 02:08 AM)rei20 Hi all,
I read this thread that works for Mediatek https://www.hovatek.com/forum/thread-31664.html
...

Code:

fastboot oem cdms
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Have you tried these commands

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
rei20
rei20
rei20
Newbie
2
12-02-2024, 10:55 PM
#4
(12-02-2024, 01:54 PM)maxpayne
Code:

fastboot oem cdms
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Have you tried these commands

Those are for fixing dm-verity corruption on MTK devices, I asked for Qualcomm.
On Motorola there's a secret command to disable verity " fastboot oem ssm_test 10 1" but it's blocked on normal fastboot. Maybe you need a special tool from Moto.
You can see the hidden commands here: https://xdaforums.com/t/my-new-kane-boot...s.4349861/
maxpayne
maxpayne
maxpayne
Intern
3,836
15-02-2024, 01:08 AM
#5



(12-02-2024, 10:55 PM)rei20
(12-02-2024, 01:54 PM)maxpayne
Code:

fastboot oem cdms
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Have you tried these commands

Those are for fixing dm-verity corruption on MTK devices, I asked for Qualcomm.
On Motorola there's a secret command to disable verity " fastboot oem ssm_test 10 1" but it's blocked on normal fastboot. Maybe you need a special tool from Moto.
You can see the hidden commands here: https://xdaforums.com/t/my-new-kane-boot...s.4349861/

Zip and attach your abl.img then flash this (attached below)

Code:

fastboot reboot fastboot
fastboot flash --slot=all abl IN20XX_abl.img
This post was last modified: 15-02-2024, 01:10 AM by maxpayne.
Attached Files
.zip
IN20XX_abl.zip
Size: 198.9 KB / Downloads: 3

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
Join us
WhTlYt