split out common code for USB and BLE links

This commit is contained in:
geeksville 2020-06-04 12:34:34 -07:00
parent 54c832f591
commit cecc369598
7 changed files with 255 additions and 169 deletions

View file

@ -40,6 +40,9 @@
<uses-permission android:name="android.permission.REQUEST_COMPANION_RUN_IN_BACKGROUND" />
<uses-permission android:name="android.permission.REQUEST_COMPANION_USE_DATA_IN_BACKGROUND" />
<!-- Uart access -->
<uses-permission android:name="com.google.android.things.permission.USE_PERIPHERAL_IO" />
<!-- the xing library will try to bring this permission in but we don't want it -->
<uses-permission
android:name="android.permission.CAMERA"
@ -97,10 +100,16 @@
<!-- This is a private service which just does direct communication to the radio -->
<service
android:name="com.geeksville.mesh.service.RadioInterfaceService"
android:name="com.geeksville.mesh.service.BluetoothInterfaceService"
android:enabled="true"
android:exported="false" />
<!-- This is a private service which just does direct communication to the radio -->
<!-- <service
android:name="com.geeksville.mesh.service.SerialInterfaceService"
android:enabled="true"
android:exported="false" /> -->
<activity
android:name="com.geeksville.mesh.MainActivity"
android:label="@string/app_name"