android.os.StrictMode$StrictModeDiskReadViolation: policy=151 violation=2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Appcelerator JIRA by Wilson Luu, 1 year ago
policy=151 violation=2
via Appcelerator JIRA by Wilson Luu, 1 year ago
policy=151 violation=2
via Stack Overflow by faizal
, 1 year ago
android.os.StrictMode$StrictModeDiskReadViolation: policy=151 violation=2
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:94)
at libcore.io.IoBridge.open(IoBridge.java:390)
at java.io.FileOutputStream.(FileOutputStream.java:88)
at java.io.FileOutputStream.(FileOutputStream.java:73)
at com.android.internal.os.AtomicFile.startWrite(AtomicFile.java:59)
at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1181)
at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.ServerThread.run(SystemServer.java:744)

Users with the same issue

15 times, 1 year ago
162 times, 9 months ago
26 times, 1 year ago
220 times, 2 months ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.