Commit Graph

7245 Commits

Author SHA1 Message Date
TreeHugger Robot
da29e3e38b Merge "Revert "Turn on TARE by default."" 2022-08-05 18:51:33 +00:00
Kweku Adams
8f906c80ad Revert "Turn on TARE by default."
This reverts commit 00eef6e5be.

Reason for revert: http://b/241284782

Change-Id: I6a30da8227589c640ff16e264b50383e1fd5716b
2022-08-05 13:50:06 +00:00
TreeHugger Robot
8094e1199d Merge "Turn on TARE by default." 2022-08-03 17:28:43 +00:00
Josh Yang
bf15fd7fdb Add name space "wear" to DeviceConfig
Bug: 196111331
Test: build success
Change-Id: Ief2c72d08294b8604907fb52fa8d2eaeedc5f406
2022-08-02 14:28:50 -07:00
Kweku Adams
00eef6e5be Turn on TARE by default.
Bug: 240726265
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerSharedUidTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsUsageStatsTestCases
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/tare
Change-Id: I67d60ec7e7787cfb8284e5dd4b6aaacb4f03ba82
2022-08-01 19:34:03 +00:00
TreeHugger Robot
d8cd6d9b4a Merge "Add a Settings.Secure value to store extra battery saver schedule" into tm-qpr-dev am: 1dc27fa1f6 am: 00be659711
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19194690

Change-Id: I3928a59c7730582f3ece664274d670ff98e78080
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:46:03 +00:00
TreeHugger Robot
00be659711 Merge "Add a Settings.Secure value to store extra battery saver schedule" into tm-qpr-dev am: 1dc27fa1f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19194690

Change-Id: I99927c9818b93b73f268bdc64fda1813e0d7b346
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:26:58 +00:00
Wesley Wang
c7adaf6f0f Add a Settings.Secure value to store extra battery saver schedule
- To store extra battery saver schedule mode

Bug: 224899180
Bug: 236688783
Bug: 238841059
Test: Build pass and local access verify
Change-Id: I4a394de04fdb9020ce22377390b81bccfaec2090
2022-07-23 08:10:29 +00:00
Joshua Mccloskey
00c545be97 Merge "SideFPS UX updates" 2022-07-20 17:01:57 +00:00
Neil Fuller
66ba9ce8fa Merge "Add support for multiple NTP servers" 2022-07-20 10:18:13 +00:00
Joshua McCloskey
60dedc99fe SideFPS UX updates
1. Added side fps auth delay on device entry/biometric
prompt to wait for power press.
2. Added tap to dismiss dialog for side fps enrollment.

Test: atest SideFpsEventHandlerTest
Bug: 233953696
Change-Id: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
2022-07-18 18:58:31 +00:00
Neil Fuller
0f2b48d1d6 Add support for multiple NTP servers
Add support for multiple NTP servers in NtpTrustedTime. The algorithm to
select the server is documented in comments in that class. Tests have
been updated accordingly.

This commit changes config.xml, removing (string) config_ntpServer and
replacing it with (string-array) config_ntpServers. It also modifies
command line and settings behavior.

Bug: 223365217
Test: atest frameworks/base/core/tests/coretests/src/android/util/NtpTrustedTimeTest.java
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
Test: atest cts/tests/tests/os/src/android/os/cts/SystemClockSntpTest.java
Test: adb shell settings put global ntp_server "ntp://time.google.com\|ntp://time.android.com"
Test: Inspection: adb shell dumpsys network_time_update_service
Test: Inspection: adb shell dumpsys time_detector
Change-Id: I5e19a4d82c9771448940b9f1db1689f21508667b
2022-07-18 14:50:02 +01:00
Prakriti Gupta
89085f606b Merge "Rename the WF Setting name to be more exact" 2022-07-15 17:20:37 +00:00
Wesley Wang
496afc58c9 Merge "Add dock charging state into stay awake feature (2/2)" 2022-07-15 02:55:27 +00:00
Neil Fuller
afeacd652e Merge "Refactoring before supporting multiple NTP servers" 2022-07-12 20:30:59 +00:00
Neil Fuller
08dac6774b Refactoring before supporting multiple NTP servers
Refactoring changes to make it easier to support NTP configuration that
contains multiple NTP servers to try. As part of this change, the NTP
server configuration is being changed from a simple hostname to a URI in
the form ntp://<host>[:port]. This is a local scheme introduced for this
commit for this purpose and not (currently) an official, registered IANA
URI scheme.

