简体   繁体   English

Android设备上支持的LED

[英]LEDs supported on the android device

Is there a way to know the number of LEDs an android device supports . 有没有办法知道一个Android设备支持的LED数量。 For eg certain device support notification and charging LEDs and some devices support only charging LEDs . 例如,某些设备支持通知和充电LED,而某些设备仅支持充电LED。 Is there a way for an app to know the number of LEDs present in the device (Similar to APIs which tell how many cameras are present in the Android device ) 应用是否可以通过某种方式知道设备中存在的LED数量(类似于API,它可以告诉Android设备中存在多少个摄像头)

Is there a way to know the number of LEDs an android device supports 有没有办法知道一个Android设备支持的LED数量

No, sorry. 不,对不起

Is there a way for an app to know the number of LEDs present in the device 应用程序是否可以了解设备中存在的LED数量

No, sorry. 不,对不起

Well short of 100% reliable, but you could often derive some clues by looking for nodes in /sys/class/leds. 远远不够100%可靠,但是您通常可以通过在/ sys / class / leds中查找节点来获得一些线索。 You won't have permission to set them through that interface though. 但是,您将没有权限通过该界面设置它们。 And interpreting what you find there may take some experience. 并解释您在这里找到的内容可能需要一些经验。 And while this is typically how they are setup, it is not the only way that a manufacturer could choose to implement them. 尽管这通常是它们的设置方式,但这并不是制造商可以选择实施它们的唯一方法。

Building a database of devices might be another option. 建立设备数据库可能是另一种选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM