Skip to content

Firebase AI Logic: Data safety form answers

If your Android app includes Firebase AI Logic (formerly Vertex AI in Firebase) from Google, its data counts as data your app collects. What it collects depends on how you use it, so each data type below has a condition.

Matched dependencies: com.google.firebase:firebase-ai, com.google.firebase:firebase-vertexai.

Data type When Collected Shared Purposes
Other user-generated content If the app sends user-written prompts or text Yes No App functionality
Photos If the app sends user photos/images to the model Yes No App functionality
User IDs Only if a user is signed in with Firebase Authentication Yes No App functionality

The skill lists these under Needs your review and checks the code for the condition (for example a setUserId call) before you include them.

Sends whatever “developer-defined end-user data” your app puts in requests (prompts, images, files), so declare the matching types. Sends the Firebase Auth user ID on every request if a user is signed in. If AI monitoring is enabled in the console, prompts and outputs from sampled requests are retained.

data-safety-from-code finds Firebase AI Logic in your build.gradle or version catalog, adds these answers with a link to the source, and merges them with every other SDK and with what your own code sends. You get a CSV to import and a report showing where each answer comes from.

Inside a Claude Code session
/plugin marketplace add sanikantv/data-safety-from-code
/plugin install data-safety-from-code@data-safety-from-code
Or from your shell
claude plugin marketplace add sanikantv/data-safety-from-code
claude plugin install data-safety-from-code@data-safety-from-code

Related: collected vs shared · how to fill the Data safety form · all SDKs

Want the form filled from your own code, with evidence? Install the skill. If this page helped,star the repo on GitHub.

Built by Sanikant. Set in Google Sans Flex (SIL Open Font License), icons from Material Symbols (Apache 2.0). Google Play is a trademark of Google LLC; this project is not affiliated with Google. Output is a draft for review: you are responsible for your Data safety declaration.