From 55e8c440387a57ca16273d14d05d08386ccb69b8 Mon Sep 17 00:00:00 2001 From: shifujun Date: Wed, 25 Dec 2024 17:00:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sample-host=E6=9B=B4=E6=96=B0manager.apk?= =?UTF-8?q?=E6=97=B6=E9=9C=80=E8=A6=81=E5=85=88=E8=AE=BE=E7=BD=AE=E5=8F=AF?= =?UTF-8?q?=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/tencent/shadow/sample/host/PluginHelper.java | 4 ++++ 1 file changed, 4 insertions(+) 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);