| 95 | |
| 96 | |
| 97 | def prepareAndroid(self, androidAbi): |
| 98 | self.logger.info("Ensuring that all necessary android packages are installed (API Version: %s, ABI: %s)..." % (self.buildExecutor.androidEmulatorApiVersion, androidAbi) ) |
| 99 | |
| 100 | emulatorAbi = self.getEmulatorAbi(androidAbi) |
| 101 | |
| 102 | sdkManagerCommand = '"%s" "emulator" "system-images;android-%s;google_apis;%s"' % ( |
| 103 | self.sdkManagerPath, |
| 104 | self.buildExecutor.androidEmulatorApiVersion, |
| 105 | emulatorAbi ) |
| 106 | |
| 107 | subprocess.check_call( sdkManagerCommand, stdout=self.subprocess_out, shell=True, env=self.androidEnvironment ) |
| 108 | |
| 109 | self.logger.info("Done updating packages.") |
| 110 | |
| 111 | def createEmulatorDevice(self, androidAbi, deviceName): |
| 112 | |