Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c28db7a6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not trigger a disk write violation during dumpsys gfxinfo"

parents 9ea6fc55 7bea563b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4645,12 +4645,14 @@ public final class ActivityThread extends ClientTransactionHandler
    }

    private void handleDumpGfxInfo(DumpComponentInfo info) {
        final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
        try {
            ThreadedRenderer.handleDumpGfxInfo(info.fd.getFileDescriptor(), info.args);
        } catch (Exception e) {
            Log.w(TAG, "Caught exception from dumpGfxInfo()", e);
        } finally {
            IoUtils.closeQuietly(info.fd);
            StrictMode.setThreadPolicy(oldPolicy);
        }
    }