Commit Graph

440248 Commits

Author SHA1 Message Date
Cody Kesting
960dd65d49 Merge "Implement INetworkMonitorCallbacks#notifyDataStallSuspected." 2020-02-06 15:47:26 +00:00
Andrei-Valentin Onea
7202e904c9 Merge "Add permissions for using PlatformCompat methods" 2020-02-06 13:40:34 +00:00
Andrei Onea
26559bcb40 Add permissions for using PlatformCompat methods
- READ_COMPAT_CHANGE_CONFIG is required to read the current state of the
config
- LOG_COMPAT_CHANGE is required to log the status of a compat change for
a package and/or uid to statsd
- OVERRIDE_COMPAT_CHANGE_CONFIG is required to add overrides

The permissions must be signature|privileged, as there are already
examples of code which this would not be sufficient (e.g.
MediaProvider).

This is a re-landing of https://r.android.com/1209240, which was
reverted due to http://b/142942524. The actual fix was done in
http://ag/10234812.


Bug: 142650523
Test: atest PlatformCompatTest
Test: atest PlatformCompatPermissionsTest
Change-Id: Ie9429477c9a1725b5cb67756787bf742038e5d2b
2020-02-06 12:22:42 +00:00
Mark Chien
4770588bc5 Merge "Fix NPE that netd callback call null TetheringConfiguration object" 2020-02-06 09:03:39 +00:00
Aaron Huang
0daef81444 Merge "Use Context.NETWORK_POLICY_SERVICE to get network policy service" 2020-02-06 08:51:30 +00:00
Neil Fuller
81a42af40d Merge "Avoid a @Nullable Boolean" 2020-02-06 08:43:56 +00:00
Treehugger Robot
2a53c0c16e Merge changes from topic "boottime"
* changes:
  statsd atom: Fix errara and missing item for boottime metrics
  Rename FS_MGR_FS_STAT into FS_MGR_FS_STAT_DATA_PARTITION
  Add proto definition for boottime metrics
2020-02-06 07:41:39 +00:00
markchien
e67c56434b Fix NPE that netd callback call null TetheringConfiguration object
Bug: 148386056
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I3b1dd958fc107fdc9a6059fbdcf358af4822ebde
2020-02-06 15:25:47 +08:00
Treehugger Robot
750ab04052 Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" 2020-02-06 04:36:14 +00:00
Chalard Jean
85a6565897 Merge "[NS A40] Read current reassignment state instead of global state" 2020-02-06 04:14:43 +00:00
Shuo Qian
89d5fcfb97 Merge "Added config_data_capable flag" 2020-02-06 04:07:37 +00:00
Shuo Qian
a4335f0840 Merge "Make hidden API isDataCapable for Telephony" 2020-02-06 04:07:37 +00:00
Lorenzo Colitti
ee6679031e Merge "Associate MAINLINE_NETWORK_STACK with net_raw and net_admin gid" 2020-02-06 03:10:01 +00:00
Jiyong Park
bef404385c Merge "use apex_test for test apexes" 2020-02-06 01:36:27 +00:00
Benedict Wong
95d9c6164b Merge changes I5a01d709,I1b7da86d
* changes:
  Add Skeleton Ikev2VpnRunner class
  Add VpnRunner abstract class
2020-02-06 00:55:05 +00:00
Rahul Sabnis
966cef37c2 BluetoothAdapter#connectAllEnabledProfiles and
BluetoothAdapter#disconnectAllEnabledProfiles updated to require
BLUETOOTH_PRIVILEGED permission and update documentation to indicate
connection and disconnection is asynchronous

Bug: 147321746
Test: Manual
Change-Id: I961f02a539a247b1397ce4f478b9dc804d9973ab
2020-02-05 16:37:18 -08:00
Xiangyu/Malcolm Chen
53ae130d31 Merge "Move ACTION_CARRIER_* intent and extras from TelephonyIntents to TelephonyManager." 2020-02-05 23:31:51 +00:00
Cody Kesting
7d4c82788a Implement INetworkMonitorCallbacks#notifyDataStallSuspected.
INetworkMonitorCallbacks defines notifyDataStallSuspected() for
notifying ConnectivityService of networks encountering a potential data
stall. A new event is introduced for ConnectivityDiagnosticsHandler to
process the notification and invoke the relevant
ConnectivityDiagnosticsCallbacks.

Bug: 143187964
Test: compiles
Test: atest CtsNetTestCases FrameworksNetTests
Change-Id: I70320bdda9855dced31e08e6a0b25329fb5cb535
Merged-In: I70320bdda9855dced31e08e6a0b25329fb5cb535
2020-02-05 15:05:28 -08:00
Jiashen Wang
e37c8d26c2 Merge "Add isEuiccSupportedCountry system API to EuiccManager" 2020-02-05 22:14:06 +00:00
Daniel Bright
d1e1b35604 Added config_data_capable flag
A future commit will take advantage of this flag

