Commit Graph

530366 Commits

Author SHA1 Message Date
Junyu Lai
860b9660d7 Merge "Support dynamically update IMSI" am: 5d2e89e03d am: 9b8855c018
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418348

Change-Id: Ic369f77eb09979e8ed36e4207fe42f293548ba90
2020-10-13 03:49:06 +00:00
TreeHugger Robot
1b6030e24c Merge "Merge ab/6749736 in stage." into stage-aosp-master 2020-10-13 03:31:35 +00:00
Junyu Lai
9b8855c018 Merge "Support dynamically update IMSI" am: 5d2e89e03d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418348

Change-Id: Id06d5d37ad5f12e689643c916548e9a59089eb3b
2020-10-13 03:22:09 +00:00
Woody Lin
c1125934ec Watchdog: break timeout loop via system fatal crash
Request system fatal crash via SysRq when a watchdog timeout loop is
detected. This escapes automatically the device hanging symptom and also
preserves context of system server in memory snapshot.

More details and background: go/break-sys-watchdog-loop

Bug: 141948707
Test: Insert 'sleep_forever()' to block BinderThreadMonitor to reproduce
      watchdog timeout.
Change-Id: I3ae4b33b0d7811764c61663ac3718311b55fd048
2020-10-13 11:15:28 +08:00
Junyu Lai
5d2e89e03d Merge "Support dynamically update IMSI" 2020-10-13 02:41:47 +00:00
Remi NGUYEN VAN
55b503d725 Use IpUtils, NetworkStackConstants in DadProxyTest
The test had TODOs to address to use IpUtils and NetworkStackConstants
classes once they were moved to frameworks/libs/net. This is now done,
so using the new classes.

Bug: 158042941
Test: atest TetheringPrivilegedTests
Change-Id: I536b4506dbc3b42547ba9cb4e7c3c7a3e9459dd1
2020-10-13 11:30:03 +09:00
Treehugger Robot
06292bb0e6 Merge changes Ife0b17c2,If37e5c6c am: d4baac7702 am: b0e98333fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455631

Change-Id: I275abdf6d24be889b6ef49a6112801129a4c081c
2020-10-13 01:25:59 +00:00
Tej Singh
903198768a Remove alarm manager dependency from anomalyalarms am: 8b914c0f00 am: 9483816bad
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455630

