有谁知道下面这段python代码里os.system ('adb shell "cmd"')这句为何无法产生log文件在mnt/sdcard/logs
def__init__(self,log_name):self.log_name=log_name#self.ps_logcat=ps_logcatdefrun_log(...
def __init__(self,log_name):
self.log_name = log_name
#self.ps_logcat = ps_logcat
def run_log(self):
cmd='logcat -b main -v time> /mnt/sdcard/logs/'+self.log_name
try:
os.system('adb shell "cmd"')
return 1
except Exception,e:
return 0 展开
self.log_name = log_name
#self.ps_logcat = ps_logcat
def run_log(self):
cmd='logcat -b main -v time> /mnt/sdcard/logs/'+self.log_name
try:
os.system('adb shell "cmd"')
return 1
except Exception,e:
return 0 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询