Mock a bluetooth device

39
March 20, 2019, at 00:30 AM

I have to mock a bluetooth device that would first pair with an Android device and then send predefined data to an Android app. I have no access to source code of the app, but I managed to get bluetooth communication packets sent between devices (using wireshark and btsnoop_hci.log). After pairing is done, data could be sent in an infinite loop.

Having this limited info, is there a way to mock such a bluetooh device? Can it be done on a PC or additional hardware is needed?

I'm not a developer, but I have some minor programming experience, mostly in JAVA. Any hint on the subject would be beneficial.

Answer 1

You could turn your Smartphone in peripheral mode

Here are some infos on how to do this: https://www.quora.com/What-all-Android-phones-support-BLE-peripheral-mode

READ ALSO
How to determine if a thread from the previous session is currently running

How to determine if a thread from the previous session is currently running

My app launches an AsyncTask thread that retrieves some information from a websiteWhen the user exits the app while the thread is still running, the thread continues to run

24
Add, Use and Remove Payment Methods through Lyft API

Add, Use and Remove Payment Methods through Lyft API

We would like the ability to insert new payment methods, update existing methods, use specific payment methods and delete payment methods (or make inactive) payment methods via the Lyft API

49
Running tests on remote adb server

Running tests on remote adb server

Trying to run gradle tests on remote adb server

20
How do I add a drawable-xhdpi asset to an android project build from Unity?

How do I add a drawable-xhdpi asset to an android project build from Unity?

I inherited a project from another developerIt is a Google cardboard/daydream project using GoogleVR

46