Change-Id: Ic37b37185bc55423086c2140045eda723f591431
2020-10-13 01:25:48 +00:00
Charles Chen
c947b10f99 [RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays""
This reverts commit ae03031efe.

Reason for revert: Merge the reverted patch by accident.

Bug: 162627132
Change-Id: Ic2f072730050cb47926cec6ed24af7ef9e5e7055
2020-10-13 01:14:25 +00:00
Treehugger Robot
b0e98333fe Merge changes Ife0b17c2,If37e5c6c am: d4baac7702
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455631

Change-Id: Id30adbb17a0d96d7dd144c615bc6af4eef36bf07
2020-10-13 01:04:21 +00:00
Tej Singh
9483816bad Remove alarm manager dependency from anomalyalarms am: 8b914c0f00
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455630

Change-Id: I208d6de3f9c6f7da685aa69551d97c20232eb39c
2020-10-13 00:53:03 +00:00
Sudheer Shanka
24802a49d3 Merge "Check UID's process state before restricting its network." am: 114124c348 am: 5eefebd02e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438379

Change-Id: I302404f23e46451583e46537e6a8736e90af14dd
2020-10-13 00:30:15 +00:00
Treehugger Robot
d4baac7702 Merge changes Ife0b17c2,If37e5c6c
* changes:
  Remove dead code for AnomalyAlarm
  Remove alarm manager dependency from anomalyalarms
2020-10-13 00:28:41 +00:00
Sudheer Shanka
5eefebd02e Merge "Check UID's process state before restricting its network." am: 114124c348
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438379

Change-Id: Iedeb9d7d3aba3dd29041bd325e9c8be9f21880b5
2020-10-13 00:01:00 +00:00
Amy Zhang
b02aa376d1 Add Android Media TV members as owners of the framework/base/media
component

Test: make -j44 dist
Bug: 159058358
Bug: 158816517
Change-Id: Ibf6eb62de0b17b9a568941108b49ab54ae577c1c
2020-10-12 16:42:30 -07:00
Sudheer Shanka
114124c348 Merge "Check UID's process state before restricting its network." 2020-10-12 23:31:17 +00:00
Treehugger Robot
3f75fdeb9d Merge "Update docs and add nullability annotations" am: 9c0f722e2e am: c7898c9355
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455141

Change-Id: Ia082e6d94288b38a168dc6f3a1139e8338688102
2020-10-12 22:55:47 +00:00
Brad Ebinger
70c45b45b4 Merge "Add READ_PRIVILEGED_PHONE_STATE to TestApi" am: d70fa41860 am: 8c9d627fa3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455422

Change-Id: Ia2fdc38137a422424c72862f463e2a84459f4283
2020-10-12 22:55:36 +00:00
Treehugger Robot
c7898c9355 Merge "Update docs and add nullability annotations" am: 9c0f722e2e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455141

Change-Id: If9ce7912dc46b309591a37408968303eae5a46d0
2020-10-12 22:30:21 +00:00
Nathan Harold
1ebbc47c0e Expose MmTelCapabilities#isCapable() as Public API
Expose the MmTelCapabilities#isCapable() API to complete
a chain of APIs exposed for debuggability in Android RVC.

Without this API, there is no (public) way for a caller that
receives a capability callback to determine whether a particular
MMTel feature is enabled for a particular IMS Connection.

Bug: 156107100
Test: make update-api && make offline-sdk-docs && make
Test: cts - ImsServiceTest#testCapabilityStatusCallback()
Merged-In: I0a0d72897112460370e6981ae33cef4da6e3ce4b
Change-Id: I0a0d72897112460370e6981ae33cef4da6e3ce4b
(cherry picked from commit 21157d56a9)
2020-10-12 15:11:59 -07:00
Treehugger Robot
9c0f722e2e Merge "Update docs and add nullability annotations" 2020-10-12 22:09:38 +00:00
Brad Ebinger
8c9d627fa3 Merge "Add READ_PRIVILEGED_PHONE_STATE to TestApi" am: d70fa41860
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455422

Change-Id: I48b3f1431054a0e35c00daf3612229127c217857
2020-10-12 22:02:33 +00:00
Brad Ebinger
d70fa41860 Merge "Add READ_PRIVILEGED_PHONE_STATE to TestApi" 2020-10-12 21:53:27 +00:00
Hall Liu
1dc684e4fc Update docs and add nullability annotations
Fixes: 125463584
Test: docs only
Change-Id: I8c39d0e11278d99c6a7364c09b0584797f749b2a
2020-10-12 11:47:50 -07:00
Anton Hansson
374c51141a Remove jdiff_enabled from platform metalava runs
The official API differences report is not produced from the
artifacts this rule creates, but by manually running metalava
with the right txt files.

As there are no other known users of these jdiff files, remove them
for now.

Bug: 158465496
Test: m
Change-Id: Iee9dd1a5d5543f3f629e3631c8224e6bfe4dddcb
2020-10-12 18:49:44 +01:00
Treehugger Robot
db5bc807a0 Merge "Fix guest icon is not clickable after adding user" am: a35917822d am: f9fb9f6983
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1452495

Change-Id: I0b9f0c874b4a58723bc455755b866e3ce8af6e5b
2020-10-12 17:22:22 +00:00
Treehugger Robot
f9fb9f6983 Merge "Fix guest icon is not clickable after adding user" am: a35917822d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1452495

Change-Id: I4f9139038774c222ea722af4607fe1e798eeb852
2020-10-12 16:34:34 +00:00
Treehugger Robot
a35917822d Merge "Fix guest icon is not clickable after adding user" 2020-10-12 16:14:57 +00:00
TreeHugger Robot
8a847beeff Merge "[RESTRICT AUTOMERGE] Fix VrDisplayTest failure" into rvc-dev am: 936cd3b3f1 am: 1c3a411a39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683367

Change-Id: I1c4fbb96b452c127326575444ffc969d27f129c0
2020-10-12 12:27:06 +00:00
Charles Chen
9f1a808925 [RESTRICT AUTOMERGE] Fix VrDisplayTest failure am: 8d71bdf3e6 am: 440cdf385a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683367

Change-Id: I81e38982d347a7885f1967fd5e4dc09d426cb692
2020-10-12 12:27:01 +00:00
TreeHugger Robot
1c3a411a39 Merge "[RESTRICT AUTOMERGE] Fix VrDisplayTest failure" into rvc-dev am: 936cd3b3f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683367

Change-Id: Ife885c3cdbc170fd3d07d4c48ef7ccb63e6f8b2e
2020-10-12 11:43:51 +00:00
Charles Chen
440cdf385a [RESTRICT AUTOMERGE] Fix VrDisplayTest failure am: 8d71bdf3e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683367

Change-Id: I944363b2a0e887dc42137e3962a2c85dae54ffca
2020-10-12 11:43:45 +00:00
TreeHugger Robot
936cd3b3f1 Merge "[RESTRICT AUTOMERGE] Fix VrDisplayTest failure" into rvc-dev 2020-10-12 11:28:41 +00:00
Anton Hansson
88901af27b Merge "Move the dist rules from monolithic to merged rules" am: 99398da506 am: 3b8ec2dcac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454979

Change-Id: Ie28b14a6f8ba236ee555a11b4284b7473eb3e7b7
2020-10-12 11:26:00 +00:00
Anton Hansson
3b8ec2dcac Merge "Move the dist rules from monolithic to merged rules" am: 99398da506
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454979

Change-Id: I6fbbea431b2d385036135491c509afc0db887571
2020-10-12 11:04:51 +00:00
Anton Hansson
99398da506 Merge "Move the dist rules from monolithic to merged rules" 2020-10-12 10:45:13 +00:00
junyulai
e60d9a82c9 Support dynamically update IMSI
Currently, NetworkStatsSubscriptionsMonitor will skip the
listener registration until the IMSI is available to deal
with SIM PIN locked case. However, this solution can only
handle the case that IMSI changes from/to null. And it also
relies on the assumption that IMSI never changes for a subId.

Thus, support dynamically update IMSI to handle IMSI changes
more robustly.

This patch also address leftover comments at ag/12400327.

Test: enable SIM PIN and manually test
Test: atest NetworkStatsSubscriptionsMonitorTest#testSubscriberIdUnavailable
Test: atest NetworkStatsSubscriptionsMonitorTest#testSubscriberIdChanged
Test: ./out/host/linux-x86/bin/statsd_testdrive 10082
Bug: 160941101

Change-Id: I625a5b10ee4806f6fee99c2d9d6c5e7977ff785e
2020-10-12 15:31:02 +08:00
yangyankai1
ea86d71308 AutoBrightness: Remove handler's messages before send.
The contentprovider's callback 'onChange(...)' is asynchronous.
If one app set the 'screen_brightness' provider frequently over a period of time,
the contentprovider's 'onChange(...)' can't stop, just like 'Self-exciting oscillation'.
So, We need remove handler's messages before send.

Test: build pass, feature pass.
TestCase: set the 'screen_brightness' provider frequently, can use a
loop: for(i=0;i<1000;i++){put(...)}.

Signed-off-by: yangyankai1 <yangyankai1@xiaomi.com>
Change-Id: I346696c69623829d4dda372edaf35b6e3f147780
2020-10-12 15:13:24 +08:00
Zhuying Li
a67424cf96 Unregistering PackageMonitor only when has registered it
Do not unregistering PackageMonitor when it does not register.

Bug: 162302943
Change-Id: I9496196e80bff8b669539c9c54d39dbbf6ad2dba
2020-10-12 11:13:42 +08:00
xiamengsen
42f3c9496e Check UID's process state before restricting its network.
It is possible that an app which is in fg-service process state to be
considered idle. Since we don't want to block connectivity of apps in
the foreground state, we should check the uid process state in addition
to its idle state when deciding whether to block its network or not.

Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_enabled

Signed-off-by: xiamengsen <xiamengsen@xiaomi.com>
Change-Id: If7e42605eb162abf6f88f03f28f7245659a7748c
2020-10-12 02:27:44 +00:00
Lorenzo Colitti
649c2bbbd8 Merge "Speculatively fix L2TP keepalive issues by reducing mtu" am: 392b52f49f am: 926d1ee880
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1399646

Change-Id: Ie6a7fdb8e1ce035ce145b90645290e7e4777f7e6
2020-10-12 01:20:47 +00:00
Lorenzo Colitti
926d1ee880 Merge "Speculatively fix L2TP keepalive issues by reducing mtu" am: 392b52f49f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1399646

Change-Id: Iac7fc24c531db663469df1b1161d9f85a4c6f3ee
2020-10-12 01:06:47 +00:00
Lorenzo Colitti
392b52f49f Merge "Speculatively fix L2TP keepalive issues by reducing mtu" 2020-10-12 00:40:44 +00:00
Xin Li
986e6eeddf Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
Change-Id: I9e9c873bc2e05a0cfe3af0bf74725500f3f108db
2020-10-10 20:38:57 -07:00
Taesu Lee
7fd6937034 Add new config_sms_ask_every_time_support
New config_sms_ask_every_time_support indicates whether it supports
"Ask every time" for sms.

Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: Ic7b123bced6cd741538f7c412d2b236cdce41c14
2020-10-10 17:01:51 +09:00
Benedict Wong
3ad3793f8d Merge "Create VCN subdirectories and add relevant owners" am: ccd316924d am: 5a90f6bde8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455062

Change-Id: I33b4a730c2d017ddf7cc8ebd6a678fb00e953ef2
2020-10-10 06:27:03 +00:00
Benedict Wong
5a90f6bde8 Merge "Create VCN subdirectories and add relevant owners" am: ccd316924d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455062

Change-Id: Ia708d5bac1745ee5e3a61c6c466dcae6246c1ca7
2020-10-10 06:05:11 +00:00
Benedict Wong
ccd316924d Merge "Create VCN subdirectories and add relevant owners" 2020-10-10 05:30:39 +00:00
Tej Singh
39074df903 Remove dead code for AnomalyAlarm
Anomaly alarms now rely on the flow of events into statsd's socket for
firing alarms. Remove the StatsCompanionService code path, which is
unused now.

Test: m
Bug: 161326200
Bug: 152642091
Change-Id: Ife0b17c281984fc489ef46039cbf5aa7b1346bdb
Merged-In: Ife0b17c281984fc489ef46039cbf5aa7b1346bdb
2020-10-10 04:33:12 +00:00
Tej Singh
8b914c0f00 Remove alarm manager dependency from anomalyalarms
Anomaly alarms, which are used for prediction-base duration metric
anomaly detection, currently use alarm manager for setting alarms. This
can result in excessive binder calls to SCS to set/cancel the alarms if
the duration metric that the alarm is based on gets stopped/started in
quick succession.

To resolve this without losing precision, we can instead rely on the
flow of events into the statsd socket for this prediction. The socket
receives events very frequently, so there should be minimal (if any)
loss of precision, and we can remove the binder call entirely.

One concern is that we used to hold a wakelock when the alarm fired
(since alarm manager would hold a wakelock), and we now lose this
ability.

Test: atest statsd_test
Test: atest AnomalyDetectionTests
Bug: 161326200
Bug: 152642091
Change-Id: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca
Merged-In: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca
2020-10-09 16:05:57 -07:00