MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_android_model

Function get_android_model

emrun.py:1250–1257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1248
1249
1250def get_android_model():
1251 manufacturer = check_output([ADB, 'shell', 'getprop', 'ro.product.manufacturer']).strip()
1252 brand = check_output([ADB, 'shell', 'getprop', 'ro.product.brand']).strip()
1253 model = check_output([ADB, 'shell', 'getprop', 'ro.product.model']).strip()
1254 board = check_output([ADB, 'shell', 'getprop', 'ro.product.board']).strip()
1255 device = check_output([ADB, 'shell', 'getprop', 'ro.product.device']).strip()
1256 name = check_output([ADB, 'shell', 'getprop', 'ro.product.name']).strip()
1257 return manufacturer + ' ' + brand + ' ' + model + ' ' + board + ' ' + device + ' ' + name
1258
1259
1260def get_android_os_version():

Callers 1

get_system_infoFunction · 0.85

Calls 1

check_outputFunction · 0.85

Tested by

no test coverage detected