Files
LLeMbas-Android/app/src/main/AndroidManifest.xml
T
HomerandClaude Fable 5.2 adc1c4fe3e
CI / check (push) Canceled after 0s
Reports, "notify when", report notifications, and a page as a card (spec 3.8.0)
Built against the provisional /api/v2 shapes of the round's brief; the
server's fixtures are pinned when its reports routes are on its dev.

- Reports in the drawer with an unread badge; routes reports and
  report/{id}. The list: unread first, title, the schedule's name, when,
  importance marked; pull to refresh; swipe to mark read or to delete (asks
  once). A report reads as a page (Markdown as the chat draws it) and is
  marked read on open; Share hands over its text; Reply asks the server for
  the report's chat and opens the ordinary chat screen entered from the
  report: "Report: <title>" in the bar, Back to the report, never added to
  the chats list.
- Scheduled: "Notify when" on the form -- Every run / When... (the default
  prefilled) / Never, each with its line; sent as notify and notify_when. A
  run shows its note and a row to its report; the run's chat stays openable.
- Push kind `report`: a Reports channel; unlocked the title and summary,
  on the lock screen only the app's name and "New report"; tap and Open go
  to the report, Mark read needs the phone unlocked. `schedule` and
  `schedule_failed` from an older server are handled as before.
- A page in an answer (an html-view fence, the server's "[page: Title]"
  line, or a `page` step) is one quiet card; no web view, never the source,
  in a chat and in a report. Copy and Share take the one-line projection.
- An id that may come as a string or as an object (a report's chat, a run's
  report) is read either way.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 09:38:58 +00:00

222 lines
9.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<!-- Dictation and the assistant's voice. Asked for the first time either is used. -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- A spoken conversation through a Bluetooth headset: its microphone made the route. -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<!-- The wake word (opt-in): a microphone foreground service, and "tap to listen again"
after a restart. -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Phone actions: an alarm or a timer, set through the clock app once the person confirms. -->
<uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
<!-- Phone actions: run a Tasker task by its name (Tasker asks the person to allow it). -->
<uses-permission android:name="net.dinglisch.android.tasker.PERMISSION_RUN_TASKS" />
<queries>
<!-- UnifiedPush distributors (ntfy and others) are found by this action. -->
<intent>
<action android:name="org.unifiedpush.android.distributor.REGISTER" />
</intent>
<!-- The phone's own speech recognisers, for Settings › Voice input › Phone. -->
<intent>
<action android:name="android.speech.RecognitionService" />
</intent>
<!-- Phone actions: "open an app" by its name, and the navigation apps a route goes to. -->
<intent>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent>
<package android:name="com.google.android.apps.maps" />
<package android:name="net.osmand.plus" />
<package android:name="net.osmand" />
<package android:name="net.osmand.dev" />
<package android:name="net.dinglisch.android.taskerm" />
</queries>
<application
android:name=".LembasApp"
android:allowBackup="false"
android:dataExtractionRules="@xml/data_extraction_rules"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:localeConfig="@xml/locales_config"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:theme="@style/Theme.Lembas">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- The assistant's sheet as an activity: the tile, the widget, the shortcuts,
ACTION_ASSIST, a headset's voice button, and the lock-screen path (it asks to
unlock before sending anything). -->
<activity
android:name=".assist.AssistActivity"
android:exported="true"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:taskAffinity=""
android:theme="@style/Theme.Lembas.Sheet"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.ASSIST" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<!-- A headset's voice button: the sheet opens listening. -->
<intent-filter>
<action android:name="android.intent.action.VOICE_COMMAND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.speech.action.VOICE_SEARCH_HANDS_FREE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".share.ShareActivity"
android:exported="true"
android:excludeFromRecents="true"
android:label="@string/share_label"
android:taskAffinity=""
android:theme="@style/Theme.Lembas.Sheet"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/*" />
<data android:mimeType="image/*" />
<data android:mimeType="application/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="application/*" />
</intent-filter>
</activity>
<!-- Phone actions: asks another app for a result (OsmAnd's get_info) and goes. -->
<activity
android:name=".actions.ActionRunner$ResultActivity"
android:excludeFromRecents="true"
android:exported="false"
android:taskAffinity=""
android:theme="@style/Theme.Lembas.Sheet" />
<!-- The home-screen widget: Ask, the microphone, the last assistant chat. -->
<receiver
android:name=".widget.AskWidget"
android:exported="true"
android:label="@string/tile_ask">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_ask" />
</receiver>
<!-- The digital assistant: Settings › Default apps › Digital assistant app. -->
<service
android:name=".assist.LembasAssistService"
android:exported="true"
android:label="@string/app_name"
android:permission="android.permission.BIND_VOICE_INTERACTION">
<meta-data android:name="android.voice_interaction" android:resource="@xml/assist_service" />
<intent-filter>
<action android:name="android.service.voice.VoiceInteractionService" />
</intent-filter>
</service>
<service
android:name=".assist.LembasAssistSessionService"
android:exported="true"
android:permission="android.permission.BIND_VOICE_INTERACTION" />
<service
android:name=".assist.LembasRecognitionService"
android:exported="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.speech.RecognitionService" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="android.speech" android:resource="@xml/recognition_service" />
</service>
<service
android:name=".assist.AskTileService"
android:exported="true"
android:icon="@drawable/ic_notification"
android:label="@string/tile_ask"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<!-- A button, not a switch. -->
<meta-data android:name="android.service.quicksettings.TOGGLEABLE_TILE" android:value="false" />
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
<service
android:name=".push.LembasPushService"
android:exported="false">
<intent-filter>
<action android:name="org.unifiedpush.android.connector.PUSH_EVENT" />
</intent-filter>
</service>
<!-- The wake word: listens only while its notification is up (wake/WakeWordService.kt). -->
<service
android:name=".wake.WakeWordService"
android:exported="false"
android:foregroundServiceType="microphone" />
<receiver
android:name=".wake.WakeBootReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
<receiver
android:name=".push.CardActionReceiver"
android:exported="false" />
<!-- A report's Mark read, from its notification. -->
<receiver
android:name=".push.ReportActionReceiver"
android:exported="false" />
<!-- A scheduled task's Pause, from its notification. -->
<receiver
android:name=".push.ScheduleActionReceiver"
android:exported="false" />
<!-- A photo for the composer: the camera app writes into one file in the cache. -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.files"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>