Skip to content

Navigation Menu

Sign inAppearance settings
Appearance settings

Commit 95535e4

Browse filesBrowse the repository at this point in the historyBrowse files
committed
Add privacy module READMEs
Change-Id: If5141c563f0d39cd6a64b3b1d7d6437a0f5bdb08
1 parent 7beb3f2 commit 95535e4
Copy full SHA for 95535e4

4 files changed

+39-12Lines changed: 39 additions & 12 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎samples/privacy/data/README.md‎

Copy file name to clipboardExpand all lines: samples/privacy/data/README.md
+7-3Lines changed: 7 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# PackageVisibility samples
1+
# Privacy - Data minimization samples
22

3-
// TODO
3+
This module contains samples that shows how your app can
4+
[minimize the visibility](src/main/java/com/example/platform/privacy/data/PackageVisibility.kt) into
5+
the set of other installed apps and your use of non-resettable device identifiers by using
6+
[Package Visibility APIs](https://developer.android.com/training/package-visibility/declaring) and
7+
appropriated [identifiers](https://developer.android.com/training/articles/user-data-ids#common-use-cases).
48

59
## License
610

711
```
8-
Copyright 2022 The Android Open Source Project
12+
Copyright 2023 The Android Open Source Project
913
1014
Licensed under the Apache License, Version 2.0 (the "License");
1115
you may not use this file except in compliance with the License.
Collapse file

‎samples/privacy/permissions/README.md‎

Copy file name to clipboardExpand all lines: samples/privacy/permissions/README.md
+21-2Lines changed: 21 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
# Permission samples
22

3-
> Work-in progress
3+
The samples in this directory showcase how to request
4+
[single](src/main/java/com/example/platform/privacy/permissions/SinglePermission.kt)
5+
and [multiple](src/main/java/com/example/platform/privacy/permissions/MultiplePermissions.kt)
6+
permissions using the [ActivityResultContracts] API part of:
7+
8+
- [androidx.activity](https://developer.android.com/jetpack/androidx/releases/activity),
9+
version 1.2.0 or later
10+
- or [androidx.fragment](https://developer.android.com/jetpack/androidx/releases/fragment),
11+
version 1.3.0 or later
12+
13+
In addition, it showcases how to [request permissions in Jetpack Compose](src/main/java/com/example/platform/privacy/permissions/ComposePermissions.kt)
14+
using [accompanist-permissions](https://github.com/google/accompanist/tree/main/permissions) library.
15+
16+
> **Important:** All samples run independent of each other but the permission status are shared since
17+
they are part of the same app. Thus accepting or revoking a permission in one sample might affect
18+
the other.
19+
20+
While these samples follow the recommended flow when requesting permissions, code and UX is simplified
21+
for brevity. For more check out the documentation at
22+
https://developer.android.com/guide/topics/permissions/overview
423

524
## License
625

726
```
8-
Copyright 2022 The Android Open Source Project
27+
Copyright 2023 The Android Open Source Project
928
1029
Licensed under the Apache License, Version 2.0 (the "License");
1130
you may not use this file except in compliance with the License.
Collapse file

‎samples/privacy/transparency/README.md‎

Copy file name to clipboardExpand all lines: samples/privacy/transparency/README.md
+8-3Lines changed: 8 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
# DataAccess samples
1+
# Privacy - Transparency and control samples
22

3-
// TODO
3+
Help users understand how your app accesses their data, and give users more control.
4+
5+
## [Data access](src/main/java/com/example/platform/privacy/transparency/DataAccess.kt)
6+
7+
The sample showcases how to use data access auditing APIs to detect when your app, or an SDK
8+
dependency, performs operations that are associated with a permission.
49

510
## License
611

712
```
8-
Copyright 2022 The Android Open Source Project
13+
Copyright 2023 The Android Open Source Project
914
1015
Licensed under the Apache License, Version 2.0 (the "License");
1116
you may not use this file except in compliance with the License.
Collapse file

‎samples/privacy/transparency/src/main/java/com/example/platform/privacy/transparency/DataAccess.kt‎

Copy file name to clipboardExpand all lines: samples/privacy/transparency/src/main/java/com/example/platform/privacy/transparency/DataAccess.kt
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ import androidx.compose.runtime.Composable
2020
import com.google.android.catalog.framework.annotations.Sample
2121

2222
@Sample(
23-
name = "DataAccess",
24-
description = "TODO: Add description"
23+
name = "Data Access",
24+
description = "Coming soon"
2525
)
2626
@Composable
2727
fun DataAccess() {
28-
// TODO: implement your sample.
29-
// You can also use Activity or Fragment, simply tag them with the @Sample annotation
28+
// TODO: implement data access sample
3029
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.