MCPcopy
hub / github.com/budtmo/docker-android / is_initialized

Method is_initialized

cli/src/device/emulator.py:91–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 })
90
91 def is_initialized(self) -> bool:
92 import re
93 if os.path.exists(self.path_emulator_config):
94 self.logger.info("Config file exists")
95 with open(self.path_emulator_config, 'r') as f:
96 if any(re.match(r'hw\.device\.name ?= ?{}'.format(self.device), line) for line in f):
97 self.logger.info("Selected device is already created")
98 return True
99 else:
100 self.logger.info("Selected device is not created")
101 return False
102
103 self.logger.info("Config file does not exist")
104 return False
105
106 def _add_profile(self) -> None:
107 if "samsung" in self.device.lower():

Callers 5

createMethod · 0.95
deployMethod · 0.95

Calls

no outgoing calls