language:en license:cc-by-nc-4.0 arxiv:2303.08213 region:us App Privacy Policies Data Safety Labels
---
license: cc-by-nc-4.0
language:
- en
tags:
- App Privacy Policies
- Data Safety Labels
---
# GoogleDataSafety

Data used in the papers: 
- [Unpacking Privacy Labels: A Measurement and Developer Perspective on Google's Data Safety Section](https://www.usenix.org/conference/usenixsecurity24/presentation/khandelwal)
- [The Overview of Privacy Labels and their Compatibility with Privacy Policies](https://arxiv.org/abs/2303.08213)
- [Comparing Privacy Labels of Applications in Android and iOS](https://dl.acm.org/doi/10.1145/3603216.3624967)

****

## Getting Started

In this dataset you have the following data:
1. App Privacy Policies
2. Data Safety Sections Labels

The data is collected from the apps in Google Play Store over the period of 2022-2023.

****

### 1. Code Structure
```
├── raw_policies/
│   ├── policy_raw_0.zip
│   ├── policy_raw_100000.zip
│   ├── policy_raw_200000.zip
│   ├── policy_raw_300000.zip
│   └── ...
├── data_safety_sections/
│   ├── 05_30/
│   ├── 06_20/
│   ├── 06_28/
│   ├── 07_01/
│   └── ...
```

### 2. Using Privacy Policy Data
Unzip the zip file and you will see the following structure:
```
├── policy_raw_0/
│   ├── <app_id>
│   │   ├── <privacy_policy_timestamp>.txt  # Raw HTML of the privacy policy
│   │   └── site.txt                        # URL of the privacy policy
│   └── ...
```

### 3. Loading DSS Label Data
```python
import pandas as pd

# Load the data
# !pip install pyarrow

data = pd.read_parquet('data_safety_sections/05_30/all_data_05_30.brotli')
```

---------

## Contact

For any questions or feedback, feel free to contact [Asmit Nayak](mailto:anayak6@wisc.edu) and [Rishabh Khandelwal](mailto:rkhandelwal3@wisc.edu).


## Citation

If you find this dataset useful in your research or applications, please kindly cite:
```
@inproceedings {google_data_safety_section,
author = {Rishabh Khandelwal and Asmit Nayak and Paul Chung and Kassem Fawaz},
title = {Unpacking Privacy Labels: A Measurement and Developer Perspective on Google's Data Safety Section},
booktitle = {33rd USENIX Security Symposium (USENIX Security 24)},
year = {2024},
address = {Philadelphia, PA},
url = {https://www.usenix.org/conference/usenixsecurity24/presentation/khandelwal},
publisher = {USENIX Association},
month = aug
}
```