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

add toggle for screencapture on FLAG_SECURE activities #209

Open
wants to merge 85 commits into
base: 14
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
53abd6e
add GrapheneOS icon
flawedworld Feb 5, 2022
6de9513
set styles/wallpaper picker action name
thestinger Oct 15, 2022
9bf36be
Settings: Integrate ThemePicker and WallpaperPicker2
kdrag0n Apr 17, 2021
6424983
disable showing wallpaper attribution
thestinger Feb 16, 2021
9fc30d6
add TalkBack accessibility service
thestinger Mar 10, 2021
e5f3d37
get outer NFC preference to listen for changes
inthewaves Sep 21, 2020
b735b89
disable legacy suggestions
thestinger Oct 8, 2019
684ad4b
add missing android title for top_level_settings
Apr 11, 2020
cf7bff0
Remove misleading "Google Play system update" info field
flawedworld May 15, 2021
9b5d0a2
do not allow disabling the bundled keyboard
muhomorr May 28, 2023
1dd9f52
do not allow disabling Vanadium WebView
muhomorr May 28, 2023
0d264f2
do not allow disabling GrapheneOS Camera
muhomorr May 28, 2023
51ae6fd
do not allow disabling GmsCompat and GmsCompatConfig
muhomorr May 28, 2023
482c4f6
do not allow disabling EuiccSupportPixel
muhomorr May 28, 2023
75b6eed
add a separate file for non-AOSP strings
muhomorr Feb 12, 2023
b1ee62c
add a set of base classes for creating Fragment-based preference UI
muhomorr Apr 6, 2023
66cf104
add base class for ListPreference controllers
muhomorr Feb 12, 2023
0d3b984
add base class for toggle preference controllers
muhomorr Feb 14, 2023
4a179a8
add base classes for {Bool,Int}Setting preference controllers
muhomorr Feb 12, 2023
7e58301
add device info field with bootloader version
flawedworld Apr 6, 2021
6b307fd
hide pattern screenlock option
Wonderfall Jul 18, 2021
052594b
drop support for showing nearby devices from Play
thestinger Jul 25, 2021
dadd0aa
Dark mode support for app installation restriction icon
Oct 18, 2021
2f1b421
Add preference for increased touch sensitivity (glove mode)
kdrag0n Jul 7, 2021
2dd3b1b
add link to Sandboxed Google Play settings
muhomorr Jan 21, 2022
242471c
Show Hardware SKU in About Phone
flawedworld Mar 5, 2022
9272a5f
Remove empty Security status header
chirayudesai Mar 3, 2020
f99288a
Allow sorting Applications by size
May 5, 2016
8c81124
add missing face unlock strings for English
empratyush May 4, 2022
fca9fec
add a per-user setting for forwarding censored notifs
girlbossceo Mar 16, 2022
d93d60e
fully enable location indicators by default
thestinger Aug 17, 2022
2cdf454
add option to always randomize MAC
renlord Oct 15, 2021
bc3a965
LTE Only Mode
empratyush Aug 19, 2022
73f4588
battery usage UI: use a fallback name for unknown components
muhomorr Nov 13, 2022
933a5d1
Settings: Pass empty lottie resource for quickly open camera animation
luk1337 Jun 9, 2022
bfc5824
add a toggle for auto-grants of OTHER_SENSORS permission
muhomorr Feb 14, 2023
84dad29
add a toggle for camera access from the lock screen
muhomorr Feb 14, 2023
8711a40
add auto-reboot setting
muhomorr Feb 14, 2023
61eedf2
Add toggle for screenshot timestamp EXIF metadata
girlbossceo Feb 18, 2023
72aa386
add GNSS SUPL setting
muhomorr Mar 3, 2023
4b8e362
add PIN scrambling setting
girlbossceo Feb 18, 2023
bc7e744
disable auto confirm PIN toggle by default
thestinger Oct 16, 2023
2e4ed9e
remove missing display resolution lottie animation
girlbossceo Mar 16, 2023
85e6d62
add toggle for the privileged eSIM management
muhomorr Mar 19, 2022
8fa7d44
remote key provisioning server setting
girlbossceo Apr 3, 2023
449384c
add toggle for special access to hardware accelerators by Google apps
muhomorr Apr 6, 2023
5c95fa9
add GNSS PSDS setting
muhomorr May 3, 2023
f5cfc0f
add connectivity checks setting
muhomorr May 24, 2023
b5132a4
add common resources for auto-off settings
muhomorr May 24, 2023
ba3c97d
add Wi-Fi auto-off setting
muhomorr May 25, 2023
4cd29eb
add Bluetooth auto-off setting
muhomorr May 24, 2023
c06e979
add deny_new_usb setting
muhomorr May 24, 2023
b017c60
add exec spawning setting
muhomorr May 25, 2023
1ab4ef6
Mark all DSU options as unsupported
flawedworld Jun 25, 2023
f8d77a5
Remove "Add users from lock screen" setting
quh4gko8 Jul 1, 2023
2c8e9f4
UserManager enable "install available apps"
empratyush Sep 3, 2022
7c0d29e
Factor out common code for reading/writing UserManager restrictions
quh4gko8 Jul 23, 2023
ba6f184
UserManager settings for apps installs and updates
quh4gko8 Jul 20, 2023
6eb72c7
UserManager settings for running in background
quh4gko8 Jun 13, 2023
d90ebc4
Disable app copying preference when the user has DISALLOW_INSTALL_APP…
quh4gko8 Jul 26, 2023
55c6890
add a base class for extra "App info" screen links
muhomorr May 15, 2023
1de683d
add Storage Scopes link to the "App info" screen
muhomorr Jul 2, 2022
428de7d
add Storage Scopes link to "All files access" screen
muhomorr Apr 11, 2023
ae18a00
add OBB access toggle to "Install unknown apps" screen
muhomorr Jul 8, 2022
3ecd86e
show more APK details on App info screen
muhomorr Sep 21, 2022
50dce5d
add Contact Scopes link to the "App info" screen
muhomorr May 15, 2023
b4d544c
add an ability to disable non-system apps from the "App info" screen
muhomorr Apr 17, 2022
9019f4c
Reverse Wireless Charging UI
empratyush Jun 20, 2022
898241f
hide the "Storage manager" toggle from Storage screen
muhomorr Sep 15, 2023
51ac080
add toggle for fingerprint screen unlocking
muhomorr Oct 8, 2023
8ba9637
add helpers for per-app settings
muhomorr Sep 29, 2023
b2949bd
add base class for App info single-choice fragments
muhomorr Nov 15, 2023
6645e59
add base classes for AppSwitch UIs
muhomorr Nov 15, 2023
cdf1924
add "Exploit protection" category to App info
muhomorr Nov 15, 2023
71b7b4a
add per-app setting for exploit protection compatibility mode
muhomorr Sep 26, 2023
234f2d9
add toggle for automatic exploit protection compatibility mode
muhomorr Oct 7, 2023
43ab288
add per-app setting for hardened_malloc
muhomorr Nov 16, 2023
bb30059
add dev mode per-app setting for extended virtual address space
muhomorr Nov 16, 2023
f691445
add per-app setting for native debugging
muhomorr Nov 15, 2023
897fdb6
add setting for default value of per-app native debugging setting
muhomorr May 24, 2023
31356e5
add per-app setting for memory tagging
muhomorr Nov 15, 2023
88434b7
add setting for default value of per-app memory tagging setting
muhomorr Nov 15, 2023
e5dd4bf
add toggle for system process crash notifications
muhomorr Nov 27, 2023
eeadb7a
Widevine provisioning setting
maade93791 Sep 29, 2023
fd5417f
add toggle for screencapture on FLAG_SECURE activities
nycex Dec 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ android_library {
"Settings-change-ids",
"androidx.room_room-runtime",
"SystemUIUnfoldLib",
"ReverseWirelessCharging"
],

