* commit 'ea21ade9d08f287cb0f042a1db270a53fbdf2478': leave the padding on the backupkeys
This commit is contained in:
@@ -644,7 +644,7 @@ public class LauncherBackupAgent extends BackupAgent {
|
||||
|
||||
/** keys need to be strings, serialize and encode. */
|
||||
private String keyToBackupKey(Key key) {
|
||||
return Base64.encodeToString(Key.toByteArray(key), Base64.NO_WRAP | Base64.NO_PADDING);
|
||||
return Base64.encodeToString(Key.toByteArray(key), Base64.NO_WRAP);
|
||||
}
|
||||
|
||||
/** keys need to be strings, decode and parse. */
|
||||
|
||||
@@ -100,7 +100,7 @@ class DecoderRing {
|
||||
if (type == Key.class) {
|
||||
Key key = new Key();
|
||||
try {
|
||||
MessageNano.mergeFrom(key, byteStream.toByteArray());
|
||||
key = Key.parseFrom(byteStream.toByteArray());
|
||||
} catch (InvalidProtocolBufferNanoException e) {
|
||||
System.err.println("failed to parse proto: " + e);
|
||||
System.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user