Skip to content

Add Google Data Safety and Privacy Policy retrieval support#3597

Open
Copilot wants to merge 11 commits intomasterfrom
copilot/add-google-data-safety-support
Open

Add Google Data Safety and Privacy Policy retrieval support#3597
Copilot wants to merge 11 commits intomasterfrom
copilot/add-google-data-safety-support

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

Adds tooling and techniques for retrieving Google Play Data Safety declarations and app privacy policies for Android security testing.

Changes

Tool: MASTG-TOOL-0145 (google-play-scraper)

  • Documents Node.js library for scraping Google Play Store metadata
  • Provides programmatic and CLI usage patterns for extracting Data Safety sections and privacy policy URLs

Technique: MASTG-TECH-0142 (Retrieving Google Data Safety Section)

  • Browser method via https://play.google.com/store/apps/datasafety?id=<package-id>
  • Automated retrieval using google-play-scraper
  • Explains Data Safety categories per Google's specification: data types, security practices, usage/handling
  • Validation guidance for comparing declared vs actual app behavior

Technique: MASTG-TECH-0143 (Retrieving App Privacy Policy)

  • Covers Google Play apps (browser, google-play-scraper) and non-Play apps (in-app links, apktool extraction, developer websites)
  • Guidance on interpreting privacy policies for security assessment
  • References GDPR/CCPA requirements

Example Usage

const gplay = require('google-play-scraper');

// Get Data Safety section
gplay.datasafety({appId: 'com.example.app'})
  .then(data => console.log(JSON.stringify(data, null, 2)));

// Get privacy policy URL
gplay.app({appId: 'com.example.app'})
  .then(data => console.log('Privacy Policy:', data.privacyPolicy));

These techniques enable testers to identify discrepancies between declared and actual data handling practices during mobile app security assessments.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for Google Data Safety section and privacy policy</issue_title>
<issue_description>- Add a tool https://github.com/facundoolano/google-play-scraper

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 18, 2025 09:05
…cy Policy

Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com>
Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com>
Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for Google Data Safety section and privacy policy Add Google Data Safety and Privacy Policy retrieval support Dec 18, 2025
Copilot AI requested a review from cpholguera December 18, 2025 09:11
@cpholguera cpholguera requested a review from Diolor December 18, 2025 09:13
@cpholguera cpholguera marked this pull request as ready for review December 18, 2025 10:00
- Data sharing with third parties not disclosed
- Required data collection marked as optional

## Caveats and Limitations
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is not possible to distinguish between what is being declared by SDKs and the main app. However, the developer of the main app is held responsible as soon as they integrate an SDK.

Copy link

@anhd97088-sudo anhd97088-sudo left a comment

Choose a reason for hiding this comment

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

Data confirmed


According to the [Google Play Data Safety documentation](https://support.google.com/googleplay/android-developer/answer/10787469), the Data Safety section is organized into the following categories:

### Data Types
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not all sections from that article are here. E.g. The "Data Purposes" is missing.

Why is "data type" first? Is it arbitrary, or is there a communication goal?

Image

Comment on lines +239 to +240
- [GDPR Privacy Policy Requirements](https://gdpr.eu/privacy-notice/)
- [CCPA Privacy Policy Requirements](https://oag.ca.gov/privacy/ccpa)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we discuss those anywhere in our i.e. KNOW or generic knowledge to link internally first?

@In3tinct In3tinct mentioned this pull request Jan 18, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Google Data Safety section and privacy policy

4 participants