Re: LG VX-9100 Support

Nathan Hjelm <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
>>backup_perms.diff         - set permissions of files in a backup  
>
>What issue does this patch fix and on what platform?

On OSX (and any other UNIX platform) when a backup zip is expanded all files have no access permissions (---------) which forces the user to chmod the files before they can be read or modified. The patch sets the file permissions to rw------- so the file owner will have read and write permissions. As I said in an earlier email it might be a good idea to set the file permissions based off what they are on the phone so that Bitpim can eventually preserve permissions on a backup.

>All other patches have been committed.  Please verify them before we build the next test release.  For now, I'd prefer to keep the VX9100 code intact so I can continue working on them w/o affecting other models.

Attached is a diff adding call history support to the Dare and bypassing the VX-9100's prototypes on the VX-8560 and VX-9700 for everything but SMS. The VX-9100 phonenumber prototype doesn't define the malformed() method at the moment. Everything else looks good and I will verify then when I get home.

-Nathan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
BitPim-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
chocolate_dare.patch (application/octet-stream, 5.4 KB)
Index: src/phones/p_lgvx8560.p
===================================================================
--- src/phones/p_lgvx8560.p	(revision 4639)
+++ src/phones/p_lgvx8560.p	(working copy)
@@ -11,19 +11,20 @@
 
 """Various descriptions of data specific to LG VX8560/VX8610"""
 
-from p_lgvx9100 import *
+# groups     - same as VX-8700
+# speeds     - same as VX-8550
+# sms        - same as VX-9100/VX-9700
+# calendar   - same as VX-8550
+from p_lgvx9700 import *
+
+# memo       - same as VX-8550
 from p_lgvx8550 import textmemo,textmemofile
-from p_lgvx8800 import indexfile,indexentry
 
-%}
-
 # indexentry - same as VX-8800
 # indexfile  - same as VX-8800
-# groups     - same as VX-8700
-# speeds     - same as VX-8550
-# memo       - same as VX-8550
-# sms        - same as VX-9100
+from p_lgvx8800 import indexfile,indexentry
 
+%}
 
 # Call history
 
@@ -45,32 +46,3 @@
     4 UINT numcalls
     1 UINT unk1
     * LIST {'elementclass': call} +calls
-
-# calendar
-# The event file format on the VX-8560 is almost identical to that of the VX-8700. The format is missing a packet size field.
-PACKET scheduleevent:
-    4  UINT { 'default': 0 } +pos "position within file, used as an event id"
-    33 USTRING {'encoding': PHONE_ENCODING, 'raiseonunterminatedread': False, 'raiseontruncate': False, 'default': '' } +description
-    4  GPSDATE { 'default': GPSDATE.now() } +cdate      # creation date
-    4  GPSDATE { 'default': GPSDATE.now() } +mdate      # modification date
-    4  LGCALDATE { 'default': (0,0,0,0,0) } +start
-    4  LGCALDATE { 'default': (0,0,0,0,0) } +end_time
-    4  LGCALDATE { 'default': (0,0,0,0,0) } +end_date
-    4  LGCALREPEAT { 'default': (0,0,0,0,0) } +repeat # complicated bit mapped field
-    1  UINT { 'default': 0 } +alarmindex_vibrate #LSBit of this set vibrate ON(0)/OFF(1), the 7 MSBits are the alarm index
-                                                 #the alarmindex is the index into the amount of time in advance of the
-                                                 #event to notify the user. It is directly related to the alarmminutes
-                                                 #and alarmhours below, valid values are
-                                                 # 8=2days, 7=1day, 6=2hours, 5=1hour, 4=15mins, 3=10mins, 2=5mins, 1=0mins, 0=NoAlarm
-    1  UINT { 'default': 0 } +ringtone
-    1  UINT { 'default': 0 } +unknown1
-    1  UINT { 'default': 0xff } +alarmminutes  "a value of 0xFF indicates not set"
-    1  UINT { 'default': 0xff } +alarmhours    "a value of 0xFF indicates not set"
-    1  UINT { 'default': 0 } +unknown2
-    2  UINT { 'default': 0x01FA } +unknown3
-    4  UINT { 'default': 0 } +unknown4
-    65 USTRING { 'default': '000000ca-00000000-0000000000-VX856V04', 'encoding': PHONE_ENCODING, 'raiseonunterminatedread': False, 'raiseontruncate': False } +serial_number
-
-PACKET schedulefile:
-    2 UINT numactiveitems
-    * LIST { 'elementclass': scheduleevent, 'length': NUMCALENDARENTRIES, 'createdefault': True } +events
Index: src/phones/com_lgvx8560.py
===================================================================
--- src/phones/com_lgvx8560.py	(revision 4639)
+++ src/phones/com_lgvx8560.py	(working copy)
@@ -51,7 +51,7 @@
 
     # Calendar stuff------------------------------------------------------------
     def _scheduleextras(self, data, fwversion):
-        data.serial_number = '000000d1-00000000-00000000-' + fwversion
+        data.serial_number = '000000ca-00000000-00000000-' + fwversion
         data.unknown3 = 0x01fa
 
 #-------------------------------------------------------------------------------
Index: src/phones/p_lgvx9700.p
===================================================================
--- src/phones/p_lgvx9700.p	(revision 4639)
+++ src/phones/p_lgvx9700.p	(working copy)
@@ -11,15 +11,16 @@
 
 """Various descriptions of data specific to LG VX9700"""
 
-from p_lgvx9100 import *
+# groups     - same as VX-8700
+# phonebook  - LG Phonebook v1.0 (same as VX-8550)
+# schedule   - same as VX-8550
+from p_lgvx8550 import *
 
+# sms        - same as VX-9100
+from p_lgvx9100 import msg_record,recipient_record,sms_saved,sms_out,SMSINBOXMSGFRAGMENT,sms_in
+
 %}
 
-# groups     - same as VX-8700
-# schedule   - same as VX-9100
-# sms        - same as VX-9100
-# phonebook  - LG Phonebook v1.0 (same as VX-8550)
-
 # Index files
 PACKET indexentry:
     256 USTRING {'encoding': PHONE_ENCODING,
@@ -35,3 +36,25 @@
 PACKET indexfile:
     "Used for tracking wallpaper and ringtones"
     * LIST {'elementclass': indexentry, 'createdefault': True} +items
+
+# Call history
+PACKET call:
+    4 GPSDATE GPStime    # no. of seconds since 0h 1-6-80, based off local time.
+    4 UINT  unk0         # different for each call
+    4 UINT  duration     # seconds, not certain about length of this field
+    49 USTRING {'raiseonunterminatedread': False} number
+    36 USTRING {'encoding': PHONE_ENCODING, 'raiseonunterminatedread': False} name
+    1 UINT  numberlength # length of phone number
+    1 UINT  status       # 0=outgoing, 1=incoming, 2=missed, etc
+    1 UINT  pbnumbertype # 1=cell, 2=home, 3=office, 4=cell2, 5=fax, 6=vmail, 0xFF=not in phone book
+    4 UINT  unk1         # always seems to be 0
+    4 UINT  pbentrynum   #entry number in phonebook
+    24 DATA unk2
+
+# same as the VX-8560 without the unknown entry at the beginning of the file
+PACKET callhistory:
+    4 UINT numcalls
+    1 UINT unk1
+    * LIST {'elementclass': call} +calls
+
+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.