Monday, 11 July 2016

[GUIDE] Porting Between HTC MSM8974 Devices



This guide will explain to users on how to port from the HTC One M8, HTC One E8 and HTC Butterfly 2 roms to our beloved Desire EYE. The porting between these devices take little to no knowledge at all to do if you know how to logcat and read kernel last_kmsg.

In this guide i will explain how I've ported InsertCoin M8 to Desire EYE.. Should apply to all htc msm8974 devices.

Requirements :
- Developers Permission for the rom your porting if you plan to release
- Android Image Kitchen
- Basic knowledge on understanding my method of porting

InsertCoin ( Port )
Desire EYE Rom ( Base )

Step 1 : Fixing Camera
Each HTC MSM8974 devices have different camera modules thus need fixing
So take these similar libs from stock roms and place them into the rom your porting.

1. All /system/lib/libtuning** lib files from stock and place them in port in /system/lib/
2. All /system/vendor/lib/libchromatic** lib files from stock and place them in port in /system/vendor/lib/
3. Take /system/etc/res_ctrl** files from stock and place them in port in /system/etc/ ( fix camera resolution )

Step 2 : Fixing NFC

EYE, E8, and B2 all have same NFC driver. So this method will explain when porting from M8

Files to Delete from Port

Code:


- /system/app/Nfc
- /system/etc/nfcee_access.xml
- /system/lib/hw/nfc.qcom.so
- /system/lib/libnfc.so
- /system/lib/libnfc_jni.so
- /system/libnfc_ndef.so
- /system/vendor/firmware/libpn544_fw.so


Now add these from stock to port

Code:


- /system/app/NfcNciNxp/
- /system/etc/libnfc-brcm.conf
- /system/etc/libnfc-nxp.conf
- /system/etc/nfcee_access.xml
- /system/lib/hw/nfc_nci_pn547.defualt.so
- /system/lib/libnfc-nci-nxp.so
- /system/lib/libnfc_nci_nxp_jni.so
- /system/lib/libnfc_ndef.so
- /system/vendor/firmware/libpn547_fw.so


Kernel Side for NFC : Will edit later with indep fixing

Step 3 : Having Correct Kernel
Will post stock kernel ports soon with NFC ramdisk fixes.



No comments:

Post a Comment