Can't flash vendor.img

Discussion in 'Android' started by smileyhead, May 14, 2017.

  1. smileyhead
    OP

    smileyhead Occasional Reporter

    Member
    2,700
    5,961
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    I'm trying to flash it using TWRP, but when it asks which partition to flash it to, my only options are Boot and Recovery. Vendor is not there (it is mounted, though).
    when I try flashing it using fastboot, I get this:
    Code:
    target reported max download size of 471859200 bytes
    Invalid sparse file format at header magi
    sending sparse 'vendor' (311613 KB)...
    OKAY [  7.933s]
    writing 'vendor'...
    FAILED (remote: Command not allowed)
    finished. total time: 7.940s
    
     
  2. Jayro

    Jayro MediCat USB and Mini Windows 10 Developer

    Member
    GBAtemp Patron
    Jayro is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,972
    2,683
    Jul 23, 2012
    United States
    Octo Canyon
    It might be corrupted. Try unmounting it, and flashing again.
     
  3. smileyhead
    OP

    smileyhead Occasional Reporter

    Member
    2,700
    5,961
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    no change.
     
  4. Felek666

    Felek666 Demonically Uncontrollable

    Member
    3,520
    3,975
    Jan 3, 2017
    Poland
    reddit.com/r/satania/
    You need to forcefully flash it with Flash tool via PC. (It seems to have broken/invalid header.)
    I actually stumbled upon this and only that fixed it for me.

    You could always try it from Android itself if you can boot into it. Also TWRP never had option for Vendor or I'm missing something? Atleast not on MTK devices.
     
  5. smileyhead
    OP

    smileyhead Occasional Reporter

    Member
    2,700
    5,961
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    is there a universal tool, or should I find one exclusive to Huawei devices?
    can't even get to the boot animation. black screen after Splash.
     
  6. Felek666

    Felek666 Demonically Uncontrollable

    Member
    3,520
    3,975
    Jan 3, 2017
    Poland
    reddit.com/r/satania/
    Hardbrick. In this case, it's better to just format it and reflash whole OS.
    Find one for Huawei's, overally a universal Huawei flasher should exist.