1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#!/bin/sh
if [ ! -d @DATADIR@/dbspace ]
then
mkdir @DATADIR@/dbspace
fi
if [ ! -f @DATADIR@/dbspace/.notification.db ]
then
sqlite3 @DATADIR@/dbspace/.notification.db 'PRAGMA journal_mode = PERSIST;
create table if not exists noti_list (
type INTEGER NOT NULL,
caller_pkgname TEXT NOT NULL,
launch_pkgname TEXT,
image_path TEXT,
group_id INTEGER default 0,
internal_group_id INTEGER default 0,
priv_id INTERGER NOT NULL,
title_key TEXT,
b_text TEXT,
b_key TEXT,
b_format_args TEXT,
num_format_args INTEGER default 0,
text_domain TEXT,
text_dir TEXT,
time INTEGER default 0,
insert_time INTEGER default 0,
args TEXT,
group_args TEXT,
b_execute_option TEXT,
b_service_responding TEXT,
b_service_single_launch TEXT,
b_service_multi_launch TEXT,
sound_type INTEGER default 0,
sound_path TEXT,
vibration_type INTEGER default 0,
vibration_path TEXT,
flags_for_property INTEGER default 0,
flag_simmode INTEGER default 0,
display_applist INTEGER,
progress_size DOUBLE default 0,
progress_percentage DOUBLE default 0,
rowid INTEGER PRIMARY KEY AUTOINCREMENT,
UNIQUE (caller_pkgname, priv_id)
);
create table if not exists noti_group_data (
caller_pkgname TEXT NOT NULL,
group_id INTEGER default 0,
badge INTEGER default 0,
title TEXT,
content TEXT,
loc_title TEXT,
loc_content TEXT,
count_display_title INTEGER,
count_display_content INTEGER,
rowid INTEGER PRIMARY KEY AUTOINCREMENT,
UNIQUE (caller_pkgname, group_id)
);
create table if not exists ongoing_list (
caller_pkgname TEXT NOT NULL,
launch_pkgname TEXT,
icon_path TEXT,
group_id INTEGER default 0,
internal_group_id INTEGER default 0,
priv_id INTERGER NOT NULL,
title TEXT,
content TEXT,
default_content TEXT,
loc_title TEXT,
loc_content TEXT,
loc_default_content TEXT,
text_domain TEXT,
text_dir TEXT,
args TEXT,
group_args TEXT,
flag INTEGER default 0,
progress_size DOUBLE default 0,
progress_percentage DOUBLE default 0,
rowid INTEGER PRIMARY KEY AUTOINCREMENT,
UNIQUE (caller_pkgname, priv_id)
);
'
fi
if [ ${USER} = "root" ]
then
chown root:5000 @DATADIR@/dbspace/.notification.db
chown root:5000 @DATADIR@/dbspace/.notification.db-journal
fi
chmod 660 @DATADIR@/dbspace/.notification.db
chmod 660 @DATADIR@/dbspace/.notification.db-journal
|