diff --git a/android/src/com/reecedunn/espeak/DownloadVoiceData.java b/android/src/com/reecedunn/espeak/DownloadVoiceData.java index e5481495..0ad9102c 100644 --- a/android/src/com/reecedunn/espeak/DownloadVoiceData.java +++ b/android/src/com/reecedunn/espeak/DownloadVoiceData.java @@ -132,7 +132,6 @@ public class DownloadVoiceData extends Activity { if (entry.isDirectory()) { progress.file.mkdirs(); - FileUtils.chmod(progress.file); continue; } @@ -149,9 +148,6 @@ public class DownloadVoiceData extends Activity { outputStream.close(); } zipStream.closeEntry(); - - // Make sure the output file is readable. - FileUtils.chmod(progress.file); } final String version = FileUtils.read(mContext.getResources().openRawResource(R.raw.espeakdata_version)); diff --git a/android/src/com/reecedunn/espeak/FileUtils.java b/android/src/com/reecedunn/espeak/FileUtils.java index 1f93821d..4ac716fe 100644 --- a/android/src/com/reecedunn/espeak/FileUtils.java +++ b/android/src/com/reecedunn/espeak/FileUtils.java @@ -71,15 +71,6 @@ public class FileUtils { } finally { outputStream.close(); } - chmod(outputFile); - } - - public static void chmod(File file) { - try { - Runtime.getRuntime().exec("/system/bin/chmod 755 " + file.getAbsolutePath()); - } catch (IOException e) { - e.printStackTrace(); - } } public static void rmdir(File directory) {