Skip to content

Commit 4d21f2c

Browse files
committed
Add receivers function into r2apkinfo.py
1 parent c112c58 commit 4d21f2c

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
@@ -266,6 +266,18 @@ def activities(self) -> List[XMLElement]:
266266

267267
return root.findall("application/activity")
268268

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

0 commit comments

Comments
 (0)