687807 Commits

Author SHA1 Message Date
Sarah Chin
c930c57534 Update carrier configs for DataConfigManager
Test: atest DataNetworkControllerTest
Bug: 202183044
Merged-In: I49e61b47a47a8db6ed3e0c8d5fa7e9b353e69edd
Change-Id: I49e61b47a47a8db6ed3e0c8d5fa7e9b353e69edd
2022-03-07 20:07:23 -08:00
Jack Yu
7aee3e22b4 Merge "Added IWLAN handover rules support" 2022-03-08 04:02:38 +00:00
Jack Yu
ed1f9a054d Added IWLAN handover rules support
Support the new IWLAN handover rules to
allow/disallow handover based on different
scenarios.

Bug: 196597630
Test: atest DataNetworkControllerTest
Merged-In: Ic5584908131d4c8e0940f3d60def2dc74a7405d9
Change-Id: Ic5584908131d4c8e0940f3d60def2dc74a7405d9
2022-03-07 18:42:13 -08:00
Xin Li
7e916e36c7 Merge Android 12L
Bug: 222710654
Merged-In: I2bf469307acd968bf4faa789a9325173d6351c1d
Change-Id: If133e68387a29411cfc08be9e616388fc65896d7
2022-03-08 00:18:13 +00:00
Treehugger Robot
da8c4948cb Merge "Update DreamService owners." 2022-03-07 23:08:33 +00:00
Roman Kiryanov
19929dffff Merge "Set host's clipboard in a separate thread" am: 7a3a3a77d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007913

Change-Id: I2bf469307acd968bf4faa789a9325173d6351c1d
2022-03-07 19:28:31 +00:00
Roman Kiryanov
7a3a3a77d3 Merge "Set host's clipboard in a separate thread" 2022-03-07 19:02:05 +00:00
Hao Ke
ce853414e6 Merge "Change unsafe readSparseArray call in ApplicationInfo." am: db4e1b7369
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2004550

Change-Id: I6e196e5270893bbab37a66c8079e2170cdab0d7d
2022-03-07 18:47:51 +00:00
Treehugger Robot
f37928716b Merge "CarrierConfigManager changes for DataConfigManager" am: 087198296d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2009011

Change-Id: Iaae4195d164780d6e167c8181ecb62ef021d4439
2022-03-07 18:46:57 +00:00
Hao Ke
db4e1b7369 Merge "Change unsafe readSparseArray call in ApplicationInfo." 2022-03-07 18:24:39 +00:00
Treehugger Robot
087198296d Merge "CarrierConfigManager changes for DataConfigManager" 2022-03-07 18:16:50 +00:00
Etienne Ruffieux
acf465e769 Merge "Add intdef to subscription info record methods" am: 5ddd0bf68e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1998850

Change-Id: I0aaa79817af5c82497c6e58b874f4bfe6fcf6906
2022-03-07 18:08:23 +00:00
Etienne Ruffieux
5ddd0bf68e Merge "Add intdef to subscription info record methods" 2022-03-07 17:47:04 +00:00
Treehugger Robot
da70fd1af3 Merge "Avoid removing USB state changes during CONFIGURED uevent" am: 6b8b9efad1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1898830

Change-Id: Ia1a792ea55cff7136c3dc133c4deb5caf7c96809
2022-03-07 17:26:54 +00:00
Hans Boehm
25128ddbfd Merge "Increase Zygote command buffer size to 32k." am: ef1cd8a1ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2009575

Change-Id: Ic2f9475d8cf8b5d087ddbceedcc73c61982f13ce
2022-03-07 17:25:45 +00:00
Treehugger Robot
6b8b9efad1 Merge "Avoid removing USB state changes during CONFIGURED uevent" 2022-03-07 17:11:26 +00:00
Hans Boehm
ef1cd8a1ca Merge "Increase Zygote command buffer size to 32k." 2022-03-07 16:57:48 +00:00
brycelee
af2fa38271 Update DreamService owners.
Change-Id: I591f313e30d3ab435fe316bab752c1e80d28394a
Test: N/A
2022-03-07 16:49:34 +00:00
Nicolas Geoffray
13f1f45e1e Move GraphicsStatsService native method registration to zygote.
It used to be in system server, but this is for a class in boot
classpath so we can move it to AndroidRuntime.cpp and avoid system
server dirtying memory for these methods.

