Skip to content

Commit

Permalink
Add flag to set fullbackup to false (#3996)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/488551667048375/1206133268245246/f

### Description
Adds the fullBackupOnly set to false to hopefully avoid some devices to
do a full backup instead of a key-value.

### Steps to test this PR

- [x] Download the `test_cloud_backup.sh` script attached in the task
and give it execution permissions (or run `chmod -R 777
test_cloud_backup.sh`)
- [x] Add a log in the `getVariantKey()` method inside
`VariantManagerImpl` to show the value of the variant we are returning.
- [x] Build the app and go throw the welcome screen
- [x] In the console execute `./test_cloud_backup.sh
com.duckduckgo.mobile.android.debug`
- [x] If it fails check that you have backups enabled on your phone.
- [x] Once it succeds the app would have been re-installed, open it
again manually.
- [x] You should see in the logs the variant changes to `ru`
  • Loading branch information
marcosholgado authored Dec 13, 2023
1 parent 52e6335 commit 6b6dbcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<application
android:name="com.duckduckgo.app.global.DuckDuckGoApplication"
android:backupAgent="com.duckduckgo.app.backup.agent.impl.DuckDuckGoBackupAgent"
android:fullBackupOnly="false"
android:icon="${appIcon}"
android:label="@string/appName"
android:networkSecurityConfig="@xml/network_security_config"
Expand All @@ -41,6 +42,8 @@
android:theme="@style/Theme.DuckDuckGo.Light"
android:requestLegacyExternalStorage="true"
tools:ignore="GoogleAppIndexingWarning">
<meta-data android:name="com.google.android.backup.api_key"
android:value="unused" />
<meta-data
android:name="android.webkit.WebView.MetricsOptOut"
android:value="true" />
Expand Down

0 comments on commit 6b6dbcd

Please sign in to comment.