From 05c41e6a0aec4adbc7bfc77d4fe07193064a962a Mon Sep 17 00:00:00 2001 From: Risan Date: Mon, 29 Oct 2018 08:57:43 +0900 Subject: Introducing StubVolume in StorageManager Bug: 110380403 Test: Tested in ARC++ (with Settings and vold changes in separate CLS) - able to see the external storage under StorageSettings. Also tested the sm command to print stubvolumes. Change-Id: I7517260a40399bd9800424bb394512601f6af617 --- cmds/sm/src/com/android/commands/sm/Sm.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmds/sm/src') diff --git a/cmds/sm/src/com/android/commands/sm/Sm.java b/cmds/sm/src/com/android/commands/sm/Sm.java index 09343f174587..70e81dfe7404 100644 --- a/cmds/sm/src/com/android/commands/sm/Sm.java +++ b/cmds/sm/src/com/android/commands/sm/Sm.java @@ -125,6 +125,8 @@ public final class Sm { filterType = VolumeInfo.TYPE_PRIVATE; } else if ("emulated".equals(filter)) { filterType = VolumeInfo.TYPE_EMULATED; + } else if ("stub".equals(filter)) { + filterType = VolumeInfo.TYPE_STUB; } else { filterType = -1; } @@ -298,7 +300,7 @@ public final class Sm { private static int showUsage() { System.err.println("usage: sm list-disks [adoptable]"); - System.err.println(" sm list-volumes [public|private|emulated|all]"); + System.err.println(" sm list-volumes [public|private|emulated|stub|all]"); System.err.println(" sm has-adoptable"); System.err.println(" sm get-primary-storage-uuid"); System.err.println(" sm set-force-adoptable [on|off|default]"); -- cgit v1.2.3