Wednesday, 21 July 2010

Root and Install Cooked Android 2.1 ROM on T-Mobile Branded HTC Hero Used on the 3 Network

About the phone
- HTC Hero running T-Mobile branded Android 1.5 bought used from Ebay.

First: Unlock the phone
Unlock code bought from Ebay for £7.00.

Second: Create Goldcard.
It is necessary to create a "Goldcard" micro SD card to by pass the phone's installed T-Mobile ROM software checks and gain access to the phone for rooting.

1) I followed the instructions '"GoldCard" Test Procedure' here though I'm not sure if this is necessary before carrying out "Goldcard" creation process (see below).

"GoldCard" Test Procedure

Please comment on whether this procedure works, it is untested. Thanks to ante0's guide for some details used.

I. Setting up drivers etc

1. Download the latest HTC Sync from here and the latest SDK from here

2. Install HTC Sync & extract the Android SDK .zip file to C:\ (may help to re-name the folder to a shorter name, in this tutorial it will be C:\android\ )

3. Click on your Windows Start menu and right click on "Computer" > Properties > Advanced System Settings > Environment Variables

Find "Path" under "System Variables" and edit it. Add the following to the end of the text:
;C:\android\tools

4. Restart your computer.
On your phone, click Settings > Applications > Development and make sure USB Debugging is on.

When back at your desktop plug then phone in and wait for it to install the correct drivers, this should be done automatically on the latest version of HTC Sync and adb should be enabled.

5. Type the following into the command prompt window (Start > Search > "cmd") and enter the following and press enter:

adb devices

You should see a serial number pop up and look like:
000000000000 device
It’s the serial number of your phone. This means the drivers are working in normal boot mode. Next we need to check them in fastboot mode (thanks to janhol for helping with this next part)

6. Turn off your phone and load into fastboot by holding the Back button and pressing Power with the hero plugged into the computer

7. "Start" > Right Click "Computer" > "Manage" > "Device Manager"

8. Check that the "ADB Interface" reads "My Hero", not "Android bootloader drivers" or anything else.

If it does then:
Right click "Android bootloader drivers" > "Update Driver Software" > "Browse my computer..." > "Let me pick from..." > "Have Disk..." > "Browse" > "C:\Program Files (x86)\HTC\HTC Driver\Driver Files\Win7_x64" > "androidusb.inf"

Once selected click "OK".

"My HTC" should show in the list of "compatible hardware" now, so select that and click "Next" to install the driver. Switch off the phone (may have to pull the battery).

2) I then followed the instructions 'II. Create a “GoldCard” from a MicroSD Card' from here (ibid). I did have to buy a 2 Gig Kingston Micro SD card as I had trouble using the card that came with the phone. I also bought a Micro SD converter so I could plug the Micro SD card into the laptop (card and converted cost £4.50 from Ebay).

II. Create a “GoldCard” from a MicroSD Card

(Please keep in mind that some memory cards don’t work for this process)

1. Put the memory card you want to use for the GoldCard into your phone, make sure all the data is backed up before proceeding as it will be formatted.

2. With the memory card in your phone, and not connected to the PC, click on:
Settings > SD and Phone storage > Unmount SD Card

Once it unmounts, click Format SD Card.

3. On your phone, click:

Settings > Applications > Development and make sure USB Debugging is on.

4. Return to the Command Prompt from earlier after re-plugging in your Hero. Then type the following with hitting enter at the end of each line:

adb shell
cat /sys/class/mmc_host/mmc1/mmc1:*/cid

5. A code will display, write the code down into a notepad document or similar (MAKE SURE TO WRITE IT DOWN EXACTLY!)

6. Go to this site: http://hexrev.soaa.me/ then put in your code you just wrote down into the text box and click submit. It will generate the code reversed and replace the first two digits with zeros automatically. Copy this.

7. Then go to http://psas.revskills.de/?q=goldcard and Paste your CID into the box and fill in the other details. You'll be e-mailed the goldcard. Save the goldcard image to disk.

8. Now go to http://download.cnet.com/HxD-Hex-Edi...=uo&tag=button to download the HxD Hex Editor. Install it to your computer.

9. Mount your SD card on your phone so that it shows up on your computer as "Removable Disk" - Pull down the notification bar on the phone and select Mount CD Card.

