Getting Bootloop in Shanghai

I should have done a nandroid backup before I flash the latest CM13 ROM. I didn’t do it because updating a new nightly didn’t cause much of a problem until today. While at work, without any sort of internet connection, I don’t use my phone much. So I just went and update the ROM. It ended-up getting into a boot-loop. 

I ended up in Shanghai after finishing my work. So once I got my wifi in the room on my laptop, I quickly went and grab the latest version of ROM to see if I can set it up. I manage to connect briefly into my house’s VPN so for a while I was able to message my wife using Facebook Messenger. Usually I contact her using Whatsapp while overseas, but no phone no Whatsapp. 

I seem to be able to download the latest ROM and OpenGApp, so I load them into the phone, did a factory reset, and flashed both .zip. Then realities hit me, I can’t set up the phone because it needs to talk to Google server. I can’t get past the set up screen, so I can’t set up a VPN connection from my phone to reach Google’s server. 

I noticed a few days back that I can set up hotspot on my laptop, I haven’t thought of the practicality of it until today. The laptop is always connected to the internet thru wifi, so why do I need to create another wifi network out of it? If my laptop is connected thru VPN, I can share that secured connection to my phone. Thus my phone doesn’t need to set up VPN.

I tried that method and I’m guessing the connection to my house’s server is so slow that nothing seems to be loading. I went and restart the house router by connecting into its control panel. Then after that I can’t log into the VPN anymore. Now I end up with a completely useless phone. Good thing about my job is that I will be back at home tomorrow, away from all this China Great Firewall crap. 

Without Whatsapp, Google, Facebook, I can only fall back to my Yahoo Mail which seems to be working in China. I wrote an email to my wife updating her my failed attempted to setup the phone, and hit the Send button. For some weird reason, only the first letter got thru – the letter H from the word “Hi”. I don’t know was it the Safari on the iPad or what-the-fuck. I just shut everything off and goes to bed. 

Getting Bootloop in Shanghai


I’ve never been happier after the upgrade to CM10.1. It’s a combination of few improvements that makes the phone so useable again.

The biggest improvement, IMO, would be Fast Charge. I cannot believe the phone, or its kernel is crippled to only draw only specific (read: reduced) amount of power when it detected it’s charging on USB. USB port only supply 5V 0.5A on standard, so even if your computer or car charger’s USB port is able to supply 1A or 2A charging, the phone is still going to charge at 0.5A.

0.5A is not even sufficient to counter the discharge when the phone is running Waze. Now with the fix, I am finally able to really charge the phone in the car even when it is running Waze. Moreover, charging over USB on computer is dramatically faster now.

Second improvement will be S2W or Sweep to Wake function. In the past, to have this feature, a custom kernel, namely the Bricked Kernel has to be used. It was very unstable while I was using the kernel, which gave quite a lot of SOD (Sleep Of Death). The phone just wouldn’t switch back on when pressing the power button, the only way is to reset the phone is to do the power-volume buttons combination.


Updating OneX HBOOT

Here’s a log on what I did to update my One X’s hboot from 0.94 to 1.36

First I’d found and download the necessary files from XDA Developer’s website:
hboot 1.36 files
CM10.1 A4 Installer

Backup phone log, sms log
Backup app using Titanium Backup
Backup the phone’s virtual sd card to computer
Run nandroid backup
Backup the nandroid files to computer
Get the Unlock_code.bin from HTC website:

In OSX terminal, input these code thru fastboot (from Android SDK):
fastboot oem lock – relocking the bootloader.
astboot oem rebootRUU – Rebooting the boot loader will show the HTC logo only.
fastboot flash zip – This will update the hboot 1.36 files.
fastboot flash unlocktoken Unlock_code.bin – unlock the boot loader.

This is the funny part, according to XDA it mentioned that the screen will change, but mine didn’t. I press Volume up and the power button anyway and the phone reset itself.

Since I haven’t flash the latest boot.img that’s compatible with the hoot 1.36, it didn’t boot into the OS. I soft-reset into bootloader and flash the boot.img with the last code: fastboot flash boot boot.img. Then I load into Recovery to flash the CM10.1 Beta ROMs, also installing the latest Google Apps, and then rebooted the phone.

After the phone rebooted, I was relief that my phone wasn’t wipe, and the content in the SD card is still intact.

Updating OneX HBOOT

Insufficient Storage Problem

I’ve been having Insufficient Storage problem for quite some time, and unable to update some Google core apps. It happened after one of the flashing of an updated CM10 ROM, and has gotten worse lately.

I used to delete the APK files from data/app, and the app would download and install, however recently the trick doesn’t work anymore. Today I did a little searching and found many user having same problem get fix by using an APP called Link2SD.

After installing Link2SD, I’m able to move some APP such as the bloated Chrome to SD card, which previously isn’t possible. Now I’m able to update my APPs again in PlayStore. I noticed that my Contact Storage is taking lots of space too – over 100MB! That’s mostly due to syncing my Facebook contacts and pics into the phone, and now I’m on the lookout for APPs that only sync photos of linked contacts, That’ll probably save tons of space.

For now I guess I’ll have to reduce the size of the image used for FB sycn.

Insufficient Storage Problem

One X SD Card Bad Sector

