servalproject/batphone — pull request #32 by rom1v (2012-10-04 15:20:16+00:00)
Title: Making it work on devices without sdcards

I tried to use a device without sdcard, and the application crashes.

The first commit (c5923b3) essentially allows to store serval-mesh.db in internal storage if there is no sdcard.

But after that, rhizome still tries to use /sdcard storage. We could modify its path in serval.conf, but we can also disable rhizome. Such an option was partially implemented (adding "rhizome.enable=0" in serval.conf), but 2 things were missing:
1) servald start opened rhizome database, even if it was disabled ;
2) client called rhizome functions, even if it was disabled.

The second commit (efc94c5) fixes a part of 2).
Two commits in serval-dna (ad3b316 and c31c1fe) fix 1) and the rest of 2).

After these changes, I successfully phoned another device (without root access, with a wifi router) on a Motorola Milestone Android 2.2, having no sdcard (disabling rhizome).

Regards,
®om