10. Open the Hex Editor (Run as Administrator if you're in Vista or Windows 7) and click on the Extra menu > Open Disk. Under "Physical Disk" select "Removable Disk". Make sure to UNcheck “Open as ReadOnly”. Click OK.

11. Go to the Extra menu again and click Open Disk Image. Open up the goldcard.img that you saved from your email. Press OK when prompted for Sector Size 512 (Hard Disks/Floppy Disks). You should now have two tabs, one is the SD card (Removable Disk) and the other is the goldcard.img.

12. Click on the Goldcard.img tab and press Ctrl + A (select all) Then Ctrl + C (copy).

13. Click on the Removable Disk tab (Your SD Card) and select the complete lines from 00000000 to 00000170 then press Ctrl + V (paste).

14. Click on File then click Save.

15. Close the Hex Editor.

16. Reboot the phone.

Try to open the memory card on the computer (i.e. mount the drive), if it lets you, you are all set. If it asks/tells you to reformat the card, then try steps 13 – 19 again. If it gives you the same error again, then try a different memory card. You can confirm that it has worked by opening the Removable Disk in the hex editor again and making sure the code you pasted in has stayed but this shouldn't be necessary.



III. Downgrade the Hero using the Goldcard

1. With your phone plugged in, pull down the notification bar on the phone and select HTC Sync. Make sure it connects to HTC Sync on the computer (not sure if this is necessary anymore).

2. Download this generic HTC Hero RUU

Hero RUU -
2.73.405.5
2.73.405.5 (alternative)

3. Double click the RUU exe you downloaded while the phone is plugged in with the GoldCard in it and follow the on screen procedure. This will install the old generic Hero rom on your phone, this is to allow you to install a recovery image. Reboot and fill in as few details as possible as these will be overwritten soon
.


The "Goldcard" creation process was a bit annoying as I had to borrow a laptop running Windows XP to use the Hex editor as I use GNU/Linux Ubuntu on my laptop. If anyone has any tips about Hex editor applications to use on Linux, and the steps to take to create the "Goldcard" with the specific editor I would greatly appreciate comments.

Third: Installing a Recovery Image
I followed the instructions '1. Installing a Recovery Image' from here (ibid).

1. On your phone, go to Settings > Applications - and make sure "Unknown Source" is ticked.

2. On your phone, go to Settings > SD card and phone storage - click Unmount SD card.

3. Then click Format SD card.

4. Plug the phone into the computer via USB, then pull down the notification bar and click on the SD card notification. Then click mount.

5. Download this APK and recovery image and save it to your computer:

http://zenthought.org/content/project/flashrec - FlashRec.apk
http://forum.xda-developers.com/showthread.php?t=561124 - Amon_Ra’s Hero Recovery Image

6. Copy them both to your SD card (do NOT put them inside any folders on the SD card, just put them on the SD card itself).

7. Unplug the phone from the computer once they are downloaded to the SD card.

8. Go to the Market and download ASTRO File Manager or any file manager program if you do not already have one.

9. Open the file manager and find the FlashRec apk file and click it and choose open app manager and then install it.

10. When it is installed click Open. Click on Backup Recovery Image and wait for it to finish. If you get "backup failed" response make sure the "Goldcard" is working, if the backup is a success carry on to step 11.
11. Once done, click on the empty text box in the FlashRec program and type:

/sdcard/recovery-RA-hero-v1.6.2.img
(replace exact name as new versions come out)

Then click on the Flash Recovery Image button and wait for it to finish.

Forth: Load a Custom ROM
I followed the instructions '2. Loading the Custom ROM' from here (ibid). I installed SenseHERO-2.1-090610-B5.zip downloaded from here, talked about here. Worked great on my Hero - though I guess best thing is to have a look around and get the latest stable ROM from somewhere.

2. Loading the Custom ROM

N.B. This part of the guide can be repeated with as many different rom's as you like. You do not have to repeat the previous sections once you have a recovery image installed.

1. Download a Custom ROM from
http://forum.xda-developers.com/forumdisplay.php?f=512 to your computer.

2. Plug in your phone and pull down the Notification bar when the SD notification pops up.

3. Click on the notification and select Mount.

4. Open the SD Card fonder on your computer.

5. Copy the Custom ROM from your computer to your SD Card, do NOT change it, extract the files or put it in any folders

6. Unplug your phone and turn it off.

7. Turn the phone on by holding down Home and Power till you get to the custom recovery screen.

8. Select Wipe from the menu, then select:

Wipe data/factory Reset
Wipe Dalvik-cache
Wipe SD:ext partition
Wipe battery stats
Wipe rotate settings
Press back button
Select Flash Zip from SD Card
Select the file
Click Confirm

N.B. Ignore any "errors", they are normal and usually mean you're not using that feature.

9. Once it is done, select Reboot and you will boot into the OS. Once you are loaded in make sure you format your SD card once more through the settings menu and then reboot the phone one last time. This will ensure you get the correct apps.

Fifth (and finally): I Updated the Radio Driver
I followed the instructions 'III. Updating your Radio' from here (ibid). I installed the latest driver available at the time, version: 63.18.55.06PU_6.35.15.14.

III. Updating your Radio

N.B. People have been reporting problems with this part of the guide, try it at your own risk. It is not required to be on the latest radio when using a Custom ROM, however it is usually recommended! The radio deals with your signal levels, I found it to increase my signal from a maximum of 2 bars to full. It is likely to help if you travel, but if you are happy with your signal and tend to stay in the same place it may not be worth it.

Be aware that if this doesn't work it can potentially brick you phone... though I've had no reports of that so far. Just people finding it doing different things after it flashes.


1. Download the latest radio from the following site:
At time of writing that is:
63.18.55.06PU_6.35.15.14
N.B. Radio's are not region specific!

2. Mount your SD Card so your computer can read it and place the downloaded file in the main directory

3. Turn off your phone and boot into the recovery screen (holding Home + Power)

4. Choose:
Flash Zip from SD Card
Click Confirm
Reboot system now when prompted

N.B. This can take anywhere between 1 - 10 minutes or maybe even longer in some cases. Do not touch your phone until you either: get back to the recovery screen or your custom rom loads and you see the unlock screen.

DO NOT PULL THE BATTERY OUT, THIS WILL BRICK YOUR HANDSET.

5. When this process has completed reboot the phone and you should have the new radio. This can be checked in Settings > About Phone > Software Information > Baseband Version

The phone is working great with all the new feature that Android 2.1 provide - sweet.

Sunday, 20 June 2010

How to play live mp3 streams on the Android platform?: Answer, Nagare

How to play live mp3 streams on the Android platform.Install and use Nagare Version 0.1.1 for free from the market place - plays live mp3 audio streams from shoutcast and icecast servers.I had trouble playing Cinemix streamed mp3 radio - the Nagare free application worked great.My hardware platform: HTC Hero, running Android 1.5.

Tuesday, 22 September 2009

Acer Aspire One Update BIOS Using Linux

How I updated my Acer Aspire One netbook BIOS using Linux/Ubuntu 9.04.

Following these instructions could render your netbook unusable! Follow at your own risk.

Quick Summary (detailed instructions below)

1) Use Unetbootin to create a FreeDOS bootable USB stick.
2) copy the downloaded BIOS update and BAT script on to the stick (unzip the BIOS download, and then go to the sub folder BIOS_ACER_3310_Windows_AOA110 & AOA150/Dos_Flash, and copy the files 3310.BAT, 3310.fd and FLASHIT.EXE to the USB stick).
3) Boot the Aspire One from the USB stick - choose "Default" and then "Safe Mode".
4) At the Dos prompt go to the b: drive (i.e. type "b:", without quotes, and hit enter)  and run the  the 3310.BAT script (i.e. type 3319.BAT, without the quotes, and hit enter) - job done!

