Skip to content

Commit 04094e0

Browse files
committed
fix: sample-host更新manager.apk时需要先设置可写入
1 parent d577c95 commit 04094e0

File tree

1 file changed

+4
-0
lines changed
  • projects/sample/source/sample-host/src/main/java/com/tencent/shadow/sample/host

1 file changed

+4
-0
lines changed

projects/sample/source/sample-host/src/main/java/com/tencent/shadow/sample/host/PluginHelper.java

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ public void run() {
7474

7575
private void preparePlugin() {
7676
try {
77+
78+
//noinspection ResultOfMethodCallIgnored
79+
pluginManagerFile.setWritable(true);
80+
7781
InputStream is = mContext.getAssets().open(sPluginManagerName);
7882
FileUtils.copyInputStreamToFile(is, pluginManagerFile);
7983

0 commit comments

Comments
 (0)