Samsung devices supports Google Infrared API (ConsumerIrManager). LG and HTC released own libraries: HTC IR API and LG QRemote SDK
I created a open project on GitHub which implements possibility to send custom IR patterns:
https://github.com/OneButtonDeveloper/AndroidInfraRed
but it works only with Samsung and LG devices:
On my HTC, it works without any exceptions but without any result too. Please, take a look on HtcTransmitter.java
Devices with IR: HTC One M7 ... M9
Sony & Huawei Not supported sending custom IR patterns at all? Devices with IR: Sony Xperia ZL, Huawei Honor 6