mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-11 06:59:24 +01:00
cleanup from removal of smali-debugging
This commit is contained in:
parent
285da3836c
commit
ee8e9cea3d
@ -69,28 +69,10 @@ public class SmaliBuilder {
|
|||||||
} catch (IOException | RecognitionException ex) {
|
} catch (IOException | RecognitionException ex) {
|
||||||
throw new AndrolibException(ex);
|
throw new AndrolibException(ex);
|
||||||
}
|
}
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
if (!fileName.endsWith(".java")) {
|
|
||||||
LOGGER.warning("Unknown file type, ignoring: " + inFile);
|
LOGGER.warning("Unknown file type, ignoring: " + inFile);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder out = new StringBuilder();
|
|
||||||
List<String> lines = IOUtils.readLines(inStream);
|
|
||||||
inStream.close();
|
inStream.close();
|
||||||
|
|
||||||
final String[] linesArray = lines.toArray(new String[0]);
|
|
||||||
for (int i = 1; i < linesArray.length - 1; i++) {
|
|
||||||
out.append(linesArray[i].split("//", 2)[1]).append('\n');
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
if (!SmaliMod.assembleSmaliFile(out.toString(),dexBuilder, false, false, inFile)) {
|
|
||||||
throw new AndrolibException("Could not smali file: " + fileName);
|
|
||||||
}
|
|
||||||
} catch (IOException | RecognitionException ex) {
|
|
||||||
throw new AndrolibException(ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private final ExtFile mSmaliDir;
|
private final ExtFile mSmaliDir;
|
||||||
|
Loading…
Reference in New Issue
Block a user