Free Google Play Data Safety Form Generator
The generator decodes the "Invalid Data safety form" email, finds the SDKs in your Android app, and writes the answers and a CSV for Play Console.
- Data safety form
- Android SDKs
- Play Console CSV
Build your form with the Google Play Data Safety Form Generator.
Complete 4 quick steps.
Paste the "Issue found: Invalid Data safety form" email or the message from the Policy status page in Play Console. The generator picks out the flagged data types, version codes and SDKs.
Paste your build.gradle(.kts), libs.versions.toml, the output of ./gradlew :app:dependencies, pubspec.yaml (Flutter), package.json (React Native) or AndroidManifest.xml. To pick SDKs by hand, open the Choose SDKs tab.
Select what your own code does. Count only data that leaves the device (sent to your server or to a third party). You don't declare data that the app processes only on the device.
A web page where users ask you to delete their account and its data, without reinstalling the app.
How your Data safety section looks on Google Play.
These are the answers to enter in Play Console > App content > Data safety. Review every row: you are responsible for what you declare.
The generator suggests answers from your selections and the public disclosures of each SDK. It isn't legal advice, and it doesn't analyze your app code or network traffic. SDK behavior changes between versions and depends on how you configure it. You are solely responsible for the accuracy of your Data safety form.
How to fix the "Invalid Data safety form" error.
Google found user data leaving your app that your Data safety form doesn't declare, and a third-party SDK usually sends that data.
Read the email. It lists the version code, the data type (for example Device or other IDs), and sometimes the SDK that Google believes sent the data.
Find every SDK in your app. Google holds you responsible for the data any library you bundle collects, even through features you never call.
Choose a fix. Declare the data type in your Data safety form, or remove the code or SDK that sends it. Remove the
AD_IDpermission if you don't use ads.Update the form in Play Console under Policy and programs > App content > Data safety, or import the CSV from the generator.
Replace every build that doesn't match the form. After a code change, upload a new release with a higher version code to every track that still serves the old one, including internal, closed, and open testing tracks. Roll out to 100%.
Update your Privacy Policy so it describes the same data and third parties as your Data safety form.
Send the changes for review from the Publishing overview page.
Import the Google Play Data Safety Form Generator CSV into Play Console.
Open Play Console and select your app.
Go to Policy and programs > App content, then select Data safety and click Start (or Manage).
Click Import from CSV at the top right and upload the file. Importing overwrites any answers already in the form.
Step through every page of the form, check each answer and click Save.
Go to Publishing overview and send the changes to Google for review.
Common Data safety rejections explained.
| Flagged in the email | Most common cause | How to fix it |
|---|---|---|
| Device or other IDs | Ad SDKs (AdMob, AppLovin, Unity Ads), Firebase Analytics, attribution SDKs (Adjust, AppsFlyer), push SDKs (OneSignal) or any code reading ANDROID_ID or the Advertising ID. |
Declare Device or other IDs as collected (and shared, for ad and attribution SDKs), or remove the SDK. Removing the com.google.android.gms.permission.AD_ID permission stops the Advertising ID being read. |
| Approximate location / Precise location | Ad networks that estimate location from the IP address, or your app requesting location permissions and sending coordinates to a server. | Declare the location type that matches the permission you request. Don't declare precise location if you only request ACCESS_COARSE_LOCATION. |
| App activity: Installed apps | An SDK (often an ad or anti-fraud SDK) or your code querying the list of installed packages and sending it off the device. | Declare Installed apps, or remove the SDK. Then check whether your app needs the QUERY_ALL_PACKAGES permission at all. |
| App activity: App interactions | Analytics SDKs such as Firebase Analytics, Mixpanel or Amplitude, and most ad SDKs. | Declare App interactions as collected for Analytics (and Advertising or marketing if an ad SDK uses it). |
| App info and performance: Crash logs / Diagnostics | Crash reporting SDKs such as Firebase Crashlytics, Sentry or Bugsnag. Most ad SDKs send diagnostics too. | Declare Crash logs and Diagnostics as collected for Analytics or App functionality. |
| Personal info: Email address / User IDs | Login, sign-up or newsletter features, or SDKs where you call setUserId() or pass an email (push, support chat, analytics). |
Declare the personal info for Account management or App functionality, and make sure you provide an account deletion URL. |
| Invalid Privacy Policy | The Privacy Policy link is broken, isn't a public web page, or doesn't describe the data you declare in the Data safety form. | Publish a Privacy Policy that names the data types and third-party SDKs from your form, and link it in Play Console. |
| Data deletion questions | Your app lets users create an account, but you didn't provide a working web link for account deletion requests. | Add an account deletion page on your website and enter its URL in the Data deletion section of the form. |
Privacy Policy Generator
Your Privacy Policy must match your Data safety form.
Google compares your Data safety answers with your Privacy Policy, and a mismatch is grounds for another rejection. Generate a Privacy Policy for your Android app that covers the SDKs you use.
Questions about the Google Play Data Safety Form Generator.
What does "Invalid Data safety form" mean?
"Invalid Data safety form" means Google detected your app sending user data off the device that your Data safety form doesn't declare as collected.
The email names the data type (for example Device or other IDs) and the version code where Google detected it. Google won't approve new updates until the form matches what the app does. Paste the email in step 1 of the generator, and it picks out the flagged data types, version codes and SDKs.
Is this Data Safety Form Generator free?
Yes, the Google Play Data Safety Form Generator is free and needs no account.
My app doesn't collect any data. Why was it rejected?
A third-party SDK is almost always the reason your app was rejected. Ad networks, analytics, crash reporting, push notifications, and even map libraries send device identifiers or diagnostics to their servers.
Google counts any data an SDK in your app sends off the device as data your app collects, even data you never use yourself. Paste your build files in step 2 of the generator, and it finds the SDKs and adds the data each one sends to your answers.
What's the difference between "collected" and "shared"?
Do I need to declare data that's processed ephemerally?
Yes, you need to declare data that's processed ephemerally as collected. Ephemeral data is used only in memory and kept no longer than needed for a real-time request. Mark it as processed ephemerally, and Google Play leaves it off your store listing. The generator marks the data each SDK processes ephemerally.
Which version code is the problem?
The problem is the version code the email lists, where Google found the issue. That build sometimes stays active in a testing track (internal, closed, or open testing) even when production uses a newer one.
Every active build in every track must match your Data safety form, so upload a build with a higher version code to each affected track. Paste the email in step 1 of the generator to see each version code it names.
Does Google check my Data safety form against my Privacy Policy?
Yes, Google checks your Data safety form against your Privacy Policy. Your Privacy Policy must be a public, working web page that describes the same data collection and sharing you declare in the form. Write a Privacy Policy that names the same data with the Privacy Policy Generator.