This morning I was trying out the 3-dot menu remover hack from XDA Developer forum, ended up causing my phone went into a bootloop or stuck at the boot screen. Flashing the revert to stock didn’t help, so I went into Recovery to see if I can do anything without factory reset my phone.

I made a bad mistake without making a nandroid backup before flashing the zip file. However I got a backup dated back to April 30th. Before I restore it, I make a backup on my current problematic image. I was surprised to find that I only have ~6GB left on the SD card storage (HTC OneX call it Phone Storage). I don’t remember using so much space before! Anyway, after the backup, I tried advance restore, first time using it. Basically I only restore the System mount.

Luckily it managed to boot back normally and sound works without crashing. I remember making the backup before flashing the sound fix thinggy. I’m wondering if it has the old A-GPS update address, will need to test outdoor for that. Back to the missing SD card space. I first try to clean and delete unnecessary files on the drive. Check one folder at a time to see what’s hogging the space. After all the deletion, all the files in the drive only consume ~10GB out of 25GB, so I should have 15GB left but driver properties showed that I have only ~5GB left.

I failed to do chkdsk on Win7, plugged the phone into my Macbook Air and disk verification from there showed that I have ~10GB of bad sectors! Then I remembered stumbling into this post in XDA. They recommended backing up (copy), reformatting the disk, and restoring it (paste) to recover the space. Also not to use USB data transfer for bad sector accumulation.

Currently I’m backing up the files as of time of writing. Hope things goes well.

One X SD Card Bad Sector

One X GPS Woes

A few times using Sygic Aura on my One X has led me to believe that the on-board GPS isn’t that accurate. While navigating, the current location will jump to nearby roads and speed is very inconsistence with my actual driving speed (speedometer should always over-read) and sometimes can show some crazy 200km/h figures.

A look in the XDA Developer shows that I’m not the only one having problem. In the thread, other than getting the phone replaced, there’s another method which is to clear the A-GPS data, get to GPS to lock in cold start (flight mode, restart, and locking on GPS). No one in Lowyat forum seems to have the problem.

I downloaded an app called GPS status to clear the A-GPS data, and tried to lock GPS at home but failed to lock on to any as I was partly indoor. Later during the day I went and try outside while on the way to meet my friends. The GPS locked but showed that I’m in the middle of the sea at Melaka Straits!

I’m speechless. I tried switching on the Google location service (which triangulate location from cell towers or wifi router) and initially I was able to get rough location of where I really was, but once the GPS lock in, it still shows that I’m in the middle of the sea. I cleared the A-GPS data a second time, put it through another cold start and the second lock was even further than the first one over at Sumatra!

Then I remembered reading something about flashing different A-GPS source into the phone might help on locking to more GPS sats at one time. I found the thread at XDA developer and followed the instruction there to flash the AGPS patch. I tried the 3.x Google Specific No-SSL. Basically just downloading it, reboot into recovery, mount /system and install the .zip file.

After that a quick try on Sygic shows fast GPS lock and accurate location and speed once again. I’ll continue evaluating it for the next few days and if the GPS still sucks, I’m gonna try getting the phone replaced.

One X GPS Woes

Fixing HTC One X Sound Crash Problem

First Aura crashed when I was trying to use it to navigate. I found it was odd to crash only then and not before when I was fiddling with it after installing it. I figured out it might has something to do with playing audio as the graphic on screen ran normally and only crash (with phone restarted) when navigation starts.

Secondly I went into the sound settings, and tried to change ringtone, and it crashed the same way. I concluded that it must be problem with the audio. Due to the problem, I couldn’t run any of the games and app that’ll produce sound. Oddly enough, Whatsapp, Facebook, Incoming calls/SMS plays their notification sound without any problem.

A simple search online in XDA developer and HTC site asked me for factory reset. I backup all date using Titanium Backup and from within Clockword Recovery. Then only I realised my phone is already rooted by the first user. Oh well, I hope the warranty still intact but it does make my life easier if I were to change to a different ROM in the future (I love Cyanogen MOD!).

Sadly, factory reset didn’t help.

I looked real hard online and finally found this page that says I need to flash boot.img from this Android Revolution HD ROM.

How to flash the boot.img? Since my phone isn’t s-off, I couldn’t do it from Recovery according to the page. So I need to push it from fastboot according to here. To do that I need ADB, or Android Data Bridge. I was a bit familiar with it since I fiddled around with it back in the early days with HTC Desire to root and S-Off it.

Now I’m using a Mac, I got the Mac compatible Android SDK from Android SDK site. After unzipping the files into a folder, double clicking the Android linux executable runs the Java app to download and install the “Platform Tools” into the directory, and that installed the ADB and Fastboot apps.

I wasn’t familiar with OSX Terminal command and it took me a while to find out how to execute those app from within, only found my answer from So lastly I put the boot.img into the same “Platform Tool” folder, before running the code “./fastboot flash boot boot.img”.

I managed to boot back to whatever ROM which is installed in the phone (which I believe is the stock ROM, but I can’t be sure now) and wallah, it works now. I went back to recovery and did another factory reset, followed by restoring my backup, and now the phone boot back where it belongs.

Hope things are all smooth from now onward.

Fixing HTC One X Sound Crash Problem