mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-08 06:42:52 -05:00
184 lines
7.7 KiB
XML
184 lines
7.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.geeksville.mesh"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:ignore="GoogleAppIndexingWarning">
|
|
|
|
<!-- If a device is missing a GPS - we will still be able to work though , must be before uses-permission-->
|
|
<uses-feature
|
|
android:name="android.hardware.location"
|
|
android:required="false" />
|
|
<uses-feature
|
|
android:name="android.hardware.location.gps"
|
|
android:required="false" />
|
|
|
|
<!-- per https://github.com/journeyapps/zxing-android-embedded to force support for build 22 -->
|
|
<uses-sdk tools:overrideLibrary="com.google.zxing.client.android" />
|
|
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- only useful if this phone can do BTLE -->
|
|
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> <!-- needed to access bluetooth when app is background -->
|
|
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" /> <!-- for job intent service -->
|
|
|
|
<!--
|
|
This permission is required to allow the application to send
|
|
events and properties to Mixpanel.
|
|
-->
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<!--
|
|
This permission is optional but recommended so we can be smart
|
|
about when to send data.
|
|
-->
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
|
|
<!-- Only for debug log writing, disable for production -->
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
|
|
<!-- We run our mesh code as a foreground service - FIXME, find a way to stop doing this -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
|
|
<!-- Needed to open our bluetooth connection to our paired device (after reboot) -->
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
|
|
<!-- For android >=26 we can use the new BLE scanning API, which allows auto launching our service when our device is seen -->
|
|
<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 -->
|
|
|
|
|
|
<!-- the xing library will try to bring this permission in but we don't want it -->
|
|
<uses-permission
|
|
android:name="android.permission.CAMERA"
|
|
tools:node="remove" />
|
|
|
|
<uses-feature
|
|
android:name="android.hardware.bluetooth_le"
|
|
android:required="false" />
|
|
|
|
<!-- For the modern BLE scanning API -->
|
|
<uses-feature
|
|
android:name="android.software.companion_device_setup"
|
|
android:required="false" />
|
|
|
|
<!-- for USB serial access -->
|
|
<uses-feature
|
|
android:name="android.hardware.usb.host"
|
|
android:required="false" />
|
|
|
|
<!-- hardware acceleration is required for zxing barcode lib -->
|
|
<application
|
|
tools:replace="android:icon"
|
|
android:name="com.geeksville.mesh.MeshUtilApplication"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher_new"
|
|
android:label="@string/app_name"
|
|
android:roundIcon="@mipmap/ic_launcher_new_round"
|
|
android:supportsRtl="true"
|
|
android:hardwareAccelerated="true"
|
|
android:theme="@style/AppTheme">
|
|
|
|
<meta-data
|
|
android:name="com.mixpanel.android.MPConfig.DisableViewCrawler"
|
|
android:value="true" />
|
|
|
|
<!-- Default crash collection and analytics off until we (possibly) turn it on in application.onCreate -->
|
|
<meta-data
|
|
android:name="firebase_crashlytics_collection_enabled"
|
|
android:value="false" />
|
|
<meta-data
|
|
android:name="firebase_analytics_collection_enabled"
|
|
android:value="false" />
|
|
|
|
<!-- we need bind job service for oreo -->
|
|
<service
|
|
android:name="com.geeksville.mesh.service.SoftwareUpdateService"
|
|
android:enabled="true"
|
|
android:exported="false"
|
|
android:permission="android.permission.BIND_JOB_SERVICE"></service>
|
|
|
|
<!-- This is the public API for doing mesh radio operations from android apps -->
|
|
<service
|
|
android:name="com.geeksville.mesh.service.MeshService"
|
|
android:enabled="true"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.geeksville.mesh.Service" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<!-- This is a private service which just does direct communication to the radio -->
|
|
<service
|
|
android:name="com.geeksville.mesh.service.RadioInterfaceService"
|
|
android:enabled="true"
|
|
android:exported="false" />
|
|
|
|
<activity
|
|
android:name="com.geeksville.mesh.MainActivity"
|
|
android:label="@string/app_name"
|
|
android:screenOrientation="portrait"
|
|
android:windowSoftInputMode="stateAlwaysHidden"
|
|
android:theme="@style/AppTheme.NoActionBar">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
|
|
<intent-filter android:autoVerify="true">
|
|
<!-- The QR codes to share channel settings are shared as meshtastic URLS
|
|
|
|
an approximate example:
|
|
http://www.meshtastic.org/s/YXNkZnF3ZXJhc2RmcXdlcmFzZGZxd2Vy
|
|
-->
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
|
|
<data
|
|
android:scheme="https"
|
|
android:host="www.meshtastic.org"
|
|
android:pathPrefix="/c/" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
|
|
</intent-filter>
|
|
|
|
<!-- The USB devices we want to be informed about -->
|
|
<meta-data
|
|
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
|
|
android:resource="@xml/device_filter" />
|
|
</activity>
|
|
|
|
<receiver android:name="com.geeksville.mesh.service.BootCompleteReceiver">
|
|
<!-- handle boot events -->
|
|
<intent-filter>
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
|
|
<!--For HTC devices per https://stackoverflow.com/questions/20441308/boot-completed-not-working-android/46294732#46294732 -->
|
|
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
|
|
|
|
<!-- for testing -->
|
|
<action android:name="com.geeksville.mesh.SIM_BOOT" />
|
|
</intent-filter>
|
|
|
|
<!-- Also restart our service if the app gets upgraded -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
|
<!-- I was using PACKAGE_REPLACED, but MY_PACKAGE_REPLACED is newer and seems cleaner
|
|
<data
|
|
android:scheme="package"
|
|
android:path="com.geeksville.mesh" /> -->
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
|
|
</manifest> |