mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-13 05:27:36 +02:00
Github pr #81 - correctly handle non-URI characters in filename
This commit is contained in:
@ -217,9 +217,10 @@ public class Androlib {
|
||||
// options.setIndent(4);
|
||||
Yaml yaml = new Yaml(options);
|
||||
|
||||
FileWriter writer = null;
|
||||
Writer writer = null;
|
||||
try {
|
||||
writer = new FileWriter(new File(mOutDir, "apktool.yml"));
|
||||
writer = new BufferedWriter(new OutputStreamWriter(
|
||||
new FileOutputStream(new File(mOutDir, "apktool.yml")), "UTF-8"));
|
||||
yaml.dump(meta, writer);
|
||||
} catch (IOException ex) {
|
||||
throw new AndrolibException(ex);
|
||||
@ -556,7 +557,7 @@ public class Androlib {
|
||||
|
||||
// create filesystem
|
||||
Path path = Paths.get(outFile.getAbsolutePath());
|
||||
URI apkFileSystem = new URI("jar", path.toUri().toString(), null);
|
||||
URI apkFileSystem = new URI("jar", outFile.toURI().toString(), null);
|
||||
|
||||
// loop through files inside
|
||||
for (Map.Entry<String,String> entry : files.entrySet()) {
|
||||
|
Reference in New Issue
Block a user