mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-01 06:34:26 +02:00
Some features
This commit is contained in:
parent
6fda525971
commit
5e64b3d2b2
@ -60,6 +60,14 @@ public class AndroidManifestBlock extends ResXmlBlock{
|
|||||||
}
|
}
|
||||||
return results;
|
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(){
|
public List<String> getUsesPermissions(){
|
||||||
List<String> results=new ArrayList<>();
|
List<String> results=new ArrayList<>();
|
||||||
ResXmlElement manifestElement=getManifestElement();
|
ResXmlElement manifestElement=getManifestElement();
|
||||||
|
@ -212,6 +212,9 @@ public class ResXmlElement extends FixedBlockContainer implements JSONConvert<JS
|
|||||||
public void addElement(ResXmlElement element){
|
public void addElement(ResXmlElement element){
|
||||||
mBody.add(element);
|
mBody.add(element);
|
||||||
}
|
}
|
||||||
|
public void removeElement(ResXmlElement element){
|
||||||
|
mBody.remove(element);
|
||||||
|
}
|
||||||
public int countElements(){
|
public int countElements(){
|
||||||
return mBody.size();
|
return mBody.size();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user