mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
Fixed support for apk without any sources.
This commit is contained in:
parent
02c93c725d
commit
651f4d37d8
@ -196,6 +196,9 @@ public class Androlib {
|
||||
public boolean buildResourcesFull(File appDir, boolean forceBuildAll,
|
||||
boolean framework) throws AndrolibException {
|
||||
try {
|
||||
if (! new File(appDir, "res").exists()) {
|
||||
return false;
|
||||
}
|
||||
if (! forceBuildAll) {
|
||||
LOGGER.info("Checking whether resources has changed...");
|
||||
}
|
||||
|
@ -132,6 +132,11 @@ final public class AndrolibResources {
|
||||
|
||||
public boolean detectWhetherAppIsFramework(File appDir)
|
||||
throws AndrolibException {
|
||||
File publicXml = new File(appDir, "res/values/public.xml");
|
||||
if (! publicXml.exists()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Iterator<String> it;
|
||||
try {
|
||||
it = IOUtils.lineIterator(
|
||||
|
Loading…
Reference in New Issue
Block a user