Friday, March 4, 2016

[SOLVED] [ROOT] No HDMI-CEC on FireTV 4k FireOS 5.0.5

The short answer here is the binary for CEC support and the supporting libraries are also missing, you can add them to restore HDMI-CEC functionality.

The files are present on the FireTV Stick on 5.0.5 and they work fine when copied over to the FTV2.
I started by copying over the cecdaemon into /system/bin and changed permissions to 755:
Code:

root@sloane:/system/bin # chmod 755 cecdaemon
root@sloane:/system/bin # ll | grep cec
-rwxr-xr-x    1 0        0          25.6K Mar  4 17:19 cecdaemon

If you try to run the process now you will just error on linking libraries and it will not work.

Here are most of the libraries needed for the CEC daemon to work (some dependencies exist for the cec libs):
Code:

root@sloane:/system # strings /system/bin/cecdaemon |grep lib
libc.so
libcecservice.so
libcutils.so
libhardware.so
libhardware_legacy.so
libm.so
libstdc++.so
libvchiq.so
libvcos.so

The libs listed below dated from Mar 4 are the missing libs that I pulled from the Stick and set permissions (644) to match the rest of the libs. I've rebooted a couple times after adding them and CEC still works right away now.
Code:

root@sloane:/system/lib $ ll | egrep 'libc.so|libcecservice.so|libcutils.so|libhardware.so|libhardware_legacy.so|libm.so|libstdc|libvchiq.so|libvcos.so|libcecapi_library_jni.so|libcec.so'
-rw-r--r--    1 0        0        494.1K Jan 20 21:30 libc.so
-rw-r--r--    1 0        0          9.1K Mar  4 17:23 libcec.so
-rw-r--r--    1 0        0          5.1K Mar  4 17:23 libcecapi_library_jni.so
-rw-r--r--    1 0        0          13.2K Mar  4 17:23 libcecservice.so
-rw-r--r--    1 0        0          49.4K Jan 20 21:30 libcutils.so
-rw-r--r--    1 0        0          5.1K Jan 20 21:30 libhardware.so
-rw-r--r--    1 0        0          21.2K Jan 20 21:30 libhardware_legacy.so
-rw-r--r--    1 0        0          93.2K Jan 20 21:30 libm.so
-rw-r--r--    1 0        0          9.1K Jan 20 21:30 libstdc++.so
-rw-r--r--    1 0        0          17.1K Mar  4 17:28 libvchiq.so
-rw-r--r--    1 0        0          33.3K Mar  4 17:31 libvcos.so

I did not replace any files when doing this I only added new files, if you are replacing files you are doing something wrong.
As this is a 32bit binary and libs they do not go into the lib64 folder.

I've uploaded a zip containing the libs and the binary for those that don't have a stick on 5.0.5 to copy from.
I'm really not sure why this CEC support was removed from FTV2 as it works just fine.

You need to add 1 daemon process and 5 library files to the ROM.

Attached Files
File Type: zip CEC Support FTV2.zip - [Click for QR Code] (48.8 KB)


from xda-developers http://ift.tt/1X0IiI8
via IFTTT

No comments:

Post a Comment