Discussion:
[Bitpim-devel] Offsets in media location tables
Stephen Wood
2004-04-16 02:43:42 UTC
Permalink
Roger:

In the LG phones, the ringtone and image location maps have offsets.
Are these offsets arbitrarily chosen for convenience, or are they
properties of the phone?

Stephen
Roger Binns
2004-04-16 05:30:17 UTC
Permalink
Post by Stephen Wood
In the LG phones, the ringtone and image location maps have offsets.
Are these offsets arbitrarily chosen for convenience, or are they
properties of the phone?
The index files look like this:

2 UINT numentries
* LIST entries:
2 UINT id
50 STRING name # different number of bytes on each model

The overal file is a fixed number of entries long (typically 20 or
30). The id is what is used in the phonebook etc to refer to that
entry. Entries with an id of -1/0xffff are unused. This does
mean that the numentries field and the number of entries with
a valid id could differ.

When you delete something on the phone, it usually just changes that
entry to have an id of -1/0xffff. Consequently you have "holes"
in the entries.

When writing a new index file out, the code always writes them
in id order. No holes are left. New entries are given the
lowest free id number.

Roger

Loading...