-
Notifications
You must be signed in to change notification settings - Fork 336
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
can we get cpu usage on high api level device by add native binder service to service manager? #16
Comments
Hello @jsrdzhk, I don't think it's possible to access service CPU usage by service from my app. Neither I'm planning to implement this anytime soon. What you could do is to clone the repo and have a look to the |
😂I copy the popen code into my native service and rename it to popen_s.After that,I can execute shell cmd such as |
Hello!If we add binder native service to aosp source tree,modify sepolicy and add the service into service manager.Can we get cpu usage info by service's code?For example,use popen to exec "top -m 1 -n 1" to get the cpu usage.
update:
android removed popen on bionic libc🥲
The text was updated successfully, but these errors were encountered: