如何从命令行在Samsung Tizen TV上安装应用程序

时间:2016-07-11 13:31:17

标签: tizen samsung-smart-tv

我想知道是否有办法使用命令行在Samsung Tizen TV上安装应用程序。

我的意思是说如果我使用我的PC上的IDE构建应用程序并生成“wgt”文件,是否有办法使用其他没有IDE的PC中的“wgt”文件来安装应用程序?

在Tizen TV中,基本上有与 adb install 相同的东西吗?

我浏览了他们提供的文档,我只能找到需要IDE的安装程序:

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

2 个答案:

答案 0 :(得分:6)

您可以使用最新的SDK 3.0,截至2017年2月

在本练习中,您至少需要安装tizen studio命令行(无论如何我推荐IDE),电视扩展,Tilen TV在'开发者模式',你需要配置你的开发环境,所以你需要可以从命令行打包。 (如果没有以某种方式提供证书,这将无效。)

可以找到命令行打包的说明,因此: https://developer.tizen.org/development/tizen-studio/web-tools/cli 寻找'tizen package'

完成后,您可以以任何方式生成.wgt文件。我认为此时“已完成”。

找到您电视的IP地址并运行...

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

然后你需要它的名字

<tizen_studio path>/tools/sdb devices

您应该看到类似

的内容
<ip address>:<port>      UN48E6300 

从那里,您可以:

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

例如:

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

接下来,应该需要4-5秒。如果它立即完成,您的电视可能不处于开发模式,您可能没有连接,或者您的certs / profile.xml可能是错误的。 4-5秒后,每次都会说“安装失败”,但您的应用程序将显示在“我的应用程序”下。

答案 1 :(得分:2)

This is not possible with a regular consumer television. It can only be done on special 'development' tv provided to you directly from Samsung. There is a difference between 'developer mode' on a consumer tv, and a 'developer tv' which comes from Samsung. And as I understand, those are only provided if you have 'platform' level privilege as an app developer.

According to this post on the samsungdforum, they say you can only do this if you have 'Partner' level access and only on the emulator.

According to Samsung TV security policy, shell command access is allowed to the limited users.

The Samsung TV security policy prevents command line access to consumer TVs because it's actually a very powerful tool that can cause much damage. I have contact with a team who have 'Platform' level access and a 'developer tv'. It took them all of about 15 mins to brick their first tv, because developers will be developers and will start poking around under the hood if given the opportunity. The current incarnation of Samsung's command line tool (sdb) just doesn't have the safeguards in place to protect us from ourselves.