mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
Some features
This commit is contained in:
parent
6fda525971
commit
5e64b3d2b2
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user