user@User-1404:~/cli/package-manager$ ./package-manager-cli.bin show-pkgs Display installed packages information Tizen Package Manager (0.2.29) Status Package Name Package Version Component Name ------------------------------------------------------------------------------------------------------------------------ ni MOBILE-2.4 2.4.74 2.4 Mobile i MOBILE-2.4-Emulator 2.4.74 Emulator ni MOBILE-2.4-NativeAppDevelopment-CLI 2.4.74 Native app. development (CLI) ni MOBILE-2.4-NativeAppDevelopment 2.4.74 Native app. development (IDE) ni MOBILE-2.4-WebFramework-TAU-CLI 2.4.74 TAU (CLI) ni MOBILE-2.4-WebFramework-TAU 2.4.74 TAU (IDE) i MOBILE-2.4-WebAppDevelopment-CLI 2.4.74 Web app. development (CLI) ni MOBILE-2.4-WebAppDevelopment 2.4.74 Web app. development (IDE) ni MOBILE-2.3.1 2.3.19 2.3.1 Mobile ni MOBILE-2.3.1-Emulator 2.3.19 Emulator ni MOBILE-2.3.1-NativeAppDevelopment-CLI 2.3.19 Native app. development (CLI) ni MOBILE-2.3.1-NativeAppDevelopment 2.3.19 Native app. development (IDE) ni MOBILE-2.3.1-WebFramework-TAU-CLI 2.3.19 TAU (CLI) ni MOBILE-2.3.1-WebFramework-TAU 2.3.19 TAU (IDE) i MOBILE-2.3.1-WebAppDevelopment-CLI 2.3.19 Web app. development (CLI) ni MOBILE-2.3.1-WebAppDevelopment 2.3.19 Web app. development (IDE) ni WEARABLE-2.3.1 2.3.19 2.3.1 Wearable ni WEARABLE-2.3.1-Emulator 2.3.19 Emulator ni WEARABLE-2.3.1-NativeAppDevelopment-CLI 2.3.19 Native app. development (CLI) ni WEARABLE-2.3.1-NativeAppDevelopment 2.3.19 Native app. development (IDE) ni WEARABLE-2.3.1-WebFramework-TAU-CLI 2.3.19 TAU (CLI) ni WEARABLE-2.3.1-WebFramework-TAU 2.3.19 TAU (IDE) i WEARABLE-2.3.1-WebAppDevelopment-CLI 2.3.19 Web app. development (CLI) ni WEARABLE-2.3.1-WebAppDevelopment 2.3.19 Web app. development (IDE) ni MOBILE-2.3 2.4.45 2.3 Mobile ni MOBILE-2.3-Emulator 2.4.45 Emulator ni MOBILE-2.3-NativeAppDevelopment-CLI 2.4.45 Native app. development (CLI) ni MOBILE-2.3-NativeAppDevelopment 2.4.45 Native app. development (IDE) ni MOBILE-2.3-WebFramework-TAU-CLI 2.4.45 TAU (CLI) ni MOBILE-2.3-WebFramework-TAU 2.4.45 TAU (IDE) i MOBILE-2.3-WebAppDevelopment-CLI 2.4.45 Web app. development (CLI) ni MOBILE-2.3-WebAppDevelopment 2.4.45 Web app. development (IDE) ni WEARABLE-2.3 2.4.45 2.3 Wearable ni WEARABLE-2.3-Emulator 2.4.45 Emulator ni WEARABLE-2.3-WebFramework-TAU-CLI 2.4.45 TAU (CLI) ni WEARABLE-2.3-WebFramework-TAU 2.4.45 TAU (IDE) i WEARABLE-2.3-WebAppDevelopment-CLI 2.4.45 Web app. development (CLI) ni WEARABLE-2.3-WebAppDevelopment 2.4.45 Web app. development (IDE) ni TOOLS 2.4.68 Tizen SDK tools i Emulator 2.4.68 Emulator manager ni NativeCLI 2.4.68 Native CLI ni NativeIDE 2.4.68 Native IDE ni NativeToolchain 2.4.68 Native toolchain ni NativeToolchain-Gcc-4.6 2.4.68 Gcc 4.6 toolchain ni NativeToolchain-Gcc-4.9 2.4.68 Gcc 4.9 toolchain ni PlatformIDE 2.4.68 Platform IDE i WebCLI 2.4.68 Web CLI ni WebIDE 2.4.68 Web IDE ni EXTRAS 0.0.0 Extras ni TV-2.4-samsung-public 2.5.13 Samsung TV extensions (public) ni TV-2.4-samsung-public-Emulator 2.5.13 Emulator ni TV-2.4-samsung-public-WebAppDevelopment 2.5.13 Web app. development i cert-add-on 1.0.42 Samsung Certificate Extension ni tizen-wearable-extension 1.0.0 Wearable Extension for 2.3.1 user@User-1404:~/cli/package-manager$ ./package-manager-cli.bin install WEARABLE-2.3.1 --accept-licence -p 123 Tizen Package Manager (0.2.29) **************************************** ******* Start SDK Update ******* **************************************** Nothing to update. **************************************** ******* Start SDK Installation ******* **************************************** Under packages are will be installed. * WEARABLE-2.3.1-Emulator * NativeToolchain-Gcc-4.6 * WEARABLE-2.3.1-NativeAppDevelopment-CLI * WEARABLE-2.3.1-NativeAppDevelopment * WEARABLE-2.3.1-WebFramework-TAU-CLI * WEARABLE-2.3.1-WebAppDevelopment * WEARABLE-2.3.1-WebFramework-TAU [WEARABLE-2.3.1-Emulator] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] [NativeToolchain-Gcc-4.6] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] [WEARABLE-2.3.1-NativeAppDevelopment-CLI] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] [WEARABLE-2.3.1-NativeAppDevelopment] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] [WEARABLE-2.3.1-WebFramework-TAU-CLI] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] [WEARABLE-2.3.1-WebAppDevelopment] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] [WEARABLE-2.3.1-WebFramework-TAU] 0% [----------------------------------------] 100 % [++++++++++++++++++++++++++++++++++++++++] Installation has been completed. user@User-1404:~$ export PATH=$PATH:~/cli/tools/ide/bin user@User-1404:~$ tizen version Tizen CLI 1.2.3 user@User-1404:~$ tizen list native-project ----------------------------------------------------- Starting native-project ----------------------------------------------------- [PROFILE] [TEMPLATE] mobile-2.4 IMEApplication mobile-2.4 ServiceApp mobile-2.4 SharedLibrary mobile-2.4 StaticLibrary mobile-2.4 basic-edc-ui mobile-2.4 basic-ui mobile-2.4 downloadable-font mobile-2.4 widgetapp wearable-2.3.1 ServiceApp wearable-2.3.1 SharedLibrary wearable-2.3.1 StaticLibrary wearable-2.3.1 basic-edc-ui wearable-2.3.1 basic-ui wearable-2.3.1 watchapp wearable-2.3.1 widgetapp ----------------------------------------------------- Finished native-project user@User-1404:~$ tizen create native-project -p wearable-2.3.1 -t basic-ui -n ProjectA -- ~/cli-workspace/ ----------------------------------------------------- Starting native-project ----------------------------------------------------- Project Location: ~/cli-workspace/ProjectA ----------------------------------------------------- Finished native-project user@User-1404:~$ tizen build-native -- ~/cli-workspace/ProjectA ----------------------------------------------------- Starting build-native ----------------------------------------------------- There is no architecture input. -> Try to find default value from config file. [ARCHITECTURE]: x86 There is no compiler input. -> Try to find default value from config file. [COMPILER]: llvm There is no configuration input. -> Try to find default value from config file. [CONFIGURATION]: Debug "~/cli/tools/smart-build-interface/bin/sbi_make" -v "Wearable 2.3.1" -a i386 -t LLVM-3.6 -c Debug -p app Checking prerequisite... Checking make... ok make: Nothing to be done for `all'. PLATFORM_VER : Wearable 2.3.1 ARCHITECTURE : i386 TOOLCHAIN : LLVM-3.6 BUILD_CONFIG : Debug PROJECT_TYPE : app PROJECT_PATH : ~/cli-workspace/ProjectA SDK_PATH : ~/cli APPLICATION_ID : org.example.projecta ----------------------------------------------------- Finished build-native Total time: 00:00:00.216 user@User-1404:~$ tizen clean -- ~/cli-workspace/ProjectA ----------------------------------------------------- Starting clean ----------------------------------------------------- ~/cli/tools/smart-build-interface/bin/sbi_make -v "Wearable 2.3.1" -a i386 -t LLVM-3.6 -c Debug -p app clean Checking prerequisite... Checking make... ok rm -f "~/cli-workspace/ProjectA/Debug/projecta" rm -rf "~/cli-workspace/ProjectA/Debug" PLATFORM_VER : Wearable 2.3.1 ARCHITECTURE : i386 TOOLCHAIN : LLVM-3.6 BUILD_CONFIG : Debug PROJECT_TYPE : app PROJECT_PATH : ~/cli-workspace/ProjectA SDK_PATH : ~/cli APPLICATION_ID : org.example.projecta ----------------------------------------------------- Finished clean user@User-1404:~$ cd ~/cli-workspace/ProjectA user@User-1404:~/cli-workspace/ProjectA$ ls Build data inc lib project_def.prop res shared src tizen-manifest.xml user@User-1404:~/cli-workspace/ProjectA$ cd src user@User-1404:~/cli-workspace/ProjectA/src$ ls projecta.c user@User-1404:~/cli-workspace/ProjectA/src$ nano projecta.c user@User-1404:~$ tizen certificate -a testCertA -p 12345678 -f testCert ----------------------------------------------------- Starting certificate ----------------------------------------------------- No path option. Will be generated on '~/cli-data/keystore/author'. Working path: ~/cli-data/keystore/author Generating a certificate with File name = testCert Container Password = ******** Alias = testCertA Key Password = ******** Internal Certificates Directory = ~/cli/tools/certificate-generator 'testCert' has been generated in '~/cli-data/keystore/author'. ----------------------------------------------------- Finished certificate user@User-1404:~$ tizen security-profiles add -n ProfileA -a ~/cli-data/keystore/author/testCert.p12 -p 12345678 ----------------------------------------------------- Starting add ----------------------------------------------------- Loaded in '~/cli-data/ide/keystore/profiles.xml'. author path: ~/cli-data/keystore/author/testCert.p12 author password: ******** distributor1 path: ~/cli/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12 distributor1 password: ************************* distributor1 CA path: ~/cli/tools/certificate-generator/certificates/distributor/tizen-distributor-ca.cer Wrote to '~/cli-data/ide/keystore/profiles.xml'. Succeed to add 'ProfileA' profile. If want to sign by this, add the file of security profiles in CLI configuration like 'tizen cli-config "profiles.path=~/cli-data/ide/keystore/profiles.xml"'. ----------------------------------------------------- Finished add user@User-1404:~$ tizen security-profiles list ----------------------------------------------------- Starting list ----------------------------------------------------- Loaded in '~/cli-data/ide/keystore/profiles.xml'. ======================================== Name ======================================== MyProfile123 pro9 p1 pTest ktPro clP ProName ProfileA ----------------------------------------------------- Finished list user@User-1404:~$ tizen package -t tpk -s ProfileA -- ~/cli-workspace/ProjectA/Debug ----------------------------------------------------- Starting package ----------------------------------------------------- Initialize... OK Copying files... OK Signing... OK Zip path: ~/cli-workspace/ProjectA/Debug/org.example.projecta-1.0.0-i386.tpk adding: signature1.xml (in=4175) (out=1938) (deflated 54%) adding: res/ (in=0) (out=0) (stored 0%) adding: bin/ (in=0) (out=0) (stored 0%) adding: bin/projecta (in=18886) (out=7845) (deflated 58%) adding: shared/ (in=0) (out=0) (stored 0%) adding: shared/res/ (in=0) (out=0) (stored 0%) adding: shared/res/projecta.png (in=57662) (out=18633) (deflated 68%) adding: shared/data/ (in=0) (out=0) (stored 0%) adding: shared/trusted/ (in=0) (out=0) (stored 0%) adding: tizen-manifest.xml (in=396) (out=232) (deflated 41%) adding: lib/ (in=0) (out=0) (stored 0%) adding: author-signature.xml (in=4118) (out=2159) (deflated 48%) total bytes=85237, compressed=30807 -> 64% savings Zipping... OK Package File Location: ~/cli-workspace/ProjectA/Debug/org.example.projecta-1.0.0-i386.tpk ----------------------------------------------------- Finished package user@User-1404:~$ cd ~/cli/tools/emulator/bin user@User-1404:~/cli/tools/emulator/bin$ ./em-cli list-platform mobile-2.4 wearable-2.3.1-circle wearable-2.3.1 user@User-1404:~/cli/tools/emulator/bin$ ./em-cli list-template 360x480 Wearable Wearable Circle 320x320 Wearable HD Mobile WVGA Mobile HD1080 TV user@User-1404:~/cli/tools/emulator/bin$ ./em-cli create -n WearEmulator -p wearable-2.3.1-circle -t Wearable-Circle New virtual machine is created user@User-1404:~/cli/tools/emulator/bin$ ./em-cli list-vm emu1 CLI1 testDevice ktEmu t12 em9 WearEmulator user@User-1404:~/cli/tools/emulator/bin$ ./em-cli launch -n WearEmulator Launch command : "~/cli/platforms/tizen-2.3.1/common/emulator/bin/emulator.sh" --conf "~/cli-data/emulator/vms/WearEmulator/vm_launch.conf" The VM is launched user@User-1404:~$ tizen install -n org.example.projecta-1.0.0-i386.tpk -- ~/cli-workspace/ProjectA/Debug ----------------------------------------------------- Starting install ----------------------------------------------------- Transferring the package... Transferred the package: ~/cli-workspace/ProjectA/Debug/org.example.projecta-1.0.0-i386.tpk -> /opt/usr/apps/tmp Installing the package... -------------------- Platform log view -------------------- path is /opt/usr/apps/tmp/org.example.projecta-1.0.0-i386.tpk __return_cb req_id[30000002] pkg_type[coretpk] pkgid[org.example.projecta] key[start] val[install] __return_cb req_id[30000002] pkg_type[coretpk] pkgid[org.example.projecta] key[install_percent] val[30] __return_cb req_id[30000002] pkg_type[coretpk] pkgid[org.example.projecta] key[install_percent] val[60] __return_cb req_id[30000002] pkg_type[coretpk] pkgid[org.example.projecta] key[install_percent] val[100] __return_cb req_id[30000002] pkg_type[coretpk] pkgid[org.example.projecta] key[end] val[ok] spend time for pkgcmd is [2293]ms Installed the package: Id(org.example.projecta) Tizen application is successfully installed. ----------------------------------------------------- Finished install Total time: 00:00:05.214 user@User-1404:~$ tizen run -p org.example.projecta ----------------------------------------------------- Starting run ----------------------------------------------------- [Name]: projecta [Type]: rpm [appId]: org.example.projecta Launching the Tizen application... org.tizen.sdblib.exception.SdbCommandRejectedException: closed at org.tizen.sdblib.SdbHelper.sendServiceRequest(SdbHelper.java:576) at org.tizen.sdblib.PlatformCapability.loadPlatformCapability(PlatformCapability.java:136) at org.tizen.sdblib.PlatformCapability.(PlatformCapability.java:132) at org.tizen.ncli.ide.subcommands.RunCLICommand.runApp(RunCLICommand.java:185) at org.tizen.ncli.ide.subcommands.RunCLICommand.call(RunCLICommand.java:80) at org.tizen.ncli.ide.subcommands.RunCLICommand.call(RunCLICommand.java:42) at org.tizen.ncli.ide.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76) at org.tizen.ncli.ide.shell.RunCLI.execute(RunCLI.java:66) at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:90) at org.tizen.ncli.ide.shell.Main.run(Main.java:141) at org.tizen.ncli.ide.shell.Main.main(Main.java:73) -------------------- Platform log view -------------------- ... successfully launched Tizen application is successfully launched. ----------------------------------------------------- Finished run