before the official lollipop update ConsumerIrManager was working fine with the HTC m8 (And so did the official HTC IR samples from htcdev) -
After update it doesnt work anymore
ConsumerIrManager gives Error-16
any idea what HTC may have changed?
I recently had the same issue on the HTC One M7 once updated to Lollipop. I pulled some JARs and APKs from the phone and decompiled them to found that they are not using the ConsumerIrManager like every device is doing since Android 4.4. Worst, they rolled back and use the same libraries they were using before 4.4. In my case, I rolled back my implementation using the HTC IR API (see https://www.htcdev.com/devcenter/opensense-sdk/htc-ir-api), and my code is now working.
unless the issue is related to: HTC ONE M8 IR Blaster after Lollipop Update not working
please note that the HTC IR APIs (with Lollipop / Sense 7) is now deprecated (technically removed) - note they are already under the legacy APIs section.
来源:https://stackoverflow.com/questions/28831462/consumerirmanager-not-working-on-htc-m8-lollipop