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

Commit ec99ee19 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Use Base64 from android.util in LocalTransport"

am: 8b9f9853

Change-Id: I8178aea431b41a521346fd40a81ae79a253e5554
parents 43a71788 8b9f9853
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -32,10 +32,9 @@ import android.system.ErrnoException;
import android.system.Os;
import android.system.StructStat;
import android.util.ArrayMap;
import android.util.Base64;
import android.util.Log;

import com.android.org.bouncycastle.util.encoders.Base64;

import libcore.io.IoUtils;

import java.io.BufferedOutputStream;
@@ -323,7 +322,7 @@ public class LocalTransport extends BackupTransport {
        BackupDataInput changeSet = new BackupDataInput(data.getFileDescriptor());
        while (changeSet.readNextHeader()) {
            String key = changeSet.getKey();
            String base64Key = new String(Base64.encode(key.getBytes()));
            String base64Key = new String(Base64.encode(key.getBytes(), Base64.NO_WRAP));
            int dataSize = changeSet.getDataSize();
            if (DEBUG) {
                Log.v(TAG, "  Delta operation key " + key + "   size " + dataSize
@@ -705,7 +704,7 @@ public class LocalTransport extends BackupTransport {

        public DecodedFilename(File f) {
            file = f;
            key = new String(Base64.decode(f.getName()));
            key = new String(Base64.decode(f.getName(), Base64.DEFAULT));
        }

        @Override