plugins: ["androidx.room_room-compiler-plugin"],
Expand Down
38 changes: 37 additions & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
<application
android:name=".SettingsApplication"
android:label="@string/settings_label"
android:icon="@drawable/ic_launcher_settings"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/Theme.Settings"
android:hardwareAccelerated="true"
android:requiredForAllUsers="true"
Expand Down Expand Up @@ -4968,5 +4969,40 @@
tools:node="remove" />

<!-- This is the longest AndroidManifest.xml ever. -->

<activity
android:name="Settings$AppNativeDebuggingActivity"
android:permission="android.permission.WRITE_SECURE_SETTINGS"
android:exported="true">

<intent-filter>
<action android:name="android.settings.OPEN_APP_NATIVE_DEBUGGING_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>

<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.applications.appinfo.AppNativeDebuggingFragment"/>
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_apps"/>
</activity>

<activity
android:name="Settings$AppMemtagActivity"
android:permission="android.permission.WRITE_SECURE_SETTINGS"
android:exported="true">

<intent-filter>
<action android:name="android.settings.OPEN_APP_MEMTAG_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>

<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.applications.appinfo.AppMemtagFragment"/>
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_apps"/>
</activity>

</application>
</manifest>
30 changes: 30 additions & 0 deletions res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
Copyright (C) 2021 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group
android:scaleX="2.277"
android:scaleY="2.277"
android:translateX="26.676"
android:translateY="26.676">
<path
android:fillColor="#000000"
android:pathData="M19.5,12c0,-0.23 -0.01,-0.45 -0.03,-0.68l1.86,-1.41c0.4,-0.3 0.51,-0.86 0.26,-1.3l-1.87,-3.23c-0.25,-0.44 -0.79,-0.62 -1.25,-0.42l-2.15,0.91c-0.37,-0.26 -0.76,-0.49 -1.17,-0.68l-0.29,-2.31C14.8,2.38 14.37,2 13.87,2h-3.73C9.63,2 9.2,2.38 9.14,2.88L8.85,5.19c-0.41,0.19 -0.8,0.42 -1.17,0.68L5.53,4.96c-0.46,-0.2 -1,-0.02 -1.25,0.42L2.41,8.62c-0.25,0.44 -0.14,0.99 0.26,1.3l1.86,1.41C4.51,11.55 4.5,11.77 4.5,12s0.01,0.45 0.03,0.68l-1.86,1.41c-0.4,0.3 -0.51,0.86 -0.26,1.3l1.87,3.23c0.25,0.44 0.79,0.62 1.25,0.42l2.15,-0.91c0.37,0.26 0.76,0.49 1.17,0.68l0.29,2.31C9.2,21.62 9.63,22 10.13,22h3.73c0.5,0 0.93,-0.38 0.99,-0.88l0.29,-2.31c0.41,-0.19 0.8,-0.42 1.17,-0.68l2.15,0.91c0.46,0.2 1,0.02 1.25,-0.42l1.87,-3.23c0.25,-0.44 0.14,-0.99 -0.26,-1.3l-1.86,-1.41C19.49,12.45 19.5,12.23 19.5,12zM12.04,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5s3.5,1.57 3.5,3.5S13.97,15.5 12.04,15.5z" />
</group>
</vector>
3 changes: 2 additions & 1 deletion res/drawable/ic_settings_install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="#FF000000"
android:pathData="M18,15v3H6v-3H4v3c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2v-3H18z"/>
Expand Down
3 changes: 0 additions & 3 deletions res/drawable/quickly_open_camera.xml

