438849 Commits

Author SHA1 Message Date
Jiyong Park
79242c2d2d framework is not available to APEXes
The modules 'framework', 'framework-minus-apex', 'framework-all' contain
private symbols that shouldn't be accessible to Mainline modules.
Restrict the access by making the framework modules to be accessible
only to the platform (the non updatable part).

Bug: 145796956
Test: m
Merged-In: I08cb61a67aef88ffe04ef52670144e1cbeff3cf9
Change-Id: I08cb61a67aef88ffe04ef52670144e1cbeff3cf9
2019-12-18 05:45:46 +00:00
Jiyong Park
573fd3dfe0 unique_fd is passed by value in AIDL interfaces
FileDescriptor type in AIDL was translated into const unique_fd& in C++.
Now, it is unique_fd, i.e. passed by value, to make it easier to keep it
beyond the scope of the call.

Bug: 144943748
Test: m

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: I2b87761401361f9cf96cdda070f26e70a5c6c935
(cherry picked from commit b8ba23418aa6868ec14e82c29311021e382a19bc)
Change-Id: I2b87761401361f9cf96cdda070f26e70a5c6c935
2019-12-18 05:32:25 +00:00
junyulai
41c13c9a19 Update interface quota limit when network stats updated
In previous design, interface quota limit does not changed
when network stats are updated. However, this is incorrect
today since there are some offloaded traffic that cannot
be seen by kernel. If the limit is not updated, the offloaded
traffic might still be able to use whole quota as if there is
no embedded traffic.

This change also removes the re-arm global alert after
advising persist threshold if not changed, given that it will
cause an additional alert while updating interface quota limit.

Bug: 145792619
Test: 1. atest NetworkStatsServiceTest
      2. atest NetworkPolicyManagerServiceTest
      3. manual test: run speedtest, check dumpsys netd

Change-Id: I8d2203e713730d536430a234b1aa8b2468badee3
2019-12-18 10:57:29 +08:00
Meng Wang
b713828c17 Merge "Statically link util classes into Telephony module." 2019-12-18 00:28:34 +00:00
Mark Chien
b04cf17d71 Merge "[Tether11] Grant privileged permissions for tethering" 2019-12-18 00:11:43 +00:00
Xiangyu/Malcolm Chen
fbfe850906 Merge "Define a telephony database column for uicc applications enabled or not." 2019-12-17 23:56:41 +00:00
Steven Liu
5606de388d Remove Wifi APIs unused in AOSP.
Bug: 132059890
Test: build
Change-Id: I75044e713ae039759b6f96a7e98928ca9f8645f9
2019-12-17 15:38:07 -08:00
Tyler Gunn
1017905980 Merge "Telephony: Get SIM card capacity count of SMS" 2019-12-17 23:31:15 +00:00
Jordan Liu
8cd7a4cb4a Expose Circle and Polygon as SystemApi
Bug: 145956003
Test: manual
Change-Id: I1af173a6e3772fad8bde2ac93177af894178b18c
2019-12-17 14:59:01 -08:00
Treehugger Robot
7339d1743c Merge "Add IntDef annotation to SIM state constants." 2019-12-17 22:16:55 +00:00
Meng Wang
0d7a5dc2ea Merge "Remove PhoneStateLister#onOtaspChanged" 2019-12-17 21:14:06 +00:00
Tyler Gunn
fc72e79558 Merge "IMS-VT: Add config to control holding a video call" 2019-12-17 21:11:54 +00:00
Tyler Gunn
ffd2e964c1 Merge "User cannot reject a waiting call after a switch call fails" 2019-12-17 21:09:56 +00:00
Patrick Huang
a5e2fee8a3 Add IntDef annotation to SIM state constants.
Bug: 141227564
Test: Test build on device. Test calling affected TelephonyManager methods.
Change-Id: Ife159922b8b0fdf84ea376f32ac1d9156c9802d3
Merged-In: Ife159922b8b0fdf84ea376f32ac1d9156c9802d3
2019-12-17 12:38:25 -08:00
Peter Wang
23019528ec Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" 2019-12-17 19:10:24 +00:00
Treehugger Robot
56fcc024bc Merge "Mainline Network Policy constants public" 2019-12-17 18:59:04 +00:00
Anton Hansson
dc3e45c584 Merge "Give IAE for invalid sdk a message" 2019-12-17 18:37:27 +00:00
Benedict Wong
0ce0c59535 Merge "Add new Credential prefix for platform VPNs" 2019-12-17 18:35:51 +00:00
Shuo Qian
c107c3a958 Merge "Introduce Radio Shutdown System APIs for Mainline" 2019-12-17 18:17:34 +00:00
Treehugger Robot
a91708379f Merge "Include linux/fsverity.h and remove inlined definition" 2019-12-17 18:15:59 +00:00
Jayachandran C
e477e36fc0 Expose ACTION_NETWORK_SET_TIME as system API
This CL also uses android.telephony prefix

