Files
AFFiNE/packages/frontend/hosts/android/AndroidManifest.xml
T
DarkSky 698c268e3a feat(android-host): implement S2 Android surface, SQLite co-storage, and auth bridge
Upgrade the thin Android host from S1 to S2 across four areas:

- Present real pixel frames via NDK EGL/GLES3 (`glClear` + `eglSwapBuffers`)
  with automatic `EGLSurface` teardown and `CpuFallback` downgrade when EGL
  is unavailable, retaining `pending_frame` on failure until a frame presents.
  Full `wgpu` Vulkan-to-GLES3 rendering lands in `S3-Android`.
- Open in-place `0.27.5` SQLite WAL databases through `affine-store` with
  `busy_timeout = 5000ms` and `onStop()` `PASSIVE` checkpoints. Gate local
  workspaces by the ordered `affine-local-workspace` allowlist with zero disk
  scanning, evict unlisted local handles on shrink, and allow cloud workspaces
  and userspaces directly.
- Implement a file-locked atomic Jetpack Preferences DataStore protobuf codec
  with zero silent corruption wipes, single-lock `getOrCreateInstallationId`,
  pure-Kotlin RFC 4648 Base64 for API 24+, `v1:` AES-GCM envelopes, process-wide
  single-flight `refreshSession` with idempotent `x-affine-refresh-attempt`
  reuse and disk-write retry caching, a default `HttpUrlConnectionRefreshTransport`
  sending `refreshToken` only in the JSON body, `INTERNET` manifest permission,
  and exact `0.27.5` three-cookie plus `affine.preferences_pb` auth cleanup.
- Wire `AndroidBootstrapCoordinator` in `MainActivity.onCreate` with unified
  `WebViewStorageSentinel` validation, active `indexedDB` interception,
  lossless raw preservation of malformed workspace lists, and explicit partial
  mount failure reporting with allowlist-synced retry and write-back gating.
2026-11-27 06:55:48 +09:00

21 lines
785 B
XML

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.affine.pro.host">
<uses-sdk android:minSdkVersion="24" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="false"
android:enableOnBackInvokedCallback="true"
android:label="AFFiNE">
<activity
android:name=".MainActivity"
android:exported="true"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|density|uiMode">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>