Implemented SQLiteDatabase::hasPermission; currently untested.