android.os.StrictMode$StrictModeDiskWriteViolation

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Steps to reproduce: 1. Launch empty Titanium project to Android Emulator 4.0 Results: StrictMode policy violation is thrown in the TiStud console: {code:xml} D/StrictMode( 77): StrictMode policy violation; ~duration=812 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=151 violation=2 D/StrictMode( 77): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1074) D/StrictMode( 77): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:94) D/StrictMode( 77): at libcore.io.IoBridge.open(IoBridge.java:390) D/StrictMode( 77): at java.io.FileOutputStream.<init>(FileOutputStream.java:88) D/StrictMode( 77): at java.io.FileOutputStream.<init>(FileOutputStream.java:73) D/StrictMode( 77): at com.android.internal.os.AtomicFile.startWrite(AtomicFile.java:59) D/StrictMode( 77): at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1181) D/StrictMode( 77): at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463) D/StrictMode( 77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728) D/StrictMode( 77): at android.os.Handler.handleCallback(Handler.java:605) D/StrictMode( 77): at android.os.Handler.dispatchMessage(Handler.java:92) D/StrictMode( 77): at android.os.Looper.loop(Looper.java:137) D/StrictMode( 77): at com.android.server.ServerThread.run(SystemServer.java:744) D/StrictMode( 77): StrictMode policy violation; ~duration=792 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=151 violation=1 D/StrictMode( 77): at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1048) D/StrictMode( 77): at libcore.io.BlockGuardOs.write(BlockGuardOs.java:178) D/StrictMode( 77): at libcore.io.IoBridge.write(IoBridge.java:447) D/StrictMode( 77): at java.io.FileOutputStream.write(FileOutputStream.java:187) D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.flushBytes(FastXmlSerializer.java:212) D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.flush(FastXmlSerializer.java:233) D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.endDocument(FastXmlSerializer.java:183) D/StrictMode( 77): at com.android.server.AppWidgetService.writeStateToFileLocked(AppWidgetService.java:1240) D/StrictMode( 77): at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1182) D/StrictMode( 77): at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463) D/StrictMode( 77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728) D/StrictMode( 77): at android.os.Handler.handleCallback(Handler.java:605) D/StrictMode( 77): at android.os.Handler.dispatchMessage(Handler.java:92) D/StrictMode( 77): at android.os.Looper.loop(Looper.java:137) {code} Expected: Should not see this error. Note: This error still persists when I launch an empty 1.7.5 Titanium project against Android Emulator 4.0
    via by Wilson Luu,
  • Steps to reproduce: 1. Launch empty Titanium project to Android Emulator 4.0 Results: StrictMode policy violation is thrown in the TiStud console: {code:xml} D/StrictMode( 77): StrictMode policy violation; ~duration=812 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=151 violation=2 D/StrictMode( 77): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1074) D/StrictMode( 77): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:94) D/StrictMode( 77): at libcore.io.IoBridge.open(IoBridge.java:390) D/StrictMode( 77): at java.io.FileOutputStream.<init>(FileOutputStream.java:88) D/StrictMode( 77): at java.io.FileOutputStream.<init>(FileOutputStream.java:73) D/StrictMode( 77): at com.android.internal.os.AtomicFile.startWrite(AtomicFile.java:59) D/StrictMode( 77): at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1181) D/StrictMode( 77): at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463) D/StrictMode( 77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728) D/StrictMode( 77): at android.os.Handler.handleCallback(Handler.java:605) D/StrictMode( 77): at android.os.Handler.dispatchMessage(Handler.java:92) D/StrictMode( 77): at android.os.Looper.loop(Looper.java:137) D/StrictMode( 77): at com.android.server.ServerThread.run(SystemServer.java:744) D/StrictMode( 77): StrictMode policy violation; ~duration=792 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=151 violation=1 D/StrictMode( 77): at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1048) D/StrictMode( 77): at libcore.io.BlockGuardOs.write(BlockGuardOs.java:178) D/StrictMode( 77): at libcore.io.IoBridge.write(IoBridge.java:447) D/StrictMode( 77): at java.io.FileOutputStream.write(FileOutputStream.java:187) D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.flushBytes(FastXmlSerializer.java:212) D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.flush(FastXmlSerializer.java:233) D/StrictMode( 77): at com.android.internal.util.FastXmlSerializer.endDocument(FastXmlSerializer.java:183) D/StrictMode( 77): at com.android.server.AppWidgetService.writeStateToFileLocked(AppWidgetService.java:1240) D/StrictMode( 77): at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1182) D/StrictMode( 77): at com.android.server.AppWidgetService$2.onReceive(AppWidgetService.java:1463) D/StrictMode( 77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728) D/StrictMode( 77): at android.os.Handler.handleCallback(Handler.java:605) D/StrictMode( 77): at android.os.Handler.dispatchMessage(Handler.java:92) D/StrictMode( 77): at android.os.Looper.loop(Looper.java:137) {code} Expected: Should not see this error. Note: This error still persists when I launch an empty 1.7.5 Titanium project against Android Emulator 4.0
    via by Wilson Luu,
  • Ice Cream Sandwich StrictMode
    via Stack Overflow by jlindenbaum
    ,
  • Post value from android to Php?
    via Stack Overflow by Joyson
    ,
    • android.os.StrictMode$StrictModeDiskWriteViolation: policy=151 violation=1 at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1048) at libcore.io.BlockGuardOs.write(BlockGuardOs.java:178) at libcore.io.IoBridge.write(IoBridge.java:447) at java.io.FileOutputStream.write(FileOutputStream.java:187) at com.android.internal.util.FastXmlSerializer.flushBytes(FastXmlSerializer.java:212) at com.android.internal.util.FastXmlSerializer.flush(FastXmlSerializer.java:233) at com.android.internal.util.FastXmlSerializer.endDocument(FastXmlSerializer.java:183) at com.android.server.AppWidgetService.writeStateToFileLocked(AppWidgetService.java:1240) at com.android.server.AppWidgetService.saveStateLocked(AppWidgetService.java:1182) 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)

    Users with the same issue

    Agócs Tamás
    15 times, last one,
    Adrien
    81 times, last one,
    jk
    1 times, last one,
    thilo
    24 times, last one,
    sagar
    2 times, last one,
    18 more bugmates