[ROM][FIRMWARE][RECOVERY][STOCK] Sense 5, Android 4.3 Final Update - 4.13.651.4
This is an experimental (albeit stock) ROM.
You MUST BE S-OFF to complete this process!
Your internal storage will be erased during the process. If you have anything you want on it, back it up to an external location.
This process will change the partition layout of your device, meaning you will NOT BE ABLE TO GO BACK!!! You won't be able to use any ROM not based on the same partition layout - this means any/all Sense 4 ROMs and any/all AOSP ROMs. UPDATE: It is possible to go back to the old partition layout, but only via RUU, using the official 3.17 RUU from HTC's website or VipeRUU
If you've read the above and you're ready and willing to risk your device, you may proceed
I will NOT be held responsible if something happens to your device while or after flashing any of these files! All flashing is done at your OWN RISK.
If you are ready to take responsibility for your actions, then proceed.
I will not be writing these instructions for noobs! I expect that anyone wishing to perform this update has an understanding of fastboot commands and understands how PJ75IMG files are handled. I will NOT be explaining that here. IF YOU ASK, I WILL IGNORE YOU.
Software Version: 4.13.651.4 (Source: Official HTC RUU)
Download firmware+recovery file & your choice of ROM zip.
NOTE: It is recommended to update via RUU rather than installing the firmware from this thread.
Place downloaded ROM zip on external SD card for later use.
Install firmware+recovery file via HBOOT or fastboot. This will update your HBOOT (2.10), your radio (184.108.40.2065) and some other important firmware bits, and install TWRP Recovery. This version of TWRP has been modified to accommodate the updated partition layout for this update. Make sure you remove or rename any PJ75IMG files from your external SD card after this step.
Boot into recovery, and wipe all partitions except SD card. If there are errors, ignore them for now.
Flash via ROM zip via TWRP. If the TWRP gives an error and reboots, hold the volume down button to get back to the bootloader, boot back into recovery, and flash again. It *should* flash fine on the second attempt.
Device 1: HTC One (M8)/831C | Hardware Version: 0005
Q1: Do I have to use the recovery you posted?
Q2: Can I use an older RUU to go back to Sense 4/AOSP?
A: Yes. See links in first post.
Q3: I'm getting "no root access" on my apps. How to fix?
A: Flash SuperSU in recovery.
Q4: Where are the downloads, already?
A: Post #3.
Q5: Can I just update my firmware and keep my current ROM?
A: NO. Once you update the firmware your partition layout will be changed and any ROM not using this base will not work.
Q6: Do I need to backup my SD card?
A: This process will not affect removable storage (i.e. SD card).
Q7: Will I be able to restore nandroids of old ROMs after flashing this?
A: NO. This will completely change your partition layout, so NO OLD ROMs WILL WORK (unless you first RUU back to the old layout).
Q8: My bootloader says "TAMPERED" after flashing the firmware. How to fix?
A: Just ignore it. It's no big deal. If it truly disturbs your essence, unlock your bootloader.
Q9: Can I flash a custom bootloader to get rid of the red text and make my phone say "LOCKED" again?
A: Only if you use HBOOT 2.10.0000 as the base for customization (there are no custom bootloaders for this version yet). A bootloader with the red text removed is attached to Post #3.
Block 38 is now all userdata, and serves as emulated storage at /data/media rather than the previous (odd) setup where /data was at block 37 and was only 2GB, and block 38 was formatted as FAT and as an SD card. I think this way makes a lot more sense, personally, and is consistent with how the newer devices and Android versions handle storage.
The ramdisk setup for the new storage setup is below:
# setup the global environment
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/ext_sd 0000 system system
mkdir /storage/usb 0000 system system
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
export EXTERNAL_STORAGE2 /storage/ext_sd
export EXTERNAL_STORAGE3 /storage/ext_sd
export EXTERNAL_STORAGE4 /storage/usb
export EXTERNAL_STORAGE5 /storage/usb
# create mountpoints
symlink /storage/ext_sd /sdcard2
symlink /storage/usb /mnt/usb
Phantom app icons may appear in app drawer after uninstalling certain applications. This appears to be related to apps that install automatically to sd. NOTE: This is an issue with the base. Workarounds: Uninstall phantom apps from app drawer by dragging icon to the top of the screen, or hide the phantom app icons.
Airplane Mode Toggle (Widget) opens Settings instead of toggling Airplane Mode - this is a bug in the base
Alright, so before we all dive in I wanted to ask a few clarifying questions please.
All backups will be useless after the new partitions are set?
Titanium backup won't know where to look to restore apps? Even if we save them to a different device and them move them back on t0 our SD cards after we flash the new ROM?
Titanium actually works if you backed up your internal storage before flashing the new firmware and then going back and restoring it under internal storage. I just restored the Titanium files.
We need to backup everything on our SD cards on another device before taking any steps forward because EVERYTHING will be lost on the SD cards?
Just need to back up what is under internal storage.
As some of you may remember, earlier this year we spoke about Quick Control Panel by … more
28 Aug 2014
By Faiz Malkani
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?