Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓8以下的设备,好像不支持ps -ef,改成下边的这样就正常了 #187

Closed
gradient30 opened this issue Jul 19, 2023 · 2 comments

Comments

@gradient30
Copy link

gradient30 commented Jul 19, 2023

RT,改成下边的这样就正常了
if int(sdk_level) < 26:
result = os.popen(f"{self.adb} -s {deviceId} shell ps | {self.filterType()} {pkgName}").readlines()
获取进程时split需要多一位
processList = ['{}:{}'.format(process.split()[1], process.split()[8]) for process in [result]]

@rafa0128
Copy link
Member

你进入adb shell ,敲ps -ef发我看看

@gradient30
Copy link
Author

你进入adb shell ,敲ps -ef发我看看

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants