Search in sources :

Example 1 with Package

use of com.android.aapt.Resources.Package in project jadx by skylot.

the class ResProtoParser method decodeFiles.

public ResContainer decodeFiles(InputStream inputStream) throws IOException {
    ResourceTable table = decodeProto(inputStream);
    for (Package p : table.getPackageList()) {
        parse(p);
    }
    resStorage.finish();
    ValuesParser vp = new ValuesParser(new String[0], resStorage.getResourcesNames());
    ResXmlGen resGen = new ResXmlGen(resStorage, vp);
    ICodeInfo content = XmlGenUtils.makeXmlDump(root.makeCodeWriter(), resStorage);
    List<ResContainer> xmlFiles = resGen.makeResourcesXml();
    return ResContainer.resourceTable("res", xmlFiles, content);
}
Also used : ICodeInfo(jadx.api.ICodeInfo) ValuesParser(jadx.core.xmlgen.entry.ValuesParser) Package(com.android.aapt.Resources.Package) ResourceTable(com.android.aapt.Resources.ResourceTable)

Aggregations

Package (com.android.aapt.Resources.Package)1 ResourceTable (com.android.aapt.Resources.ResourceTable)1 ICodeInfo (jadx.api.ICodeInfo)1 ValuesParser (jadx.core.xmlgen.entry.ValuesParser)1