Hi,
you can switch to the Fire TV 4K's HDMI Port by pressing home or via adb by simulating adb shell input keyevent KEYCODE_HOME.
I'd like to make the Fire TV also to switch to other hdmi inputs. For example adb manual allows the following command:
"key_tv_satellite_service": "adb shell input keyevent 240", "key_tv_network": "adb shell input keyevent 241", "key_tv_antenna_cable": "adb shell input keyevent 242", "key_tv_input_hdmi_1": "adb shell input keyevent 243", "key_tv_input_hdmi_2": "adb shell input keyevent 244", "key_tv_input_hdmi_3": "adb shell input keyevent 245", "key_tv_input_hdmi_4": "adb shell input keyevent 246", "key_tv_input_composite_1": "adb shell input keyevent 247", "key_tv_input_composite_2": "adb shell input keyevent 248", "key_tv_input_component_1": "adb shell input keyevent 249", "key_tv_input_component_2": "adb shell input keyevent 250",
But they don't seem towork on the Fire TV 4k. Only Home command switched HDMI input.
Is there a away to also issue these hdmi commands via Fire TV 4k?
Related
I'm trying to write a script that does a few things, first, starts a program on my phone called Tetherbot, then clicks a button on the application (to start the proxy). Then runs a few ADB commands. Problem is that I can't figure out how to launch a program with ADB or how to simulate clicks on a button in ADB.
In addition, I need to know how to kill an application with ADB (for when I'm done).
EDIT: Got everything I need...
Start:
adb shell am start -a android.intent.action.MAIN -n graha.ms.tunnel/graha.ms.tunnel.TunnelConfig ##start new instance of tetherbot or bring current one to front
adb shell input keyevent 19 ###press up
adb shell input keyevent 66 ###press enter
adb shell am start -a android.intent.category.HOME -n com.fede.launcher/.Launcher
adb forward tcp:1080 tcp:1080
Stop:
adb shell am start -a android.intent.action.MAIN -n graha.ms.tunnel/graha.ms.tunnel.TunnelConfig ##start new instance of tetherbot or bring current one to front
adb shell input keyevent 19 ###press up
adb shell input keyevent 22 ###press right
adb shell input keyevent 66 ###press enter
adb shell am start -a android.intent.category.HOME -n com.fede.launcher/.Launcher
Hi all, I have the following strange behavior when I want to use ADB:
(my device is Desire HD with 4.0.4, usb deb. is enabled, OS is win7 x64, Android Phone driver in dev manager is "My HTC" but I tried changing it with "ADB composite interface" or something like that but with the same result...)
When I start CMD (adb is registered in "Environment variables") and type "adb devices", my device is listed, but right after that when I type ""ADB shell" (daemon is restarting at this point) followed by "adb devices", my device is listed as empty entry (no device name) and some adb shell commands give me trouble (they don't work, push doesn't work and install apk is working fine).....
Main problem is that I want to use androidscreencast but I'm unable to execute
adb shell
su
chmod 777 /data/dalvik-cache
cd /data/dalvik-cache
chmod 777 ./
No errors, no results?
Any ideas?
chmod 777 /data/dalvik-cache/*
Is right
Sent from my HTC Desire X using xda premium
I have connected my PC to my car stereo via ADB over wifi (car stereo is rooted and has busybox installed)
So i ran;
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
on the car stereo under terminal.
on the PC i run
adb connect ***wifi.ip.address***:5555 in my case adb connect 192.168.1.35:5555
which connects me to
connected to 192.168.1.35:5555
then adb shell
[email protected]_tb_c_kk:/ $
then sm list-disks
but i get : /system/bin/sh: sm: not found
any ideas ?
Make this a .bat script. Edit the two lines. Run the file and verify debugging on TV. Copy everything below this.
@Echo off
echo FireStick ADB interface initializing...
REM edit this to abd.exe directory v
cd /d C:\Android\Adb\
adb connect 192.168.x.x
REM Firestick IP here ^
echo.
echo.
echo.
echo.
set /p UserInputPath=What is the URL? (type "exit" to kill adb and exit)
IF "%UserInputPath%"=="exit" (
adb kill-server
exit
)
timeout -t 3
adb shell am start -a android.intent.action.VIEW -d %UserInputPath%
adb kill-server
exit
Hello,
Did anyone discover a way to switch directly to HDMI1/2/3 ?
Either using IR or an ADB command?
finally discovered a way! with adb:
HDMI1
adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.tcl.tvinput%2F.passthroughinput.TvPassThroughService%2FHW1413744128
HDMI2
adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.tcl.tvinput%2F.passthroughinput.TvPassThroughService%2FHW1413744384
HDMI3
adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.tcl.tvinput%2F.passthroughinput.TvPassThroughService%2FHW1413744640
HDMI4
adb shell am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.tcl.tvinput%2F.passthroughinput.TvPassThroughService%2FHW1413745664
credits to diegodanado