MCPcopy Create free account
hub / github.com/XiaoMi/mace / info

Method info

tools/python/utils/device.py:223–233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221 execute("adb -s %s shell mkdir -p %s" % (sn, dirname))
222
223 def info(self):
224 sn = self._device_id
225 output = execute("adb -s %s shell getprop" % sn, False)
226 raw_props = output.split("\n")
227 props = {}
228 p = re.compile(r'\[(.+)\]: \[(.+)\]')
229 for raw_prop in raw_props:
230 m = p.match(raw_prop)
231 if m:
232 props[m.group(1)] = m.group(2)
233 return props
234
235
236class ArmLinuxDevice(Device):

Callers

nothing calls this directly

Calls 1

executeFunction · 0.85

Tested by

no test coverage detected