ConsumerIrManager not working on HTC m8 lollipop

怎甘沉沦 提交于 2019-12-07 08:00:20

问题


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?


回答1:


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.




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!