Firebird and Android

By Jorge Gonçalves

from my attempt to get Firebird running on Android ... The process can be a little tricky.

1

You must put the files( libfbclient, libEngine12, .. ) in the asset folder and then copy that to the app/files folder.

The folder structure must be kept in order for Firebird to work.

example

.../app.com/files/fb/firebird.conf
.../app.com/files/fb/firebird.msg
.../app.com/files/fb/lib/libfbclient.so
.../app.com/files/fb/plugins/libEngine12.so
.../app.com/files/fb/intl/intl.conf
.../app.com/files/fb/intl/libfbintl.so

I don't know if all the files are necessary. The process of putting native libraries in the lib folder will not work because the embedded version must have the above structure.

2

Load the libfbclient.so using the full path.

3

Firebird tries to create the lock file in /data/local/tmp. In versions higher than 5 this folder is not writable. So you may set environment variable FIREBIRD_LOCK to app/cache.

After that you should have the embedded version running.