Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Firebase Android Snippets
.github/workflows/android.yml# Firebase Android Snippets

This repository holds code snippets used in Android documentation
on [firebase.google.com](https://firebase.google.com/docs/).
Expand All @@ -11,4 +11,4 @@ We love contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
[![Actions Status][gh-actions-badge]][gh-actions]

[gh-actions]: https://github.com/firebase/snippets-android/actions
[gh-actions-badge]: https://github.com/firebase/snippets-android/workflows/Android%20CI/badge.svg
[gh-actions-badge]: https://github.com/firebase/snippets-android/workflows/Android%20CI/badge.svg
2 changes: 1 addition & 1 deletion messaging/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
android:allowBackup="false"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-medium medium

Starting with Android 12 (API level 31), the android:allowBackup="false" attribute is ignored for device-to-device (D2D) transfers. To ensure that application data is not transferred or backed up on modern Android versions, you should also implement android:dataExtractionRules in the <application> tag. This provides more granular control over what data is included in backups and transfers, which is especially important for apps handling sensitive messaging data.

android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
Expand Down