Sunday 12 August 2012

Hauwei Ascend G300 bootloader B926 ICS Rom

My Brother bought one of these as there is an ICS update, the instructions on
http://www.modaco.com/topic/355583-guide-how-to-install-ics-403-b926/

are very good but we had one or two problems.

There have been one or two queries if you can unlock the bootloader with linux.

Although I have one PC in the house still running Windoze I had already done some updating on my pulse mini and installed Amon Ra so we had a go at putting CWM on and unlocking the phone more.


The modaco guide is pretty good, steps we took were...

We Rooted the phone using superrecovery, this is easy enough in linux and this link has Windows, Mac and linux versions.

Put the phone in the fastboot mode by holding DOWN and  POWER, after a few seconds the phone vibrates and you get the hauwei screen, release power but hold down for a couple of seconds - we found if we didn't do this the phone carried on and booted.

If it stops with the Hauwei logo then plug in the USB cable and in a terminal run the superrecovery file.

This just involves making sure the shell file (.sh) is executable as with linux no files are automatically executable.

If you're sitting in the superrecovery directory type

sudo chmod +x ./install-superrecovery-linux.sh
then type
./install-superrecovery-linux.sh

In linux "./" means "here" - when you use DOS it effectively does the same thing but you don't need to type ./, linux is an implicit operating system so will do whatever you tell it.


Once done you get a message to restart the phone, I had an error but the first two lines said

sending 'recovery' (5074 KB)... OKAY
writing 'recovery'... OKAY

As long as they say OKAY then you're fine.

Remove the battery and USB cable, wait a couple of seconds, reinstall the battery, hold UP and Power this time to get into the recovery mode.
It should say "reboot phone", press the power button.

Once the phone has loaded, scroll through your app lists to see if SU (Super User) is there, if it is then it's rooted.

We followed step 1 to back up the IMEI as we found later this was important to get the loader screen back etc.

I got mine from here  don't worry it says downgrade guide I just used the link to get the program APK (you don't need to copy the file structure to your SD card just the APK).

You also need the phone set to allow 3rd party applications to install (in the settings) or you cannot run the 5irom application.

To run the APK install something like Astro file manager, run it and locate the toobox5irom.APK when you select it you get the option to install it and then the root (SU) will pop up for you to grant SU permission, once you do you can back up the IMEI.



Once that was backed up we made a security copy of the 5imei folders onto NAS drive.

