-
Notifications
You must be signed in to change notification settings - Fork 79
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
Android benchmarking app #326
Conversation
I've noticed that the app can be suspended when throughput data transmission takes a few seconds:
Is it possible to keep this app from being frozen by the Activity Manager? https://source.android.com/docs/core/perf/cached-apps-freezer Maybe keep the display on to keep the app in the foreground? |
extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Receiver.kt
Outdated
Show resolved
Hide resolved
extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Model.kt
Outdated
Show resolved
Hide resolved
I usually have a developer setting that keeps the screen on while on USB adb. That does help prevent freezing the app. The other method is to do to the Developer settings and changing "Suspend execution for cached apps" to "disabled". A cleaner long term solution would be to create a background service in this app, so that it can continue working without beeing frozen, even if you switch to a different app, but that's a task for another PR :-) |
@barbibulle when going from phone (RFCOMM client) to USB dongle (RFCOMM server) I've noticed that even though we're calling create insecure RFCOMM socket, I get a pairing request popup on Android. This makes a test hard to automate using the ADB shell launcher commands. Do you know what maybe causing the bonding attempt? |
The "insecure" part of setting up an RFComm socket is a bit misleading. It's just about whether you want MITM protection or not, but not whether you want any form of security or not. Android will always require the devices to have a pairing and to encrypt the channel. If you don't bond, it will re-pair every time you setup the socket. To avoid the dialog coming up everytime, what you need to do is to bond the devices. You can do that from either side. From the Bumble side, you can use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the info and context. Looking forward to having the BtBench app as part of the Bumble project.
Squashed commits: [ee00d67] wip
58e119c
to
3dc2e40
Compare
Android counterpart to
bench.py
. Only RFComm Server, RFComm Client, L2CAP Server and L2CAP Client are supported in this version.Also, BT addresses must be entered manually, scanning isn't built-in.