(self)
| 145 | self.logger.info(f"Skin is added in: '{self.path_emulator_config}'") |
| 146 | |
| 147 | def create(self) -> None: |
| 148 | super().create() |
| 149 | first_run = not self.is_initialized() |
| 150 | if first_run: |
| 151 | self.logger.info(f"Creating the {self.device_type}...") |
| 152 | self._add_profile() |
| 153 | creation_cmd = "avdmanager create avd -f -n {n} -b {it}/{si} " \ |
| 154 | "-k 'system-images;android-{al};{it};{si}' " \ |
| 155 | "-d {d} -p {pe}".format(n=self.name, it=self.img_type, si=self.sys_img, |
| 156 | al=self.api_level, |
| 157 | d=self.device.lower().replace(" ", "_") if "pixel" in self.device.lower() else self.device.replace(" ", "\ "), |
| 158 | pe=self.path_emulator) |
| 159 | self.logger.info(f"Command to create emulator: '{creation_cmd}'") |
| 160 | subprocess.check_call(creation_cmd, shell=True) |
| 161 | self._add_skin() |
| 162 | self._use_override_config() |
| 163 | self.logger.info(f"{self.device_type} is created!") |
| 164 | |
| 165 | def change_permission(self) -> None: |
| 166 | kvm_path = "/dev/kvm" |
nothing calls this directly
no test coverage detected