Test: m
Bug: 162110941
Change-Id: Ifda5957aab757fe47c97b1aee0a6a8b7a059ac3d
2022-03-07 16:44:50 +00:00
Kanyinsola
fd127c62e7 Reduce NTP polling interval
Change NTP polling interval from 24 hours to 18 hours. The max allowed
age of a time suggestion for it to be considered by the time_detector
is set to 24 hours, so if we only refresh NTP after 24 hours, it means
devices may commonly switch to newer NITZ signals when the NTP signal
"expires". Then it will flip back to NTP when the NTP alarm triggers.
Whether it switches to an NITZ signal or not also depends on things
like whether NITZ signals are received, or other things happen that
force the time_detector to reassess suggestions, after the NTP
suggestion has expired.

If we can keep devices consistently using NTP, that's going to lead to
 better results, especially given NITZ can be quite inaccurate.

18 hours has been chosen as an arbitrary compromise: it gives the
device 25% of the expiry interval to get a fresh signal. It should
mean that NITZ isn't used in the common case.

Bug: 217357882
Test: None
Change-Id: I86281888ce009a19e50240d7f07aac1f5ce72222
2022-03-07 11:08:12 +00:00
Aaron Huang
623fe199f7 Fix proto invalid write type
While dumpProtoLocked is called, InvalidProtocolBufferException
occurred because types are mismatched between platform side and
module side.

netstats.proto was moved into connectivity module, both the
platform(incident.proto) and the module uses protoc-gen-javastream
to generate the Java classes from it. It should be fine since
platform includes the source of the proto, and jarjar the generated
classess in the module to avoid conflict with platform.

Bug: 218566849
Test: adb shell incident 3001
      adb shell dumpsys netstats --proto
      atest CtsIncidentHostTestCases:IncidentdTest#testIncidentReportDumpAuto
Change-Id: I4654350a59dc1ca1a925785ad37f34aa7b481235
Merged-In: I4654350a59dc1ca1a925785ad37f34aa7b481235
2022-03-07 08:44:25 +00:00
Frank
558180f850 [DU09-2]Modify the NetworkStatsCollection Builder API
1. Adding the bucketDuration with unit as bucketDurationmillis
2. make the Key class be final
3. The Key set parameter be marked with an IntDef

Bug: 220153505
Test: atest NetworkStatsCollectionTest
Change-Id: Iab32b8fc129b77d6786c2f1f2339e515f2eb55f7
2022-03-07 16:28:55 +08:00
Chiachang Wang
b8cda9d7e0 Merge "Set local routes exclusion in the networkAgent" am: 4734b5810b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978095

Change-Id: I03eaf7cf1ffc7237f267a85d2d1a25d93afe3896
2022-03-07 07:46:21 +00:00
Chiachang Wang
4734b5810b Merge "Set local routes exclusion in the networkAgent" 2022-03-07 07:25:52 +00:00
markchien
6b6d4a1d09 Remove ConnectivityManager swapActiveStatsMap API
swapActiveStatsMap is temporary added for the NetworkStatsFactory to
call BpfNetMaps#swapActiveStatsMap in tethering mainline module. Now
NetworkStatsFactory already be mainlined, calling BpfNetMaps#swapActiveStatsMap
directly.

Bug: 218494448
Test: atest ConnectivityCoverageTests
      atest FrameworksNetTests
