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

CpuSampler报错 #122

Open
s949492225 opened this issue Sep 6, 2018 · 1 comment
Open

CpuSampler报错 #122

s949492225 opened this issue Sep 6, 2018 · 1 comment

Comments

@s949492225
Copy link

09-06 16:22:38.457 4007-4116/com.lrlz.beautyshop E/CpuSampler: doSample:
java.io.FileNotFoundException: /proc/stat (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:200)
at java.io.FileInputStream.(FileInputStream.java:150)
at java.io.FileInputStream.(FileInputStream.java:103)
at com.github.moduth.blockcanary.CpuSampler.doSample(CpuSampler.java:108)
at com.github.moduth.blockcanary.AbstractSampler$1.run(AbstractSampler.java:33)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)

android 8.0上必现
希望能够视频安卓8.0
谢谢

@conncui
Copy link

conncui commented Apr 2, 2019

Android >= 26 就不允许第三方应用读取这个接口了。
https://issuetracker.google.com/issues/37140047#comment2

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