Last active
July 31, 2024 18:44
-
-
Save laat/2b7107298593dca650062b7678279386 to your computer and use it in GitHub Desktop.
Notes on Tizen commands that might work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sdb connect <ip>:<port> # connect to TV | |
sdb -s <deviceName> capability # get <installationPath> | |
# build | |
tizen cli-config "default.profiles.path=<profile_path>" | |
tizen build-web -out .buildResult -- <source-dir> | |
tizen package --type wgt --sign profileName -- <source-dir>/.buildResult # extract <package-file> | |
mv <package-file> . | |
rm -rf <source-dir>/.buildResult | |
# install | |
sdb -s <deviceName> push tizen/build/<0000.name>.wgt <installationPath> | |
sdb -s <deviceName> shell 0 vd_appinstall <0000.name> <installationPath>/<0000.name>.wgt | |
# uninstall | |
sdb -s <deviceName> shell 0 vd_appuninstall <0000.name> | |
# launch app (debug) | |
sdb -s <deviceName> shell 0 debug <0000.name> # get <port> | |
sdb -s <deviceName> forward --remove tcp:<port> | |
sdb -s <deviceName> forward tcp:<port> tcp:<port> | |
# then open Chrome on http://localhost:<port> | |
# launch app | |
sdb -s shell 0 was_execute <0000.name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the reply!
Ok, that's also what I ended up doing. Also asked Samsung about the commands but they had no good answer.
To debug an app you need to include the ID, yes. I intentionally left it out generate the error message displaying what command it's translated to on the client (the TV) 🙂.
sdb shell 0 debug packageId.appId
runs/usr/bin/app_launcher --start packageId.appId --web-debug
on the client. Where the translation from the former command to the latter happens is a mystery to me. I suspect it's bysdb
, either on the client or on the host (your computer).