ee68b11ad0
Android 16 bug: EncryptedSharedPreferences threw on ANY exception (Keystore busy during screen-lock/BG wakeup) and the code deleted the encrypted prefs file on any failure, permanently erasing session cookies. Now only KeyPermanentlyInvalidatedException (biometric/PIN change) triggers delete; transient failures preserve the file for the next session. Also prevents saving cookies to plain-text fallback prefs if encrypted prefs are unavailable. WorkManager periodic (15 min, requires network) added alongside AlarmManager as a Doze-mode backup for Android 16, where inexact alarms can be batched up to 75 min. UI: sync icon 24→32dp (large widget), 20→28dp (small); reset-time font 9→11sp (large), 8→10sp (small). Security: - All Log.d response-body and URL-bearing logs gated behind BuildConfig.DEBUG - Cookie header value stripped of CRLF to prevent HTTP header injection - LoginActivity coroutine migrated from bare CoroutineScope to lifecycleScope - Widget removed from keyguard (lock-screen) category — usage data is sensitive Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
665 B
XML
17 lines
665 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:minWidth="250dp"
|
|
android:minHeight="55dp"
|
|
android:targetCellWidth="4"
|
|
android:targetCellHeight="2"
|
|
android:minResizeWidth="180dp"
|
|
android:minResizeHeight="55dp"
|
|
android:maxResizeWidth="500dp"
|
|
android:maxResizeHeight="300dp"
|
|
android:resizeMode="horizontal|vertical"
|
|
android:updatePeriodMillis="1800000"
|
|
android:initialLayout="@layout/widget_layout"
|
|
android:widgetCategory="home_screen"
|
|
android:description="@string/widget_description"
|
|
android:previewLayout="@layout/widget_layout" />
|