add appsflyer detection
This commit is contained in:
parent
496e1e93c4
commit
c0c06a3ec9
2 changed files with 11 additions and 6 deletions
|
|
@ -169,6 +169,9 @@ def check_app_result(
|
||||||
"google_ads": any(
|
"google_ads": any(
|
||||||
map(lambda x: x.startswith("Lcom/google/android/ads/"), classes)
|
map(lambda x: x.startswith("Lcom/google/android/ads/"), classes)
|
||||||
),
|
),
|
||||||
|
"appsflyer": any(
|
||||||
|
map(lambda x: x.startswith("Lcom/appsflyer/internal/"), classes)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
classes_by_cl[cl_id].extend(classes)
|
classes_by_cl[cl_id].extend(classes)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ def run(
|
||||||
nb_dload = 0
|
nb_dload = 0
|
||||||
nb_dload_fb = 0
|
nb_dload_fb = 0
|
||||||
nb_dload_goo = 0
|
nb_dload_goo = 0
|
||||||
nb_dlaod_fb_and_fb = 0
|
nb_dload_appsflyer = 0
|
||||||
dload_hashes_occ = {}
|
dload_hashes_occ = {}
|
||||||
dload_hashes_ty = {}
|
dload_hashes_ty = {}
|
||||||
for apk, apk_data in summary["apks"].items():
|
for apk, apk_data in summary["apks"].items():
|
||||||
|
|
@ -37,16 +37,18 @@ def run(
|
||||||
dload_hashes_ty[h] = "fb ads"
|
dload_hashes_ty[h] = "fb ads"
|
||||||
elif dload["google_ads"]:
|
elif dload["google_ads"]:
|
||||||
dload_hashes_ty[h] = "gg ads"
|
dload_hashes_ty[h] = "gg ads"
|
||||||
|
elif dload["appsflyer"]:
|
||||||
|
dload_hashes_ty[h] = "appsflyer"
|
||||||
else:
|
else:
|
||||||
dload_hashes_ty[h] = "other"
|
dload_hashes_ty[h] = "other"
|
||||||
|
|
||||||
nb_dload += 1
|
nb_dload += 1
|
||||||
if dload["facebook_ads"] and dload["google_ads"]:
|
if dload["facebook_ads"]:
|
||||||
nb_dlaod_fb_and_fb += 1
|
|
||||||
elif dload["facebook_ads"]:
|
|
||||||
nb_dload_fb += 1
|
nb_dload_fb += 1
|
||||||
elif dload["google_ads"]:
|
if dload["google_ads"]:
|
||||||
nb_dload_goo += 1
|
nb_dload_goo += 1
|
||||||
|
if dload["appsflyer"]:
|
||||||
|
nb_dload_appsflyer += 1
|
||||||
if apk_data["nb_visited_activity"] == 0:
|
if apk_data["nb_visited_activity"] == 0:
|
||||||
apk_with_zero_act_visited.add(apk)
|
apk_with_zero_act_visited.add(apk)
|
||||||
if apk_data["does_reflection"]:
|
if apk_data["does_reflection"]:
|
||||||
|
|
@ -75,7 +77,7 @@ def run(
|
||||||
f"number of dyn load of google ads {nb_dload_goo}"
|
f"number of dyn load of google ads {nb_dload_goo}"
|
||||||
)
|
)
|
||||||
print(
|
print(
|
||||||
f"number of dyn load of google+fb (not supposed to happen) {nb_dlaod_fb_and_fb}"
|
f"number of dyn load of appsflyer code {nb_dload_appsflyer}"
|
||||||
)
|
)
|
||||||
print()
|
print()
|
||||||
hashes = list(dload_hashes_occ.keys())
|
hashes = list(dload_hashes_occ.keys())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue