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

Commit 4161f9b3 authored by Kenny Root's avatar Kenny Root
Browse files

Add StorageVolume list to MountService dump

Change-Id: If2be6e420d9671032d2e7a66c71a6733e6e48ac8
parent 8c55a9a5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -172,7 +172,10 @@ public class StorageVolume implements Parcelable {

    @Override
    public String toString() {
        return mPath;
        return "StorageVolume [mAllowMassStorage=" + mAllowMassStorage + ", mDescription="
                + mDescription + ", mEmulated=" + mEmulated + ", mMaxFileSize=" + mMaxFileSize
                + ", mMtpReserveSpace=" + mMtpReserveSpace + ", mPath=" + mPath + ", mRemovable="
                + mRemovable + ", mStorageId=" + mStorageId + "]";
    }

    public static final Parcelable.Creator<StorageVolume> CREATOR =
+13 −0
Original line number Diff line number Diff line
@@ -2361,6 +2361,19 @@ class MountService extends IMountService.Stub implements INativeDaemonConnectorC
                pw.print(" -> "); pw.println(e.getValue().toString());
            }
        }

        pw.println("");

        synchronized (mVolumes) {
            pw.println("  mVolumes:");

            final int N = mVolumes.size();
            for (int i = 0; i < N; i++) {
                final StorageVolume v = mVolumes.get(i);
                pw.print("    ");
                pw.println(v.toString());
            }
        }
    }
}