[Android Q&A, Help & Troubleshooting] Tioxbew:
I can't grant apps superuser rights, the phone is not root :c

When I execute sudo ./qdl --debug FireHose_HiSenseA5.mbn RawProgram_HiSenseA5.xml Patch_HiSenseA5.xml :

HELLO version: 0x2 compatible: 0x1 max_len: 1024 mode: 0

READ image: 13 offset: 0x0 length: 0x34

READ image: 13 offset: 0x34 length: 0x140

READ image: 13 offset: 0x1000 length: 0x1000

READ image: 13 offset: 0x2000 length: 0xa68

READ image: 13 offset: 0x686a8 length: 0x1000

READ image: 13 offset: 0x696a8 length: 0x1000

READ image: 13 offset: 0x6a6a8 length: 0x878

READ image: 13 offset: 0x6af20 length: 0xb28

READ image: 13 offset: 0x3000 length: 0x1000

READ image: 13 offset: 0x4000 length: 0x1000

READ image: 13 offset: 0x5000 length: 0x1000

READ image: 13 offset: 0x6000 length: 0x1000

READ image: 13 offset: 0x7000 length: 0x1000

READ image: 13 offset: 0x8000 length: 0x1000

READ image: 13 offset: 0x9000 length: 0x1000

READ image: 13 offset: 0xa000 length: 0x1000

READ image: 13 offset: 0xb000 length: 0x1000

READ image: 13 offset: 0xc000 length: 0x1000

READ image: 13 offset: 0xd000 length: 0x1000

READ image: 13 offset: 0xe000 length: 0x1000

READ image: 13 offset: 0xf000 length: 0x1000

READ image: 13 offset: 0x10000 length: 0x1000

READ image: 13 offset: 0x11000 length: 0x1000

READ image: 13 offset: 0x12000 length: 0x1000

READ image: 13 offset: 0x13000 length: 0x1000

READ image: 13 offset: 0x14000 length: 0x1000

READ image: 13 offset: 0x15000 length: 0x1000

READ image: 13 offset: 0x16000 length: 0x1000

READ image: 13 offset: 0x17000 length: 0x1000

READ image: 13 offset: 0x18000 length: 0x1000

READ image: 13 offset: 0x19000 length: 0x1000

READ image: 13 offset: 0x1a000 length: 0x1000

READ image: 13 offset: 0x1b000 length: 0x1000

READ image: 13 offset: 0x1c000 length: 0x1000

READ image: 13 offset: 0x1d000 length: 0x1000

READ image: 13 offset: 0x1e000 length: 0x1000

READ image: 13 offset: 0x1f000 length: 0x1000

READ image: 13 offset: 0x20000 length: 0x1000

READ image: 13 offset: 0x21000 length: 0x1000

READ image: 13 offset: 0x22000 length: 0x1000

READ image: 13 offset: 0x23000 length: 0x1000

READ image: 13 offset: 0x24000 length: 0x1000

READ image: 13 offset: 0x25000 length: 0x1000

READ image: 13 offset: 0x26000 length: 0x1000

READ image: 13 offset: 0x27000 length: 0x1000

READ image: 13 offset: 0x28000 length: 0x1000

READ image: 13 offset: 0x29000 length: 0x1000

READ image: 13 offset: 0x2a000 length: 0x1000

READ image: 13 offset: 0x2b000 length: 0x1000

READ image: 13 offset: 0x2c000 length: 0x1000

READ image: 13 offset: 0x2d000 length: 0x1000

READ image: 13 offset: 0x2e000 length: 0x1000

READ image: 13 offset: 0x2f000 length: 0x1000

READ image: 13 offset: 0x30000 length: 0x1000

READ image: 13 offset: 0x31000 length: 0x1000

READ image: 13 offset: 0x32000 length: 0x1000

READ image: 13 offset: 0x33000 length: 0x1000

READ image: 13 offset: 0x34000 length: 0x1000

READ image: 13 offset: 0x35000 length: 0x1000

READ image: 13 offset: 0x36000 length: 0x1000

READ image: 13 offset: 0x37000 length: 0x1000

