Skip to content

Commit 2bcdaf0

Browse files
authored
fix: make jar files readonly prior to loading (#1790)
1 parent 40b6725 commit 2bcdaf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-app/runtime/src/main/java/com/tns/DexFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public Class<?> resolveClass(String baseClassName, String name, String className
155155
out.closeEntry();
156156
out.close();
157157
}
158+
jarFile.setReadOnly();
158159

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

0 commit comments

Comments
 (0)