Files
foto-duplicate-finder-free/app/src/main/AndroidManifest.xml
T
SoftwareApp 22091dd808 feat: turn the paid app into a freemium app with ads and Pro
- add a single AdMob anchored adaptive banner to the free tier
- add UMP consent and a privacy-options entry point before ads load
- add the one-time Play Billing product `pro_no_ads`; Pro removes the banner
  and nothing else, every scan/selection/deletion feature stays free
- cache the entitlement locally, handle pending purchases, acknowledge and
  retry acknowledgement, and restore from Play on resume
- grandfather paid installs through `legacyPro.cutoffEpochMs`, checking both
  the new package and the old paid package declared in <queries>
- move the Play identity to `de.softwareapp_hb.fotodup.finder.free` while
  keeping the Kotlin namespace `de.softwareapp_hb.fotodup.finder`
- add a debug-only Pro toggle and focused monetisation tests
- add AGENTS.md, docs/codemap.md, docs/codemap.mmd and docs/MONETIZATION.md
- update README, PRIVACY, CHANGELOG, ROADMAP, store copy and the Play checklist
- bump to 1.1.0 / versionCode 4
2026-10-20 09:28:29 +02:00

103 lines
4.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!--
Photo access. The app only ever READS the media library and asks the system
(MediaStore.deleteRequest) to delete user-selected items, so it never needs
the highly restricted MANAGE_EXTERNAL_STORAGE permission.
-->
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<!-- Android 14+ partial ("Selected photos") access. -->
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
<!--
Needed only on Android 10 (API 29) to delete via the legacy MediaStore path.
Android 11+ deletes through a user-consented system dialog instead.
-->
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29"
tools:ignore="ScopedStorage" />
<!--
Foreground service used to keep a long scan alive while the app is backgrounded.
The `dataSync` type is the one that matches "user-initiated data processing".
-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<!-- Android 13+: shows the scan progress notification (optional, never required). -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!--
Free-tier ads and the optional Pro purchase are the only network users. Photo
processing never leaves the device. The Google Mobile Ads SDK also merges
AD_ID, WAKE_LOCK and the ACCESS_ADSERVICES_* Privacy Sandbox permissions into
the merged manifest; billing-ktx merges com.android.vending.BILLING. The release
checklist audits the MERGED manifest, not this source file.
-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!--
The freemium build has the applicationId `…finder.free`, while the old paid app
is `…finder`. If the paid app is still installed, LegacyPro reads its
firstInstallTime to grandfather the purchase. This package-visibility query is
the only cross-package signal available without a backend.
-->
<queries>
<package android:name="de.softwareapp_hb.fotodup.finder" />
</queries>
<application
android:name=".FotoDupApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:enableOnBackInvokedCallback="true"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.FotoDupFinder"
tools:targetApi="33">
<!--
Required by the Google Mobile Ads SDK. The value comes from
`admob.appId` in local.properties (or -Padmob.appId=...); the default is
Google's public test app id, which is safe for debug builds.
-->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="${admobAppId}" />
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true" />
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING"
android:value="true" />
<activity
android:name=".MainActivity"
android:exported="true"
android:theme="@style/Theme.FotoDupFinder">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--
No scan logic lives here: it mirrors ScanController's progress into an
ongoing notification and keeps the process alive during a long scan.
-->
<service
android:name=".service.ScanService"
android:exported="false"
android:foregroundServiceType="dataSync" />
</application>
</manifest>