Skip to content

Commit b429bc5

Browse files
haeter525sidra-asa
authored andcommitted
Replace key flagname with key lib
1 parent 372a58f commit b429bc5

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

quark/core/rzapkinfo.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -252,24 +252,22 @@ def _parse_method_from_isj_obj(self, json_obj, dexindex):
252252
return method
253253

254254
@functools.lru_cache
255-
def _get_methods_classified(self, dexindex):
255+
def _get_methods_classified(
256+
self, dex_index: int
257+
) -> Dict[str, List[MethodObject]]:
256258
"""
257-
Parse all methods in the specified Dex and convert them into a
258-
dictionary. The dictionary takes their belonging classes as the keys.
259-
Then, it categorizes them into lists.
259+
Use command isj to get all the methods and categorize them into
260+
a dictionary.
260261
261-
:param dexindex: an index indicating which Dex file should this method
262-
parse
263-
:return: a dictionary taking a class name as the key and a list of
264-
MethodObject as the corresponding value.
262+
:param dex_index: an index to the Dex file that need to be parsed.
263+
:return: a dict that holds methods categorized by their class name
265264
"""
266-
rz = self._get_rz(dexindex)
265+
rz = self._get_rz(dex_index)
267266

268267
method_json_list = rz.cmdj("isj")
269268
method_dict = defaultdict(list)
270269
for json_obj in method_json_list:
271270
method = self._parse_method_from_isj_obj(json_obj, dexindex)
272-
273271
if method:
274272
method_dict[method.class_name].append(method)
275273

0 commit comments

Comments
 (0)