Commit Graph

485440 Commits

Author SHA1 Message Date
Bill Yi
8b10384121 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icfe426e6f2c6ccea54cee8d54ad4459fd6f86daa
2021-01-25 09:16:45 -08:00
Bill Yi
8dff650f2b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4e2692f2ba1a5b7548faf80ddd00fcec143fc3ae
2021-01-25 08:46:27 -08:00
Bill Yi
f2e75100e4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I77c8c7e2cd9f433c6c41a1c0a521e1927ff4360d
2021-01-25 08:16:48 -08:00
Bill Yi
662491886e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5546e7922a60599f1642f741b11eb4e1004be39b
2021-01-25 07:46:56 -08:00
Bill Yi
205afff99d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I975c74ba9ee0f46801a614fa908a7a1078af05c7
2021-01-25 07:17:10 -08:00
Bill Yi
9f4456d5a1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0d90406fe97be313f32f90fed9d0c1cbc3615a7a
2021-01-25 06:47:17 -08:00
Bill Yi
5629c9ac94 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I983fe1d3c859095b389c81f21492c1fff3ac6ce9
2021-01-25 02:50:26 -08:00
Bill Yi
bb367e7c4e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4c1446e7465fc428758b30f0699114bf129f101e
2021-01-25 01:51:22 -08:00
Bill Yi
505660e427 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id44bfeed7168f22e7f1dddded6aa88c91b2915ac
2021-01-24 23:52:40 -08:00
TreeHugger Robot
c9912fa873 [automerger skipped] Merge "DO NOT MERGE: Do not inject mock location to chipset" into qt-qpr1-dev am: 9023676dfe -s ours am: f0e5190e0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13355795

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I164d353133c838a00fd8ea131f83b0658595f5d3
2021-01-22 20:06:24 +00:00
TreeHugger Robot
f0e5190e0b [automerger skipped] Merge "DO NOT MERGE: Do not inject mock location to chipset" into qt-qpr1-dev am: 9023676dfe -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I33fe23c5f53ef9ae27f2bbd1563647024643e049
2021-01-22 19:29:21 +00:00
TreeHugger Robot
9023676dfe Merge "DO NOT MERGE: Do not inject mock location to chipset" into qt-qpr1-dev 2021-01-22 18:58:04 +00:00
Yu-Han Yang
12eff0a57e [automerger skipped] DO NOT MERGE: Do not inject mock location to chipset am: 579b74d5cb -s ours am: 5f1b131c67 am: 95ff5252f2 -s ours am: 4fa14bd295
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13356152

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id474e86ed9b3cb40f306615b9b42d672aa474f35
2021-01-22 02:10:39 +00:00
Yu-Han Yang
4fa14bd295 [automerger skipped] DO NOT MERGE: Do not inject mock location to chipset am: 579b74d5cb -s ours am: 5f1b131c67 am: 95ff5252f2 -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idbd9c4992dcc36bcaa2cd7533c161bb727d7e9cd
2021-01-22 01:38:03 +00:00
Yu-Han Yang
95ff5252f2 [automerger skipped] DO NOT MERGE: Do not inject mock location to chipset am: 579b74d5cb -s ours am: 5f1b131c67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13356152

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I528216f95304feb46f2347f88c8d8022f1304b12
2021-01-22 01:21:05 +00:00
Yu-Han Yang
5f1b131c67 [automerger skipped] DO NOT MERGE: Do not inject mock location to chipset am: 579b74d5cb -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I15ef669c829151863c72c1bba15380429fb768e5
2021-01-22 01:06:20 +00:00
Yu-Han Yang
579b74d5cb DO NOT MERGE: Do not inject mock location to chipset
Bug: 177561690
Test: on device
Change-Id: Icafbdf54fe807f8779377b13cb4e4eb265db692e
2021-01-21 16:40:13 -08:00
Yu-Han Yang
a74aab775e [automerger skipped] DO NOT MERGE: Do not inject mock location to chipset am: c59cbd13f6 am: 77fa00f38f -s ours am: 691ae7772d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13358223

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I21e8188ec6d70c88e1997f78f997bbfb653d92cd
2021-01-21 23:34:31 +00:00
Yu-Han Yang
691ae7772d [automerger skipped] DO NOT MERGE: Do not inject mock location to chipset am: c59cbd13f6 am: 77fa00f38f -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie57557ba29ac8a8ca7827ed039817b6c75c1b0d6
2021-01-21 23:21:39 +00:00
Yu-Han Yang
abb3d56c70 DO NOT MERGE: Do not inject mock location to chipset am: e8212659b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13358221

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I46b2627101dc0de2637f82d8607ace8f110600e1
2021-01-21 23:06:57 +00:00
Yu-Han Yang
77fa00f38f DO NOT MERGE: Do not inject mock location to chipset am: c59cbd13f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13358223

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia56381d103931a932e1a3e08d6baa949d2ee864f
2021-01-21 23:06:21 +00:00
Tej Singh
c7f94ac634 Fix thread safety issue on clearing cache
Historically, we havent held a lock on ForceClearCache and
ClearCacheIfNecessary. This is not thread safe because kAllPullAtomInfo
must be accessed in a lock, especially now that pullers can be
registered/unregistered.

