Monday, December 14, 2015

Flash Resurrection Remix (Lollipop) on HTC One X (endeavoru)

The phone was in this state before the flashing:
The 5.1 (Lollipop) is using a new layout for the storage and the CWM recovery 6.0.4.8 wouldn't flash those lollipop custom rom. So the first thing to do is to install a recovery that support the new layout.

Followed the instructions from here, with a couple of adjustment:


1. Backup everything in your phone that you want to keep. This will WIPE ALL.
2. Boot to fastboot and Install a recovery made for the New Layout. twrp2811.BiG.img will do for a start.

Used here: twrp2853-BiG.img (src: https://www.androidfilehost.com/?fid=95916177934550246)

2.1) Boot into bootloader using whatever method
2.2) When in bootloader, check the fastboot access

sudo fastboot devices
SH23JWxxxxxx fastboot

2.3) Flash the recovery

sudo fastboot flash recovery twrp2853-BiG.img

Now with the new recovery, the next step is to reformat the storage with the new layout (THIS WILL WIPE OUT EVERYTHING ON THE DEVICE)

3. Disconnect the phone from PC (current recovery will fail the format process if you skip this step).

Didn't disconnect phone here (actually forgot), doesn't seems to cause problem.

4. Format Data. This will reformat your SD Card to be used for both app-data and user storage (new SD Card).
5. Clean out all other partitions.

Figured that this mean using the "Wipe" - "Advanced Wipe" and select everything, and did so.

6. Restart recovery and wait for two new drives to pop up on your PC.

The drives didn't show up by itself, so did this: Disconnect, reconnect USB, go to mount, Disable MTP, Enable MTP
Now "One" shown up in PC with both storage area (2G) and 25G


7. Copy a ROM with the New Layout to the Internal SD Card or the new 2GB Extra Data.

Used:
  • Resurrection-Remix-LP-v5.5.6-20150928-endeavoru.zip
  • gapps-lp-20150314.zip


8. Flash the ROM (and gapps) and reboot.

Before reboot, need to flash the boot.img. 
On the PC, extract boot.img from the ROM's zip into a folder
Then, do "sudo fastboot flash boot boot.img"

Done. Reboot system.


CM 11 (4.4) Usage Notes

Observed a couple of issues after a few days general use:

  • The launcher UI is not stable and sometimes crash in systemui.
  • All widgets just disappear without reasons
  • Auto rotation is broken in at least Chrome browser - i.e. when click on the address bar, the address bar is shown in landscape layout, where as the rest of the app still in portrait layout.

Friday, December 04, 2015

Flash CyanogenMod 11 (4.4) to HTC One X (endeavoru)

Short summary from various sources. Flashing is done on LinuxMint 17.1 machine.
Tools:
sudo apt-get install android-tools-adb android-tools-fastboot

1) Phone initial state is bootrom unlocked and has TWRP 2.6.3.0 installed. Last TWRP for endeavoru was 2.6.3.0. Doesn't work for 4.4 (Need at least 2.7)

2) So switch recovery to CWM-touch
2.1) Download
2.2) adb reboot bootloader
2.3) When in bootloader, choose fastboot
2.4) sudo fastboot devices
       Should list the phone
2.4) sudo fastboot flash recovery recovery-clockwork-touch-6.0.4.8-endeavoru.img
2.5) sudo fastboot reboot
       Boot back to android to prepare the rom file
       or shutdown and boot into recovery if already has rom file on phone. (GoTo 7)

3) Download ROM http://download.cyanogenmod.com/?device=endeavoru
    as of writing, version is cm-11-20151122-NIGHTLY-endeavoru.zip

4) Download GApp (for Google Play Store access)
     https://wiki.cyanogenmod.org/w/Google_Apps
     For this case, I used http://opengapps.org/?api=4.4&variant=nano

5) Place both files into phone storage

6) "adb reboot bootloader" to go into bootloader menu again.

7) Select "Recovery"

8) (Optional) Backup and Restore -> Create backup in sdcard0

9) Clean up
9.1) Wipe data/factory reset
9.2) Wipe cache
9.3) Advanced -> Wipe Delvik cache

10) Install zip from sdcard0
      First choose the ROM
      Next choose Gapps

11) Reboot to bootloader and choose fastboot again

12) flash boot
      On the PC, extract boot.img from the ROM's zip into a folder
      Then, do "sudo fastboot flash boot boot.img"

Step 11 & 12 are very important, otherwise, CM stucks in the spinning booting animation forever.