From 03b7f59dce699c25c7b1577b07945634f5682a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Sun, 17 May 2015 15:39:20 +0200 Subject: [PATCH] Add missing chmod command --- .../org/fdroid/fdroid/installer/InstallFDroidAsSystem.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/F-Droid/src/org/fdroid/fdroid/installer/InstallFDroidAsSystem.java b/F-Droid/src/org/fdroid/fdroid/installer/InstallFDroidAsSystem.java index 864911b16..4befd4359 100644 --- a/F-Droid/src/org/fdroid/fdroid/installer/InstallFDroidAsSystem.java +++ b/F-Droid/src/org/fdroid/fdroid/installer/InstallFDroidAsSystem.java @@ -99,8 +99,9 @@ abstract class InstallFDroidAsSystem { } protected List getCopyToSystemCommands() { - final List commands = new ArrayList<>(1); + final List commands = new ArrayList<>(2); commands.add("cat " + context.getPackageCodePath() + " > " + getInstallPath() + ".tmp"); + commands.add("chmod 655 " + getInstallPath() + ".tmp"); return commands; } @@ -173,9 +174,10 @@ abstract class InstallFDroidAsSystem { */ @Override protected List getCopyToSystemCommands() { - List commands = new ArrayList<>(2); + List commands = new ArrayList<>(3); commands.add("mkdir " + getSystemFolder()); // create app directory if not existing commands.add("cat " + context.getPackageCodePath() + " > " + getInstallPath() + ".tmp"); + commands.add("chmod 655 " + getInstallPath() + ".tmp"); return commands; }