Change-Id: I25618020c078c7de3f0036c48d06d7816a431f62
2022-03-07 12:35:48 +08:00
Chiachang Wang
68e528d468 Set local routes exclusion in the networkAgent
Add a field in the VpnConfig to store local route exclusion
bit from VpnProfile, and set the value into the networkAgent
of VPN network.

Bug: 184750836
Test: atest FrameworksNetTests HostsideVpnTests
Change-Id: I22b9a5990a3dab0418b44ec19d2996ead6529231
2022-03-07 04:26:52 +00:00
markchien
975003d07c Split updateMeteredNetwork{Allow, Deny}List into add and remove
Bug: 218494748
Test: atest FrameworksNetTests
Change-Id: I06fdf88a6b6988377478665389f307ea7269bbf1
2022-03-07 11:33:16 +08:00
Sarah Chin
11c8327c5b CarrierConfigManager changes for DataConfigManager
Test: atest FrameworksTelephonyTests
Bug: 202183044
Merged-In: Ie4fc79646b58d7daf167958b579df84889b65ade
Change-Id: Ie4fc79646b58d7daf167958b579df84889b65ade
2022-03-05 20:44:19 -08:00
Martijn Coenen
06b7912b10 Increase Zygote command buffer size to 32k.
ApplicationInfo is getting too big :(

Bug: 219763513
Test: boot, TreeHugger
Merged-In: I6dba57af9aa99ec0730903dd89589d08c513beb2
Change-Id: I6dba57af9aa99ec0730903dd89589d08c513beb2
(cherry picked from commit 3d60f035c164ebc1416b5a3f7474e6088b731869)
2022-03-04 15:21:34 -08:00
Eric Biggers
56c37e5778 Merge "Remove broken code for mounting encrypted OBB files" am: a4f24f08b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003052

Change-Id: Id027c555af21e46922a1c0ce29195d95bb7bb876
2022-03-04 21:27:43 +00:00
Eric Biggers
a4f24f08b0 Merge "Remove broken code for mounting encrypted OBB files" 2022-03-04 20:58:13 +00:00
Colin Cross
4d7c2941c1 Update StaleDataclassProcessor for JDK 17
JDK 17 no longer allows access to com.sun.tools.javac.code by default,
use the public APIs instead.

Bug: 219098645
Test: m checkbuild
Change-Id: If379935cc4ab9e5c809cc9fbfccbacfd8d87e8c8
2022-03-04 12:51:28 -08:00
Treehugger Robot
e502cbe5db Merge "identity: Add clarifications to newly added API." am: ad3097312c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007310

Change-Id: Ia6c3cfb254f07ea892733b2ff773d6037df2ca8e
2022-03-04 19:58:41 +00:00
Treehugger Robot
ad3097312c Merge "identity: Add clarifications to newly added API." 2022-03-04 19:31:39 +00:00
Treehugger Robot
f392915186 Merge "Log emulator's clipboard access to logcat" am: d1cd0480c7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007712

Change-Id: I5bcbbe8ffe66e7a70a548b2a028f29df80c2f31f
2022-03-04 19:13:32 +00:00
Winson Chiu
df67697c7e Merge "Fix some resources OWNERS files" am: 9a90f629aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2008361

Change-Id: I7250f65f0d591f9dcbdc06e09c4d94ad3f60a701
2022-03-04 19:13:03 +00:00
Treehugger Robot
d1cd0480c7 Merge "Log emulator's clipboard access to logcat" 2022-03-04 18:50:14 +00:00
Winson Chiu
9a90f629aa Merge "Fix some resources OWNERS files" 2022-03-04 18:46:14 +00:00
Arthur Hung
f6f1a8d7cf Merge "Add owner for wm policy test" am: 4ccfb8ecff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1997132

Change-Id: I2468961973f153efd59ad8a7336384510818c1af
2022-03-04 12:39:43 +00:00
Arthur Hung
4ccfb8ecff Merge "Add owner for wm policy test" 2022-03-04 12:13:42 +00:00
Sudheer Shanka
7ab7d6fb0b Merge "Register broadcast receivers for PACKAGE_ADDED/UID_REMOVED on all users." am: 42ed3e04f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931761

Change-Id: Iec4fbc757a5303ae7ec77e7733346e785811b9da
2022-03-04 12:08:50 +00:00
Neil Fuller
5c576e6d48 Merge "Make NTP config configurable from cmd" am: 271dfbe8df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007272

Change-Id: If16a743fc61890fd9e64856edc3bd8ccc9a4dd46
2022-03-04 12:08:06 +00:00
Sudheer Shanka
42ed3e04f3 Merge "Register broadcast receivers for PACKAGE_ADDED/UID_REMOVED on all users." 2022-03-04 11:45:07 +00:00
Neil Fuller
271dfbe8df Merge "Make NTP config configurable from cmd" 2022-03-04 11:41:14 +00:00
Riddle Hsu
a0ab4f6bb2 Merge "Fix NPE in WakeLock#finalize for unit test" am: a29bc7bbd8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2005611

Change-Id: I1cfbc86ff704c155cfeef3cf9d2852f7cb52dbd3
2022-03-04 05:57:27 +00:00
Roman Kiryanov
ff70f5d9f4 Set host's clipboard in a separate thread
It is not recommended to do IO in the UI thread.

Bug: 219611030
Test: boot AOSP, check if clipboard works
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Iaf445ae3e6e009b86ccf4d1783dffeebc165bb62
2022-03-03 21:43:21 -08:00
Riddle Hsu
a29bc7bbd8 Merge "Fix NPE in WakeLock#finalize for unit test" 2022-03-04 05:32:01 +00:00
Eric Biggers
8bc9340b4c Remove broken code for mounting encrypted OBB files
Mounting encrypted OBB files has never worked reliably across devices,
partly due to its reliance on Twofish encryption support in the kernel.
This is because Twofish support (CONFIG_CRYPTO_TWOFISH) has never been
required or even recommended for Android.  It has never been enabled in
GKI, but even before GKI it wasn't required or recommended.  Moreover,
this is now the only Android feature that still uses dm-crypt
(CONFIG_DM_CRYPT), and some devices don't have that enabled either.

Therefore, it appears that this feature is unused.  That's perhaps not
surprising, considering that the documentation for OBBs
(https://developer.android.com/google/play/expansion-files) says that
they are deprecated, and also it explains OBBs as being app files that
are opaque to the platform; the ability of the platform to mount OBBs
that happen to be in a particular format is never mentioned.  That means
that OBB mounting is probably rarely used even with unencrypted OBBs.
Finally, the usefulness of OBBs having their own encryption layer (in
addition to what the platform already provides via FBE) is not clear
either, especially with such an unusual choice of cipher.

To avoid the confusion that is being caused by having the broken code
for mounting encrypted OBBs still sitting around, let's remove it.

Test: atest StorageManagerTest # on Cuttlefish
Test: atest StorageManagerIntegrationTest # on Cuttlefish
Bug: 216475849
Change-Id: I6e6a6462ab8343299dc5e0145b87dc28b16b0bc1
2022-03-04 04:51:54 +00:00
Weijie Wang
d39037f684 SystemUI: Fix signal bar icon overlay issue
If the signal bar visible state is STATE_DOT, it should be shown
a dot instead of signal bar icons. But the signal bar icon will
be shown again if the mobile state changed, and then, the dot and
signal bar icon are both shown. So don't update signal bar
visibility if the state is not STATE_ICON

Bugs: 200915946
Test: Manual
Change-Id: I7fb04049790f112441511462d3f2963aed42c790
2022-03-04 10:52:12 +08:00
Treehugger Robot
5badbebbf9 Merge "Update API documentation for onRttInitiationFailure." am: 7ee20f2830
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1990510

Change-Id: I54c15076d8ecb686376da1da70c4ff4a394bb118
2022-03-04 02:31:40 +00:00