更新 command.py
parent
0892550341
commit
4b174c9f3e
|
|
@ -76,7 +76,7 @@ def clearCache(package_name):
|
|||
if stopApp(package_name):
|
||||
output, status_code, error = run_adb_command(['adb', 'shell', 'pm', 'clear', package_name])
|
||||
if status_code == 0:
|
||||
print(f"clear cache status_code: {status_code}\n output: {output}")
|
||||
print(f"clear cache status_code: {status_code}\noutput: {output}")
|
||||
return True
|
||||
else:
|
||||
print(error)
|
||||
|
|
@ -89,7 +89,7 @@ def stopApp(package_name):
|
|||
print(f"强行停止{package_name}")
|
||||
output, status_code, error = run_adb_command(['adb', 'shell', 'am', 'force-stop', package_name])
|
||||
if status_code == 0:
|
||||
print(f"status_code: {status_code}\n output: {output}")
|
||||
print(f"status_code: {status_code}\noutput: {output}")
|
||||
return True
|
||||
else:
|
||||
print(error)
|
||||
|
|
|
|||
Reference in New Issue