Skip to content

Commit

Permalink
fix: sample-host更新manager.apk时需要先设置可写入
Browse files Browse the repository at this point in the history
  • Loading branch information
shifujun committed Dec 25, 2024
1 parent d577c95 commit 04094e0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 04094e0

Please sign in to comment.