Fixing issues with Samsung mobile phones on TTY

This commit is contained in:
Sébastien Dudek 2023-02-19 15:28:22 +01:00
parent d0904e20f4
commit 2302bd0963
2 changed files with 15 additions and 6 deletions

View File

@ -13,6 +13,15 @@ from utils.logprocess import *
SRSLTE_PATH = "thirdparty/srsLTE/" # thirdparty project
FILES_TO_REMOVE = ["celllog.fifo"]
def cleaning_file():
import os
for f in FILES_TO_REMOVE:
os.remove(f)
def phone_actions(args):
cops = None
if args.networks is not None:

View File

@ -159,7 +159,6 @@ def printInfo(string):
def saveCells(obj):
import time
repr(obj)
jscells = json.dumps(obj, indent=4, sort_keys=True)
name = "cells_%d.json" % float(time.time())
f = open("%s" % name, 'w+')
@ -187,8 +186,9 @@ def processOperatorAT(operators):
"=> Switching back to auto-mode", arg=2)
except (KeyboardInterrupt, SystemExit):
state = False
cells = kb.data['SM_cells']
saveCells(cells)
break
cells = kb.data['SM_cells']
saveCells(cells)
def processOperatorADB(operators):
@ -210,9 +210,9 @@ def processOperatorADB(operators):
"=> Switching back to auto-mode", arg=2)
except (KeyboardInterrupt, SystemExit):
state = False
kb = mKB()
cells = kb.data['SM_cells']
saveCells(cells)
break
cells = kb.data['SM_cells']
saveCells(cells)
process = sm.grablogcat()