Bug: 146388552
Test: Build
Change-Id: I5afb7ef87ace11c7f97e2f6a75a409ecee537a18
2019-12-17 09:18:05 -08:00
Shuo Qian
65943dbc41 Merge "Deprecate Data Command in Android" 2019-12-17 17:17:34 +00:00
markchien
840abdc14c [Tether11] Grant privileged permissions for tethering
Since tethering is moved from systemServer to networkStack
process, it would lose privileged capability. Grant privileged
permissions for tethering individually. Grant MANAGE_USB to control
usb rndis function. Grant MODIFY_PHONE_STATE to know whether DUN
is required. Grant READ_NETWORK_USAGE_HISTORY to update tethering
usage. Grant UPDATE_APP_OPS_STATS to check WRITE_SETTINGS permission.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Id6e71b58e027d6ba90551084367ef881652c2555
2019-12-18 01:06:36 +08:00
Neil Fuller
46869e5ab6 Tidy up changes for TimeZoneDetectorStrategy
Tidy up changes for TimeZoneDetectorStrategy that were noticed while
debugging / making changes to TimeDetectorStrategyImpl.

Bug: 140712361
Test: manual / treehugger
Change-Id: I17a5d91f6864d702599834058694ae3de53173d0
2019-12-17 16:53:43 +00:00
Omer Nebil Yaveroglu
636e0e082f Changes in OWNERS of app integrity component.
Test: None
Change-Id: I7e9d569e03cc73dcb2970aa4577ce2cee0124d5f
2019-12-17 16:48:09 +00:00
Mathew Inwood
5249eca1bd Don't depend on annotation processors XmlWriter.
The annotation processor is being modified to produce an intermediate
output that will then be processed to produce the config that ends up on
device. As such, using XmlWriter in frameworks test code no longer makes
sense.

Instead, hard-code XML config in the test to break this problematic
dependency.

Test: atest CompatConfigTest
Change-Id: I371ba32bd83d6a84de94d594169dbb5c63f3d9be
Merged-In: I371ba32bd83d6a84de94d594169dbb5c63f3d9be
2019-12-17 16:33:09 +00:00
Luke Huang
a960204edf Merge "Add new configuration loading path for apex module Cronet" 2019-12-17 15:57:11 +00:00
Anton Hansson
70aa04d409 Give IAE for invalid sdk a message
Easier to debug issues, probably.

Bug: 137191822
Test: SdkExtensionsTestApp
Change-Id: Iec7d03165e94b52ea48a73e4a1de9344de8d4301
2019-12-17 15:49:27 +00:00
Luke Huang
5c4040ce24 Add new configuration loading path for apex module Cronet
Add an additional loading path which is used for libs permission
xml providing from Cronet apex module.

Bug: 145474221
Bug: 139397529
Test: build
Test: manual test with Cronet
Change-Id: I103539a45fe9182f84a79bfe45a6172d94068690
Merged-In: I02541eb2d4808d69ab8cb2d6a48cf8aaa39c86dc
2019-12-17 14:02:20 +00:00
markchien
9fe658adc3 Add TETHER_PRIVILEGED permission to shell for CTS test.
Grant TETHER_PRIVILEGED permissions to the shell identity
for use within CTS tests.

Bug: 145490751
Test: atest CtsTetheringTest
Change-Id: Ifad265cdc5e0b1b1b2fa8f4f79eeb7dd18493624
Merged-In: Ifad265cdc5e0b1b1b2fa8f4f79eeb7dd18493624
2019-12-17 13:30:26 +00:00
vichang
6658c31b4e Merge "Regenerate LocaleDataTables.cpp" 2019-12-17 11:28:19 +00:00
Anton Hansson
630e3ac68d Merge "Re-submit "Add genrule for the current sdk proto"" 2019-12-17 11:10:56 +00:00
Oli Lan
e340ecdc89 Merge "Pass ApexSessionParams when submitting sessions to apex service." 2019-12-17 10:31:26 +00:00
Jiyong Park
abe6158431 SystemApi is parameterized
We have decided to reuse the existing annotation @SystemApi for all Java
APIs regardless of whether they are for apps or platform internal
modules. This was because introducing new annotation types every time
when we have to create new API surfaces will only increase the confusion
without giving much benefit.

Instead, to differenciate the different API surfaces of @SystemApi, the
annotation type is parameterized. Specifically, it has to axises.

client: specifies the intended client of the API.

process: specifies the process(es) that the API is available.

The default for client and process are priv-apps and all, respectively,
which corresponds to the today's @SystemApi for privileged apps like
GMS.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 140202860
Test: m
Merged-In: I3305b71e22970e80db95f3daf3d7713603c7d68d
(cherry picked from commit 119afc0695cf7632700119bab62a965793c34fd1)
Change-Id: I3305b71e22970e80db95f3daf3d7713603c7d68d
2019-12-17 17:52:15 +09:00
Yan Yan
bedcf85eee Merge changes from topics "api-address", "api-change-ike"
* changes:
  IKE Session API changes in setting CA cert and retrieving vendor ID
  Child Session API changes in configuring and retrieving internal address
