feedback: Add new str pattern for all pattern
[platform/core/system/libsvi.git] / README
1
2
3 How to add the sound & vibration resources
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
6 In case of sound resources
7 - add ./data/[target]/sound/[category]/
8 - update the ./data/[target]/sound.xml file
9         <sound>
10                 <label>[the pattern enum what you want to set]</label>
11                 <data>[the file path]</data>
12         </sound>
13
14 In case of vibration resources
15 - get the b64 data of the resource using test/getdata application
16     --------------------------------------------------------------
17         | sh-4.1$ su
18         | sh-4.1# ls ./noti
19         | a.ivt
20         | sh-4.1# ./getdata ./noti
21         | <printdir:74> a.ivt
22         | [[[AQABAAoAFAAAACAfAAB/IUFBAABQAGUAcgBpAG]]] <----- b64 data
23         | (((
24         |        !AAPeriodic)))
25         |
26         | <main:85> done
27     --------------------------------------------------------------
28 - update the ./data/[target]/vibration.xml file
29         <vibration>
30                 <label>[the pattern enum what you want to set]</label>
31                 <data>[the b64 data]</data>
32         </vibration>
33
34
35 How to test the sound & vibration resources
36 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37
38 Preparation
39 - Install Tizen sdk (https://developer.tizen.org/downloads/tizen-sdk)
40 - Install Samsung USB controller
41 - Test application
42         test/capi_feedback
43         test/capi_autofeedback
44 - The resource for testing
45
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
52        terminal on linux)
53 - Enter the below command
54     --------------------------------------------------------------
55         | user@user:~$sdb shell
56         | sh-4.1$ su
57         | sh-4.1# cd /opt/usr/media/Downloads/feedback
58         | sh-4.1# ls
59         | a.ogg capi_autofeedback capi_feedback
60     --------------------------------------------------------------
61
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?
68         |               0 : Play
69         |               1 : Change the path
70         |               2 : Reset the path
71         |               others : quit
72         | Please input value : 0
73         | Please input value (exit:-1) : 37 (FEEDBACK_PATTERN_POWEROFF)
74     --------------------------------------------------------------
75
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?
81         |               0 : Play
82         |               1 : Change the path
83         |               2 : Reset the path
84         |               others : quit
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     --------------------------------------------------------------
88