Package phones ::
Module com_lgvi5225
|
|
1
2
3
4
5
6
7
8
9
10 """Communicate with the LG VI5225 cell phone
11
12 Also known as the LG-VX5400. Operates on STI-Mobile, a virtual carrier
13 reselling Sprint airtime.
14 """
15
16
17 import time
18 import cStringIO
19 import sha
20
21
22 import common
23 import copy
24 import p_lgvi5225
25 import com_lgvx4400
26 import com_brew
27 import com_phone
28 import com_lg
29 import prototypes
30
31 -class Phone(com_lgvx4400.Phone):
32 "Talk to the LG VI5225 cell phone"
33
34 desc="LG-VI5225"
35 helpid=None
36 protocolclass=p_lgvi5225
37 serialsname='lgvi5225'
38
39
40 imagelocations=(
41
42 ( 10, "download/dloadindex/brewImageIndex.map", "brew/shared", "images", 30) ,
43 ( 0xc8, "download/dloadindex/mmsImageIndex.map", "brew/shared/mms", "mms", 20),
44 ( 0xdc, "download/dloadindex/mmsDrmImageIndex.map", "brew/shared/mms/d", "drm", 20),
45 )
46
47 ringtonelocations=(
48
49 ( 50, "download/dloadindex/brewRingerIndex.map", "user/sound/ringer", "ringers", 30),
50 ( 150, "download/dloadindex/mmsRingerIndex.map", "mms/sound", "mms", 20),
51 ( 180, "download/dloadindex/mmsDrmRingerIndex.map", "mms/sound/drm", "drm", 20)
52 )
53
54 builtinimages= ('Beach Ball', 'Towerbridge', 'Sunflower', 'Beach', 'Fish',
55 'Sea', 'Snowman')
56
57 builtinringtones= ('Ring 1', 'Ring 2', 'Ring 3', 'Ring 4', 'Ring 5', 'Ring 6',
58 'Annen Polka', 'Beethoven Symphony No. 9', 'Pachelbel Canon',
59 'Hallelujah', 'La Traviata', 'Leichte Kavallerie Overture',
60 'Mozart Symphony No.40', 'Bach Minuet', 'Farewell',
61 'Mozart Piano Sonata', 'Sting', 'Trout', 'Pineapple Rag',
62 'Latin', 'Carol')
63
64
65 - def __init__(self, logtarget, commport):
68
69
70
71
72
83
84
85 my_version_txt='AX545V'
86 my_model='VI5225'
87
88 parentprofile=com_lgvx4400.Profile
90 protocolclass=Phone.protocolclass
91 serialsname=Phone.serialsname
92 phone_manufacturer='LG Electronics Inc'
93 phone_model='LG-LX5400V'
94
95 usbids_straight=( ( 0x1004, 0x6000, 2), )
96 usbids_usbtoserial=(
97 ( 0x067b, 0x2303, None),
98 ( 0x0403, 0x6001, None),
99 ( 0x0731, 0x2003, None),
100 ( 0x6547, 0x0232, None),
101 )
102 usbids=usbids_straight+usbids_usbtoserial
103
104 WALLPAPER_WIDTH=120
105 WALLPAPER_HEIGHT=131
106 MAX_WALLPAPER_BASENAME_LENGTH=32
107 WALLPAPER_FILENAME_CHARS="_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ."
108 WALLPAPER_CONVERT_FORMAT="bmp"
109
110 MAX_RINGTONE_BASENAME_LENGTH=32
111 RINGTONE_FILENAME_CHARS="_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ."
112
113
114 imageorigins={}
115 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images"))
116 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "mms"))
117 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "drm"))
120
121 ringtoneorigins=('ringers', 'mms', 'drm')
122 excluded_ringtone_origins=('mms', 'drm')
123 excluded_wallpaper_origins=('mms', 'drm')
124
125
126 imagetargets={}
127 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper",
128 {'width': 120, 'height': 131, 'format': "BMP"}))
129
132
133 _supportedsyncs=(
134
135
136 ('phonebook', 'read', None),
137 ('phonebook', 'write', 'OVERWRITE'),
138
139
140
141
142
143
144
145
146
147
148
149 )
150
153