PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, … more

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

[ROM][FIRMWARE][RECOVERY][STOCK] Sense 5, Android 4.3 Final Update - 4.13.651.4

14,153 posts
Thanks Meter: 13,429
By Captain_Throwback, Retired Moderator / Recognized Contributor on 7th February 2014, 01:08 AM
Post Reply Subscribe to Thread Email Thread
  • 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.
Additional Notes:
  • 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.

ROM Details:
  • Software Version: 4.13.651.4 (Source: Official HTC RUU)
  • Rooted (thanks to Chainfire for SuperSU)
  • Busybox added
  • init.d support added
  • Tap & Pay enabled for Google Wallet
  • NFC icon hidden
  • Camera Shutter Sound option enabled
  • Deodexed version available
Instructions for installation:
  1. 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.
  2. Place downloaded ROM zip on external SD card for later use.
  3. Install firmware+recovery file via HBOOT or fastboot. This will update your HBOOT (2.10), your radio ( 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.
  4. Boot into recovery, and wipe all partitions except SD card. If there are errors, ignore them for now.
  5. Reboot recovery.
  6. 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.
Last edited by Captain_Throwback; 23rd March 2014 at 05:56 PM.
The Following 94 Users Say Thank You to Captain_Throwback For This Useful Post: [ View ]
7th February 2014, 01:08 AM |#2  
Captain_Throwback's Avatar
OP Retired Moderator / Recognized Contributor
Flag Bensalem, PA
Thanks Meter: 13,429
Donate to Me
Frequently Asked Questions (FAQ):

Q1: Do I have to use the recovery you posted?
A: Yes.

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.

Q10: How come after I flashed the firmware my bootloader is LOCKED and fastboot isn't working?


Last edited by Captain_Throwback; 24th February 2014 at 09:02 PM.
The Following 46 Users Say Thank You to Captain_Throwback For This Useful Post: [ View ]
7th February 2014, 01:09 AM |#3  
Captain_Throwback's Avatar
OP Retired Moderator / Recognized Contributor
Flag Bensalem, PA
Thanks Meter: 13,429
Donate to Me

This is the output of cat proc/emmc after the firmware update:
dev:        size     erasesize name
mmcblk0p23: 000ffa00 00000200 "misc"
mmcblk0p22: 00fffe00 00000200 "recovery"
mmcblk0p21: 01000000 00000200 "boot"
mmcblk0p36: 88000000 00000200 "system"
mmcblk0p30: 00140200 00000200 "local"
mmcblk0p37: 0dfffc00 00000200 "cache"
mmcblk0p38: 2f0000000 00000200 "userdata"
mmcblk0p26: 01400000 00000200 "devlog"
mmcblk0p28: 00040000 00000200 "pdata"
mmcblk0p34: 01900000 00000200 "carrier"
mmcblk0p39: 05dffc00 00000200 "fat"
mmcblk0p31: 00010000 00000200 "extra"
mmcblk0p35: 047e9800 00000200 "reserve"
mmcblk0p17: 02d00000 00000200 "radio"
mmcblk0p18: 00a00000 00000200 "adsp"
mmcblk0p16: 00100000 00000200 "dsps"
mmcblk0p19: 00500000 00000200 "wcnss"
mmcblk0p20: 007ffa00 00000200 "radio_config"
mmcblk0p24: 00400000 00000200 "modem_st1"
mmcblk0p25: 00400000 00000200 "modem_st2"
mmcblk0p32: 00040000 00000200 "skylink"
mmcblk0p33: 00040000 00000200 "cdma_record"
mmcblk0p35: 047e9800 00000200 "reserve"
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
    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

NEW Official TWRP thread
CUSTOM TWRP VERSIONS (starting with, both old and new partition layouts are supported)

4.13.651.4 Firmware + TWRP Recovery (deprecated) (red dev text removed from HBOOT)
NOTE: After flashing this, you will need to follow one of the procedures here to flash the ROM.

2.10.0000 HBOOT (red dev text removed) Only

Firewater HBOOT 2.10.5555 (based on 4.13.651.3 update)

4.13.651.4 Sense 5 Android 4.3 - Odex

4.13 651.4 Sense 5 Android 4.3 - Deodex


Old Downloads
TWRP Recovery
TWRP Recovery (Bootloader-Flashable zip)
TWRP Recovery | Mirror
Updated Holofied theme
TWRP Recovery (updated for latest s4/Jewel CM commits)
Holofied theme: thanks @z31s1g for this theme and keeping it updated!
TWRP Recovery
Holofied theme:
2.10.0000 HBOOT (red dev text removed) + TWRP Recovery Only
Recovery Only - TWRP with updated partition layout (.img file) | Bootloader-Flashable | TWRP w/updated curtain - thanks to BD619
4.13.651.3 Sense 5 Android 4.3 - Odex
4.13 651.3 Sense 5 Android 4.3 - Deodex | Mirror (Please only use if Dev Host link is down)
4.13.651.1 Firmware
Alternative: PJ75IMG firmware zip w/recovery included - thanks to adonwenas
4.13.651.1 Sense 5 Android 4.3 - Odex
4.13 651.1 Sense 5 Android 4.3 - Deodex


Mods (system mods are for Deodexed ROM only unless otherwise specified in the post that contains them)

services.jar w/signature check disabled - thanks to Sinistertensai | Update for 4.13.651.4 - thanks to FusionX

Advanced Power Menu, Prism w/expanded grid size & menu support - Thanks to Sinistertensai

Camera Button Screen Wake - Thanks to FinZ28, O.M.J

SystemUI with Location reticle removed (flashable) - thanks to drob311

SystemUI with Location reticle removed & 1x/3G Mod (flashable) - thanks to drob311 | Updated mod for 4.13.651.4 - thanks to ahecht

Hack for Native Sprint Hotspot - UPDATED - thanks to nfinitefx45, FesterCluck
NOTE: May cause data connectivity issues
NOTE 2: Only works on 3G. For tether app that works on 4G, see this post.

Disable NFC Icon (Guide) - thanks to litlepyro | Flashable - thanks to drob311

Mail w/Exchange Security Disabled | Flashable - thanks to phillymade

Enable Horizontal Quick Settings (Guide) - thanks to FusionX

Rearrange Quick Settings (Guide) - thanks to nfinitefx45

SystemUI updated w/customizable themed Horizontal Quick Settings - thanks to Sinistertensai | Flashlight Toggle Fix thanks to chubbzlou, SupermanTW for posting
Update w/White Circle Battery Icon - thanks to FusionX

Adjust Signal Bars to show Voice Strength vs Data (Guide) - thanks to markb629

How to Enable Shutter Sound toggle in Camera (must be done prior to first boot) - Guide

Blue Icons in Settings - thanks to lreyes

EPST modified to allow Manual PRL updates - thanks to nfinitefx45

30 Step Volume Mod - thanks to nfinitefx45

Percent Battery Mod - thanks to ahecht

Text Battery Percentage Mod (Remove icon) - thanks to nfinitefx45

Roam only Mod - thanks to nfinitefx45

Wake on SMS/MMS mod - thanks to nfinitefx45

Percent Battery Mod (OMJ Sense) - thanks to thecarp1975

Sense 5 Toolbox (requires Xposed Installer/Framework)

Xposed Status Bar Mods - Sense (requires Xposed Installer/Framework)
Last edited by Captain_Throwback; 30th March 2015 at 05:40 PM.
The Following 78 Users Say Thank You to Captain_Throwback For This Useful Post: [ View ]
7th February 2014, 01:13 AM |#4  
chubbzlou's Avatar
Recognized Contributor
Thanks Meter: 3,322
Donate to Me
awesome thanks
The Following User Says Thank You to chubbzlou For This Useful Post: [ View ]
7th February 2014, 01:13 AM |#5  
welshwarriorsf's Avatar
Senior Member
Flag San Francisco
Thanks Meter: 106
Oh boy. Here we goo!!
7th February 2014, 01:14 AM |#6  
utnick's Avatar
Senior Member
Flag San Antonio
Thanks Meter: 147
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.
Last edited by utnick; 7th February 2014 at 11:47 PM.
7th February 2014, 01:16 AM |#7  
Magnum_Enforcer's Avatar
Forum Moderator
Flag Birmingham, AL
Thanks Meter: 2,810
Donate to Me
Excellent, as always, Captain:thumbup:

Sent from my HTC EVO 4G LTE
7th February 2014, 01:18 AM |#8  
JManekia's Avatar
Senior Member
Thanks Meter: 229
Ok to use modified SELinux enabled TWRP that is being used for Kitkat roms with this?
7th February 2014, 01:20 AM |#9  
Magnum_Enforcer's Avatar
Forum Moderator
Flag Birmingham, AL
Thanks Meter: 2,810
Donate to Me
Originally Posted by JManekia

Ok to use modified SELinux enabled TWRP that is being used for Kitkat roms with this?

A modified TWRP will be required. Current versions won't work, as I understand.

Sent from my HTC EVO 4G LTE
The Following User Says Thank You to Magnum_Enforcer For This Useful Post: [ View ]
7th February 2014, 01:20 AM |#10  
FusionX's Avatar
Senior Member
Flag NY
Thanks Meter: 148
Amazing! Thanks Cap'n

Sent from my HTC Evo 4G LTE
7th February 2014, 01:22 AM |#11  
funluan's Avatar
Senior Member
Flag NanJing
Thanks Meter: 279
Donate to Me

Sent from my EVO using XDA Premium 4 mobile app

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread