From b5097b7a417b13c288adfbd1c0ea4f6d86715cf1 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Thu, 20 Jan 2011 20:23:13 +0000 Subject: [PATCH] Some more verbose logs --- src/org/thialfihar/android/apg/ApgService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thialfihar/android/apg/ApgService.java b/src/org/thialfihar/android/apg/ApgService.java index c4a348cb4..b36b5cd0a 100644 --- a/src/org/thialfihar/android/apg/ApgService.java +++ b/src/org/thialfihar/android/apg/ApgService.java @@ -385,6 +385,7 @@ public class ApgService extends Service { InputData _in = new InputData(_inStream, 0); // XXX Size second param? OutputStream _out = new ByteArrayOutputStream(); + Log.v(TAG, "About to encrypt"); try { Apg.encrypt(getBaseContext(), // context _in, // input stream @@ -450,6 +451,7 @@ public class ApgService extends Service { InputStream inStream = new ByteArrayInputStream(pArgs.getString(arg.MESSAGE.name()).getBytes()); InputData in = new InputData(inStream, 0); // XXX what size in second parameter? OutputStream out = new ByteArrayOutputStream(); + Log.v(TAG, "About to decrypt"); try { Apg.decrypt(getBaseContext(), in, out, _passphrase, null, // progress pArgs.getString(arg.SYMMETRIC_PASSPHRASE.name()) != null // symmetric @@ -469,6 +471,7 @@ public class ApgService extends Service { } return false; } + Log.v(TAG, "Decrypted"); pReturn.putString(ret.RESULT.name(), out.toString()); return true;