MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / apply_github_prompt_if_connected

Function apply_github_prompt_if_connected

Scripts/Settings.py:1301–1308  ·  view source on GitHub ↗

Called at startup so a connected GitHub account keeps the prompt name synced.

()

Source from the content-addressed store, hash-verified

1299 device_model, _err = run_command_silent("getprop ro.product.model")
1300 manufacturer, _err = run_command_silent("getprop ro.product.manufacturer")
1301 uptime, _err = run_command_silent("uptime -p")
1302 battery = get_battery_info()
1303
1304 details = (
1305 f"{_('Internal Storage')}: {internal_storage}\n"
1306 f"{_('Processor')}: {processor}\n"
1307 f"{_('Ram')}: {ram}\n"
1308 f"{_('Carrier')}: {carrier}\n"
1309 f"{_('Kernel Version')}: {kernel_version}\n"
1310 f"{_('Android Version')}: {android_version}\n"
1311 f"{_('Device Model')}: {device_model}\n"

Callers 1

Settings.pyFile · 0.70

Calls 3

github_current_usernameFunction · 0.70
set_prompt_usernameFunction · 0.70

Tested by

no test coverage detected