Test: Build
Bug: 146206136
Change-Id: I91cde262837b8748a4cf796d66c035aabe779079
Merged-In: I19ac83f5865e8763cd9414c41d4609f79d0db164
2020-02-05 13:47:28 -08:00
Radhika Agrawal
5867fb23e9 Merge "Add rtp silence detection and inactivity detection to call quality" 2020-02-05 21:37:10 +00:00
Keun young Park
8856b2592a statsd atom: Fix errara and missing item for boottime metrics
- Init's 1st stage has both start time and duration. Add missing duration.
- Fix other errata.

Bug: 132691841
Test: Build
Change-Id: I5ea25cba29ab8b4de630308eaba2b5d6f30a29b7
Merged-In: I5ea25cba29ab8b4de630308eaba2b5d6f30a29b7
2020-02-05 13:33:57 -08:00
Keun young Park
b95f21f9e8 Rename FS_MGR_FS_STAT into FS_MGR_FS_STAT_DATA_PARTITION
- FS_STAT can be returned per each partition mounted. Currently only
  /data partition is checked but rename it so that we can add additional
  partitions in future.

Bug: 132691841
Test: Build
Change-Id: I3f1280ce84df1137a92ac59b15937a32c7ac8d01
Merged-In: I3f1280ce84df1137a92ac59b15937a32c7ac8d01
2020-02-05 13:33:57 -08:00
Keun young Park
352c9f6fbc Add proto definition for boottime metrics
- Most of them are for migrating from existing historgram logging.
- Following three items added as those critical information were missing:
  SECONDARY_ZYGOTE_INIT_START, LAUNCHER_START, LAUNCHER_SHOWN

Bug: 132691841
Test: build only, follow-up CLs will be added later per each logging components

Change-Id: I26cbca3b6f2d9f990dde31ac0880272ac141ff36
Merged-In: I26cbca3b6f2d9f990dde31ac0880272ac141ff36
2020-02-05 13:33:46 -08:00
nchalko
19f99b96eb Merge "TvProvider API standardization for ATSC3.0 and DVB" 2020-02-05 21:09:42 +00:00
Cody Kesting
113ea83450 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." 2020-02-05 19:55:05 +00:00
Jack Yu
361cae3630 Merge changes from topics "cbs_area_info", "subscription_id"
* changes:
  Added area info support in cell broadcast service
  Renamed SUB_ID to SUBSCRIPTION_ID
2020-02-05 19:13:54 +00:00
Yo Chiang
739c45ea23 Merge "DSU to support GSI key revocation list" 2020-02-05 19:01:54 +00:00
radhika
c3cc7d0324 Add rtp silence detection and inactivity detection to call quality
Test: builds
Bug: b/143307441
Change-Id: Idc9b2077f73a05542ab531e67b41545022ec25a1
Merged-In: Idc9b2077f73a05542ab531e67b41545022ec25a1
2020-02-05 18:53:31 +00:00
Cody Kesting
d198ed0a80 Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras.
INetworkMonitorCallbacks defines notifyNetworkTestedWithExtras() for
notifying ConnectivityService of networks being tested along with a
PersistableBundle of extras. A new event is introduced for
NetworkStateTrackerHandler to notify the ConnectivityDiagnosticsHandler
before continuing with the normal processing for "network tested"
notifications. The event is also used in the
ConnectivityDiagnosticsHandler.

Bug: 143187964
Bug: 147391402
Test: compiles.
Test: atest CtsNetTestCases FrameworksNetTests
Change-Id: Iab29da790c0f5faae68227770bc3a84bbc94f124
Merged-In: Iab29da790c0f5faae68227770bc3a84bbc94f124
2020-02-05 18:48:12 +00:00
Neil Fuller
b2d0306a00 Avoid a @Nullable Boolean
To avoid a @Nullable Boolean one method has been split into two. After
some changes in the last release this also removes an optional parameter
from the two new methods as it is now always null.

Bug: 148450671
Test: treehugger
Change-Id: I83be9647943c16ae30af4f8d032db428af1ad5fc
2020-02-05 17:13:31 +00:00
Neil Fuller
05cf3e896c Merge "Correct a permission check / add a test" 2020-02-05 17:05:50 +00:00
Treehugger Robot
a970f218ea Merge "Make IdentityCredentialStore.getInstance() return null if credstore is not installed." 2020-02-05 16:35:48 +00:00
Vladimir Marko
5c517f5ae9 Merge "Clean up options for ART runtime." 2020-02-05 15:41:18 +00:00
Neil Fuller
cce4dcd300 Correct a permission check / add a test
This change corrects a permission check in TimeZoneDetectorService
which is now covered by a test.