Settings parsing in NtpTrustedTime retains support for the simple
hostname-only form to avoid introducing incompatibilities when devices
upgrade and have settings values from earlier releases.  All other cases
(config.xml, commandline) are updated here to only support the new URI
form as these don't have backwards compatibility guarantees.

A later commit will add:
+ The settings / config changes to support a list of URIs in the format
  introduced in this commit, i.e. in place of the single one supported
  today.
+ The server request loop / server stickiness need to support multiple
  servers.

Switching to a URI over a simpler encoding scheme means:
1) Not having to deal with parsing awkward host + port cases, like IPv6
   addresses which contain colons, e.g. "[:::1]:1234" (these are used in
   in our tests).
2) Opens up the possibility of future protocols like NTS via a different
   URI scheme, and future parameterization of NTP server config with
   query params, paths, or similar.
3) Easy delimiting of lists later using a whitespace character like
   space, which will be encoded when part of a URI. This can be used for
   extending settings parsing to support multiple, space-delimited
   configs as settings code doesn't support multi-value settings out of
   the box (unlike config / commandline cases, which are comparatively
   easy).

This commit contains a new OWNERS file for NtpTrustedTimeTest. The file
has been populated with ownership information for TypedValueTest using
information from the OWNERS for the code under test.

Ignore-AOSP-First: The OWNERS change relates to a file landing
  internally
Bug: 223365217
Test: atest frameworks/base/core/tests/coretests/src/android/util/NtpTrustedTimeTest.java
Test: atest cts/tests/tests/os/src/android/os/cts/SystemClockSntpTest.java
Change-Id: I3afbd04659b4e4ee336619ea5ac6db7588057d6e
2022-07-12 15:30:09 +01:00
wesleycwwang
8ccdab518f Add dock charging state into stay awake feature (2/2)
- Make dump proto method support dock charging state
 - Add dock charging into proto file and validators

Bug: 233704731
Test: atest FrameworksServicesTests
Change-Id: I8208414cc40a12f783749d2c7a9f71be6efab8d9
2022-07-12 07:01:08 +00:00
Prakriti Gupta
ec519e54dd Rename the WF Setting name to be more exact
Note: We are adding Wear settings to the backup list as per ag/17916603, hence no changes are needed in SettingsBackupTest seen in the CL from which this is CPed.

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19121813

Change-Id: Ia307e57c6b162d6c2ce671302ddb77660328502d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Bug: 222022449
2022-07-08 22:11:08 +00:00
Hani Kazmi
4f221e5c51 Migrate Bundle/Intent APIs to new, type checked, variants
Part of go/safer-parcel. Follow up to ag/16639043. Migrates the following unsafe APIs:

* Parcel.readArray()
* Parcel.readParcelableArray()
* Bundle.getSerializable()
* Bundle.getParcelable()
* Bundle.getParcelableArrayList()
* Bundle.getParcelableArray()
* Bundle.getSparseParcelableArray()
* Intent.getSerializableExtra()
* Intent.getParcelableExtra()
* Intent.getParcelableArrayExtra()
* Intent.getParcelableArrayListExtra

Bug: 227458983
Test: m and presubmit pass
Change-Id: I72f206cb18eb5c669a7fff07a6845bed1c433fdb
2022-07-01 10:53:53 +00:00
Treehugger Robot
0b28e7842e Merge "modify the comment for SYNC_DISABLED_MODE_NONE" am: a4106af231 am: 808aff6755 am: 5ff65420df am: 0b8273f260 am: 35f0b0f611
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2132183

