Skip to content

Commit

Permalink
fix: make jar files readonly prior to loading (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni authored Sep 27, 2023
1 parent 40b6725 commit 2bcdaf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test-app/runtime/src/main/java/com/tns/DexFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public Class<?> resolveClass(String baseClassName, String name, String className
out.closeEntry();
out.close();
}
jarFile.setReadOnly();

Class<?> result;
DexClassLoader dexClassLoader = new DexClassLoader(jarFilePath, this.odexDir.getAbsolutePath(), null, classLoader);
Expand Down

0 comments on commit 2bcdaf0

Please sign in to comment.