A TestHandler common to the timezonedetector and timedetector classes
has been extracted and made less flaky.

There are some changes included to make the equivalent time zone and
time classes consistent and to improve method names.

Bug: 140712361
Test: atest com.android.server.timezonedetector
Test: atest com.android.server.timedetector

Change-Id: Ic380ede6c7276d6b80f0fc74b30bba8c89c07fcc
2020-02-05 13:38:46 +00:00
Neil Fuller
f5f137b9d3 Merge "Remove System APIs not required for R" 2020-02-05 11:56:20 +00:00
Hungming Chen
14858acba5 Associate MAINLINE_NETWORK_STACK with net_raw and net_admin gid
Provide network stack the permission to access eBPF maps for tethering
offload

Test: m
Test: cat /proc/<pid>/status of network_stack has net_raw (3004) and
      net_admin (3005)

$ adb shell cat /proc/<pid>/status | egrep "Name|Uid|Gid|Groups"
Name:   rkstack.process
Uid:    1073    1073    1073    1073
Gid:    1073    1073    1073    1073
Groups:	1073 3001 3002 3003 3004 3005 3006 3007 9997

Change-Id: Ib3f6094e4c846832e44497466e3fed7dcd125593
2020-02-05 11:55:30 +00:00
Aaron Huang
12aeaefeaf Merge "Add setSubscriptionPlans() and getSubscriptionPlans() @SystemApi" 2020-02-05 11:48:26 +00:00
Jiyong Park
161475bac2 use apex_test for test apexes
... so that the build system can distinguish testing APEXes and installable APEXes, and apply
different rules to them.

Bug: 146308764
Test: m
Change-Id: I6ffd1cfe0f83c032d6fe3fa11e38c3c6c763425a
2020-02-05 18:43:12 +09:00
Alan Hurney
2c1f3e9a16 Merge "Whitelist AR|CO C11n FreeToEndUser (FTEU) ShortCodes" 2020-02-05 08:44:51 +00:00
sqian
3ba4afa5d5 Make hidden API isDataCapable for Telephony
Rename isDataCapable to isDataConnectionEnabled as a System API for
 System UI.

Cherry-picking TelephonyManager part of ag/10063635

Test: RILTest; Treehugger; cts
Bug: 147017757
Merged-In: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
Merged-In: I19ac83f5865e8763cd9414c41d4609f79d0db164
(cherry picked from commit 291415806f)

Change-Id: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
2020-02-04 18:36:00 -08:00
Makoto Onuki
8de85f4b50 Merge "Finalize @SystemApi annotation" 2020-02-05 01:33:10 +00:00
Jack Yu
d588c33c71 Added area info support in cell broadcast service
Added a broadcast for area info changed event, and
also a get method in cell broadcast service to
retrieve the area info.

Test: Cell broadcast sanity tests
Bug: 141318859

Merged-In: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
Change-Id: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
(cherry picked from commit afaa71d418)
2020-02-04 17:03:01 -08:00
Chalard Jean
bd34fd3c83 Merge changes Ic1a5d032,I271e7f4d,I7af37281
* changes:
  [NS A39] Simplification
  [NS A38] Fill the initial reassignment
  [NS A37] Don't reassign requests multiple times
2020-02-05 00:53:28 +00:00
Rahul Sabnis
6d4004fc61 Merge "Change data type of duration param from int representing seconds to long representing milliseconds in BluetoothAdapter#setScanMode" 2020-02-05 00:41:33 +00:00
Jack Yu
087568092a Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563

Merged-In: Iac8d9abe3b011485ffe8220d94f25f99d022014b
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
(cherry picked from commit e94a7a4f97)
2020-02-04 16:20:44 -08:00
Benedict Wong
ede31cad1c Merge "Add separate user consent for Platform VPNs" 2020-02-04 23:56:16 +00:00
Malcolm Chen
d1a3b37bb9 Move ACTION_CARRIER_* intent and extras from TelephonyIntents to
TelephonyManager.

The purpose is to expose them as @SystemApi as they are used externally.

Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
Merged-In: I3dabcb853ebbd648b20d97b446db11476780be25
2020-02-04 23:28:22 +00:00
Nikita Ioffe
a656dd889d Merge "Grant shell REBOOT permission" 2020-02-04 23:01:44 +00:00
Rahul Sabnis
99507b5eb3 Change data type of duration param from int representing seconds to long
representing milliseconds in BluetoothAdapter#setScanMode

Bug: 144380530
Test: Manual
Change-Id: I76528478a64d22afefd4ec964d1a78295dd3c94f
2020-02-04 14:29:09 -08:00