READ image: 13 offset: 0x38000 length: 0x1000

READ image: 13 offset: 0x39000 length: 0x1000

READ image: 13 offset: 0x3a000 length: 0x1000

READ image: 13 offset: 0x3b000 length: 0x1000

READ image: 13 offset: 0x3c000 length: 0x1000

READ image: 13 offset: 0x3d000 length: 0x1000

READ image: 13 offset: 0x3e000 length: 0x1000

READ image: 13 offset: 0x3f000 length: 0x1000

READ image: 13 offset: 0x40000 length: 0x1000

READ image: 13 offset: 0x41000 length: 0x1000

READ image: 13 offset: 0x42000 length: 0x1000

READ image: 13 offset: 0x43000 length: 0x1000

READ image: 13 offset: 0x44000 length: 0x1000

READ image: 13 offset: 0x45000 length: 0x1000

READ image: 13 offset: 0x46000 length: 0x1000

READ image: 13 offset: 0x47000 length: 0x1000

READ image: 13 offset: 0x48000 length: 0x1000

READ image: 13 offset: 0x49000 length: 0x1000

READ image: 13 offset: 0x4a000 length: 0x1000

READ image: 13 offset: 0x4b000 length: 0x1000

READ image: 13 offset: 0x4c000 length: 0x1000

READ image: 13 offset: 0x4d000 length: 0x1000

READ image: 13 offset: 0x4e000 length: 0x1000

READ image: 13 offset: 0x4f000 length: 0x1000

READ image: 13 offset: 0x50000 length: 0x1000

READ image: 13 offset: 0x51000 length: 0x1000

READ image: 13 offset: 0x52000 length: 0x1000

READ image: 13 offset: 0x53000 length: 0x1000

READ image: 13 offset: 0x54000 length: 0x1000

READ image: 13 offset: 0x55000 length: 0x1000

READ image: 13 offset: 0x56000 length: 0x1000

READ image: 13 offset: 0x57000 length: 0x1000

READ image: 13 offset: 0x58000 length: 0x728

READ image: 13 offset: 0x58728 length: 0x1000

READ image: 13 offset: 0x59728 length: 0x1000

READ image: 13 offset: 0x5a728 length: 0x1000

READ image: 13 offset: 0x5b728 length: 0x1000

READ image: 13 offset: 0x5c728 length: 0x1000

READ image: 13 offset: 0x5d728 length: 0x1000

READ image: 13 offset: 0x5e728 length: 0x1000

READ image: 13 offset: 0x5f728 length: 0x1000

READ image: 13 offset: 0x60728 length: 0x1000

READ image: 13 offset: 0x61728 length: 0x1000

READ image: 13 offset: 0x62728 length: 0x1000

READ image: 13 offset: 0x63728 length: 0x1000

READ image: 13 offset: 0x64728 length: 0x1000

READ image: 13 offset: 0x65728 length: 0x1000

READ image: 13 offset: 0x66728 length: 0x1000

READ image: 13 offset: 0x67728 length: 0xf80

END OF IMAGE image: 13 status: 0

DONE status: 0

FIREHOSE WRITE: <?xml version="1.0"?>

<data><nop value="ping"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data><?xml version="1.0" encoding="UTF-8" ?><data><log value="logbuf@0x0807A4E8 fh@0x08077350" /></data>

LOG: logbuf@0x0807A4E8 fh@0x08077350

FIREHOSE WRITE: <?xml version="1.0"?>

<data><configure MemoryName="ufs" MaxPayloadSizeToTargetInBytes="1048576" verbose="0" ZLPAwareHost="0"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="logbuf@0x0807A4E8 fh@0x08077350" /></data>

LOG: logbuf@0x0807A4E8 fh@0x08077350

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" MinVersionSupported="1" MemoryName="eMMC" MaxPayloadSizeFromTargetInBytes="4096" MaxPayloadSizeToTargetInBytes="1048576" MaxPayloadSizeToTargetInBytesSupported="1048576" MaxXMLSizeInBytes="4096" Version="1" TargetName="8937" /></data>

Unable to open vbmeta_sillage_sign.img...ignoring

