Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -94,6 +94,12 @@ def request(value):
|
|||
calls.append({'path': path, 'state': state,
|
||||
'number': str(field('LineIdentification') or '')[:80]})
|
||||
return calls
|
||||
if operation == 'imei':
|
||||
properties = bus('org.ofono', MODEM, 'org.ofono.Modem', 'GetProperties')[0]
|
||||
serial = properties.get('Serial', {}).get('data')
|
||||
if not isinstance(serial, str) or not re.fullmatch(r'[0-9]{15}', serial):
|
||||
raise RuntimeError('RADIO_NOT_READY')
|
||||
return serial
|
||||
if operation == 'status':
|
||||
return {
|
||||
'modem': bus('org.ofono', MODEM, 'org.ofono.Modem', 'GetProperties'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue