A new widget of the launcher's own, drawn by the launcher like the picture and clock widgets. It shows a map of the streets around the car with the car in the middle, the street, and how long the car has stood there, or how fast it drives. A tap opens directions to the car in the maps app. - Traccar: the owner's own server, over HTTPS only, signed in with a token made in Traccar. The latest position comes from /api/positions, and how long the car has been parked from the stops report. Redirects are not followed, so the token goes nowhere else. - The token is kept encrypted with a key in Android's keystore, and is not in backups. One sign-in serves every car widget; each widget follows one device. - Asked for only while a widget can be seen: every two minutes at most while the car is parked, more often while it drives, and less often after a failure. A token Traccar refused is not tried again until the owner signs in anew. - The street comes from Traccar when it has one, else from the phone's own address lookup, kept while the car stays within 40 m. - The map: OpenStreetMap's tiles, kept for a week and then checked again, two at a time at most, with the credit on the map. The map turns dark with the dark theme. - Options sheet: server, token, then the car, with messages for a wrong token, a server that is not Traccar, no HTTPS, a bad certificate, and Android 17's local network permission (the server may be at home). - Shaped like the other widgets: icon-aligned edges and the icon shape's corners. Short and wide, the lines go beside the car; the car keeps clear of the credit. - WidgetSight: the picture widget's "can it be seen" check, now shared. - About: the privacy text names the RSS reader and the car widget among what goes online. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
108 lines
5.0 KiB
XML
108 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Flexera Launcher manifest overrides. Attached to the debug and release build types in build.gradle,
|
|
which outrank Lawnchair's flavor manifests and every library manifest during the merge.
|
|
|
|
Network access: the INTERNET permission comes from Lawnchair's manifest and is kept for the
|
|
launcher's own features: the update check (app.flexera.update.FlexeraUpdater), and what the owner
|
|
sets up (the clock's weather, the RSS reader, the car widget's Traccar server and map).
|
|
Lawnchair's online features stay switched off in code; see app.flexera.FlexeraNetwork.
|
|
-->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<!-- Lets the app hand a downloaded update to Android's installer. The owner still confirms each install. -->
|
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
|
|
|
<!--
|
|
Since Android 17 an app needs this to reach a device on the network the phone itself is on.
|
|
The update server can be such a device: at the owner's home its name leads to its address
|
|
on the home network. Asked for only when a check for updates is stopped by it (About screen),
|
|
and likewise for an RSS feed or the car widget's Traccar server.
|
|
-->
|
|
<uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" />
|
|
|
|
<application>
|
|
|
|
<!--
|
|
The picture widget that comes with the launcher. Not exported: only this launcher can
|
|
place it, and only this launcher knows how to draw it.
|
|
-->
|
|
<receiver
|
|
android:name="app.flexera.widget.PictureWidgetProvider"
|
|
android:exported="false"
|
|
android:label="@string/flexera_picture_widget">
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/flexera_picture_widget_info" />
|
|
</receiver>
|
|
|
|
<!-- The clock widget that comes with the launcher: the time and the date. -->
|
|
<receiver
|
|
android:name="app.flexera.widget.ClockWidgetProvider"
|
|
android:exported="false"
|
|
android:label="@string/flexera_clock_widget">
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/flexera_clock_widget_info" />
|
|
</receiver>
|
|
|
|
<!-- The clock widget's options, a sheet over the home screen. -->
|
|
<activity
|
|
android:name="app.flexera.widget.ClockWidgetConfigActivity"
|
|
android:excludeFromRecents="true"
|
|
android:exported="false"
|
|
android:theme="@style/Theme.Transparent" />
|
|
|
|
<!-- The car widget that comes with the launcher: where the car is, from a Traccar server. -->
|
|
<receiver
|
|
android:name="app.flexera.widget.CarWidgetProvider"
|
|
android:exported="false"
|
|
android:label="@string/flexera_car_widget">
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/flexera_car_widget_info" />
|
|
</receiver>
|
|
|
|
<!-- The car widget's options (Traccar sign-in, the car), a sheet over the home screen. -->
|
|
<activity
|
|
android:name="app.flexera.widget.CarWidgetConfigActivity"
|
|
android:excludeFromRecents="true"
|
|
android:exported="false"
|
|
android:theme="@style/Theme.Transparent"
|
|
android:windowSoftInputMode="adjustResize" />
|
|
|
|
<!-- Opens Android's photo picker for the picture widget; it has no screen of its own. -->
|
|
<activity
|
|
android:name="app.flexera.widget.PictureWidgetConfigActivity"
|
|
android:excludeFromRecents="true"
|
|
android:exported="false"
|
|
android:theme="@style/Theme.Transparent" />
|
|
|
|
<!--
|
|
The home screen's database. Not exported, so other apps cannot reach it. Launcher3 exports
|
|
it for system apps that hold its READ_SETTINGS and WRITE_SETTINGS permissions, but
|
|
Lawnchair's manifest removes the definitions of those two permissions, so nothing ties
|
|
them to this app's signing key: any app could define them for itself and then read,
|
|
change or erase the home screen. The launcher itself never goes through this provider;
|
|
it uses the database directly. Only android:exported changes here; the rest of the
|
|
declaration is in AndroidManifest-common.xml.
|
|
-->
|
|
<provider
|
|
android:name="com.android.launcher3.LauncherProvider"
|
|
android:exported="false"
|
|
tools:replace="android:exported" />
|
|
|
|
</application>
|
|
|
|
</manifest>
|