hdmi-cec

Samsung TV (anynet+) control with Android Device using HDMI CEC

狂风中的少年 提交于 2019-12-08 03:14:50
问题 I am using command line to control the TV like power on, power off, volume up and volume down from rooted Android Device. i am able to power on and power off using the following command. Process p; try { p = Runtime.getRuntime().exec("su"); DataOutputStream os = new DataOutputStream(p.getOutputStream()); os.writeBytes("su" + "\n"); // power on command os.writeBytes("echo 0x40 0x04" > /sys/class/cec/cmd" + "\n"); os.writeBytes("exit\n"); os.flush(); } catch (IOException e) { e.printStackTrace(

Use libCEC + USB dongle in Android app

天涯浪子 提交于 2019-12-07 01:15:32
问题 My goal is to send HDMI CEC commands from a standard (i.e non-system) app running on an Android box equipped with Pulse-Eight's USB dongle. Following these instructions I successfully managed to compile libcec for Android and execute it as root on the box, with this command: echo <my-cec-command> | cec-client -s /dev/ttyACM0 where /dev/ttyACM0 is the device file created by the system when plugging the dongle. However the permissions of this file prevent the command to be executed by a non

Use libCEC + USB dongle in Android app

百般思念 提交于 2019-12-05 05:54:00
My goal is to send HDMI CEC commands from a standard (i.e non-system) app running on an Android box equipped with Pulse-Eight's USB dongle. Following these instructions I successfully managed to compile libcec for Android and execute it as root on the box, with this command: echo <my-cec-command> | cec-client -s /dev/ttyACM0 where /dev/ttyACM0 is the device file created by the system when plugging the dongle. However the permissions of this file prevent the command to be executed by a non-root user (therefore it cannot be executed from my Android app). On the other hand the app can actually

How to send HDMI-CEC commands from Amlogic 905x board to the TV using sysfs

不问归期 提交于 2019-12-05 03:48:57
问题 I want to send raw HDMI-CEC commands (adb shell) from an Amlogic 905x ARM board (Android 6) to test the functionality. The board is rooted (tested, 'adb root' works) and connected to a TV with CEC capabilities (enabled, tested with video game console too). First of all I want to clarify if the core functionality is built in, so I guess that if the right CEC command is sent to the right channel, I should notice a change of any kind to the TV set. I want to test it at a lower abstraction level

HDMI CEC on android

时光总嘲笑我的痴心妄想 提交于 2019-12-04 12:55:39
问题 I've been facing a problem to access to HDMI CEC on this android dongle. I'm trying to turn on the tv and change the input source of the tv but I was unable to it. Android API Approach I'm running a system app and I have settled <uses-permission android:name="android.permission.HDMI_CEC" /> on AndroidManifest.xml. I'm accessing to HDMI service through reflection since I was not able to access it directly, even being a system app. public class HdmiHelper { public HdmiHelper(Context context) {