Skip to content

Commit cd605c9

Browse files
committed
Add receivers function into r2apkinfo.py
1 parent 3764a72 commit cd605c9

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

257257
return root.findall("application/activity")
258258

259+
@functools.cached_property
260+
def receivers(self) -> List[XMLElement]:
261+
"""
262+
Return all receivers from the given APK.
263+
264+
:return: a list of all receivers
265+
"""
266+
axml = AxmlReader(self._manifest)
267+
root = axml.get_xml_tree()
268+
269+
return root.findall("application/receiver")
270+
259271
@property
260272
def android_apis(self) -> Set[MethodObject]:
261273
"""

0 commit comments

Comments
 (0)