mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 23:04:26 +02: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,
|
public boolean buildResourcesFull(File appDir, boolean forceBuildAll,
|
||||||
boolean framework) throws AndrolibException {
|
boolean framework) throws AndrolibException {
|
||||||
try {
|
try {
|
||||||
|
if (! new File(appDir, "res").exists()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (! forceBuildAll) {
|
if (! forceBuildAll) {
|
||||||
LOGGER.info("Checking whether resources has changed...");
|
LOGGER.info("Checking whether resources has changed...");
|
||||||
}
|
}
|
||||||
|
@ -132,6 +132,11 @@ final public class AndrolibResources {
|
|||||||
|
|
||||||
public boolean detectWhetherAppIsFramework(File appDir)
|
public boolean detectWhetherAppIsFramework(File appDir)
|
||||||
throws AndrolibException {
|
throws AndrolibException {
|
||||||
|
File publicXml = new File(appDir, "res/values/public.xml");
|
||||||
|
if (! publicXml.exists()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Iterator<String> it;
|
Iterator<String> it;
|
||||||
try {
|
try {
|
||||||
it = IOUtils.lineIterator(
|
it = IOUtils.lineIterator(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user