mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 06:45:39 +00:00
Android: remove hardcoded chmod
I don't understand why it was necessary. on some devices, the binary is in a different location. if this is still needed for something, we need to search for chmod binary dynamicly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user