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

Commit f881dd3b authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

gpuservice: always dump all in BugReport

Bug: 158386226
Test: take a bugreport and verify dumpsys gpu is not empty
Change-Id: Ib2827a72819ef3ccd3267144aaea2e5977f01745
parent 6c9b9803
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -98,7 +98,6 @@ status_t GpuService::doDump(int fd, const Vector<String16>& args, bool /*asProto
        size_t numArgs = args.size();
        size_t numArgs = args.size();


        if (numArgs) {
        if (numArgs) {
            dumpAll = false;
            for (size_t index = 0; index < numArgs; ++index) {
            for (size_t index = 0; index < numArgs; ++index) {
                if (args[index] == String16("--gpustats")) {
                if (args[index] == String16("--gpustats")) {
                    dumpStats = true;
                    dumpStats = true;
@@ -108,6 +107,7 @@ status_t GpuService::doDump(int fd, const Vector<String16>& args, bool /*asProto
                    dumpMem = true;
                    dumpMem = true;
                }
                }
            }
            }
            dumpAll = !(dumpDriverInfo || dumpMem || dumpStats);
        }
        }


        if (dumpAll || dumpDriverInfo) {
        if (dumpAll || dumpDriverInfo) {