|
|
@ -13,12 +13,14 @@ NetworkStrength = log.ThermalData.NetworkStrength |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def service_call(call): |
|
|
|
def service_call(call): |
|
|
|
ret = subprocess.check_output(["service", "call", *call], encoding='utf8').strip() |
|
|
|
try: |
|
|
|
if 'Parcel' not in ret: |
|
|
|
ret = subprocess.check_output(["service", "call", *call], encoding='utf8').strip() |
|
|
|
|
|
|
|
if 'Parcel' not in ret: |
|
|
|
|
|
|
|
return None |
|
|
|
|
|
|
|
return parse_service_call_bytes(ret) |
|
|
|
|
|
|
|
except subprocess.CalledProcessError: |
|
|
|
return None |
|
|
|
return None |
|
|
|
|
|
|
|
|
|
|
|
return parse_service_call_bytes(ret) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def parse_service_call_unpack(r, fmt): |
|
|
|
def parse_service_call_unpack(r, fmt): |
|
|
|
try: |
|
|
|
try: |
|
|
|