Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.
android: disable R8 name obfuscation & document Play Protect sideloading (#11)
eren-99889d1377c8345
diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.proindex 30fffec..246a74b 100644--- a/android/app/proguard-rules.pro+++ b/android/app/proguard-rules.pro@@ -1,3 +1,8 @@+# Keep class and method names readable in release APKs while still letting R8+# shrink unused code and resources, so crash stack traces from users read as+# they are, without a mapping file.+-dontobfuscate+# Preserve annotations (required by JNA @Structure.FieldOrder on UniFFI structs),# generic signatures, inner classes ($ByValue / $ByReference), and line numbers.-keepattributes *Annotation*,Signature,InnerClasses,EnclosingMethod,SourceFile,LineNumberTablediff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.mdindex ccb30b4..363acb7 100644--- a/docs/guide/getting-started.md+++ b/docs/guide/getting-started.md@@ -22,7 +22,9 @@ This guide walks you through installing NectarLink on Windows 11 and Android, co### On Android1. Download `Nectarlink-<version>-android.apk` from the GitHub Releases page (or scan the QR code shown when Windows setup finishes, or in the PC walkthrough).-2. Open the downloaded APK and allow installation if Android prompts you. Because NectarLink supports full SMS/MMS messaging, call logs, and optional `All files access` for mounting phone storage in File Explorer (permissions that Google Play restricts), the full app is distributed directly as a signed APK with built-in SHA-256 verified updates.+2. Open the downloaded APK and allow installation if Android prompts you. Because NectarLink supports full SMS/MMS messaging, call logs, notification actions, accessibility input, and optional `All files access` for mounting phone storage in File Explorer (permissions that Google Play restricts), the full app is distributed directly as a signed APK with built-in SHA-256 verified updates:+ - If Google Play Protect shows an unrecognized-developer prompt, tap **More details › Install anyway**.+ - Where Google Play Protect's **Enhanced Fraud Protection** is on (185 markets, including India), it blocks browser-sideloaded APKs that declare `READ_SMS`, `BIND_NOTIFICATION_LISTENER_SERVICE`, or `BIND_ACCESSIBILITY_SERVICE` without showing an **Install anyway** button, either install over USB with `adb install -r Nectarlink-<version>-android.apk` or temporarily pause **Scan apps with Play Protect** in **Google Play Store › Profile icon › Play Protect › Settings (gear)** while installing the APK, then turn it back on.3. Open **NectarLink** on your phone.### Uninstallingdiff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.mdindex c1d359c..b3975bd 100644--- a/docs/guide/troubleshooting.md+++ b/docs/guide/troubleshooting.md@@ -37,7 +37,18 @@ Several Android manufacturers add their own proprietary background task killers| **Vivo / iQOO (Funtouch OS / OriginOS)** | Open **Android Settings › Apps › NectarLink › Battery**, select **Unrestricted** (or **High background power usage**), and enable **Autostart** in Background power consumption management. || **Huawei / Honor (EMUI)** | Open **Phone Manager (or System Optimizer) › App launch**, turn **Off** **Manage automatically** for NectarLink, and keep all three toggles (**Auto-launch**, **Secondary launch**, and **Run in background**) turned **On**. |-## 3. Android 13+ "Restricted Settings" (Grayed-Out Notification or Accessibility Switch)+## 3. Android Sideloading: Play Protect Blocks and Android 13+ "Restricted Settings"++### Google Play Protect Blocks the APK Without an "Install anyway" Button++When you download `Nectarlink-<version>-android.apk` in a mobile browser, Google Play Protect may show a prompt:++- **If "More details" is shown**: Tap **More details › Install anyway**.+- **If there is no "Install anyway" button (only "OK")**: Google Play Protect's **Enhanced Fraud Protection**, on in 185 markets including India, automatically blocks browser-sideloaded APKs that declare `READ_SMS`, `BIND_NOTIFICATION_LISTENER_SERVICE`, or `BIND_ACCESSIBILITY_SERVICE` in `AndroidManifest.xml`. To install:+ 1. **Option A (On phone)**: Open **Google Play Store**, tap your **profile icon** (top right) › **Play Protect** › **Settings** (gear icon), and temporarily toggle off **Scan apps with Play Protect** (choose **Pause**). Install `Nectarlink-<version>-android.apk`, then turn **Scan apps with Play Protect** back on.+ 2. **Option B (Over USB from PC)**: Connect your phone with USB debugging enabled and run `adb install -r Nectarlink-<version>-android.apk`.++### Android 13+ "Restricted Settings" (Grayed-Out Notification or Accessibility Switch)On Android 13 and newer, if you install an APK downloaded from a browser or GitHub Releases, Android disables the **Notification access** and **Accessibility** switches until you explicitly allow restricted settings for that app: