making screenshots work again for emulators and using the -installedApp option