How to install apps on Samsung Tizen TV from command line

Archit Sinha picture Archit Sinha · Jul 11, 2016 · Viewed 14.2k times · Source

I want to know if there is a way to install apps on Samsung Tizen TV using the command line.

I mean to say if I build the app and generate the "wgt" file using the IDE on my PC, is there a way to install the app using the "wgt" file from some other PC which does not have the IDE?

Basically is there something equivalent to a adb install in Tizen TV?

I went through the documentation which they have provided and I could only find installation procedure which requires the IDE:

https://www.samsungdforum.com/TizenGuide/tizen3511/index.html

Answer

David picture David · Mar 23, 2017

You can in the newest SDK 3.0, as of like February 2017

For this exercise, you will need at least the tizen studio command line installed (I recommend the IDE anyway), the TV Extensions, your Tizen TV in 'Developer Mode' and you'll need to configure your development environment so you can package from the command line. (This won't work without certificates in place in some manner.)

Instructions for packaging from the command line can be found, thusly: https://developer.tizen.org/development/tizen-studio/web-tools/cli Look for 'tizen package'

Once you have that done, you can generate a .wgt file any way you want. I'll consider that 'done' at this point.

Find your TV's IP address and run...

<tizen_studio path>/tools/sdb connect <tv ip address>

Then you need its name

<tizen_studio path>/tools/sdb devices

You should see something like

<ip address>:<port>      UN48E6300 

From there, you can do:

<tizen studio path>/tools/ide/bin/tizen install -n <.wgt> -t <tv name>

for example:

<tizen studio path>/tools/ide/bin/tizen install -n somefile.wgt -t UN48E6300

Next up, it should take 4-5 seconds. If it completes immediately, your TV might not be in develop mode, you might not be connected, or your certs/profile.xml might be wrong. After 4-5 seconds, it will say 'install failed' every time, but your application will show up under My Apps.