From 3b94dfe9c486a062932f9e23963f73dd118f582b Mon Sep 17 00:00:00 2001 From: John Knox Date: Fri, 20 Sep 2019 06:49:33 -0700 Subject: [PATCH] Make certificate files world readable Summary: This is useful for system apps. The files are owned by root, but they need to be readable by the app. There's nothing secret in these files, so it's not a problem. This doesn't address all issues with system apps, e.g. https://github.com/facebook/flipper/issues/536 but does go some way towards it. I was able to get a system app to connect successfully, but there may be different states that they can be in, so I don't think it's a fix all. Reviewed By: passy Differential Revision: D17499438 fbshipit-source-id: ab82583b5d607f75ff4578ab9ac2baf9d74241f8 --- src/utils/androidContainerUtilityInternal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/androidContainerUtilityInternal.tsx b/src/utils/androidContainerUtilityInternal.tsx index 08b138917..7d0e71280 100644 --- a/src/utils/androidContainerUtilityInternal.tsx +++ b/src/utils/androidContainerUtilityInternal.tsx @@ -57,7 +57,7 @@ export function _push( return executeCommandAsApp( deviceId, app, - `echo "${contents}" > '${filename}' && chmod 600 '${filename}'`, + `echo "${contents}" > '${filename}' && chmod 644 '${filename}'`, ).then(output => undefined); }