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

Settings: Add an option to allow tethering while Data Saver is on #308

Open
wants to merge 112 commits into
base: 15
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
ac3ba8d
add isLoggable check to overly verbose PrefCtrlListHelper log statement
muhomorr Nov 15, 2024
8fb4d8e
add GrapheneOS icon
flawedworld Feb 5, 2022
23c8ad6
set styles/wallpaper picker action name
thestinger Oct 15, 2022
b060135
Settings: Integrate ThemePicker and WallpaperPicker2
kdrag0n Apr 17, 2021
c2bf569
disable showing wallpaper attribution
thestinger Feb 16, 2021
cb4c7cd
add TalkBack accessibility service
thestinger Mar 10, 2021
5d309c4
get outer NFC preference to listen for changes
inthewaves Sep 21, 2020
3f182bc
disable legacy suggestions
thestinger Oct 8, 2019
7ce844b
add missing android title for top_level_settings
Apr 11, 2020
6784e82
Remove misleading "Google Play system update" info field
flawedworld May 15, 2021
867cb39
extend list of system apps that are not allowed to be disabled
muhomorr May 28, 2023
f2ef0e0
add a separate file for non-AOSP strings
muhomorr Feb 12, 2023
41887f4
add a set of base classes for creating Fragment-based preference UI
muhomorr Apr 6, 2023
5693ab4
add base class for ListPreference controllers
muhomorr Feb 12, 2023
abf37cc
add base class for toggle preference controllers
muhomorr Feb 14, 2023
e774390
add base classes for {Bool,Int}Setting preference controllers
muhomorr Feb 12, 2023
8905c41
add Exploit protection screen
muhomorr Jul 30, 2024
e1cc948
add device info field with bootloader version
flawedworld Apr 6, 2021
5e12f51
hide pattern screenlock option
Wonderfall Jul 18, 2021
5c66206
drop support for showing nearby devices from Play
thestinger Jul 25, 2021
a1db5e4
Dark mode support for app installation restriction icon
Oct 18, 2021
9362da6
Add preference for increased touch sensitivity (glove mode)
kdrag0n Jul 7, 2021
6dfe9be
add dynamic link to sandboxed Google Play settings
muhomorr Jan 21, 2022
79f093e
add Private Space sandboxed Google Play link
muhomorr Aug 12, 2024
3e2a021
Show Hardware SKU in About Phone
flawedworld Mar 5, 2022
0723eec
Allow sorting Applications by size
May 5, 2016
405a5f7
add missing face unlock strings for English
empratyush May 4, 2022
ebe50bd
add a per-user setting for forwarding censored notifs
girlbossceo Mar 16, 2022
0563a6f
fully enable location indicators by default
thestinger Aug 17, 2022
38928e8
LTE Only Mode
empratyush Aug 19, 2022
e9b835a
battery usage UI: use a fallback name for unknown components
muhomorr Nov 13, 2022
503d5f7
Settings: Pass empty lottie resource for quickly open camera animation
luk1337 Jun 9, 2022
0bee4a4
add a toggle for auto-grants of OTHER_SENSORS permission
muhomorr Feb 14, 2023
588faf8
add a toggle for camera access from the lock screen
muhomorr Feb 14, 2023
0b35324
add auto-reboot setting
muhomorr Feb 14, 2023
fbfdaa2
Add toggle for screenshot timestamp EXIF metadata
girlbossceo Feb 18, 2023
6d1534b
add GNSS SUPL setting
muhomorr Mar 3, 2023
050a3c5
disable auto confirm PIN toggle by default
thestinger Oct 16, 2023
d4456f2
remove missing display resolution lottie animation
girlbossceo Mar 16, 2023
7f88495
add toggle for eSIM support via Google's eSIM LPA package
muhomorr Jan 24, 2024
1e42d37
remote key provisioning server setting
girlbossceo Apr 3, 2023
55cd3ad
add toggle for special access to hardware accelerators by Google apps
muhomorr Apr 6, 2023
e8dfec5
add GNSS PSDS setting
muhomorr May 3, 2023
4d7eb03
add connectivity checks setting
muhomorr May 24, 2023
23d5c29
add common resources for auto-off settings
muhomorr May 24, 2023
7b6c765
add Wi-Fi auto-off setting
muhomorr May 25, 2023
1e1c9e0
add Bluetooth auto-off setting
muhomorr May 24, 2023
dfb41ed
add deny_new_usb setting
muhomorr May 24, 2023
3609b86
hide deny_new_usb setting when USB-C port setting is available
muhomorr Jun 18, 2024
287c9ed
add exec spawning setting
muhomorr May 25, 2023
ab9587d
Mark all DSU options as unsupported
flawedworld Jun 25, 2023
e789f72
Remove "Add users from lock screen" setting
quh4gko8 Jul 1, 2023
4723683
Factor out common code for reading/writing UserManager restrictions
quh4gko8 Jul 23, 2023
f5970d7
UserManager enable "install available apps"
empratyush Sep 3, 2022
f722b1c
UserManager settings for apps installs and updates
quh4gko8 Jul 20, 2023
1ebe06a
UserManager settings for running in background
quh4gko8 Jun 13, 2023
e752b09
Disable app copying preference when the user has DISALLOW_INSTALL_APP…
quh4gko8 Jul 26, 2023
89bbea8
add support for disabling non-system apps
muhomorr Mar 2, 2024
ea09e94
don't show "More options" button in App info uninstall dialog
muhomorr Mar 2, 2024
e5b60f2
add Storage Scopes link to the "App info" screen
muhomorr Mar 2, 2024
d2536e3
add Storage Scopes link to "All files access" screen
muhomorr Mar 2, 2024
f4b16bb
add OBB access toggle to "Install unknown apps" screen
muhomorr Jul 8, 2022
cd429cc
add Contact Scopes link to the "App info" screen
muhomorr Mar 2, 2024
39cccdf
Reverse Wireless Charging UI
empratyush Jun 20, 2022
5bc32e5
hide the "Storage manager" toggle from Storage screen
muhomorr Sep 15, 2023
d07e9fd
add toggle for fingerprint screen unlocking
muhomorr Oct 8, 2023
47753da
add helpers for per-app settings
muhomorr Sep 29, 2023
059201f
add base class for App info single-choice fragments
muhomorr Nov 15, 2023
e059a19
infrastructure for AppSwitch UIs
muhomorr Nov 15, 2023
0707d9b
add "Exploit protection" category to App info
muhomorr Mar 2, 2024
a5f574c
add per-app setting for exploit protection compatibility mode
muhomorr Sep 26, 2023
5aaaa66
add toggle for automatic exploit protection compatibility mode
muhomorr Oct 7, 2023
fb48313
add per-app setting for hardened_malloc
muhomorr Nov 16, 2023
e82288a
add dev mode per-app setting for extended virtual address space
muhomorr Aug 30, 2024
912ee2a
add per-app setting for native debugging
muhomorr Nov 15, 2023
a4266a8
add per-app setting for memory tagging
muhomorr Aug 30, 2024
c3c3eb2
add toggle for system process crash notifications
muhomorr Nov 27, 2023
725943f
Widevine provisioning setting
maade93791 Sep 29, 2023
a193deb
remove confusing mention of Android Auto from "Connected devices" screen
muhomorr Dec 18, 2023
6edd33d
add logcat viewer link to System settings
muhomorr Jan 6, 2024
4422d84
add logcat viewer link to App info screen
muhomorr Mar 2, 2024
50ea9bc
add USB-C port and pogo pins security setting
muhomorr Feb 21, 2024
84e50e9
enable "About phone -> Battery information" screen
muhomorr Mar 7, 2024
1c710f0
fix footer formatting issue on App pinning screen
muhomorr Mar 17, 2024
bbc3e0a
fixes redundant horizontal margin issue on tablets
jiteshsingh Jan 30, 2024
69b32cf
internet setup activity
jiteshsingh Jan 30, 2024
8dd5728
add config for setupdesign and setupcompat libraries
muhomorr Dec 27, 2023
9f85f83
setup design config provider
jiteshsingh Feb 26, 2024
0e76353
export method for stringifying password errors from ChooseLockPassword
muhomorr May 29, 2024
a62e998
add duress password management UI
muhomorr May 29, 2024
387f4fb
remove blank illustration from "Screen resolution" screen
muhomorr Jun 13, 2024
50235ae
fix fingerprint enrollment on Google devices with side FP scanner
muhomorr Jul 8, 2024
f6f3706
add toggle for alternative touchscreen mode
muhomorr Jun 19, 2024
a7edf91
add lockscreen PIN input layout scrambling toggle
muhomorr Aug 12, 2024
cd9bb21
add SIM PIN/PUK input layout scrambling setting
muhomorr Aug 12, 2024
1e7b195
hide CameraExtensionsFallback toggle when it's a no-op
muhomorr Aug 18, 2024
c5683e2
add per-app memory DCL restriction setting
muhomorr Jan 11, 2024
1626df4
add per-app storage DCL restriction setting
muhomorr Jan 11, 2024
3c9c8cc
[temp] hide setting for default value of per-app storage DCL setting
muhomorr Aug 30, 2024
db27bdf
add per-app WebView JIT setting
muhomorr Aug 16, 2024
81ee19d
add per-connection Wi-Fi MAC address randomization option
muhomorr Oct 16, 2024
376e67e
hide inaccurate "access private space when hidden" text
muhomorr Oct 16, 2024
198ab9d
don't enable "send device name" option by default for new Wi-Fi networks
muhomorr Oct 18, 2024
da9e39a
run a one-time task to remove leftover Vanadium library state
muhomorr Oct 19, 2024
97e175f
fix Private Space handling in Passwords & accounts > Additional services
muhomorr Nov 9, 2024
6128eca
opt-out Wi-Fi testing activities from edge-to-edge
muhomorr Oct 17, 2024
9d49172
opt-out dev options app picker activity from edge-to-edge
muhomorr Nov 19, 2024
ad0ede4
fix contacts access toggle in pairing dialog for BT hands-free devices
muhomorr Nov 27, 2024
706f682
never allow contacts access by default in Bluetooth pairing dialog
muhomorr Nov 27, 2024
2599a42
fixup! add duress password management UI
muhomorr Dec 5, 2024
d039996
add App info > Storage > Manage storage button for apps that support it
muhomorr Dec 5, 2024
7d00acd
Settings: Add an option to allow tethering while Data Saver is on
neelchauhan Dec 10, 2024
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
2 changes: 2 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ android_library {
srcs: [
"src/**/*.java",
"src/**/*.kt",
"src/**/*.aidl",
],
exclude_srcs: [
"src/com/android/settings/biometrics/fingerprint2/lib/**/*.kt",
Expand Down Expand Up @@ -92,6 +93,7 @@ android_library {
// Settings dependencies
"FingerprintManagerInteractor",
"MediaDrmSettingsFlagsLib",
"ReverseWirelessCharging",
"Settings-change-ids",
"SettingsLib",
"SettingsLibActivityEmbedding",
Expand Down
149 changes: 148 additions & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,13 @@
<uses-permission android:name="android.permission.GET_BACKGROUND_INSTALLED_PACKAGES" />
<uses-permission android:name="android.permission.SATELLITE_COMMUNICATION" />
<uses-permission android:name="android.permission.READ_SYSTEM_GRAMMATICAL_GENDER" />
<uses-permission android:name="app.grapheneos.logviewer.SHOW_LOGCAT" />

<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 @@ -513,6 +515,19 @@
android:value="true" />
</activity>

<!-- this is supposed to be used both for wifi and mobile data, controlled by flags -->
<activity
android:name=".network.InternetSetupActivity"
android:theme="@style/GlifV4Theme.DayNight"
android:exported="true">
<intent-filter android:priority="1">
<action android:name="android.settings.SETUP_INTERNET" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
android:value="true" />
</activity>

<activity
android:name=".wifi.WifiPickerActivity"
android:permission="android.permission.CHANGE_WIFI_STATE"
Expand Down Expand Up @@ -605,6 +620,7 @@
</activity>

<activity android:name=".wifi.WifiConfigInfo"
android:theme="@style/Theme.DeviceDefault.DayNight.NoEdgeToEdge"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
Expand All @@ -627,6 +643,7 @@
</activity>

<activity android:name=".wifi.WifiStatusTest"
android:theme="@style/Theme.DeviceDefault.DayNight.NoEdgeToEdge"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
Expand Down Expand Up @@ -2199,6 +2216,23 @@
android:value="@string/menu_key_safety_center"/>
</activity>

<activity
android:name=".Settings$ExploitProtectionActivity"
android:label="@string/exploit_protection_settings"
android:permission="android.permission.MANAGE_SAFETY_CENTER"
android:exported="true">

<intent-filter>
<action android:name="com.android.settings.EXPLOIT_PROTECTION_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.safetycenter.ExploitProtectionFragment" />
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_safety_center"/>
</activity>

<activity android:name="MonitoringCertInfoActivity"
android:label=""
android:theme="@style/Transparent"
Expand Down Expand Up @@ -2972,6 +3006,26 @@
<meta-data android:name="com.android.settings.icon_tintable" android:value="true" />
</activity>

<activity android:name=".security.DuressPasswordMainActivity"
android:excludeFromRecents="true"
android:theme="@style/GlifTheme.Light"
android:permission="android.permission.MANAGE_SAFETY_CENTER"
android:exported="true">

<intent-filter>
<action android:name="com.android.settings.DURESS_PASSWORD_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_safety_center"/>
</activity>

<activity android:name=".security.DuressPasswordSetupActivity"
android:excludeFromRecents="true"
android:theme="@style/GlifTheme.Light"
android:exported="false" />

<activity android:name=".biometrics.fingerprint.FingerprintEnrollSuggestionActivity"
android:exported="true"
android:icon="@drawable/ic_suggestion_fingerprint">
Expand Down Expand Up @@ -3184,6 +3238,7 @@
</activity>

<activity android:name=".development.AppPicker"
android:theme="@style/Theme.DeviceDefault.DayNight.NoEdgeToEdge"
android:label="@string/select_application" />

<activity android:name=".development.AdbQrCodeActivity" />
Expand Down Expand Up @@ -5287,6 +5342,12 @@
android:value="@string/menu_key_apps"/>
</activity-alias>

<provider
android:name="com.android.settings.sudconfig.SudConfigProvider"
android:authorities="com.google.android.setupwizard.partner"
android:directBootAware="true"
android:exported="true" />

<!-- [b/197780098] Disable eager initialization of Jetpack libraries. -->
<provider
android:name="androidx.startup.InitializationProvider"
Expand Down Expand Up @@ -5371,5 +5432,91 @@
</receiver>

<!-- 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.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.AppMemtagFragment"/>
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_apps"/>
</activity>

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

<intent-filter>
<action android:name="android.settings.OPEN_APP_HARDENED_MALLOC_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.AppHardenedMallocFragment"/>
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_apps"/>
</activity>

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

<intent-filter>
<action android:name="android.settings.OPEN_APP_MEMORY_DYN_CODE_LOADING_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.AppMemoryDynCodeLoadingFragment"/>
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_apps"/>
</activity>

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

<intent-filter>
<action android:name="android.settings.OPEN_APP_STORAGE_DYN_CODE_LOADING_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.AppStorageDynCodeLoadingFragment"/>
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
android:value="@string/menu_key_apps"/>
</activity>

</application>
</manifest>
2 changes: 2 additions & 0 deletions res-product/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@
<string name="ethernet_tethering_subtext" product="default">Share phone\u2019s internet connection via Ethernet</string>
<!-- Ethernet Tethering subtext for tablet [CHAR LIMIT=NONE]-->
<string name="ethernet_tethering_subtext" product="tablet">Share tablet\u2019s internet connection via Ethernet</string>
<!-- Data Saver Tethering subtext [CHAR LIMIT=NONE]-->
<string name="data_saver_tethering_subtext" product="default">Unconditionally allow tethering while on data saver mode</string>
<!-- Main settings screen, setting title for the user to go into the About phone screen -->
<string name="about_settings" product="tablet">About tablet</string>
<!-- Main settings screen, setting title for the user to go into the About phone screen -->
Expand Down
10 changes: 10 additions & 0 deletions res/drawable/baseline_wifi.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorPrimary"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@android:color/white"
android:pathData="M1,9l2,2c4.97,-4.97 13.03,-4.97 18,0l2,-2C16.93,2.93 7.08,2.93 1,9zM9,17l3,3 3,-3c-1.65,-1.66 -4.34,-1.66 -6,0zM5,13l2,2c2.76,-2.76 7.24,-2.76 10,0l2,-2C15.14,9.14 8.87,9.14 5,13z" />
</vector>
7 changes: 7 additions & 0 deletions res/drawable/baseline_wifi_glif.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="?attr/sudGlifIconSize"
android:height="?attr/sudGlifIconSize"
android:drawable="@drawable/baseline_wifi" />
</layer-list>
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.

67 changes: 67 additions & 0 deletions res/layout/duress_password_setup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>

<com.google.android.setupdesign.GlifLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/glif_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:icon="@drawable/ic_lock"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
style="@style/SudContentFrame">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
android:text="@string/unlock_set_unlock_pin_title" />

<EditText
android:id="@+id/pin_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:hint="@string/duress_pwd_enter_pin"
android:imeOptions="actionNext"
android:inputType="numberPassword" />

<EditText
android:id="@+id/pin_input_confirmation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:hint="@string/duress_pwd_confirm_pin"
android:imeOptions="actionNext"
android:inputType="numberPassword" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
android:text="@string/unlock_set_unlock_password_title" />

<EditText
android:id="@+id/password_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:hint="@string/duress_pwd_enter_password"
android:imeOptions="actionNext"
android:inputType="textPassword" />

<EditText
android:id="@+id/password_input_confirmation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:hint="@string/duress_pwd_confirm_password"
android:imeOptions="actionDone"
android:inputType="textPassword" />

</LinearLayout>
</com.google.android.setupdesign.GlifLayout>
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
Loading