This file was deleted.

4 changes: 2 additions & 2 deletions res/layout/face_enroll_introduction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/BiometricEnrollIntroTitle"
android:text="@string/security_settings_face_enroll_introduction_info_title" />
android:text="@string/security_settings_face_enroll_introduction_info_title_en" />

<LinearLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -156,7 +156,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/BiometricEnrollIntroTitle"
android:text="@string/security_settings_face_enroll_introduction_how_title" />
android:text="@string/security_settings_face_enroll_introduction_how_title_en" />

<TextView
android:id="@+id/how_message"
Expand Down
2 changes: 1 addition & 1 deletion res/layout/wifi_network_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@
android:layout_height="wrap_content"
style="@style/wifi_item_spinner"
android:prompt="@string/wifi_privacy_settings"
android:entries="@array/wifi_privacy_entries"/>
android:entries="@array/wifi_privacy_entries_extended"/>
</LinearLayout>

<LinearLayout
Expand Down
6 changes: 6 additions & 0 deletions res/mipmap-anydpi/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
6 changes: 6 additions & 0 deletions res/mipmap-anydpi/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Empty file.
7 changes: 7 additions & 0 deletions res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,12 @@
<item>Treat as unmetered</item>
</string-array>

<string-array name="wifi_privacy_entries_extended">
<item>Use per-connection randomized MAC (default)</item>
<item>Use per-network randomized MAC</item>
<item>Use device MAC</item>
</string-array>

<string-array name="wifi_privacy_entries">
<item>Use randomized MAC (default)</item>
<item>Use device MAC</item>
Expand All @@ -1076,6 +1082,7 @@
</string-array>

