Play Policy Insights in Android Studio

Android Studio provides richer insights and guidance on Google Play policies that may impact your app. This information helps you build safer apps from the start, preventing issues that could disrupt your launch process and cost more time and resources to fix later on.

You can see Play Policy Insights as lint checks. These lint checks present the following information:

  • An overview of the relevant policy.
  • Dos and don'ts to avoid common pitfalls.
  • Links to Play policy pages where you can find the full formal policy and more helpful information and resources.

This feature is intended to provide helpful pre-review guidance so you can have smoother app submission experiences. It doesn't cover every policy, nor does it provide final app review decisions. Always review the full policy in the Policy Center to ensure compliance.

To see if there are any Play Policy Insights for your project, go to Code > Inspect for Play Policy Insights Insights appear in the Problems tool window and also as lint warnings in the corresponding files.

You can run the Play Policy Insights lint checks in your Continuous Integration (CI) builds by adding the latest version of the com.google.play.policy.insights:insights-lint library to your project dependencies (as a lintChecks dependency):

lintChecks("com.google.play.policy.insights:insights-lint:LATEST_VERSION")

...and running lint from the command line.

Understand Play Policy Insights lint checks

Unlike traditional lint checks that often suggest specific code changes or quick fixes, Play Policy Insights lint checks operate differently. Their primary purpose is to make you aware of potential policy issues related to certain permissions or functionalities within their application. The goal is for you to be able to do the following:

  • Understand the potential policy implications.
  • Acknowledge the insights provided.
  • Make necessary changes to their app's design or implementation to ensure compliance. Some of the insights may not be fully resolvable in Android Studio and may require actions in the Google Play Console.

These insights are designed to provide early warnings and guide you toward policy-compliant practices from the outset of the development process. Therefore, quick fixes don't exist for Play Policy Insights lint checks in the same way they do for other lint warnings. Instead, these insights prompt a deeper review of your app's intended behavior and its alignment with Google Play policies.

Disable Play Policy Insights lint checks

You can disable lint checks for the Play Policy Insights feature by unchecking them in the default scope profile. To do this, navigate to File > Settings > Editor > Inspections (on Windows/Linux) or Android Studio > Settings > Editor > Inspections (on macOS). From there, you can disable individual Play Policy Insights checks under Android > Lint > Play Policy.

Feedback

We are continuously working to improve the Play Policy Insights feature. Your feedback is valuable in shaping its future development. If you have any suggestions or encounter any issues, please report them.