Home
last modified time | relevance | path

Searched refs:WINSCOPE_TOKEN_LOCATION (Results 1 – 1 of 1) sorted by relevance

/development/tools/winscope/adb_proxy/
Dwinscope_proxy.py55 WINSCOPE_TOKEN_LOCATION = os.path.expanduser('~/.config/winscope/.token') variable
140 with open(WINSCOPE_TOKEN_LOCATION, 'r') as token_file:
142 log.debug("Loaded token {} from {}".format(token, WINSCOPE_TOKEN_LOCATION))
146 os.makedirs(os.path.dirname(WINSCOPE_TOKEN_LOCATION), exist_ok=True)
148 with open(WINSCOPE_TOKEN_LOCATION, 'w') as token_file:
149 log.debug("Created and saved token {} to {}".format(token, WINSCOPE_TOKEN_LOCATION))
151 os.chmod(WINSCOPE_TOKEN_LOCATION, 0o600)
153 … log.error("Unable to save persistent token {} to {}".format(token, WINSCOPE_TOKEN_LOCATION))