Try to use device.db from /data/local/tmp when it doesn't exist in current directory.