Re: Preliminary enV2/VX9100 Support
"Aaron G. Stemen" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
Attached is a patch to enable support for media in the enV2. The indexentry class takes its cue from the VX-8800 (272 bytes instead of 268). I disabled the SMS features as I haven't gotten that feature to work yet. All others that are enabled work. I wanted to try to get this out the door for the test build so, prvided the DM code works for all phones, others can at least utilize the media features. -Aaron ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ BitPim-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bitpim-devel
VX9100_media.patch
(text/plain, 5.7 KB)
Index: src/phones/com_lgvx9100.py
===================================================================
--- src/phones/com_lgvx9100.py (revision 4621)
+++ src/phones/com_lgvx9100.py (working copy)
@@ -34,14 +34,14 @@
# rintones and wallpaper info, copy from VX9900, may need to change to match
# what the phone actually has
external_storage_root='mmc1/'
- builtinringtones= ('Low Beep Once', 'Low Beeps', 'Loud Beep Once', 'Loud Beeps', 'VZW Default Ringtone') + \
- tuple(['Ringtone '+`n` for n in range(1,13)]) + \
+ builtinringtones= ('Low Beep Once', 'Low Beeps', 'Loud Beep Once', 'Loud Beeps', 'Door Bell', 'VZW Default Ringtone') + \
+ tuple(['Ringtone '+`n` for n in range(1,17)]) + \
('No Ring',)
ringtonelocations= (
# type index file default dir external dir max type Index
- ( 'ringers', 'dload/myringtone.dat','brew/16452/lk/mr','mmc1/ringers', 100, 0x01, 100),
- ( 'sounds', 'dload/mysound.dat', 'brew/16452/ms', '', 100, 0x02, None),
+ ( 'ringers', 'dload/myringtone.dat','brew/mod/10889/ringtones','mmc1/ringers', 100, 0x01, 100),
+ ( 'sounds', 'dload/mysound.dat', 'brew/10889/ms', '', 100, 0x02, None),
( 'sounds(sd)', 'dload/sd_sound.dat', 'mmc1/my_sounds', '', 100, 0x02, None),
( 'music', 'dload/efs_music.dat', 'my_music', '', 100, 0x104, None),
( 'music(sd)', 'dload/sd_music.dat', 'mmc1/my_music', '', 100, 0x14, None),
@@ -49,9 +49,9 @@
wallpaperlocations= (
# type index file default dir external dir max type Index
- ( 'images', 'dload/image.dat', 'brew/16452/mp', '', 100, 0x00, 100),
+ ( 'images', 'dload/image.dat', 'brew/mod/10888', '', 100, 0x00, 100),
( 'images(sd)', 'dload/sd_image.dat', 'mmc1/my_pix', '', 100, 0x10, None),
- ( 'video', 'dload/video.dat', 'brew/16452/mf', '', 100, 0x03, None),
+ ( 'video', 'dload/video.dat', 'brew/mod/10888', '', 100, 0x03, None),
( 'video(sd)', 'dload/sd_video.dat', 'mmc1/my_flix', '', 100, 0x13, None),
)
@@ -59,8 +59,7 @@
parentphone.__init__(self, logtarget, commport)
def setDMversion(self):
- self._DMv6=True
- self._DMv5=False
+ self._DMv5=True
# Fundamentals:
# - get_esn - same as LG VX-8300
@@ -106,21 +105,26 @@
return self.imagetargets
_supportedsyncs=(
-## ('phonebook', 'read', None), # all phonebook reading
-## ('calendar', 'read', None), # all calendar reading
-## ('wallpaper', 'read', None), # all wallpaper reading
-## ('ringtone', 'read', None), # all ringtone reading
-## ('call_history', 'read', None),# all call history list reading
+ ('phonebook', 'read', None), # all phonebook reading
+ ('calendar', 'read', None), # all calendar reading
+ ('wallpaper', 'read', None), # all wallpaper reading
+ ('ringtone', 'read', None), # all ringtone reading
+ ('call_history', 'read', None),# all call history list reading
## ('sms', 'read', None), # all SMS list reading
-## ('memo', 'read', None), # all memo list reading
-## ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook
-## ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar
-## ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper
-## ('wallpaper', 'write', 'OVERWRITE'),
-## ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone
-## ('ringtone', 'write', 'OVERWRITE'),
-#### ('sms', 'write', 'OVERWRITE'), # all SMS list writing
-## ('memo', 'write', 'OVERWRITE'), # all memo list writing
-#### ('playlist', 'read', 'OVERWRITE'),
-#### ('playlist', 'write', 'OVERWRITE'),
+ ('memo', 'read', None), # all memo list reading
+ ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook
+ ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar
+ ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper
+ ('wallpaper', 'write', 'OVERWRITE'),
+ ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone
+ ('ringtone', 'write', 'OVERWRITE'),
+## ('sms', 'write', 'OVERWRITE'), # all SMS list writing
+ ('memo', 'write', 'OVERWRITE'), # all memo list writing
+## ('playlist', 'read', 'OVERWRITE'),
+## ('playlist', 'write', 'OVERWRITE'),
+ ('t9_udb', 'write', 'OVERWRITE'),
)
+ if __debug__:
+ _supportedsyncs+=(
+ ('t9_udb', 'read', 'OVERWRITE'),
+ )
Index: src/phones/p_lgvx9100.p
===================================================================
--- src/phones/p_lgvx9100.p (revision 4621)
+++ src/phones/p_lgvx9100.p (working copy)
@@ -20,6 +20,8 @@
# we are the same as lgvx9800 except as noted
# below
from p_lgvx8550 import *
+from p_lgvx8800 import indexentry
+from p_lgvx8800 import indexfile
# We use LSB for all integer like fields
UINT=UINTlsb
Index: src/phones/p_lgvx9100.py
===================================================================
--- src/phones/p_lgvx9100.py (revision 4621)
+++ src/phones/p_lgvx9100.py (working copy)
@@ -11,6 +11,8 @@
# we are the same as lgvx9800 except as noted
# below
from p_lgvx8550 import *
+from p_lgvx8800 import indexentry
+from p_lgvx8800 import indexfile
# We use LSB for all integer like fields
UINT=UINTlsb