Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat clipboard access #503

Draft
wants to merge 316 commits into
base: 14
Choose a base branch
from

Conversation

octocorvus
Copy link
Contributor

This is an initial implementation for denying clipboard read access on a per-app basis. As of now, there isn't a way to explicitly paste clipboard content, so this feature is disabled by default, and can be turned on using the clipboard setting in the privacy section.

Depends On:
GrapheneOS/platform_packages_apps_Settings#236

muhomorr and others added 4 commits August 12, 2024 20:19
Bug: 329205638
Test: pm set-user-restriction --user 0 no_config_brightness 1
Flag: ACONFIG com.android.systemui.enforce_brightness_base_user_restriction DEVELOPMENT
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f9f3fdba4b4995b0ca45732b95de64318642e210)
Merged-In: I47b8b72a5a5c4098b46f0b5dbbf0654513b03aee
Change-Id: I47b8b72a5a5c4098b46f0b5dbbf0654513b03aee
RestrictedLockUtils#getShowAdminSupportDetailsIntent signature change
such that it no longer requires a context.

Flag: NA
Bug: 138786270
Test: built and flashed
(cherry picked from commit 4db275f0e5709bf94c13e6fee06cd90d83e1c988)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:50341746d3b69ba34033e863c9f53c30c56aaa44)
Merged-In: If4ab3030cfa1f9faed5d099077e5e3bab2cba622
Change-Id: If4ab3030cfa1f9faed5d099077e5e3bab2cba622
This upstream feature checks that signatures of updated system apps verify against signatures of
the corresponding system apps.

Such checks are already performed downstream as part of PackageVerityExt, this upstream feature is
an extra layer of protection.
Previously, ACCESS_KEYGUARD_SECURE_STORAGE permission was enough to check that.

Presence of duress password is intended to be unknown unless the owner credential is provided. This
was enforced in the UI layer (Settings app) already, but could be bypassed through UI bugs, such
as the recently patched predictive back gesture bug:
GrapheneOS/platform_packages_apps_Settings@e6ac6fa
@octocorvus octocorvus force-pushed the feat-clipboard-access branch 2 times, most recently from 1bb59de to c95545b Compare August 14, 2024 11:52
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.