Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traffic collection for TrackHAR adapter work #1

Closed
baltpeter opened this issue Jul 24, 2023 · 4 comments
Closed

Traffic collection for TrackHAR adapter work #1

baltpeter opened this issue Jul 24, 2023 · 4 comments
Assignees

Comments

@baltpeter
Copy link
Member

baltpeter commented Jul 24, 2023

For writing new adapters for TrackHAR and properly documenting the old ones (tweaselORG/TrackHAR#9), we need to run a new traffic collection as the most recent ones we have are now quite outdated.

Unfortunately, I hadn't thought of that yet when working on tweaselORG/meta#16, and just threw the traffic away for that run. Oh well, I'll just run a new one. But I do also want to do a run with iOS apps.

@baltpeter baltpeter self-assigned this Jul 24, 2023
@baltpeter
Copy link
Member Author

Since the goal here isn't to actually to analyze apps' behaviour (especially not with regards to consent dialogs) but only to collect as many tracking requests as possible, I think it makes sense to use monkey testing.

@baltpeter
Copy link
Member Author

On Android, that's pretty easy with a command like this:

adb shell monkey -p de.hafas.android.db --throttle 50 --pct-syskeys 0 100000

However, from my testing, this is very prone to toggling system settings (like the airplane mode) through the quick settings thingy at the top of the screen, even though I used -p to limit the package and --pct-syskeys 0 to prevent system key events. I don't know how to avoid this, so I guess I can only use this in an emulator that I can reset after each run.

@baltpeter
Copy link
Member Author

On iOS, we could use https://github.com/testableapple/xcmonkey but that requires macOS and I can't be bothered with that right now.

@baltpeter
Copy link
Member Author

This has now finished running. The source code is in https://github.com/tweaselORG/experiments/tree/main/monkey-july-2023. The data will be published through tweaselORG/meta#33.

I analysed 804 apps on Android and 1062 apps on iOS. There were 126,161 requests in total.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant