aurum: re-arrange files and add guide & scripts for TV
[platform/core/uifw/aurum.git] / protocol / resources / python / tv / tvSetup.py
1 import os
2 import subprocess
3 import re
4 import sys
5 import time
6
7 def run_command(command):
8     stream = os.popen(command)
9     output = stream.read()
10
11 # Start scrip here
12 run_command("sdb root on")
13 # To run bootstrap as command
14 run_command("sdb shell tpk-backend -y org.tizen.aurum-bootstrap --preload")
15 # TV need to enable touch
16 run_command("sdb shell vconftool set -f -t bool memory/window_system/input/force_enable_touch 1")
17 # Dut to input generator issue, temporarily do below command
18 run_command("sdb shell winfo -init_device --type=touch")
19 run_command("sdb forward tcp:50051 tcp:50051")
20 run_command("sdb shell app_launcher -s org.tizen.aurum-bootstrap")
21 # Wait 1 sec till bootstrap launched
22 time.sleep(1)