Test: atest statsd_test, wrote a repro cl.
Bug: 168156854
Bug: 173552790
Change-Id: I47d53a6d9d274bca4c78dbfd87e0097091b7b8cb
Merged-In: I47d53a6d9d274bca4c78dbfd87e0097091b7b8cb
(cherry picked from commit f9a4bb18ff)
2021-01-21 04:44:55 +00:00
Songchun Fan
b7d4c8098d [SettingsProvider] extend font size scale range
As per requested in b/176940932#comment3 and b/156260178#comment32,
extending the valid font size scale range to [0.25, 5].

Existing CTS tests still pass.

BUG: 156260178
Test: atest android.provider.cts.settings.Settings_SystemTest
Test: atest android.app.cts.ApplicationTest
Change-Id: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
(cherry picked from commit df8852a0b5)
Merged-In: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
2021-01-20 21:53:52 +00:00
Songchun Fan
9b6c0faca3 [SettingsProvider] extend font size scale range
As per requested in b/176940932#comment3 and b/156260178#comment32,
extending the valid font size scale range to [0.25, 5].

Existing CTS tests still pass.

BUG: 156260178
Test: atest android.provider.cts.settings.Settings_SystemTest
Test: atest android.app.cts.ApplicationTest
Change-Id: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
(cherry picked from commit df8852a0b5)
Merged-In: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
2021-01-20 21:53:38 +00:00
Songchun Fan
c0b28414d5 [SettingsProvider] extend font size scale range
As per requested in b/176940932#comment3 and b/156260178#comment32,
extending the valid font size scale range to [0.25, 5].

Existing CTS tests still pass.

BUG: 156260178
Test: atest android.provider.cts.settings.Settings_SystemTest
Test: atest android.app.cts.ApplicationTest
Change-Id: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
(cherry picked from commit df8852a0b5)
Merged-In: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
2021-01-20 21:53:16 +00:00
Bill Yi
f42c175377 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-01-20 16:30:17 +00:00
Bill Yi
60bb74aa94 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-01-20 14:12:47 +00:00
Bill Yi
15a97afab6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib7b879b2f185537ffe55fdf2964d31331465736f
2021-01-20 05:31:56 -08:00
Bill Yi
edaa970434 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1ebf3d6183a54280073cc7f83f00b49a2ae1eaa9
2021-01-20 03:10:52 -08:00
Bill Yi
0b61f380f6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1647a044f6f0c8bd52fd291d5d57ab55d821c392
2021-01-20 00:02:33 -08:00
Yu-Han Yang
44f2b9a27b DO NOT MERGE: Do not inject mock location to chipset
Bug: 177561690
Test: on device
Change-Id: Icafbdf54fe807f8779377b13cb4e4eb265db692e
2021-01-19 22:30:56 +00:00
Yu-Han Yang
c59cbd13f6 DO NOT MERGE: Do not inject mock location to chipset
Bug: 177561690
Test: on device
Change-Id: Icafbdf54fe807f8779377b13cb4e4eb265db692e
2021-01-15 23:56:43 +00:00
Yu-Han Yang
e8212659b9 DO NOT MERGE: Do not inject mock location to chipset
Bug: 177561690
Test: on device
Change-Id: Icafbdf54fe807f8779377b13cb4e4eb265db692e
2021-01-15 23:53:14 +00:00
Muhammad Qureshi
53251a491f [RESTRICT AUTOMERGE] Fix potential out of bounds writes in LogEvent.
mUidFieldIndex, mExclusiveStateFieldIndex,
mAttributionChain{Start|End}Index are stored using int8_t.
These values can overflow when mValues.size() exceeds INT8_MAX.
Add proper bounds checking to ensure these values don't exceed
INT8_MAX.

Bug: 174488848
Bug: 174485572
Test: m
Test: statsd_test
Test: TreeHugger
Change-Id: I416e2de06ca2935017e15d4e91000652831e6b6c
2021-01-15 12:58:50 -08:00
Winson
dca1c94faa Only allow BROWSABLE && DEFAULT Intents to be always opened
Auto verification of app links requires that an intent filter declare
action=VIEW, scheme=HTTP(S), category=BROWSABLE. However,
PackageManagerService was not taking that into account, missing the
category requirement.

But the app info Settings UI did take category into account, so it was
possible for a user to set an application to automatically open web URIs
without understanding that this also granted domains that were not
visible in the app info UI.

To resolve both this, this change makes it so that both auto
verification and the Settings state can only consider the app as
"always" open only if the Intent contains both BROWSABLE and DEFAULT.

Bug: 175139501
Bug: 175319005

Test: manual, see bug for reproduction steps

Merged-In: Ib957258735893bf2779bed19bd400c6726ee6478
Change-Id: Ib957258735893bf2779bed19bd400c6726ee6478
(cherry picked from commit 4266f938c6)
2021-01-12 16:49:28 +00:00
Winson
eb8d0c749d Only allow BROWSABLE && DEFAULT Intents to be always opened
Auto verification of app links requires that an intent filter declare
action=VIEW, scheme=HTTP(S), category=BROWSABLE. However,
PackageManagerService was not taking that into account, missing the
category requirement.

But the app info Settings UI did take category into account, so it was
possible for a user to set an application to automatically open web URIs
without understanding that this also granted domains that were not
visible in the app info UI.

To resolve both this, this change makes it so that both auto
verification and the Settings state can only consider the app as
"always" open only if the Intent contains both BROWSABLE and DEFAULT.

Bug: 175139501
Bug: 175319005

Test: manual, see bug for reproduction steps

Merged-In: Ib957258735893bf2779bed19bd400c6726ee6478
Change-Id: Ib957258735893bf2779bed19bd400c6726ee6478
(cherry picked from commit 4266f938c6)
2021-01-12 16:48:59 +00:00
Winson
5a90c4c75b Only allow BROWSABLE && DEFAULT Intents to be always opened
Auto verification of app links requires that an intent filter declare
action=VIEW, scheme=HTTP(S), category=BROWSABLE. However,
PackageManagerService was not taking that into account, missing the
category requirement.

But the app info Settings UI did take category into account, so it was
possible for a user to set an application to automatically open web URIs
without understanding that this also granted domains that were not
visible in the app info UI.

To resolve both this, this change makes it so that both auto
verification and the Settings state can only consider the app as
"always" open only if the Intent contains both BROWSABLE and DEFAULT.

Bug: 175139501
Bug: 175319005

Test: manual, see bug for reproduction steps

Merged-In: Ib957258735893bf2779bed19bd400c6726ee6478
Change-Id: Ib957258735893bf2779bed19bd400c6726ee6478
(cherry picked from commit 4266f938c6)
2021-01-12 16:48:52 +00:00
Winson
a154d7a648 Only allow BROWSABLE && DEFAULT Intents to be always opened
Auto verification of app links requires that an intent filter declare
action=VIEW, scheme=HTTP(S), category=BROWSABLE. However,
PackageManagerService was not taking that into account, missing the
category requirement.

But the app info Settings UI did take category into account, so it was
possible for a user to set an application to automatically open web URIs
without understanding that this also granted domains that were not
visible in the app info UI.

To resolve both this, this change makes it so that both auto
verification and the Settings state can only consider the app as
"always" open only if the Intent contains both BROWSABLE and DEFAULT.

Bug: 175139501
Bug: 175319005

Test: manual, see bug for reproduction steps

Merged-In: Ib957258735893bf2779bed19bd400c6726ee6478
Change-Id: Ib957258735893bf2779bed19bd400c6726ee6478
(cherry picked from commit 4266f938c6)
2021-01-12 16:48:44 +00:00
Winson
2565d0b3a1 Only allow BROWSABLE && DEFAULT Intents to be always opened
Auto verification of app links requires that an intent filter declare
action=VIEW, scheme=HTTP(S), category=BROWSABLE. However,
PackageManagerService was not taking that into account, missing the
category requirement.

But the app info Settings UI did take category into account, so it was
possible for a user to set an application to automatically open web URIs
without understanding that this also granted domains that were not
visible in the app info UI.

To resolve both this, this change makes it so that both auto
verification and the Settings state can only consider the app as
"always" open only if the Intent contains both BROWSABLE and DEFAULT.

Bug: 175139501
Bug: 175319005

Test: manual, see bug for reproduction steps

Merged-In: Ib957258735893bf2779bed19bd400c6726ee6478
Change-Id: Ib957258735893bf2779bed19bd400c6726ee6478
(cherry picked from commit 4266f938c6)
2021-01-12 16:48:38 +00:00
Kevin Hufnagle
49421dc19c Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3325b526d894701d199f2669131adb46dc1fca42
2021-01-11 19:54:37 +00:00
Michael Groover
5aba70130d Add method to clear out SubscriptionInfo#getCardString
In Androird 10 access to device identifiers was limited to apps with
the READ_PRIVILEGED_PHONE_STATE permission, carrier privileges, the
READ_DEVICE_IDENTIFIERS appop set to allow, or those that pass a
device / profile owner check. TelephonyManager#getSimSerialNumber
was guarded behind these new access requirements, but the same value
is still accessible as the cardString from the SubscriptionInfo.
While getCardString is a hidden API SubscriptionInfo#toString can
be used to obtain this value.

Bug: 152057778
Bug: 173421434
Test: atest SubscriptionControllerTest
Change-Id: I9b8786a321b1ba79d81b74c3041589f30df8e9c8
Merged-In: I9b8786a321b1ba79d81b74c3041589f30df8e9c8
2021-01-11 19:46:51 +00:00
Michael Groover
1c1bc30ce3 Whitelist READ_PRIVILEGED_PHONE_STATE for the contacts provider
In Android 10 access to device identifiers was moved from a runtime
permission to the privileged READ_PRIVILEGED_PHONE_STATE permission.
One of the non-resettable identifiers missed was SubscriptionInfo#
getIccId. The contacts provider currently uses this ID to upgrade
to version 1003 of the database; to ensure there are no issues with
this upgrade this permission is being whitelisted for the contacts
provider.

Bug: 131909991
Bug: 173421434
Test: atest ContactsProviderTests
Change-Id: I7574f787a7e55aa0337237b9fe916ee143a2f697
Merged-In: I7574f787a7e55aa0337237b9fe916ee143a2f697
2021-01-11 19:46:38 +00:00
Michael Groover
a13fc7f314 Update the getIccId docs to reflect access requirements
In Android 10 access to device identifiers was limited to apps with
the READ_PRIVILEGED_PHONE_STATE permission, carrier privileges, the
READ_DEVICE_IDENTIFIERS appop set to allow, or those that pass a
device / profile owner check. TelephonyManager#getSimSerialNumber
was guarded behind these new access requirements, but the same value
is still accessible via SubscriptionInfo#getIccId. This change
updates the documentation to reflect that the getIccId will no
longer be accessible if the caller does not meet the new access
requirements.

Bug: 131909991
Bug: 173421434
Test: Builds
Change-Id: I03072c65e1c7101538a7a20541d2ac59a2d213e3
Merged-In: I03072c65e1c7101538a7a20541d2ac59a2d213e3
2021-01-11 19:46:18 +00:00
Kevin Hufnagle
05efe90a8d Merge "docs: Remove error in requestPermissions doc" into rvc-dev 2021-01-11 18:56:59 +00:00
Lais Andrade
6f45102db0 Check mode/boost index before accessing cached support value am: 20b47da57a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13164079

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1ae040e4c0f27d45a9eba4b9f06a50ab194d8d27
2021-01-11 18:07:24 +00:00
Lais Andrade
20b47da57a Check mode/boost index before accessing cached support value
Bug: 174243830
Test: manual
Change-Id: I2f81bcd57181791fa95d35ad52e6af2d7d9c8dcf
Merged-In: If305a4b694a9d6fcc27da8279f1f53f9fd9cb685
Merged-In: I345d9ff828021da35556f2d51da512840dda8026
2021-01-11 16:11:50 +00:00
Bill Yi
236661e2b9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib0c6dabafb7a74201c866c75991b3917c1c389a1
2021-01-09 08:12:04 +00:00
Dmitry Dementyev
b5bd72d964 [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours am: 065fbe9cae -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6053d81cea65661cd7c479406efaac1303bd0f94
2021-01-07 00:42:23 +00:00
Dmitry Dementyev
065fbe9cae [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bf63aac89074610dbb8f6b475e3d6ba0f420f67
2021-01-07 00:18:39 +00:00
Hui Yu
c6740a2382 Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev am: 970762d46c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id834c97c351983179951592b83e8f87f2f8f42c5
2021-01-06 23:42:23 +00:00