MCPcopy Create free account
hub / github.com/SpyGuard/SpyGuard / get_device

Function get_device

analysis/utils.py:50–59  ·  view source on GitHub ↗

Read the device configuration from device.json file. :return: dict - the device configuration

(token)

Source from the content-addressed store, hash-verified

48
49
50def get_device(token):
51 """
52 Read the device configuration from device.json file.
53 :return: dict - the device configuration
54 """
55 try:
56 with open("/tmp/{}/device.json".format(token), "r") as f:
57 return json.load(f)
58 except:
59 pass
60
61
62def get_apname():

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected