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

uncheck share contacts by default when connecting to a bluetooth device #190

Open
wants to merge 82 commits into
base: 14
Choose a base branch
from

Conversation

dd-dreams
Copy link

Unchecks the box to avoid accidentally sharing contacts and call logs

Solves: GrapheneOS/os-issue-tracker#2339

Matías Hernández and others added 30 commits September 1, 2023 12:05
Note that an NLS that shouldn't be approvable (because its name is too long) but was already approved (either before the max length check was introduced, or through other means) will disappear from the list if the user revokes its access. This might be somewhat confusing, but since this is a very-edge case already it's fine.

Bug: 282932362
Test: manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ff255c6eda1528f01a167a9a65b7f8e414d28584)
Merged-In: I4c9faea68e6d16b1a4ec7f472b5433cac1704c06
Change-Id: I4c9faea68e6d16b1a4ec7f472b5433cac1704c06
* NotificationAccessConfirmationActivity (triggered through CompanionDeviceManager) -> Don't show the dialog, bail out early similarly to other invalid inputs.
* NotificationAccessSettings (from Special App Access) -> No changes, but use the canonical constant now.
* ApprovalPreferenceController (used in NotificationAccessDetails) -> Disable the toggle, unless the NLS was previously approved (in which case it can still be removed).

Fixes: 260570119
Fixes: 286043036
Test: atest + manually
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b88fbf932a1631792a422f8ac34e83e1d6ae74d7)
Merged-In: Ifc048311746c027e3683cdcf65f1079d04cf7c56
Change-Id: Ifc048311746c027e3683cdcf65f1079d04cf7c56
Currently selected IME can inject KeyEvent on DeviceAdminAdd screen to
activate itself as device admin and cause various DoS attacks.

This CL ensures KeyEvent on "Activate" button can only come from system
apps.

Bug: 280793427
Test: atest DeviceAdminActivationTest
(cherry picked from commit 70a501d)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f753a3c8df9e0fd15a445681532492ef5385d8f4)
Merged-In: I6470d1684d707f4b1e86f8b456be0b4e0af5f188
Change-Id: I6470d1684d707f4b1e86f8b456be0b4e0af5f188
…63580', 'googleplex-android-review.googlesource.com/23728493', 'googleplex-android-review.googlesource.com/23545218'] into tm-qpr3-release.

Change-Id: I01fe9e402e6b6b0d99fbae48e95918193ece6d29
This uses the standalone wallpaper picker class from WallpaperPicker2 as
seen in the Pixel stock ROM.
The NFC preference in Settings -> Connected devices -> Connection
preferences doesn't listen to changes from the NFC tile. (This wasn't an
issue in Android 10, because there used to be a SwitchPreference that
listened there.)
If no customization is needed, BoolSetting base class can be used directly from XML by adding
settings:boolSettingField="<class name> <BoolSetting field name>"
to the preference XML definition.
Ported from 11. In 12 fingerprint is handled by the new biometric API and so technically in 12 this is not just disabling fingerprint unlock but all biometrics. This does not affect the Pixel 4 generation of devices with face scanning however as they were released on Q and so use the legacy face API. No frameworks/base changes are needed for 12 in this case other than migration which can be done in another commit.
empratyush and others added 18 commits September 18, 2023 16:45
allowing adding (installed) apps from (owner) user manager ui.
"Storage manager" is supposed to automatically remove backed up photos and videos.
This functionality is not implemented in AOSP, i.e. this toggle doesn't actually work.
Unchecks the box to avoid accidentally sharing contacts and call logs
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.