Next step was to download the ICS update, you notice if you unpack this that it has two directories, one says dload, the other Vendor, you do NOT need to apply the Vendor update, if you do the phone will switch to Chinese (you can if you're lucky change it to English which is what we did but it causes a big delay).

You apply the dload update by simply copying the dload folder to your SD card so you can see the dload folder itself.
Hold both the UP and DOWN keys, and Power, the phone responds very quickly to say it's applying an update and takes about 2 minutes to apply.



As long as you're not in Chinese mode now you let it boot into ICS, make sure USB debugging is on and we also turned off fastboot in the settings - this caused some problems with Link2SD for example as it starts the phone up without applying new mount points etc.

NOTE - Don't confuse "fastboot" with "fastboot" - the phone has a fastboot option in the Android settings, this is the one we turned off, it ensures SD card etc are scanned fully on boot up, the difference is only a few seconds. It's just a toggle, On or Off in the settings section (sorry no screenshot :-( )

The other Fastboot is holding Down and Power to get the Hauwei loading screen. It's a bit confusing but if you're this far I don't think you will have any problems. 

The phone will boot into ICS as below.


By the way the pictures here are from Hauwei so not fully in English but they show pretty much what you will see.

Anyway at this point we are really neck and neck with Modaco instructions, the next step is to re-root it and unlock the boot loader.

The link to the unlock file keeps dropping or saying invalid link but I got a copy and I would say it fills me with dread seeing it run on a Windows system, it even shut the PC down so I might be looking at a reload on that machine.

Needless to say it failed to unlock the phone anyway despite everyone saying it was the "only" way to do it.

I downloaded bootloader from here
The file is b926-root-bl.zip.

Now I need to point out that I have adb (Android Debug Bridge) installed on my linux machine just in case anyone has problems etc.
Also to do this step you keep the phone in ICS i.e not in bootloader or recovery mode, just normal phone mode - plug in the USB cable and it says "USB installer mode" or similar on the top, the debug mode prevents the phone mounting as a USB memory device.

Don't mail me for help on this as I know literally nothing on ADB I just know it's installed and when I type
adb devices

in a terminal I see (the phone was in recovery mode at the time)

List of devices attached
C8D15E99DD97    recovery


If you see no devices it's important you make sure this works or you can't send the bootloader over.

You need to have the phone set to enter debug mode which is in the settings, if you didn't do this then test again.

Once you see your phone then you should be good to go.

In the bootloader folder you need to make the root and the bootloader shell files executable.

type

sudo chmod +x  bootloader-linux.sh
sudo chmod +x root-linux.sh

And to run them just type (while you're in the directory)

./root-linux.sh

The terminal should show the file progress as below.
735 KB/s (10324 bytes in 0.013s)
451 KB/s (22364 bytes in 0.048s)
4453 KB/s (831313 bytes in 0.182s)
9 KB/s (386 bytes in 0.040s)

And the bootloader unlocker

./bootloader-linux.sh
Again the terminal shows the file progress.
3335 KB/s (4194304 bytes in 1.228s)
4839 KB/s (4194304 bytes in 0.846s)
8192+0 records in
8192+0 records out
4194304 bytes transferred in 2.169 secs (1933750 bytes/sec)
8192+0 records in
8192+0 records out
4194304 bytes transferred in 1.579 secs (2656303 bytes/sec)

At this point you have ICS, Root (check in the applications that it shows SU) and you have the bootloader unlocked.

Now to install CWM, you put the phone in the fastboot mode by holding DOWN and power (remember to unplug USB, remove battery, put battery in, hold the buttons and when it's stuck on the hauwei logo plug the USB cable in).

I downloaded CWM easy installer from here

As with most of these files they have Windows and linux version in the zip.

Again, you make the installer executable within linux.

Move to the cwm directory and type

sudo chmod +x install-cwm-recovery-linux.sh

and to run it

./install-cwm-recovery-linux.sh

You can see the two errors I kept getting but the main bit is the OKAY .

sending 'recovery' (5212 KB)... OKAY
writing 'recovery'... OKAY
./install-cwmrecovery-linux.sh: line 3: syntax error near unexpected token `('
./install-cwmrecovery-linux.sh: line 3: `echo Now reboot to recovery to root your device (pull battery, then hold volume up and press power).'


Now if you remove the USB cable and battery, install the battery and hold UP and Power you boot into CWM.

I then copied the google apps installer (zip file) into the SD card available here

Keep the file as a zip.

Boot into CWM, select install a zip file from sd card.


and locate the google file(gapps-ics-20120429-signed.zip), the center button on the G300 acts as "select" by the way.

CWM will show it installing the Google apps package.

Finally you press power to go back to the main CWM screen and select "wipe data/factory reset".

Once done I removed the battery and powered up to a fully working ICS with the Google sign in screen, a quick "about phone" will confirm ICS, you can check SU (we installed Link2SD which requires SU so the root worked fine), we also booted into CWM and made a full recovery backup.

A nice note, Hauwei also offer 16gb Cloud storage which pops up.

I hope this helps anyone in the same situation I have been in, after a few hours messing I found my issue was adb was not seeing the phone - I updated my rules.d files to include the google phone identity and rebooted my server, the phone was seen straight away.

The adb part is perhaps the most critical and it was interesting the phone was seen fine before we did the ICS update but no after - no idea why but these are all the steps I did to resolve it so I hope you enjoy this phone as well.










No comments:

Post a Comment