mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01:00
Removed SDK/platforms/*/android.jar dependency.
This commit is contained in:
parent
a27e1adcde
commit
bc67e2efc7
@ -33,15 +33,8 @@ import java.io.IOException;
|
||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||
*/
|
||||
public class Androlib {
|
||||
private final String mAndroidJar;
|
||||
private final AndrolibResources mAndRes;
|
||||
private final AndrolibSmali mSmali;
|
||||
|
||||
public Androlib(String androidJar) {
|
||||
mAndroidJar = androidJar;
|
||||
mAndRes = new AndrolibResources(mAndroidJar);
|
||||
mSmali = new AndrolibSmali();
|
||||
}
|
||||
private final AndrolibResources mAndRes = new AndrolibResources();
|
||||
private final AndrolibSmali mSmali = new AndrolibSmali();
|
||||
|
||||
public void decode(String apkFileName, String outDirName)
|
||||
throws AndrolibException {
|
||||
|
@ -44,16 +44,6 @@ final public class AndrolibResources {
|
||||
Jar.load("/libAndroid.so");
|
||||
}
|
||||
|
||||
private final File mAndroidJar;
|
||||
|
||||
public AndrolibResources(String androidJar) {
|
||||
this(new File(androidJar));
|
||||
}
|
||||
|
||||
public AndrolibResources(File androidJar) {
|
||||
this.mAndroidJar = androidJar;
|
||||
}
|
||||
|
||||
public ResTable getResTable(File apkFile) throws AndrolibException {
|
||||
ResTable resTable = new ResTable();
|
||||
loadApk(resTable, getAndroidResourcesFile(), false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user