commit | 6c220edb782f642759faeebea110600564e35884 | [log] [tgz] |
---|---|---|
author | Agatha Man <agathaman@google.com> | Thu Jun 01 12:08:06 2017 -0700 |
committer | Agatha Man <agathaman@google.com> | Thu Jun 01 12:08:06 2017 -0700 |
tree | 84e233bddbcca342ded330485fe77ba01cd3d0dd | |
parent | a382b0b3ca9ada4f08d7c2272128875366efe8c2 [diff] |
EDI: Collect disk partition by kb (df -k) Bug: 62238139 Test: Run cts Change-Id: I584cdaec8fb4e726d0469402bf762cf4c6b8b884
diff --git a/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/StorageDeviceInfo.java b/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/StorageDeviceInfo.java index dafff35..767f1d9 100644 --- a/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/StorageDeviceInfo.java +++ b/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/StorageDeviceInfo.java
@@ -62,7 +62,7 @@ private List<String> scanPartitions() { List<String> partitionList = new ArrayList<>(); try { - Process df = new ProcessBuilder("df").start(); + Process df = new ProcessBuilder("df -k").start(); Scanner scanner = new Scanner(df.getInputStream()); try { while (scanner.hasNextLine()) {