Required Downloads

IMPORTANT: Download the correct BIOS update for your model from the Acer website
Service and Support > Driver Download > Netbooks > Aspire One > Model - Then the BIOS tab

Download Unetbootin for Linux:  http://sourceforge.net/projects/unetbootin/files/UNetbootin/372/unetbootin-linux-372/download

Download FreeDOS image ISO: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/fdbasecd.iso

Detailed Instructions

Download the FreeDOS iso file to your desktop, from the link above. We'll come back to this in a moment.

Unetbootin is a great tool for creating bootable USB sticks, we're going to use it to create a FreeDOS bootable USB stick. Download the Linux version (from the link above) on to your destop. Right click on the downloaded Unetbootin file, go to Properties > Permissions and check the "Allow executing file as program" check box. Close the properties window. Double click on the Unetbootin (you should be asked for your password), and Unetbootin should start up.

In  Unetbootin there are a number options - choose "Diskimage", next to the ISO drop down box. Next to the the Text Input bo, there is a "browse for file" button, click this and select the earlier downloaded FreeDOS iso file. Select the correct USB drive, and click "OK".

Once the bootable FreeDOS  USB stick has been created, copy the downloaded BIOS update and BAT script on to the stick. To do this, unzip the BIOS download, and then go to the sub folder BIOS_ACER_3310_Windows_AOA110 & AOA150/Dos_Flash, and copy the files 3310.BAT, 3310.fd and FLASHIT.EXE to the USB stick.

