3 How to add the sound & vibration resources
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 In case of sound resources
7 - add ./data/[target]/sound/[category]/
8 - update the ./data/[target]/sound.xml file
10 <label>[the pattern enum what you want to set]</label>
11 <data>[the file path]</data>
14 In case of vibration resources
15 - get the b64 data of the resource using test/getdata application
16 --------------------------------------------------------------
20 | sh-4.1# ./getdata ./noti
22 | [[[AQABAAoAFAAAACAfAAB/IUFBAABQAGUAcgBpAG]]] <----- b64 data
27 --------------------------------------------------------------
28 - update the ./data/[target]/vibration.xml file
30 <label>[the pattern enum what you want to set]</label>
31 <data>[the b64 data]</data>
35 How to test the sound & vibration resources
36 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 - Install Tizen sdk (https://developer.tizen.org/downloads/tizen-sdk)
40 - Install Samsung USB controller
43 test/capi_autofeedback
44 - The resource for testing
46 Prerequisite for updating the resources
47 - Connect PC and Target
48 - Copy test application and resource to Target on pc
49 (ex. copy to /Phone/Downloads/feedback/)
50 - Execute terminal program
51 (ex. command prompt on window
53 - Enter the below command
54 --------------------------------------------------------------
55 | user@user:~$sdb shell
57 | sh-4.1# cd /opt/usr/media/Downloads/feedback
59 | a.ogg capi_autofeedback capi_feedback
60 --------------------------------------------------------------
62 How to test exisiting resource
63 - Play each resource using the test application (capi_feedback)
64 (refer to include/feedback-ids.h)
65 --------------------------------------------------------------
66 | sh-4.1# ./capi_feedback
67 | Which do you want to do?
72 | Please input value : 0
73 | Please input value (exit:-1) : 37 (FEEDBACK_PATTERN_POWEROFF)
74 --------------------------------------------------------------
76 How to test new resource
77 - Change the speicifc enum's file path
78 --------------------------------------------------------------
79 | sh-4.1# ./capi_feedback
80 | Which do you want to do?
85 | Please input value : 1
86 | Please input type(sound:0,vib:1), enum, new path : 0 37 /opt/usr/media/Downloads/feedback/a.ogg
87 --------------------------------------------------------------