Unable to open boot_sillage_sign.img...ignoring

Update last partition 67 'grow' with actual size in Primary Header.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="296" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="18" value="NUM_DISK_SECTORS-34."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 18 with 0749FFDE" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 18 with 0749FFDE

Update last partition 67 'grow' with actual size in Backup Header.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="296" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="NUM_DISK_SECTORS-17." value="NUM_DISK_SECTORS-34."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290159 with 0749FFDE" /></data>

LOG: Patched sector 122290159 with 0749FFDE

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

Update Primary Header with LastUseableLBA.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="48" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="1" value="NUM_DISK_SECTORS-34."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 1 with 0749FFDE" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 1 with 0749FFDE

Update Backup Header with LastUseableLBA.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="48" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="NUM_DISK_SECTORS-1." value="NUM_DISK_SECTORS-34."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290175 with 0749FFDE" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 122290175 with 0749FFDE

Update Primary Header with BackupGPT Header Location.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="32" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="1" value="NUM_DISK_SECTORS-1."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 1 with 0749FFFF" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 1 with 0749FFFF

Update Backup Header with CurrentLBA.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="24" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="NUM_DISK_SECTORS-1." value="NUM_DISK_SECTORS-1."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290175 with 0749FFFF" /></data>

LOG: Patched sector 122290175 with 0749FFFF

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

Update Backup Header with Partition Array Location.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="72" filename="DISK" physical_partition_number="0" size_in_bytes="8" start_sector="NUM_DISK_SECTORS-1" value="NUM_DISK_SECTORS-33."/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290175 with 0749FFDF" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 122290175 with 0749FFDF

Update Primary Header with CRC of Partition Array.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="88" filename="DISK" physical_partition_number="0" size_in_bytes="4" start_sector="1" value="CRC32(2,8704)"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="crc start sector 2, over bytes 8704" /></data>

LOG: crc start sector 2, over bytes 8704

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 1 with 0572A741" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 1 with 0572A741

Update Backup Header with CRC of Partition Array.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="88" filename="DISK" physical_partition_number="0" size_in_bytes="4" start_sector="NUM_DISK_SECTORS-1." value="CRC32(NUM_DISK_SECTORS-33.,8704)"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="crc start sector 122290143, over bytes 8704" /></data>

LOG: crc start sector 122290143, over bytes 8704

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290175 with DCB571CF" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 122290175 with DCB571CF

Zero Out Header CRC in Primary Header.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="16" filename="DISK" physical_partition_number="0" size_in_bytes="4" start_sector="1" value="0"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 1 with 00000000" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 1 with 00000000

Update Primary Header with CRC of Primary Header.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="16" filename="DISK" physical_partition_number="0" size_in_bytes="4" start_sector="1" value="CRC32(1,92)"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="crc start sector 1, over bytes 92" /></data>

LOG: crc start sector 1, over bytes 92

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 1 with E9BE6A11" /></data>

LOG: Patched sector 1 with E9BE6A11

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

Zero Out Header CRC in Backup Header.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="16" filename="DISK" physical_partition_number="0" size_in_bytes="4" start_sector="NUM_DISK_SECTORS-1." value="0"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290175 with 00000000" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 122290175 with 00000000

Update Backup Header with CRC of Backup Header.

FIREHOSE WRITE: <?xml version="1.0"?>

<data><patch SECTOR_SIZE_IN_BYTES="512" byte_offset="16" filename="DISK" physical_partition_number="0" size_in_bytes="4" start_sector="NUM_DISK_SECTORS-1." value="CRC32(NUM_DISK_SECTORS-1.,92)"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="crc start sector 122290175, over bytes 92" /></data>

LOG: crc start sector 122290175, over bytes 92

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><log value="Patched sector 122290175 with 20F9FAC0" /></data><?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

LOG: Patched sector 122290175 with 20F9FAC0

no boot partition found

FIREHOSE WRITE: <?xml version="1.0"?>

<data><power value="reset"/></data>

FIREHOSE READ: <?xml version="1.0" encoding="UTF-8" ?><data><response value="ACK" /></data>

Normal ?