The icon change landed as a bitmap dropped straight into res/mipmap-anydpi-v26/ and wired to android:icon only, so the installed app kept showing the old art: - android:roundIcon still pointed at @mipmap/ic_launcher (the old vector adaptive icon). Launchers that prefer roundIcon — Pixel Launcher, Samsung One UI — render it in preference to android:icon, so the new bitmap never appeared. Verified on the ow35 emulator drawer: old cyan/green line-art onion while android:icon was already the new PNG. - a bitmap under mipmap-anydpi-v26 is a legacy icon, not an adaptive one: the launcher pads it into the mask itself and it is not density-aware. Now: - drawable-nodpi/onionwire_app_icon.png: the artwork squared to 432x432 with the logo at 62% of the canvas (inside the 66dp/108dp safe zone) over a seamless blurred backdrop of itself, so no launcher mask clips the logo. - mipmap-anydpi-v26/ic_launcher.xml and ic_launcher_round.xml: adaptive icons with that bitmap as the background layer and a transparent foreground. - AndroidManifest.xml: icon=@mipmap/ic_launcher, roundIcon=@mipmap/ic_launcher_round. - Delete the retired vectors (ic_launcher_background/foreground.xml) and the misplaced mipmap-anydpi-v26/onionwire_app_icon.png.
73 lines
3.5 KiB
XML
73 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<!--
|
|
INTERNET is the only permission requested at first launch.
|
|
No camera (invites are typed/pasted, not scanned), no contacts, no
|
|
storage.
|
|
|
|
Tor runs in-process, and the node is kept published across Doze and
|
|
backgrounding by KeepAliveService: a foreground service with an ongoing
|
|
notification, started on unlock, stopped by Lock or by the notification's
|
|
Stop action. Its anchors and the node's lifetime are arbitrated in
|
|
NodeHost/NodeLifetime; the service never owns the node itself.
|
|
-->
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
|
|
<!--
|
|
specialUse, not dataSync. dataSync is documented as "data transfer
|
|
operations" (upload/download, backup/restore, import/export) and the
|
|
official alternatives guide points at WorkManager or a user-initiated
|
|
transfer job — all of which assume a transfer with an end. A node holding
|
|
an inbound onion service open and draining a retry queue has no end and no
|
|
progress to report, so specialUse ("valid foreground service use cases
|
|
that aren't covered by the other types") is the honest declaration. It
|
|
costs a Play Console justification; dataSync would cost a lie.
|
|
-->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
|
|
|
<!-- API 33+. Without it the keep-alive still runs, but its notification is
|
|
hidden from the drawer (the user sees the service in the Task Manager
|
|
instead). Denial is handled, not fatal: see WireViewModel.keepAliveNote. -->
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
|
|
<application
|
|
android:allowBackup="false"
|
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
|
android:fullBackupContent="false"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/Theme.OnionWire">
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:label="@string/app_name"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!--
|
|
Not exported: only this app starts it, from a user-visible unlock.
|
|
stopWithTask is left at its default (false) on purpose — swiping the
|
|
task away must not take the onion offline; the activity is destroyed,
|
|
NodeHost flushes the outbox, and the onion stays published.
|
|
-->
|
|
<service
|
|
android:name=".keepalive.KeepAliveService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="specialUse">
|
|
<property
|
|
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
|
android:value="peer-to-peer messaging node: keeps an inbound onion service published and an outbox retry queue running so peers can deliver messages while the app is backgrounded; there is no user-initiated transfer to bound the work" />
|
|
</service>
|
|
|
|
</application>
|
|
|
|
</manifest>
|