diff --git a/projects/sample/source/sample-host/src/main/java/com/tencent/shadow/sample/host/PluginHelper.java b/projects/sample/source/sample-host/src/main/java/com/tencent/shadow/sample/host/PluginHelper.java index c87d9100a..bf5587952 100644 --- a/projects/sample/source/sample-host/src/main/java/com/tencent/shadow/sample/host/PluginHelper.java +++ b/projects/sample/source/sample-host/src/main/java/com/tencent/shadow/sample/host/PluginHelper.java @@ -74,6 +74,10 @@ public void run() { private void preparePlugin() { try { + + //noinspection ResultOfMethodCallIgnored + pluginManagerFile.setWritable(true); + InputStream is = mContext.getAssets().open(sPluginManagerName); FileUtils.copyInputStreamToFile(is, pluginManagerFile);