Wait for PackageManager of android emulator