Once the USB stick in ready, insert it into one of the USB ports on the Aspire One. Turn on the Aspire One and press the f12 key. Choose to boot from the USB stick. Once booted, hit enter and then select "Safe Mode".  At the FreeDOS prompt (a:) go to the b: drive (i.e. type "b:", without quotes, and hit enter)  and run the  the 3310.BAT script (i.e. type 3319.BAT, without the quotes, and hit enter).

Wait for the BIOS to update - do not interrupt this process.

My Acer Aspire One (AOA110-Ab, Model No: ZG5) BIOS
Latest BIOS Version at time of writting: 3310 (size 2.7 MB)
Release date: 2009/08/05

Monday, 23 February 2009

Fix Network Printing Problem with Synology DS207+ and HP1018 Printer

The HP LaserJet 1018 printer would not print via the Synology DS207+ as a network printer if the printer had been turned off and on again. I found that I had to connect the printer directly to a computer running Windows (in this case Windows XP) as a USB printer,  and print something, and then reconnect the printer to the DS207+ before my Ubuntu computer computers could use the HP1018 as a network printer. It looks like this is because the printer needs firmware "uploaded" each time it is turned on and this happens via the Windows printing process. After some hunting about (and this post maybe premature as I have only just "fixed" the problem) it looks like the solution is to update the Synology so that each time the printer is plugged it uploads the firmware. Here I will outline the step that I followed to accomplish this so that the printer should always work as a network printer for computers running the GNU/Linux/Ubuntu operating system. Briefly the steps are, gaining telnet access to the DS207+, downloading and copying 2 files to the DS207+. Most of the information I found at this forum post... http://www.synology.at/enu/forum/viewtopic.php?f=18&t=12718&sid=133792242a5c43c98348c4961947d545#p54476

Telnet access

Get the telnet patch from here http://download.synology.com/download/telnet/EnableTelnet.zip and follow the sysnology instructions for installing the patch http://www.synology.com/enu/support/releaseNote/telnet.php Basically through theDS207+ management HTML interface, go to firmware and select the newly downloaded and unzipped patch file, and then wait for the DS207+ to restart.

To access the DS207+ via telnet, open up a terminal in Ubuntu - Applications>Accessories>Terminal and type

telnet [IP address of the DS207+]
(In my case this was 192.168.2.2)

Then type the user name

root

and the admin password used for accessing the management interface.

Downloading and copying the files across to the DS207+

Ok... so far so good, we have a telnet session going on the DS207+

Now, download the 2 files needed from here

http://cid-94d5e7d028973aa5.skydrive.live.com/self.aspx/Public/usb.agent
http://cid-94d5e7d028973aa5.skydrive.live.com/self.aspx/Public/sihp1018.dl

I then copied these via samba/the network/Nautilus, to a shared folder I had set-up on the DS207+ called shared

Then, back to the terminal and time to copy the files from their shared location on the DS207+ to the location that they need to be on the DS207, i.e. copying the files from where I dropped them across the network into the correct place on the DS207+ operating system.

So I needed to get root access on the DS207+, first of back in the terminal windows type...

su

then...

ls

to list all the folder. Then...

cd  volume1/shared

Then

ls

again to make sure the files I copied there, are indeed there... they were! To copy the file to where they need to be type...

cp usb.agent /usr/syno/hotplug/

and then...

cp sihp1018.dl /usr/syno/hotplug/firmware/

Now reboot the DS207+ and the printer should always work with Ubuntu as a network printer.

Who was it that said something like... "I'm sorry I have written you such a long note but I don't have time to write a short one"!!! This is just to help me remember what I have done and what resources I have used, so if you are reading this I'm, sorry if it does not makes sense...

Tuesday, 23 September 2008

How to Install a Larger Hard Drive to a Softmodded Xbox With Ubuntu

Xbox details

Xbox from Ebay that has already been soft modded with Xbox Unleased dash board and XBMC as an application.

Installing a larger (300gb) hard drive

