From 2d9483ff16a6471aaa36c34fb6c3d043e4327abc Mon Sep 17 00:00:00 2001 From: Kurt Partridge Date: Wed, 28 Mar 2012 17:36:05 -0700 Subject: [PATCH] make ResearchLogger log write only Bug: 6188932 Change-Id: I8a8f944b1d4ee858d5ecaad0d3adc6dc7af54f68 --- java/src/com/android/inputmethod/latin/ResearchLogger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/com/android/inputmethod/latin/ResearchLogger.java b/java/src/com/android/inputmethod/latin/ResearchLogger.java index 0694ffe77..f39f082bc 100644 --- a/java/src/com/android/inputmethod/latin/ResearchLogger.java +++ b/java/src/com/android/inputmethod/latin/ResearchLogger.java @@ -113,6 +113,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang close(); mFile = new File(directory, filename); + mFile.setReadable(false, false); boolean append = true; if (mFile.exists() && mFile.lastModified() + LOGFILE_PURGE_INTERVAL < System.currentTimeMillis()) {