2019-12-17 08:06:06 +00:00
Treehugger Robot
b430d57705 Merge "Change APIs related to carrier actions." 2019-12-17 07:06:36 +00:00
Benedict Wong
048e248537 Add new Credential prefix for platform VPNs
Platform VPN profiles keyed by apps must use a different key prefix to
prevent the Settings app from seeing them (and thus exposing potentially
sensitive credential information). Thus, the profiles will be
partitioned as follows:

Custom (Settings-app) based profiles continues using VPN_* prefix
App provisioned profiles will use the new PLATFORM_VPN_* prefix

Bug: 144245359
Test: Compiles, FrameworksNetTests passing
Change-Id: If8762e468c6cbbeb80738f14b066ebbad5cc665f
2019-12-17 06:02:51 +00:00
Jiyong Park
759a269a65 Add services-stubs for in-process APIs in services.jar
services-stubs is a stubs library for services.jar. It provides the
in-process APIs that's available inside the system server process
running services.jar.

Currently, all APIs in the jar are hidden by annotating
com.android.server package with @android.annotation.Hide. To add some
APIs,

1) remove package-info.java for com.android.server
2) add package-info.java for other sub packages
3) annotate them with @android.annotation.Hide except for the package
where the newly added APIs are in

This change also added android.annotation.Hide class which can be used
to hide an API without using the @hide javadoc tag. This opens up the
possibility of running metalava over the compiled jar, which is expected
to be much faster than when ran with source files.

Bug: 139391334
Test: m
Test: m services-stubs

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: I027b8a22b3e7533f6203aabb9dc3f690e4e842a6
(cherry picked from commit abc72e45c647d6f617ce90b7a5d4a3121c0aa87d)
Change-Id: I027b8a22b3e7533f6203aabb9dc3f690e4e842a6
2019-12-17 14:20:15 +09:00
Inseob Kim
a9d6cd4469 Use sysprop library for telephony props
Bug: 117924132
Bug: 141246285
Test: lunch blueline-userdebug; m checkbuild
Change-Id: Idefa10b5bdeaff69496bc66730a7398258f3a38e
Merged-In: Idefa10b5bdeaff69496bc66730a7398258f3a38e
(cherry picked from commit 1b5e241b9217c4d8842925a29d1ca4228329538b)
2019-12-17 13:57:16 +09:00
Kevin Chyn
36af0dc32e Merge "Add OWNERS to biometrics projects" 2019-12-17 04:24:42 +00:00
Paul Hu
8893c6f9ac Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" 2019-12-17 03:13:50 +00:00
Malcolm Chen
b7c6ee3856 Define a telephony database column for uicc applications enabled or not.
Bug: 141018421
Test: unittest
Change-Id: I5d4f1ec1bc3832c471fd43f3024cd79383d8d3d6
Merged-In: I5d4f1ec1bc3832c471fd43f3024cd79383d8d3d6
2019-12-16 19:07:11 -08:00
Betty Chang
e74c1f1278 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-17 02:53:41 +00:00
Mengjun Leng
db15271ae7 Telephony: Get SIM card capacity count of SMS
Add an API to get the capacity of the stored SMS on ICC card.

Bug:37289947
Change-Id: Ic9383b3605ce450b3dc32ccc0c283789c12fabf7
2019-12-17 10:44:36 +08:00
Treehugger Robot
f14e2e1e1a Merge "Resolve BluetoothA2dpSink APIs used by Settings" 2019-12-17 02:31:59 +00:00
Jaewan Kim
7e8dffc582 Merge changes from topic "msm_callback"
* changes:
  MediaSessionManager: Split abstract class Callback into interfaces
  MediaSessionManager: Use Executor instead of Handler
  Allow to register multiple callbacks in MediaSessionManager
2019-12-17 02:29:33 +00:00
Kevin Chyn
d856937569 Add OWNERS to biometrics projects
Test: Builds

Change-Id: I5979d2d22bb84cb7ada7c431a64343af9a55a4b8
2019-12-16 18:21:41 -08:00
Treehugger Robot
a33dfe1e7b Merge "Refactor BluetoothPbap APIs used by Settings" 2019-12-17 01:53:24 +00:00
Shuo Qian
5c4e7b81b5 Deprecate Data Command in Android
Please use adb shell cmd phone data enable/disable instead.

Bug: 145553588
Test: adb shell commands; manual
Change-Id: I7d1ab779bd6c08dc8c564dc5f3f5d9e165ae39ed
2019-12-16 17:09:54 -08:00
Treehugger Robot
59b88e0e6a Merge "Fix for Telephony Manager API javadoc inconsistencies" 2019-12-17 00:53:08 +00:00