<string-array name="wifi_privacy_values" translatable="false">
<item>100</item>
<item>1</item>
<item>0</item>
</string-array>
Expand Down
2 changes: 2 additions & 0 deletions res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
<attr name="searchable" format="boolean" />
<!-- Classname of a PreferenceController corresponding to the preference -->
<attr name="controller" format="string" />
<!-- Reference to a BoolSetting. Format: className <space> fieldName -->
<attr name="boolSettingField" format="string" />
<!-- Customized subtitle if it's an unavailable slice -->
<attr name="unavailableSliceSubtitle" format="string" />
<!-- Whether or not the preference is for work profile, by default it's false. -->
Expand Down
19 changes: 10 additions & 9 deletions res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
<string name="config_featureFactory" translatable="false">com.android.settings.overlay.FeatureFactoryImpl</string>

<!-- Package name and fully-qualified class name for the wallpaper picker activity. -->
<string name="config_wallpaper_picker_package" translatable="false">com.android.settings</string>
<string name="config_wallpaper_picker_class" translatable="false">com.android.settings.Settings$WallpaperSettingsActivity</string>
<string name="config_wallpaper_picker_package" translatable="false">com.android.wallpaper</string>
<string name="config_wallpaper_picker_class" translatable="false">com.android.wallpaper.picker.CategoryPickerActivity</string>
<!-- Fully-qualified class name for the styles & wallpaper picker activity. -->
<string name="config_styles_and_wallpaper_picker_class" translatable="false"></string>
<string name="config_styles_and_wallpaper_picker_class" translatable="false">com.android.customization.picker.CustomizationPickerActivity</string>
<!-- Action name for the wallpaper picker activity. -->
<string name="config_wallpaper_picker_action" translatable="false"></string>
<string name="config_wallpaper_picker_action" translatable="false">android.intent.action.MAIN</string>
<!-- Action name for the styles & wallpaper picker activity. -->
<string name="config_styles_and_wallpaper_picker_action" translatable="false"></string>
<string name="config_styles_and_wallpaper_picker_action" translatable="false">android.intent.action.MAIN</string>
<!-- Intent extra for wallpaper picker activity. -->
<string name="config_wallpaper_picker_launch_extra" translatable="false">com.android.wallpaper.LAUNCH_SOURCE</string>

Expand All @@ -75,6 +75,7 @@
<item>com.example.package.first/com.example.class.FirstService</item>
<item>com.example.package.second/com.example.class.SecondService</item>
-->
<item>com.android.talkback/com.google.android.marvin.talkback.TalkBackService</item>
</string-array>

<!-- List containing the component names of pre-installed captioning services. -->
Expand Down Expand Up @@ -233,7 +234,7 @@
Whether or not the homepage should be powered by legacy suggestion (versus contextual cards)
Default to true as not all devices support contextual cards.
-->
<bool name="config_use_legacy_suggestion">true</bool>
<bool name="config_use_legacy_suggestion">false</bool>

<!-- Whether or not homepage should display user's account avatar -->
<bool name="config_show_avatar_in_homepage">false</bool>
Expand Down Expand Up @@ -460,7 +461,7 @@
<bool name="config_show_trust_agent_click_intent">true</bool>

<!-- Whether wallpaper attribution should be shown or not. -->
<bool name="config_show_wallpaper_attribution">true</bool>
<bool name="config_show_wallpaper_attribution">false</bool>

<!-- Whether assist_and_voice_input should be shown or not. -->
<bool name="config_show_assist_and_voice_input">true</bool>
Expand Down Expand Up @@ -499,7 +500,7 @@
<bool name="config_disable_uninstall_update">false</bool>

<!-- Slice Uri to query nearby devices. -->
<string name="config_nearby_devices_slice_uri" translatable="false">content://com.google.android.gms.nearby.fastpair/device_status_list_item</string>
<string name="config_nearby_devices_slice_uri" translatable="false"></string>

<!-- BT Slice intent action. To support Settings 2 panel, BT slice can't use PendingIntent.send(). Therefore, here defines the Slice intent action. -->
<string name="config_bt_slice_intent_action" translatable="false"></string>
Expand Down Expand Up @@ -586,7 +587,7 @@
<string name="config_documents_and_other_storage_category_uri" translatable="false">content://com.android.providers.media.documents/root/documents_root</string>

<!-- Whether to show Smart Storage toggle -->
<bool name="config_show_smart_storage_toggle">true</bool>
<bool name="config_show_smart_storage_toggle">false</bool>

<!-- Display settings screen, Color mode options. Must be the same length and order as
config_color_mode_options_values below. Only the values that also appear in
Expand Down
4 changes: 4 additions & 0 deletions res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
Loading