[PATCH] Cache EF-PNN, EF-OPL sim files on disk.
andrzej zaborowski
balrogg at gmail.com
Mon Jul 20 07:56:39 PDT 2009
2009/7/20 Marcel Holtmann <marcel at holtmann.org>:
>> This uses plain files in /var/cache/ofono for storing contents of the
>> operator lists to avoid possibly numerous queries to the SIM on every
>> startup. Files are indexed with IMSI. I'm not 100% sure about the
>> autoconf magic.
>
> please have a look into BlueZ or ConnMan and use STORAGEDIR for the base
> path of /var/lib/ofono.
Okay.
>
> Can we just use GKeyFile to store these files? It would make reading and
> adding them a lot easier.
I didn't know about GKeyFile but I considered BlueZ textfile after
Denis suggested them. The values in GKeyFile are UTF-8 encoded with
some characters reserved so we would need either very heavy escaping
or storing the SIM file contents hex encoded. Keys would be only
perhaps "FileInfo" and "Record1"..."RecordN" because SIM files are
nothing like key-value pairs. If you think the reading convenience is
worth the parsing overhead, then I can change the patch to use
GKeyFile or json or xml.
Supposedly this is only a form caching so there shouldn't be need for
reading or adding these files, they can get overwritten at any time.
Regards
More information about the ofono
mailing list