Some features

This commit is contained in:
Kirlif 2022-12-23 22:34:56 +01:00
parent 6fda525971
commit 5e64b3d2b2
No known key found for this signature in database
2 changed files with 11 additions and 0 deletions

View File

@ -60,6 +60,14 @@ public class AndroidManifestBlock extends ResXmlBlock{
}
return results;
}
public List<ResXmlElement> listApplicationElementsByTag(String tag){
ResXmlElement application=getApplicationElement();
if(application==null){
return new ArrayList<>();
}
List<ResXmlElement> results = application.listElements(tag);
return results;
}
public List<String> getUsesPermissions(){
List<String> results=new ArrayList<>();
ResXmlElement manifestElement=getManifestElement();

View File

@ -212,6 +212,9 @@ public class ResXmlElement extends FixedBlockContainer implements JSONConvert<JS
public void addElement(ResXmlElement element){
mBody.add(element);
}
public void removeElement(ResXmlElement element){
mBody.remove(element);
}
public int countElements(){
return mBody.size();
}