Change-Id: Ibf0a463a8b1645950d6064b213fd55baa17f02eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 17:38:37 +00:00
Treehugger Robot
35f0b0f611 Merge "modify the comment for SYNC_DISABLED_MODE_NONE" am: a4106af231 am: 808aff6755 am: 5ff65420df am: 0b8273f260
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2132183

Change-Id: I934c39d7d4f305acf59941ef93626e2b49397077
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 17:35:01 +00:00
Treehugger Robot
5ff65420df Merge "modify the comment for SYNC_DISABLED_MODE_NONE" am: a4106af231 am: 808aff6755
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2132183

Change-Id: Ie5c78d5afc9858cc0fee380b8cea9e42e6a652dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 16:57:59 +00:00
zhangjincheng
15accb6437 modify the comment for SYNC_DISABLED_MODE_NONE
what is the mean of SYNC_DISABLED_MODE_NONE?

form code, it may should be "sync is not disable"

Signed-off-by: zhangjincheng <zhangjincheng@xiaomi.com>
Change-Id: I0017001966a9bee524e92803a1bc48a436f68129
2022-06-22 15:01:22 +08:00
Ganesh Olekar
7db00aec32 Merge "Deprecate settings secure properties for location access check" 2022-06-14 17:43:03 +00:00
Ganesh Olekar
2b53d01a69 Deprecate settings secure properties for location access check
Bug: 224619912
Test: atest LocationAccessCheckTest
Change-Id: I9a1b8903455c2c295f5daef7f89a444cfae6138a
2022-06-13 15:42:01 +00:00
Florian Mayer
e67ab990b1 Sync memory_safety_native device config to native properties.
Corresponding SELinux config in aosp/2120412.

Bug: 235129567
Change-Id: I199169dd77981028ffc69f87b796699ea4ca9ddf
2022-06-08 11:02:01 -07:00
Songchun Fan
43f3e05a8f Merge "[SettingsProvider] restrict readability of sysui_qs_tiles" 2022-06-02 20:18:41 +00:00
Chen Xu
54aadd229e Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: 9570621986 am: a0da35749a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I153c6ac9afb69fd13932e0e48bb3dedb27b2d691
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:51:15 +00:00
Chen Xu
a0da35749a Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: 9570621986
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I525c8730501ef9569a3bad091787d10ef0eed5b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:44:14 +00:00
Chen Xu
0ce9893fdf Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: bc47d4849d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I832568404ae999f6fdb63c2d1289b170c40f14d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:34:41 +00:00
Chen Xu
3134842ec5 Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I549bb3e7a0b6c5f8390ceb32ca87e1bfce5468f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:18:24 +00:00
TreeHugger Robot
a2b06b0dc3 Merge "Add developer option for back animation" 2022-06-02 05:13:29 +00:00
Zaiyue Xue
6b3ca27563 Merge "Define setting name ADAPTIVE_CHARGING_ENABLED." into tm-qpr-dev am: 3ba66c27da am: aa1b2c12f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18610073

Change-Id: I4fa877b44c0696357ad4623db0dd0b18e29df118
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 02:00:52 +00:00
Zaiyue Xue
aa1b2c12f5 Merge "Define setting name ADAPTIVE_CHARGING_ENABLED." into tm-qpr-dev am: 3ba66c27da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18610073

Change-Id: I0b823d986918c6a9055acbde9573613dad3883fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 01:44:30 +00:00
Songchun Fan
ea8df76520 [SettingsProvider] restrict readability of sysui_qs_tiles
Prevent third-party apps targeting U and above from reading this
setting directly, because it might leak information about installed
packages.

BUG: 232938844
Test: builds
Change-Id: I82ddd8da061f18897d70793a996dd33bc955fd99
2022-06-01 14:40:18 -07:00
Shivakumar Neginal
8335fd51fb Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that
beyond S people can not access the DATA_ROAMING API from Settingss.Ideal
way to use this is from TelephonyManager.

