From: nibha.sharma Date: Fri, 21 Apr 2017 06:48:14 +0000 (+0530) Subject: [TBT][Non-ACR][synced 3.0 code of tbt to 4.0 brnach] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F126377%2F2;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][Non-ACR][synced 3.0 code of tbt to 4.0 brnach] Change-Id: If15dd1807b5189240e34e2f06efae6b7082e4a25 Signed-off-by: nibha.sharma --- diff --git a/release/binary-armv7l/install.sh b/release/binary-armv7l/install.sh index 855b3de..c2d2b55 100755 --- a/release/binary-armv7l/install.sh +++ b/release/binary-armv7l/install.sh @@ -25,6 +25,8 @@ EXECUTION_USER=owner +sdb root on + sdb push org.tizen.coretbt_dataprovider-1.0.0-arm.tpk /tmp sdb push org.tizen.coretbt_serviceapp-1.0.0-arm.tpk /tmp sdb push org.tizen.coretbt_uiapp-1.0.0-arm.tpk /tmp @@ -35,6 +37,7 @@ sdb push org.tizen.tbtcoreapp-dali-1.0.0-arm.tpk /tmp sdb push org.tizen.tbtcoreapp-1.0.0-arm.tpk /tmp sdb push org.tizen.tbt_pushtestapp-1.0.0-arm.tpk /tmp sdb push org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk /tmp +sdb push org.example.multiclass-1.0.0-arm.tpk /tmp sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_dataprovider-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbt_serviceapp-1.0.0-arm.tpk" $EXECUTION_USER @@ -46,8 +49,7 @@ sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-arm.tpk sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk" $EXECUTION_USER - -sdb root on +sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.multiclass-1.0.0-arm.tpk" $EXECUTION_USER sdb push dog_1024_960.gif /home/$EXECUTION_USER/media/Images sdb push SampleMP3.mp3 /home/$EXECUTION_USER/media/Sounds diff --git a/release/binary-armv7l/org.example.multiclass-1.0.0-arm.tpk b/release/binary-armv7l/org.example.multiclass-1.0.0-arm.tpk new file mode 100755 index 0000000..cfb6292 Binary files /dev/null and b/release/binary-armv7l/org.example.multiclass-1.0.0-arm.tpk differ diff --git a/release/binary-armv7l/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk old mode 100644 new mode 100755 index cae201d..4d9f0f1 Binary files a/release/binary-armv7l/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.example.multiclass-1.0.0-x86.tpk b/release/binary-x86/org.example.multiclass-1.0.0-x86.tpk new file mode 100755 index 0000000..d7c0144 Binary files /dev/null and b/release/binary-x86/org.example.multiclass-1.0.0-x86.tpk differ diff --git a/release/binary-x86/org.tizen.tbt_pushtestapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbt_pushtestapp-1.0.0-x86.tpk new file mode 100755 index 0000000..1f12870 Binary files /dev/null and b/release/binary-x86/org.tizen.tbt_pushtestapp-1.0.0-x86.tpk differ diff --git a/tbt_pushtestapp/res/tbt_push_auth.xml b/tbt_pushtestapp/res/tbt_push_auth.xml new file mode 100755 index 0000000..ecc918b --- /dev/null +++ b/tbt_pushtestapp/res/tbt_push_auth.xml @@ -0,0 +1,8 @@ + + +da58f09b7dcd898f +E55A746761233098DDD1114F652AFE51 +00f829f1fd898590 +5eMue+osQCi4Pbhdw+bltGC8PbEAAA== + + \ No newline at end of file diff --git a/tbt_pushtestapp/src/tbt_pushtestapp.c b/tbt_pushtestapp/src/tbt_pushtestapp.c index 1e3aebc..b1442f7 100644 --- a/tbt_pushtestapp/src/tbt_pushtestapp.c +++ b/tbt_pushtestapp/src/tbt_pushtestapp.c @@ -1,4 +1,6 @@ #include "tbt_pushtestapp.h" +#include +#include #define PUSH_APP_ID "00f829f1fd898590" #define PUSH_APP_SECRET "5eMue+osQCi4Pbhdw+bltGC8PbEAAA==" @@ -261,10 +263,14 @@ static void start_push_operation(void* data) int ret = storage_foreach_device_supported(_storage_device_supported_cb,NULL); RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret)); - ret = storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_OTHERS,&TBT_PUSH_XML_DIR); - RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret)); + char * script = "cp /opt/usr/globalapps/org.tizen.tbt_pushtestapp/res/tbt_push_auth.xml /home/owner/media/Others/tbt_push_auth.xml"; + system(script); + + + ret = storage_get_directory(_supportedStorageID,STORAGE_DIRECTORY_OTHERS,&TBT_PUSH_XML_DIR); + RETM_IF(ret<0,"storage_foreach_device_supported failed : %s",get_storage_error(ret)); - init_xml_operation(this); + init_xml_operation(this); this->push_app_id_text = get_xml_element_value(this->doc, this->root_node_ptr, "TestappID"); DBG("appID: %s", this->push_app_id_text); diff --git a/tbtcoreapp/src/model/tbt-list.c b/tbtcoreapp/src/model/tbt-list.c index 9cef15b..df4b91d 100755 --- a/tbtcoreapp/src/model/tbt-list.c +++ b/tbtcoreapp/src/model/tbt-list.c @@ -2389,7 +2389,9 @@ static tbt_info tbtapps[] = .apptype = TBT_APP_TTS, .icon_name = "dummy", .info = "Text to speech
", - .result = 0 + .result = 0, + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #endif @@ -2593,7 +2595,9 @@ static tbt_info tbtapps[] = .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER, .icon_name = "dummy", .info = "DALi Accessibility Manager Signals", - .result = 0 + .result = 0, + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_FLICK @@ -2605,7 +2609,9 @@ static tbt_info tbtapps[] = .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER_FLICK, .icon_name = "dummy", .info = "DALi Accessibility Manager Signals", - .result = 0 + .result = 0, + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_TAP @@ -2617,7 +2623,9 @@ static tbt_info tbtapps[] = .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER_TAP, .icon_name = "dummy", .info = "DALi Accessibility Manager Signals", - .result = 0 + .result = 0, + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #ifdef TBT_MODULE_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE @@ -2629,7 +2637,9 @@ static tbt_info tbtapps[] = .apptype = TBT_APP_DALI_ACCESSIBILITY_MANAGER_SWIPE, .icon_name = "dummy", .info = "DALi Accessibility Manager Signals", - .result = 0 + .result = 0, + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #ifdef TBT_MODULE_APP_DALI_LONG_PRESS_GESTURE_SINGLE @@ -2762,7 +2772,8 @@ static tbt_info tbtapps[] = .icon_name = "dummy", .info = "DALi TTS Functionality", .result = 0, - .required_features_count = 0 + .required_features_count = 1, + .features_required = { FEATURE_SPEECH_SYNTHESIS } }, #endif #ifdef TBT_MODULE_APP_DALI_APP diff --git a/tbtcoreapp/tizen-manifest.xml b/tbtcoreapp/tizen-manifest.xml index e1f8fe2..31cca49 100644 --- a/tbtcoreapp/tizen-manifest.xml +++ b/tbtcoreapp/tizen-manifest.xml @@ -6,30 +6,30 @@ tbtcoreapp.png - http://tizen.org/privilege/location + http://tizen.org/privilege/contact.read http://tizen.org/privilege/datasharing - http://tizen.org/privilege/network.get - http://tizen.org/privilege/wifidirect - http://tizen.org/privilege/callhistory.read - http://tizen.org/privilege/contact.write - http://tizen.org/privilege/push - http://tizen.org/privilege/externalstorage - http://tizen.org/privilege/recorder http://tizen.org/privilege/packagemanager.info http://tizen.org/privilege/mediastorage - http://tizen.org/privilege/internet http://tizen.org/privilege/callhistory.write - http://tizen.org/privilege/volume.set - http://tizen.org/privilege/contact.read + http://tizen.org/privilege/network.get + http://tizen.org/privilege/d2d.datasharing + http://tizen.org/privilege/bluetooth + http://tizen.org/privilege/nfc + http://tizen.org/privilege/callhistory.read http://tizen.org/privilege/shortcut - http://tizen.org/privilege/camera - http://tizen.org/privilege/appmanager.launch + http://tizen.org/privilege/recorder http://tizen.org/privilege/network.profile http://tizen.org/privilege/packagemanager.clearcache - http://tizen.org/privilege/nfc - http://tizen.org/privilege/bluetooth + http://tizen.org/privilege/location http://tizen.org/privilege/network.set + http://tizen.org/privilege/wifidirect + http://tizen.org/privilege/externalstorage + http://tizen.org/privilege/camera + http://tizen.org/privilege/appmanager.launch + http://tizen.org/privilege/contact.write + http://tizen.org/privilege/push + http://tizen.org/privilege/volume.set + http://tizen.org/privilege/internet http://tizen.org/privilege/notification - http://tizen.org/privilege/d2d.datasharing