wip
This commit is contained in:
parent
cea77c2fc3
commit
67de6424d5
2 changed files with 10 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ def check_smali():
|
||||||
for cl in data[f"sdk_{sdk_v}_classes"]:
|
for cl in data[f"sdk_{sdk_v}_classes"]:
|
||||||
cl_f = cl.removesuffix(";").removeprefix("L") + ".smali"
|
cl_f = cl.removesuffix(";").removeprefix("L") + ".smali"
|
||||||
sdk_files = []
|
sdk_files = []
|
||||||
for smalli_dir in plat_smalli_dirs:
|
for smalli_dir in sdk_smalli_dirs:
|
||||||
if (smalli_dir / cl_f).exists():
|
if (smalli_dir / cl_f).exists():
|
||||||
sdk_files.append(smalli_dir / cl_f)
|
sdk_files.append(smalli_dir / cl_f)
|
||||||
if len(sdk_files) == 0:
|
if len(sdk_files) == 0:
|
||||||
|
|
|
||||||
|
|
@ -480,6 +480,15 @@ def stats(db: Path, out: Path, folder_plat_diff_smali: Path):
|
||||||
)[:10]:
|
)[:10]:
|
||||||
print(f" {pk:<70} {occ_package_hid34_non_id[pk]}")
|
print(f" {pk:<70} {occ_package_hid34_non_id[pk]}")
|
||||||
|
|
||||||
|
print()
|
||||||
|
print("Top 10 java.utis.stream")
|
||||||
|
for cl in sorted(
|
||||||
|
filter(lambda x: x.startswith("Ljava/util/stream/"), occ_hid34.keys()),
|
||||||
|
key=lambda x: occ_hid34[x],
|
||||||
|
reverse=True,
|
||||||
|
)[:10]:
|
||||||
|
print(f" {cl:<70} {occ_hid34[cl]}")
|
||||||
|
|
||||||
|
|
||||||
def analyse_sdk_redef(folder: Path, db: Path, out: Path):
|
def analyse_sdk_redef(folder: Path, db: Path, out: Path):
|
||||||
with sqlite3.connect(db) as con:
|
with sqlite3.connect(db) as con:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue