Commit Graph

571098 Commits

Author SHA1 Message Date
Bill Yi
96879dfab4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7bf300eaaa4fdb2bcde4c242474ebb95b4e7a2cb
2021-07-03 19:22:06 -07:00
Rahul Sabnis
0591dcac60 Merge "Update BluetoothAdapter and BluetoothDevice documentation" 2021-07-02 22:01:50 +00:00
Benedict Wong
447fbc3788 Merge "Add VCN underlying networks" 2021-07-02 18:42:43 +00:00
Benedict Wong
69e2f04207 Merge "Add support for app data accounting for in-kernel dataplanes" 2021-07-02 18:42:15 +00:00
Treehugger Robot
fc2745ae54 Merge "Allow the kernel to upgrade ASYNC mode processes to SYNC mode." 2021-07-02 17:58:43 +00:00
Treehugger Robot
bc7044d235 Merge "Build framework-doc-system-stubs with system stubs." 2021-07-02 16:08:52 +00:00
Nikita Ioffe
847d8f7914 Merge "Add ota_dexopt_aidl_interface" 2021-07-02 14:20:12 +00:00
Orion Hodson
2d2d5467b5 Merge "AndroidRuntime: pass odsign verification status to ART" 2021-07-02 10:19:45 +00:00
Les Lee
a8cd54f67a Merge "fix: Invalid subscription plan cause NPE" 2021-07-02 09:17:20 +00:00
Irmak Eliaçık
5e996722d9 Merge "AudioAttributes FLAG_AUDIBILITY_ENFORCED javadoc update" 2021-07-02 08:16:17 +00:00
Treehugger Robot
ef226bcd35 Merge "Request location info in UnderlyingNetworkListener" 2021-07-02 07:59:48 +00:00
Benedict Wong
89e8793b3a Request location info in UnderlyingNetworkListener
This change ensures that the UnderlyingNetworkListener receives
location-sensitive fields in order to proxy the location sensitive
fields in the VcnTransportInfo

Bug: 192587440
Test: manual tests
Test: atest FrameworksVcnTests
Change-Id: Id42ae2e373d909424c3f213412ea4731ee01fa2b
2021-07-02 03:13:20 +00:00
Benedict Wong
1bfdfa2754 Add VCN underlying networks
This change declares underlying networks for the VCN for the purposes of
app data accounting

Bug: 190620024
Test: atest FrameworksVcnTests
Change-Id: Ida2cd5975250604064b0baed00bc7c201ea97c5e
2021-07-01 19:49:57 -07:00
Benedict Wong
bbee1d39b1 Add support for app data accounting for in-kernel dataplanes
This change ensures that app data accounting works correctly within the
confines of in-kernel dataplanes, as used by platform VPNs and the VCN.

Notably, the VCN MUST NOT specify the IMSI, as that would lead to double
counting of the interface statistics.

Bug: 175853498
Bug: 190620024
Test: atest NetworkStatsTest FrameworksVcnTests
Change-Id: I768907cd3dd2028c7040cddd81fc71a5ce69bbdb
2021-07-01 19:49:50 -07:00
Peter Collingbourne
83e7deb46b Allow the kernel to upgrade ASYNC mode processes to SYNC mode.
On devices where the performance of ASYNC mode is similar to SYNC
mode on certain CPUs, OEMs may choose to configure the kernel to
prefer SYNC mode on those CPUs by writing the value "sync" to the
sysfs node: /sys/devices/system/cpu/cpu<N>/mte_tcf_preferred

The kernel will only respect the per-CPU preference if the user program
allows this by specifying the preferred mode as a member of a set of
allowed modes. Since only kernels with r.android.com/1754670 support
specifying multiple modes, fall back to trying to specify a single
mode if that doesn't work.

Bug: 189966263
Change-Id: Ie7ada3b073178b7967f0819cbdadc2d8e3a2c648
2021-07-01 15:39:32 -07:00
Rahul Sabnis
d748e6ec7a Update BluetoothAdapter and BluetoothDevice documentation
Update BluetoothAdapter#startDiscovery and
BluetoothDevice#fetchUuidsWithSdp documentation to
indicate that it queues the request if a device is
currently bonding

Tag: #feature
Bug: 187165224
Test: Manual
Change-Id: I3dbcdacff062f6c33c2fdc8d64170bf60b2fbf6f
2021-07-01 22:36:56 +00:00
Tianjie Xu
9dbd3ea3e0 Merge "Acquire the wake lock to ensure RoR isn't delayed" 2021-07-01 22:26:04 +00:00
Treehugger Robot
65cef543b4 Merge "Hopefully fix validatekeymaps mac build." 2021-07-01 21:00:32 +00:00
Tianjie Xu
5b435f9cbc Merge "Add shell command to query if lskf is captured" 2021-07-01 20:50:55 +00:00
Hans Boehm
a8540eebc3 Merge "Add dalvik.vm.force-java-zygote-fork-loop" 2021-07-01 20:17:35 +00:00
Tianjie
caefed18a2 Acquire the wake lock to ensure RoR isn't delayed
The server based RoR is time critical, and the secret has a life time
of 10 minutes by default. In one bug, we find the task scheduled by
RebootEscrowManager doesn't run until 13 minutes later. As a
precaution, hold the wake lock in RebootEscrowManager to make sure the
resume on reboot completes.

Bug: 191784420
Test: trigger a RoR
Change-Id: Ife17e279d28b73d22213188a795d0edab99d0818
2021-07-01 10:53:52 -07:00
Max Bires
5023e1fb96 Merge "Fixing the race condition in GenerateRkpKey" 2021-07-01 14:20:37 +00:00
Orion Hodson
a8b24392a1 AndroidRuntime: pass odsign verification status to ART
ART will refuse to load on-device generated artifacts if odsign
verification status suggests files have been tampered with.

Bug: 180949581
Test: manual
Change-Id: I772b5b7b191310bf7c7797161a304a1ab6f53c5e
2021-07-01 12:14:47 +01:00
Brett Chabot
1c06cb829c Hopefully fix validatekeymaps mac build.
Only link in libbinder for linux builds.

Bug: 172023026
Test: m validatekeymaps
Change-Id: Ibdcdfab2c5160644b9b9453e56a76d47f6d2b9b4
Merged-In: Ibdcdfab2c5160644b9b9453e56a76d47f6d2b9b4
2021-06-30 17:25:59 -07:00
Treehugger Robot
ce7dffbc45 Merge "Keystore 2.0: Renaming the vpnstore interface." 2021-06-30 23:51:11 +00:00
Jean-Michel Trivi
e8fb9cb844 AudioAttributes FLAG_AUDIBILITY_ENFORCED javadoc update
More documentation on the behavior of FLAG_AUDIBILITY_ENFORCED
and its intended use.

Bug: 190612108
Test: make doc-comment-check-docs
Change-Id: Ib982e1185c02e0f55024e6cae6bb18896a994ae3
2021-06-30 15:16:05 -07:00
Hans Boehm
f2a815dcbf Add dalvik.vm.force-java-zygote-fork-loop
Bug: 192020504
Test: Check logcat with and without the flag.
Change-Id: Ia46a011125a6e245bbd9065d708d1f905d56e3af
2021-06-30 15:12:54 -07:00
Rambo Wang
7405010f23 Merge "Add configurable RSRP boost for 5G NR SA." 2021-06-30 21:58:30 +00:00
Janis Danisevskis
84e082d3da Keystore 2.0: Renaming the vpnstore interface.
Renaming the vpnstore interface to legacykeystore.

Bug: 190229655
Test: TBD
Merged-In: Icd304ef621f0de52d6ebc415a0628d63f827fbcd
Change-Id: Icd304ef621f0de52d6ebc415a0628d63f827fbcd
2021-06-30 12:29:29 -07:00
Amit Mahajan
0411ba6168 Add configurable RSRP boost for 5G NR SA.
Test: atest CellSignalStrengthNrTest
Bug: 187679048
Merged-In: Ic6becca786e5f039194ffb48ca572ff1ab7ce305
Change-Id: Ic6becca786e5f039194ffb48ca572ff1ab7ce305
(cherry picked from commit ae5f04d42a)
2021-06-30 09:34:45 -07:00
Colin Cross
e05b631948 Merge "Update SystemUI baselines for lint 7.1.0-dev" 2021-06-30 14:25:21 +00:00
Nikita Ioffe
29b9f85224 Add ota_dexopt_aidl_interface
It is used by otapreopt_chroot to contact dexopt service.

Test: m
Bug: 190817237
Change-Id: I56dec13c8ec109fc47289f317e0e4844c4c1579c
2021-06-30 15:13:56 +01:00
Tianjie Xu
da9b4de8f0 Merge "Update the owner file for recovery" 2021-06-30 05:18:34 +00:00
Tianjie
a94f9a8e1b Add shell command to query if lskf is captured
This gives us accurate state on if the recovery system service gets
the lskf capture broadcast.

Bug: 191303529
Test: adb shell cmd recovery is-lskf-captured ota
Change-Id: I2e445363684568236f8a04fe34423c0a7a4ef7c4
2021-06-30 05:18:04 +00:00
satayev
bc7c83eff9 Build framework-doc-system-stubs with system stubs.
Specifing the new property makes soong pass system stub jars for
metalava to process.

Bug: 190665366
Test: m framework-doc-system-stubs
Change-Id: I0da0a0aa79d0128d81a5a6df7f9ce4a190a2b650
2021-06-29 22:27:06 +01:00
Tianjie
9a75e0da6a Update the owner file for recovery
Test: presubmit
Change-Id: I83c8112895a571472e9533b31fb159e723fb4ec6
2021-06-29 11:07:14 -07:00
Johanna Ye
744e835c40 Merge "Add synchronization to all mDeviceBusy state changes." 2021-06-29 17:44:08 +00:00
Colin Cross
1d78530816 Update SystemUI baselines for lint 7.1.0-dev
Lint 7.1.0-dev finds some new NewApi errors, add them to the baseline.

Bug: 192245952
Test: m lint-check
Change-Id: If5ffe1cda967a2da09f675923f304ba06ff2e092
Merged-In: Ib1b78f3881632a2432e5bd8d4448a8c080a87279
2021-06-29 09:33:12 -07:00
Johanna Ye
e36f798dea Add synchronization to all mDeviceBusy state changes.
Tag: #stability
Test: make
Bug: 169559728
Change-Id: I5c1b926a4c774b4bc5f24a9aaa66aa5f7780e121
2021-06-29 16:19:53 +02:00
Paul Duffin
42bdea3653 Merge "Move statsd related hidden API flag file entries to packages/modules/Statsd" 2021-06-29 09:53:28 +00:00
Treehugger Robot
25055eb9b6 Merge "Fix JNI error" 2021-06-29 09:20:49 +00:00
Taesu Lee
07e04b69a5 Fix JNI error
Replace CallStaticVoidMethod with CallStaticObjectMethod.

Bug: 192290163
Test: build & boot

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I02980e58bfd9bb334f1aa50c9e51a8ce4ae5e059
2021-06-29 04:57:38 +00:00
Sean McQuillan
9852be5c8f Merge "cherry-pick: Update fontchain_linter.py to be compatible with Compat font" 2021-06-28 20:51:50 +00:00
Sean McQuillan
9ed6166cb1 cherry-pick: Update fontchain_linter.py to be compatible with Compat font
Bug: 186700756
Test: m fontchain_lint

Merged-in: Ibfe33f29f3db998fdc0db1bbf35851841ca73d9a
Change-Id: Icfd3a8ee9e9bb4d877d721044a905ee7ecc6ed9a
2021-06-28 11:16:50 -07:00
Siim Sammul
309f87e0f8 Merge "Fix process source propagation for binder calls stats settings so that it is correctly reported in the pushed atom BinderLatencyReported." 2021-06-28 14:53:35 +00:00
Les Lee
be3696759d fix: Invalid subscription plan cause NPE
If someone setup a invalid subscription plan with
subId:INVALID_SUBSCRIPTION_ID. (For instance, test code).
It will cause NPE when WiFi connected because WiFi network doesn't own
subscriberId. (Happened on API call: buildTemplateCarrierMetered with
null subscriberId.)

Fix:
1. Add null check before calling buildTemplateCarrierMetered
2. Add invalid subId check before saving subscription plan.

Bug: 191938713
Test: atest -c NetworkPolicyManagerServiceTest

Change-Id: I835a7b8890035975e187ca0a70ec2f30ca56455a
2021-06-28 18:27:17 +08:00
Treehugger Robot
8bae06f66d Merge "Rename keylayout for SnakeByte iDroid:con to match by name" 2021-06-26 23:41:49 +00:00
Benedict Wong
6ff2b288f6 Merge "Fix dangling NetworkAgent" 2021-06-25 23:02:37 +00:00
Benedict Wong
7207a83ca8 Fix dangling NetworkAgent
This change fixes the potential for a networkAgent to be left dangling,
due to a situation where a VcnGatewayConnection shuts down, but fails to
unregister it's NetworkAgent.

The root cause was that the NetworkAgent was not unregistered when
moving to the DisconnectedState from the RetryTimeoutState, and the new
state assumed that there was no NetworkAgent, and thus failed to close
it when disconnecting.

Thus, this change ensures that the NetworkAgent is closed before moving
to the DisconnectedState. Additionally, it adds safety-checks to
onQuitting(), ensuring that if all else fails, these fields are cleaned
up.

Lastly, this change adds the specific gateway reference to facilitate
future debugging of issues such as this where there is potential for
duplicate networks, or gateway connections.

Bug: 191707296
Test: atest FrameworksVcnTests
Change-Id: I84cd43a0c136662f5c2d229650f1f5f889e6f144
2021-06-25 19:37:17 +00:00
Siarhei Vishniakou
ce40a4d0e8 Rename keylayout for SnakeByte iDroid:con to match by name
This keylayout was introduced in ba81efe04a.
Unfortunately, we cannot match by vid / pid, since this breaks other
devices (like keyboards) that use the same vendor / product id.

Instead, match by name to avoid conflict.

Bug: 191720859
Change-Id: I9dd686ebcd612ca04d41b7b5cadf8442350346c9
Test: verified manually
2021-06-25 17:14:21 +00:00