• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Error message HWOTA

Search This thread

aalmeida1972

Senior Member
Nov 28, 2014
182
5
Lisboa
Hi,
Each time that i try to use HWOTA i get always the same message. I tried every single method that i found, put in C: folder etc..., but always the same message
Use Vol-Dn + USB Cable to boot into fastboot mode.
Press ENTER key to continue...

C:\Users\Alexandre\Desktop\HWOTA\/hwota.sh: line 182: cd: $'C:/Users/Alexandre/Desktop/HWOTA//recovery/generic_a15\r': No such file or directory

Replace recovery to TWRP, please wait...
/'ror: cannot load 'C:/Users/Alexandre/Desktop/HWOTA//recovery/generic_a15

Disconnect usb cable and turn off phone, use Vol-Up and Power key to enter TWRP recovery.
Press ENTER key to continue...

After device enter TWRP, connect to USB cable.
Press ENTER key to continue...


Can someone help me please?
Thanks
 

Jannomag

Senior Member
Sep 20, 2015
694
222
Hamburg
I can help you!

You need a text editor with line numbers (on Windows Notepad++).
Open the hwota.sh.
Got to line 176.
Replace the red part of the following line with you Model (VTR or VKY - IMPORTANT to use the right model!):
Code:
MODEL=[COLOR="Red"][B]`echo $PRODUCT | $AWK -F "-" '{ print $1 }'`[/B][/COLOR]
Save and give it a try.

If it gives you another error, try replace only this:
Code:
MODEL=`[COLOR="red"][B]echo $PRODUCT | $AWK -F "-" '{ print $1 }'[/B][/COLOR]`
(with graves)


The error is your model number stored in the bootloader. "generic_a15" is a development version, caused by wrong flash or update. The script doesn't know this version and gives you the error.
My solution replaces the version determined by the script with your correct model.
You still need to put all your firmware files in the correct directories.

Please tell me, if this worked for you!
And for the next time posting, please tell us your model.


Greetings,
Jannomag
 
Last edited:
  • Like
Reactions: aalmeida1972

aalmeida1972

Senior Member
Nov 28, 2014
182
5
Lisboa
Hi,
First of all thank you very much.
In line 176 i have this written: MODEL=`echo $PRODUCT | $AWK -F "-" '{ print $1 }'`
if my model is a HUAWEI P10 VTR-L09, what should i write exactly? I am sorry but i am a noobie in this.

Thank you again
 
Last edited:

Jannomag

Senior Member
Sep 20, 2015
694
222
Hamburg
No Problem.
First try this (copy / paste):
Code:
 MODEL=VTR

If this is not working try this:
Code:
 MODEL=`VTR`

When you're noobie to this, did you download all three HWOTA packages (base, windows/Linux, P10) and also all three firmware files and renamed them correctly?

Another important thing while using HWOTA:
You have to choose "rebrand" and "HWOTA update directory" when HWOTA is asking.

At this point I have another tip for you. I was on VTR-L09, too, but I wanted the dual sim feature. If you want it, too, download the L29 firmware and rebrand to L29, when HWOTA is asking for it.

If you want, you can add me at Hangouts, just PM me. It's a bit faster for helping. When we've found a solution, you can post it here for other people.
 
Last edited:

aalmeida1972

Senior Member
Nov 28, 2014
182
5
Lisboa
Hi,
I talked to soon. Everything was fine until it stucks in here:
* Model: VTR *
* Build: NRD90M *
* Source: Script update directory *
* Update: Rebrand to VTR-L29C432 *
****************************************
Press ENTER key to continue...


Replace oeminfo to selected one, please wait...
[100%] /tmp/oeminfo.bin
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 0.422567 seconds, 151.5MB/s

Unlock device is required before next step.
Input your unlock code: 8HKH4QDUHVN6P6L4

Use Vol-Up to select YES and press power button
...
(bootloader) The device will reboot and do factory reset...
OKAY [ 4.092s]
finished. total time: 4.099s

Please wait device boot to TWRP recoery.
Press ENTER key to continue...


Please wait for upload files and do not press any key.

Copy update.zip file, please be patient and wait....
[100%] /data/update/HWOTA/update.zip

Copy update_data_public.zip file, please be patient and wait....
[100%] /data/update/HWOTA/update_data_public.zip

Copy update_all_hw.zip file, please be patient and wait....
[100%] /data/update/HWOTA/update_all_hw.zip

Copy recovery file, please be patient and wait....
[100%] /tmp/VTR_RECOVERY_NoCheck.img
[100%] /tmp/VTR_RECOVERY2_NoCheck.img
39+1 records in
39+1 records out
41668608 bytes (39.7MB) copied, 0.311461 seconds, 127.6MB/s
39+1 records in
39+1 records out
41668608 bytes (39.7MB) copied, 0.303532 seconds, 130.9MB/s
 
Last edited:

Jannomag

Senior Member
Sep 20, 2015
694
222
Hamburg
Allright, then. You're welcome!

For following issues like that:
The easiest way to go around this issue is to replace line 175, 176 and 177 with following:
Code:
PRODUCT=VTR-L09
MODEL=VTR
BUILD=VTR-L09C432B160

For VKY (P10 Plus) take this:
Code:
PRODUCT=VKY-L09
MODEL=VKY
BUILD=VKY-L09C432B160

This replaces the automatic recognition of you phone model via fastboot commands with this.
With this replacement you can rebrand to every oeminfo given by HWOTA (oeminfo folder), so it's not important, that this lines matching your actual phone model, it's just for running the script without this issue.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Allright, then. You're welcome!

    For following issues like that:
    The easiest way to go around this issue is to replace line 175, 176 and 177 with following:
    Code:
    PRODUCT=VTR-L09
    MODEL=VTR
    BUILD=VTR-L09C432B160

    For VKY (P10 Plus) take this:
    Code:
    PRODUCT=VKY-L09
    MODEL=VKY
    BUILD=VKY-L09C432B160

    This replaces the automatic recognition of you phone model via fastboot commands with this.
    With this replacement you can rebrand to every oeminfo given by HWOTA (oeminfo folder), so it's not important, that this lines matching your actual phone model, it's just for running the script without this issue.
    1
    I can help you!

    You need a text editor with line numbers (on Windows Notepad++).
    Open the hwota.sh.
    Got to line 176.
    Replace the red part of the following line with you Model (VTR or VKY - IMPORTANT to use the right model!):
    Code:
    MODEL=[COLOR="Red"][B]`echo $PRODUCT | $AWK -F "-" '{ print $1 }'`[/B][/COLOR]
    Save and give it a try.

    If it gives you another error, try replace only this:
    Code:
    MODEL=`[COLOR="red"][B]echo $PRODUCT | $AWK -F "-" '{ print $1 }'[/B][/COLOR]`
    (with graves)


    The error is your model number stored in the bootloader. "generic_a15" is a development version, caused by wrong flash or update. The script doesn't know this version and gives you the error.
    My solution replaces the version determined by the script with your correct model.
    You still need to put all your firmware files in the correct directories.

    Please tell me, if this worked for you!
    And for the next time posting, please tell us your model.


    Greetings,
    Jannomag
    1
    At this point I have another tip for you. I was on VTR-L09, too, but I wanted the dual sim feature. If you want it, too, download the L29 firmware and rebrand to L29, when HWOTA is asking for it..

    Just curious, what benefit do you get from rebranding as dual sim?