1) Get the Eeprom.bin file.

First download a copy of ConfigMagic Xbox v1-6 FINAL

http://btjunkie.org/torrent/ConfigMagic-Xbox-v1-6-FINAL/4324cfc48c7fb23b4043bea4e68b20b01f74b156b581

Double click on the ConfigMagic-Xbox_v1.6-FINAL.rar file and unpack to the desktop.

Using FileZill, FTP the ConfigMagic folder to the Xbox e:/apps folder.

Reboot the Xbox and go to Applications>ConfigMagic - go to the main menu and select the option to backup the Eeprom.

FTP back in to the Xbox and find the Eeprom.bin backup file in E: (NOTE: to see the file in FileZilla, may need to go to "server" from the option at the top of the screen, and then select "force show hidden files")

 2) Creating the xboxhdm boot disk, and then unlocking the xbox hard drive, cloning the xbox hard drive to the new (larger) hard drive and then locking both hard drives - follow this tutorial: http://forums.xbox-scene.com/index.php?s=&showtopic=650510&view=findpost&p=4275830

 Download xboxhdm from one of the torrent tracker sites, for example Pirate Bay

To create the boot disk in Ubuntu use the "make-iso-lin.sh" instead of the "make-iso-win.bat" script. I.e. open terminal and the navagate to the xboxhdm folder cd /home/[user-name]/Desktop/xboxhdm and then type the command ./make-iso-lin.sh and hit enter.

 3)Locking the hard drives

NOTE: remember to lock them both. i.e. follow the tutorial to the end and this will lock the xbox hard drive. Then unplug the xbox hard drive from the IDE cable, set the jumpers on the new hard drive to "master", then boot up from the boot disk again and follow the same locking process.

4) Formatting the new hard drive

Finally, plug the new hard drive in to the Xbox and go the the Unleashed "format" menu (password "Xbox" - case sensetive) and format all deives, F, G, X, Y, Z)

Done

To set XBMC as the default dash use this http://forums.xbox-scene.com/index.php?showtopic=220144 remeber to download and unpack XBMC to get the shortcuts from _tools.

Thursday, 15 May 2008

Settings for Manually Mapping Synology DS207+ Shared Folder from the Neuros OSD

(OSD using the new Arizona software platform)
Both the Synology DS207+ and the Neuros OSD use open source software.

From the OSD's main menu Play.Browse>Network Shares>Map Network Share Manually>

Connection Type = Windows
Server Address = [DS207+ LAN IP address], example: 192.168.2.20
Share Location = [folder name], example: share-ds207
Share Name = [folder name], example: share-ds207

Accept

Input user details (check user privileges using the DS207+ admin pages)

Done

Sunday, 27 April 2008

Stop My Asus Eee PC Going Into Standby Mode When the Lid is Closed

I'm sitting on the train happily surfing the web on my Asus Eee PC using the now free WiFi Internet, available since National Express took over from GNER a few months ago (available on the UK east cost service anyway!). I use my Eee PC as an MP3/OGG player. I decided I wanted to stop surfing the web, and read a book instead (a momentous decision), this meant closing the lid of the Eee and leaning my book on top of it for maximum comfort. However, this reminded me that when you close the lid, the Eee automatically goes in to standby mode - very annoying if you want to carry on listening to music!

So, since I'm on the train and have nothing else to do, I thought I would investigate how to stop it going in to standby mode when you close the lid, and instead do nothing except turn the screen off.

It took a few mins to find out how to do it...

First, open a terminal. In easy mode (default Linux setup) simply press the CTRL, ALT and T keys on your keyboard all at the same time. The default terminal program in Easy mode is named lxterm.
(Info from: http://wiki.eeeuser.com/howto:openaterminal)

Then, in the console type

sudo kwrite /etc/acpi/lidbtn.sh

You should see

#!/bin/sh
LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'`if [ $LID_STATE = "closed" ] ; then
/etc/acpi/suspend2ram.sh
fi
exit 0


Replace with the code below and save the file.

#!/bin/sh
LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'


if[$LID_STATE = "closed"]; then
# /etc/acpi/suspend2ram.sh
su user -c "DISPLAY=:0 xset dpms force suspend"
elif[$LID_STATE = "open"];then
su user -c "DISPLAY=:0 xset dpms force on"
fi


Close the lid to test. That's it.,
(Info from: http://wiki.eeeuser.com/close_lid_shutdown)