diff --git a/android/com/facebook/buck/android/agent/native/receive-file.c b/android/com/facebook/buck/android/agent/native/receive-file.c index f4d54fd703c..7866cf58138 100644 --- a/android/com/facebook/buck/android/agent/native/receive-file.c +++ b/android/com/facebook/buck/android/agent/native/receive-file.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -329,6 +330,12 @@ static int raw_receive_file(const char* path, int expected_size, int sock) { goto error; } + ret = chmod(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ); + if (ret != 0) { + perror("chmod"); + goto error; + } + return 0; error: diff --git a/assets/android/agent.apk b/assets/android/agent.apk index 5fb746c11cb..175e391a805 100644 Binary files a/assets/android/agent.apk and b/assets/android/agent.apk differ diff --git a/src/com/facebook/buck/android/agent/util/AgentUtil.java b/src/com/facebook/buck/android/agent/util/AgentUtil.java index 20837961127..2f4f77f9e1b 100644 --- a/src/com/facebook/buck/android/agent/util/AgentUtil.java +++ b/src/com/facebook/buck/android/agent/util/AgentUtil.java @@ -33,7 +33,7 @@ private AgentUtil() {} // These must match the values in the agent manifest. public static final String AGENT_PACKAGE_NAME = "com.facebook.buck.android.agent"; - public static final String AGENT_VERSION_CODE = "10"; + public static final String AGENT_VERSION_CODE = "11"; /** Size in bytes of the binary data use to generate the secret key for receive-file. */ public static final int BINARY_SECRET_KEY_SIZE = 16;