From: Roger B. <ro...@ro...> - 2004-02-20 22:11:08
|
> I'm not sure I understand this, so let me re-state. > When you go a getphonebook, as part of the response, you get the entry number > (entrynumber), which I don't see the code stores in anywhere. Correct. > When you need to > rewrite a modified entry, I take it that the phone will ignore whatever entry > number you put in the request and use the serial number as the key? No. Look at the savephonebook code. That code re-reads the phonebook, and matches up the serials of the data about to be written with what is already on the phone. The VX4400/4500/6000 require that you write out stuff in entry order, but there can be holes due to entries being deleted, and then new entries are appended. It would be pointless storing the entry number in BitPim since the phonebook on the phone could change between BitPim reading it and BitPim writing to it. > For a > brand new entry, the serial should be automatically created, but the entry > number was filled in by an incremental counter - can anyone explain how BREW > handles it when you send a pbappendentryrequest? This has nothing to do with Brew. The LG phones store their phonebook in files particular to them and have their own sync protocol. The phone has a file containing the next counter number. When you add an entry, that number gets allocated. > I know eventually I will > destroy my spare phone testing this, just wanted to know what to expect Just make sure you do a complete filesystem backup first and you should be ok. About the worst damage is if the phone gets into an infinite reboot loop, in which case Verizon will replace the phone. > Also, is the speed dial being kept at all? I don't see the code for VX4400 > doing that currently and I assume you lose your speed dial or is that not > the case? The speeddial is not read as it isn't included in the phonebook sync protocol as far as I can tell. It is on a file in the phone, but I haven't quite figured out how it is stored. The speed dials (and voice dials) are tied to particular serials, so providing the serials of entries are preserved the speed/voice dials are preserved. > PS: next up, the LG4600 (VX4600 down in the states), once I justify paying > over $70USD for a data cable which it cost only $30USD (all the taxes, duties, > and shipping handling created a 100%+ overhead). I believe the LG4600 has > very similar phonebook structure, and I know the ringtone/wallpaper handling > already (at least I think I know). What a few weeks till bitfling is ready (I'll give more details when it is closer to completion). It will make development considerably quicker and easier for phones not in front of you. Roger |