ADB command to start twitch with specific channel - Fire TV Q&A, Help & Troubleshooting

So it's possible to start an app with adb commands like
Code:
adb shell am start -n ...
. I found a gist which shows, that it's also possible with some parameter, so you could not only start the app but also a specific movie. Now I want to do the same, but instead of a movie I want to start twitch with a specific channel. What is the syntax?
Edit: ok, solution is like this
Code:
adb shell am start -a android.intent.action.VIEW -d twitch://stream/STREAMERNAME tv.twitch.android.viewer

Related

ADB command for starting/killing apps and simulating button presses?

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

Lauch App per adb (no root)

Hello,
I would like to start an app installed on a non rooted fire tv (generic solution, and as an example for xbmc) by adb. I found some examples, which all don't work... (I am able to start the adb shell and launch other commands...)
eg:
Code:
am start -a android.intent.action.MAIN -n org.xbmc.xbmc/android.app.NativeActivity
returns
Code:
Error type 3
Error: Activity class {org.xbmc.xbmc/android.app.NativeActivity} does not exist
.
Is this not possible on non rooted fire tv's?
Or do I just use a wrong syntax?
I am working on some remote conrtrol options, so launchers are not a solution for me.
Thanks for support.
adb shell am start -n org.xbmc.xbmc/.Splash
Kramar111 said:
adb shell am start -n org.xbmc.xbmc/.Splash
Click to expand...
Click to collapse
Works, thanks a lot!
Is there any way to get this for other apps out of the system?
eg: if I want to start netflix the same way, can I get the parameters from anywhre in the system or is "google my friend""?
with aapt (part of Android SDK):
run
Code:
aapt dump badging name.apk
and search line "launchable-activity"
or in GNU/Linux run
Code:
./aapt dump badging name.apk | grep "launchable-activity"
Kramar111 said:
with aapt (part of Android SDK):
run
Code:
aapt dump badging name.apk
and search line "launchable-activity"
or in GNU/Linux run
Code:
./aapt dump badging name.apk | grep "launchable-activity"
Click to expand...
Click to collapse
adb shell am start -n ir.hamgam.mobile/.Splash
for doesn't work plz help me

[Q] Internal Memory data recovery

[email protected] /cygdrive/c/Users/user/Desktop
$ adb forward tcp:5555 tcp:5555
bash: adb: command not found
[email protected] /cygdrive/c/Users/user/Desktop
$ adb shell
bash: adb: command not found
[email protected] /cygdrive/c/Users/user/Desktop
$ /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
Can you help ? when i paste this command(adb forward tcp:5555 tcp:5555
adb shell
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12) on cgywin this what happens.
i really want my phone's internal memory back. it's taken from this guide : http://forum.xda-developers.com/gala...y-yes-t1994705 +,when he says to open another terminal ,he means another window of cygwn not just the one i am using ?
i Really need your advice. i want to recover every kind of data from before the format. adb is installed ,nc is in the folder it's suppose to be ,busybox and the other app installed on my device. all are set in their place.
im on my pc win 7 downloaded and did what is on the guide...
+what does it mean connect your phone in adb mode and unlock the screen ? i connent my phone normally through usb and my adb detects my phone in the list in the commmand prompt and thats all ...
is there a mode i am suppose to be into while accessing my phone through usb cable from my pc ?
Edit : i saw a guide about it , i try now ...

Simple batch to send URL and open to Firestick over ADB...

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

TCL C825 switch to HDMI1/2/3 input - IR or adb command

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

Categories

Resources