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

Commit 12ffd9bf authored by Kenny Root's avatar Kenny Root
Browse files

Add "none" for vold and deprecate mkobb -c

If vold isn't told "none" for the key, it will try to mount it as an
encrypted container.

Also remove the -c option from mkobb since it can be triggered by
including a key as well.

Change-Id: I40a8ff3f778bfda682312630e6687ecc14b51844
parent 29423918
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1968,7 +1968,8 @@ class MountService extends IMountService.Stub
                }

                rc = StorageResultCode.OperationSucceeded;
                String cmd = String.format("obb mount %s %s %d", mObbState.filename, mKey,
                String cmd = String.format("obb mount %s %s %d", mObbState.filename,
                        mKey != null ? mKey : "none",
                        mObbState.callerUid);
                try {
                    mConnector.doCommand(cmd);
+2 −3
Original line number Diff line number Diff line
@@ -161,11 +161,10 @@ eval set -- "$args"

while true; do \
    case "$1" in
        -c) use_crypto=1; shift;;
        -d) directory=$2; shift 2;;
        -h) usage; exit 1;;
        -k) key=$2; shift 2;;
        -K) prompt_key=1; shift;;
        -k) key=$2; use_crypto=1; shift 2;;
        -K) prompt_key=1; use_crypto=1; shift;;
        -v) verbose=1; shift;;
        -o) filename=$2; shift 2;;
        --) shift; break;;