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

/proc/stat (Permission denied) #132

Open
crazyounger opened this issue Nov 25, 2019 · 3 comments
Open

/proc/stat (Permission denied) #132

crazyounger opened this issue Nov 25, 2019 · 3 comments

Comments

@crazyounger
Copy link

Android 系统 9.0
报错:
java.io.FileNotFoundException: /proc/stat (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:231)
at java.io.FileInputStream.(FileInputStream.java:165)
at java.io.FileInputStream.(FileInputStream.java:112)
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:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.os.HandlerThread.run(HandlerThread.java:65)

@BzCoder
Copy link

BzCoder commented Feb 26, 2020

8.0以上已经被禁用,需要自己重新适配

@slo-w
Copy link

slo-w commented Mar 5, 2020

有没有解决办法 ?怎么适配

@BzCoder
Copy link

BzCoder commented Mar 9, 2020

有没有解决办法 ?怎么适配

我自己改了一版适配了,你有兴趣试用下么?
implementation 'com.github.bzcoder:blockcanarycompat-android:0.0.1'
implementation 'com.github.bzcoder:blockcanarycompat-android-no-op:0.0.1'

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

3 participants