Skip to content

Commit d43fc4c

Browse files
committed
Add receivers function into r2apkinfo.py
1 parent 413f554 commit d43fc4c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

quark/core/r2apkinfo.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,18 @@ def activities(self) -> List[XMLElement]:
269269

270270
return root.findall("application/activity")
271271

272+
@functools.cached_property
273+
def receivers(self) -> List[XMLElement]:
274+
"""
275+
Return all receivers from the given APK.
276+
277+
:return: a list of all receivers
278+
"""
279+
axml = AxmlReader(self._manifest)
280+
root = axml.get_xml_tree()
281+
282+
return root.findall("application/receiver")
283+
272284
@property
273285
def android_apis(self) -> Set[MethodObject]:
274286
"""

0 commit comments

Comments
 (0)