Tici hardware abstraction layer (#2183)

* rename android hardware

* add tici class

* elif

* read correct serial number

* Update release files

* Get IMEI

* Refactor AT command

* move get_cmdline into base class

* Remove unused import

* Small cleanup
old-commit-hash: c90cb1b529c24580f8351c046f2b5b022a956ba8
This commit is contained in:
Willem Melching
2020-09-17 13:36:42 +02:00
committed by GitHub
parent 398796a010
commit d455516765
5 changed files with 71 additions and 2 deletions
+7
View File
@@ -1,6 +1,13 @@
from abc import abstractmethod
class HardwareBase:
@staticmethod
def get_cmdline():
with open('/proc/cmdline') as f:
cmdline = f.read()
return {kv[0]: kv[1] for kv in [s.split('=') for s in cmdline.split(' ')] if len(kv) == 2}
@abstractmethod
def get_sound_card_online(self):
pass