Test: manual.
Bug: 172467621
Change-Id: I5bbdd886599ff0ecf66eb72beb78456adc4d632c
2022-06-01 06:51:43 +00:00
xuezaiyue
3ec8de2273 Define setting name ADAPTIVE_CHARGING_ENABLED.
Test: manual
Bug: 230386304
Change-Id: I65508f99b7754e152009c2d6f4cb868ccb46d4de
2022-05-27 14:31:08 +08:00
Vadim Caen
0cfb931532 Add developer option for back animation
Bug: 228936326
Test: BackAnimationControllerTest#animationDisabledFromSettings
Change-Id: I857a480e7375cada9171712d737162c7876c087e
Merged-In: I857a480e7375cada9171712d737162c7876c087e
2022-05-25 09:57:36 +00:00
Eric Biggers
dbe1907688 Revise documentation for RESULT_SMS_RECEIVED_WHILE_ENCRYPTED
Address more feedback from the API council.

Bug: 233801960
Change-Id: I08d6298b1afb057a3931a6085ccdca70a3cb55e5
2022-05-24 23:08:19 +00:00
Eric Biggers
7439280e89 Merge changes Ia5112416,I16b8c152
* changes:
  Revert deprecation of DevicePolicyManager FDE constants
  Revert deprecation of Telephony FDE constant
2022-05-24 17:34:34 +00:00
TreeHugger Robot
ef3f7d5321 Merge "Add a setting WEAR_ACTIVITY_AUTO_RESUME_TIMEOUT_MAX_RESET_COUNT" 2022-05-24 05:45:55 +00:00
Josh Yang
ae445b4c4f Add a setting WEAR_ACTIVITY_AUTO_RESUME_TIMEOUT_MAX_RESET_COUNT
Bug: 196111331
Test: manual test
Change-Id: I937fb76aceb47e569ad90ca03289410cdf2ad4c4
2022-05-23 23:01:42 +00:00
Josh Yang
8d8396b397 Remove RETAIL_MODE from Settings.Global
Bug: 175337585
Test: manual test
Change-Id: I3526c1f014e8069cbfc7392f454d430eb474080c
(cherry picked from commit 3410090884bc45c7d2c285d6ccfce0c3d758317b)
2022-05-23 20:58:14 +00:00
Yeabkal Wubshit
339771ab1a Merge "Add Settings Key for Wearable Bedtime Mode" 2022-05-19 17:53:59 +00:00
TreeHugger Robot
c5a6db5d9c Merge "TP - Message reference for SMS SUBMIT type" 2022-05-19 07:45:32 +00:00
Yeabkal Wubshit
27d12ec8a5 Add Settings Key for Wearable Bedtime Mode
Bug: 209670473
Change-Id: I9fc5f4ce10d9f4430dfeb16436be8facd13c1cb3
(cherry picked from commit 8c95dbd2dbc13370ab62eb2077d6109fe784c928)
(cherry picked from commit b3d39c5050ba4f99b259e375b6ece6077f4209f1)
2022-05-19 01:04:54 +00:00
Ramya Manoharan
e88f8481d7 TP - Message reference for SMS SUBMIT type
Addition of the TP - Message reference in pdu for SMS-SUBMIT type
Test: Build
Bug: 228299168

Change-Id: I3a64b79478d16d730c921fbfdd050fc014eec7b5
2022-05-18 18:10:37 +00:00
Eric Biggers
148a2bd590 Revert deprecation of Telephony FDE constant
The API council doesn't want this constant be deprecated.  This is a
partial revert of http://ag/17812636, which keeps and revises the text
that was added to the documentation.

Bug: 208476087
Bug: 232310299
Change-Id: I16b8c15288963d7c3318e8c614f0f7f0b091c221
2022-05-17 00:27:39 +00:00
Kholoud Mohamed
38c1a79163 Merge "Add device policy manager namespace to public namespaces" into tm-dev am: 8293974f3a am: 1368e8a55d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18344246

Change-Id: I1dd8a8c3fdc9fccb3d24fca7746cd249ff50097c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 17:36:05 +00:00
Kholoud Mohamed
5e9be671a0 Merge "Add device policy manager namespace to public namespaces" into tm-dev am: 8293974f3a am: 1368e8a55d am: bf80045f98
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18344246

Change-Id: I9abba6f436aefd947e1bbd8eee6c5ba5e2f25410
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 10:55:13 +00:00