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

Commit d53f8a86 authored by Ken Sumrall's avatar Ken Sumrall Committed by Android (Google) Code Review
Browse files

Merge "During encryption, don't throw exceptions for unknown vold state"

parents 6fa7e7e9 18db5c56
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1339,8 +1339,12 @@ class MountService extends IMountService.Stub implements INativeDaemonConnectorC
            String state = mVolumeStates.get(mountPoint);
            if (state == null) {
                Slog.w(TAG, "getVolumeState(" + mountPoint + "): Unknown volume");
                if (SystemProperties.get("vold.encrypt_progress").length() != 0) {
                    state = Environment.MEDIA_REMOVED;
                } else {
                    throw new IllegalArgumentException();
                }
            }

            return state;
        }