Commit Graph

529396 Commits

Author SHA1 Message Date
5737120c84 Merge "Retry to get and mount CE data directory again" 2020-11-10 10:11:41 +00:00
d75144f25c Re-submit "Add genrule for combined srcjar of modules"
The sources of the stubs are shipped as part of the public SDK.
Currently the SDK depends on the output of the monolithic metalava run,
but it can be assembled by merging the srcjars of the individual runs.

There is a diff -- module stub sources contain javadoc comments. I don't
think has any negative impact. Also package-info.html files are
included, which probably is fine.

Bug: 169034951
Test: diff new output with existing monolith
Test: TARGET_BUILD_APPS=foo m nothing
Change-Id: I851ff8e87476b8e22abdcfe1d75da5d82030f302
Merged-In: I851ff8e87476b8e22abdcfe1d75da5d82030f302
(cherry picked from commit 89c74dc41c)
2020-11-10 07:53:14 +00:00
a27b0838e5 Fix the comments left on aosp/1481197
Bug: 172040168
Test: atest FrameworksNetTests
Test: Manual test NO_INTERNET, SIGN_IN, PARTIAL_CONNECTIVITY,
      VPN_ALWAYS_ON notifications.
Change-Id: Ibd05366481e6ddadf8b323335c2c35d40d340d0d
2020-11-10 14:54:52 +08:00
4e05e2eff5 Replace the way to add legacy routing
ConnectivityService is going to become a mainline module which
is not able to access hidden API. Thus, replace the usage from
NMS to INetd.

Bug: 170598012
Test: atest FrameworksNetTests ConnectivityManagerLegacyTest
Change-Id: Ice1bd1effab26555917bc1766354aeaebd41ad66
2020-11-10 14:53:55 +08:00
2d594b71a5 Restructure CarrierMessagingServiceWrapper with better interfaces.
- CarrierMessagingServiceWrapper is now a final class with only
APIs of direct actions on messaging.
- The original abstract parts of the class are now interfaces:
interface CarrierMessagingServiceConnectionCallback
and Runnable callback.
- CarrierMessagingCallbackWrapper is renamed to
CarrierMessagingCallback

Bug: 172087216
Test: build and manual
Change-Id: I1760623543b929a51ce26dc7dcc5f8ebe7fd9732
Merged-In: I1760623543b929a51ce26dc7dcc5f8ebe7fd9732
2020-11-09 21:54:09 -08:00
32f5d14cef Merge changes I67e5fa23,I223b207c
* changes:
  Use hasIpv[4|6]DefaultRoute instead of hasIPv[4|6]DefaultRoute
  Use local defined constants for notification channels
2020-11-10 05:28:33 +00:00
68e0de029a Merge "Fix issue with saving protos to disk during shutdown." 2020-11-10 05:20:22 +00:00
2d4b26e43a Updating network preference comments
Updating comments for network preferences to better clarify that
preferences which include more than one network type will then rely on
scoring to determine which of those networks are chosen.

Bug: 171795464
Test: atest FrameworksNetTests
Change-Id: I9eb5683f2cd69281bbee9fb70028d45f07720914
2020-11-09 21:06:09 -08:00
9666e05985 Merge "Introduce new App Ops permission for 3rd-party InCallService" 2020-11-10 03:53:25 +00:00
52a87d2839 Add dependency on modules-utils-build
Partial cherry-pick of change "Migrate wifi.SdkLevelUtil to
com.android.modules.utils.build.SdkLevel".

Bug: 170538050
Test: boots up and connects to wifi
Merged-In: I8fca04fa22d6053aff0f58730adfa87f0bafaa3a
Change-Id: Id7137a44ea3117787475638a02e001a37b6cc7b8
2020-11-10 12:15:27 +09:00
1b936b73c3 Retry to get and mount CE data directory again
CE might unlocks and the name is decrypted,
gets the name and mounts it again.

Bug: 162298284
Change-Id: Ic5fec356bb55d54b7f8ad2933229511b50797a08
2020-11-10 10:12:29 +08:00
82b760990c Fix typo in AngleOfArrivalSupportType values
Bug: 170323306
Test: Builds
Change-Id: Ic7721a7bba8fe40d57652df3a3a62abf39cf2852
2020-11-09 16:15:00 -08:00
9ea81e9da3 services.net-module-wifi - set min_sdk_level to 30
Also migrate to using net-utils-services-common-srcs.

Bug: 171330443
Test: compiles
Change-Id: If0865d7c0bf3164911911ef2a1700bca3d7cc11f
2020-11-09 23:22:36 +00:00
51f631383a Migrate FILTER_APPLICATION_QUERY
Use @EnabledSince instead of @EnabledAfter for FILTER_APPLICATION_QUERY.

Test: m
Bug: 172238506
Change-Id: Iedb82b9ec3ff503e6c7fa912470c21aa31032688
2020-11-09 21:34:19 +00:00
74207ec1fb Introduce new App Ops permission for 3rd-party InCallService
This permission is intended to be used internally as a system App Ops permission, and let CompanionDeviceManager or RoleManager to grant with
users. If it is granted by user, the corresponding companion app has the ability to query the details of the ongoing calls, and also manage its life cycle.

Bug: 169595473
Test: atest ThirdPartyInCallServiceAppOpsPermissionTest
Change-Id: Ie0f790aab2edcd52cfdbded2630347b9f8dd4d49
Merged-In: Ie0f790aab2edcd52cfdbded2630347b9f8dd4d49
(cherry picked from commit 334ab546e4)
2020-11-09 21:00:55 +00:00
ef2c66e72f Merge "Remove redundant permission requirements docs." 2020-11-09 17:06:30 +00:00
fcdba12869 Derestrict PROP_NAME_MAX.
Turns out it is used afterall.

Change-Id: I1ba83a151b0ca6ba708b03b46106dfb29d8b592f
Fixes: 172649311
2020-11-09 16:32:33 +00:00
5bba56e147 Merge "Update DISALLOW_DUPLICATE_FIELD_IN_SKELETON" 2020-11-09 14:58:38 +00:00
f8abe13db4 Merge "Add maxTargetSdk restriction to unused APIs." 2020-11-09 14:41:20 +00:00
9ab0dd09ae CEC : Add validator for user control pressed message
Test: atest HdmiCecMessageValidatorTest
Bug: 170811408
Change-Id: Ib7d4be7071e4b81e78f7fe19b5836d9c3caa4915
2020-11-09 18:51:14 +05:30
7bd2a5e4fd Merge "Add ability to stage multiple apexs." 2020-11-09 11:00:02 +00:00
5f541cbb88 Add ability to stage multiple apexs.
Test: atest sharedlibs_hosts_test
Change-Id: I9dfc6b783fd63c555622932d59712c0e0b9b073e
2020-11-09 10:27:04 +00:00
821f4212f8 Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests
Bug: 171417408
Test: atest ImsPhoneTest, atest CarrierConfigManagerTest

Change-Id: If73b775baac47b3bc85507e778e436b5a67f8017
Merged-In: I6a6bfd5e2945ea6aed897896bdbeee244dc0dcc3
2020-11-09 03:58:00 -05:00
f1ab984b11 Fix issue with saving protos to disk during shutdown.
Test: Built and tested on device.
Bug: 172789268
Change-Id: I9cb65e7560f92387e92234929a0b7881f84d7b8f
2020-11-09 08:27:39 +00:00
cc8b163dba Expose some ApplicationInfo#is* methods as in-process API
Connectivity service is going to become a mainline module which
will not able to access hidden APIs. But PermissionMonitor needs
ApplicationInfo#is(Vendor|Oem|Product) APIs to know the package
partition. Thus, expose them as in-process API to support the
usage.

Bug: 170593746
Test: atest FrameworksNetTests
Change-Id: Ie4ffb2b47539786dd51b885ca93c8813d039c4da
2020-11-09 06:17:28 +00:00
1a4f04068a Remove redundant permission requirements docs.
Methods use @RequiresPermission annotation to declare permissions.
This CL removes redundant javadoc which also state the permission reqs;
the @RequiresPermission annotation results in autogenerated permission
docs.
Let some references in the javadoc in where a permission OR a role is a
requirement to use an API, or where permissions had specific API levels
noted in the javadoc.

Test: make docs
Fixes: 137633265
Change-Id: Id1ab7090def6b1d0dbdc8d2cc8586b5341e2eb7e
2020-11-06 13:19:27 -08:00
26b017aae2 Merge "Use ILights.DESCRIPTOR to refer to AIDL HAL" 2020-11-06 20:27:15 +00:00
4d506d7420 Merge "Revert "Add genrule for combined srcjar of modules"" 2020-11-06 19:28:34 +00:00
9018bfbf0f Revert "Add genrule for combined srcjar of modules"
This reverts commit ddf171aaf8.

Reason for revert: b/172663078

Bug: 169034951
Bug: 172663078
Change-Id: Ibd1269d72f15b43817ffec50eb94f72671e7538b
Merged-In: Ifb5f56bf5468969ad026f10186763ef604113adc
2020-11-06 19:26:56 +00:00
077a029813 AIDL Implementation of SipTransport API
Creates underlying AIDL implementation of the SipTransportImplBase
and SipDelegate API to be used by the ImsService.

Bug: 154763999
Test: atest FrameworksTelephonyTests
Change-Id: Ic2ed943a45c69e8503fa96995b932b65a73140d2
2020-11-06 10:43:34 -08:00
bf9c710733 Add AIDL connections for SipDelegateManager
Implement AIDL backing for SipDelegateConnection,
DelegateConnectionStateCallback, and
DelegateConnectionMessageCallback as well as all
Parcelables related to those callbacks.

Implement SipDelegateConnection with an AIDL wrapper
implementation, which trampolines callback events
from the remote process to the local callback interface
as well as wrap the SipDelegateConnection AIDL so the
local process can send messages to the remote SipDelegate.

The next CL will be the ImsService AIDL implementation for
SipTransport/SipDelegate APIs.

Test: atest FrameworksTelephonyTests
Change-Id: Ic48cd0f80058d59362c63cf6381304437a81afe0
2020-11-06 10:33:11 -08:00
65d1fda8f6 Merge "Move WallTime out of ZoneInfoData" 2020-11-06 18:01:08 +00:00
e40aa2d118 Merge "Update to use new android.system.suspend.control AIDL interface" 2020-11-06 17:35:58 +00:00
20a9e59e25 Merge "Adding API stubs for application network routing" 2020-11-06 17:03:25 +00:00
1452dc60ca Merge "Add genrule for combined srcjar of modules" 2020-11-06 14:55:18 +00:00
4299e79da7 Update DISALLOW_DUPLICATE_FIELD_IN_SKELETON
Use @EnabledSince instead of @EnabledAfter for DISALLOW_DUPLICATE_FIELD_IN_SKELETON

Test: m
Bug: 172238506
Change-Id: I041e1e2694f310d638e31b475f29d0d214711dd5
2020-11-06 14:55:06 +00:00
1925c89f8f Move WallTime out of ZoneInfoData
Bug: 139480281
Test: m droid
Change-Id: I4a81bb45e874480c7d1dd5f7736b529344d8d9fa
2020-11-06 11:36:13 +00:00
6e25f4e8c1 Remove unused getTetherStats
Before Android R, getTetherStats were used to collect tethering
iface stats of all clients who extends ITetheringStatsProvider,
which typically contains NetdTetheringStatsProvider and
OffloadController.

However, this always returns 0 since Android R, because:
  1. OffloadController implemented NetworkStatsProvider and no
     longer reports stats through getTetherStats.
  2. NetdTetheringStatsProvider always return 0 by design since
     non-offloaded iface tethering stats are already included
     in native iface stats.

This change is a no-op refactoring to remove unused
getTetherStats and update test which is not pratical.
Fix for offloaded tethering stats will be in follow-up CLs.

Test: atest FrameworksNetTests TetheringTests
Bug: 162292214
Change-Id: Icd0717c5c2807ae3bd98626b897e4b148f142815
2020-11-06 19:02:44 +08:00
646cf23c3c Merge "Remove useless code" 2020-11-06 11:02:23 +00:00
ffcc7427a8 Merge "Remove android.icu.impl.ICUBinary.dataPath for apps targeting S+" 2020-11-06 10:51:53 +00:00
d38f48a83f Adding API stubs for application network routing
Bug: 171795464
Test: atest FrameworksNetTests
Change-Id: Ib055aa37a7bf0c48c335307afc2258aa869c4267
2020-11-06 00:08:13 -08:00
c74389c5fc Remove useless code
The semantics of this block are such that restart will
only be false if all components of mArguments are null.
mArguments is a final array initialized in the
constructor of LegacyVpnRunner. The components of the
array are never overwritten (though the components of
those components are), and at least one of these
components will always be non-null (unless somebody
calls startLegacyVpnPrivileged with a non-existing
type, but that never happens).

For safety, this patch also adds a check so that
the code will crash early with a clear message if this
ever happens.

Test: FrameworksNetTests NetworkStackTests
Change-Id: I1f13aa08c6f1870c9610185b603af76f97c22bab
2020-11-06 15:56:27 +09:00
64512597fd Merge "Move VPN JNI to the bottom of srcs" 2020-11-06 05:04:53 +00:00
bc99f76305 Merge "Allows APN to be unthrottled through an indication" 2020-11-06 05:04:14 +00:00
f2c37de2ba Merge "Adding multilayered requests to NetworkRequestInfo" 2020-11-06 04:33:24 +00:00
d523796ec5 Update to use new android.system.suspend.control AIDL interface
The suspend_control_aidl_interface is updated, renamed, and splitted
into android.system.suspend.control and
android.system.suspend.control.internal. Update to use the correct
interfaces.

Test: atest FrameworksCoreTests:KernelWakelockReaderTest
Bug: 171598743
Change-Id: I32aa339b27f3d9680a61b7338b1bdb531a1a43f7
2020-11-06 03:44:01 +00:00
11a661359e Avoid hardcoded paths to specific APEX jars in the fd allow list.
Cherry-picked from http://ag/12996359.

Test: build & boot
Bug: 148517954
Change-Id: I2cbe75381c3032e56dd0cd2934bda3f027cb65bf
Merged-In: I2cbe75381c3032e56dd0cd2934bda3f027cb65bf
2020-11-06 01:11:00 +00:00
1f65c6b62e Merge changes Ib3c9affb,I1dbe3d02,I88681f21
* changes:
  Keystore 2.0 SPI: Adding the keystore AIDL interface to frameworks
  Keystore 2.0: KeyProperties SignaturePadding is now public but hidden
  Keystore SPI: Add SecurityLevelEnum to KeyProperties
2020-11-06 01:01:00 +00:00
716cef8b90 Adding multilayered requests to NetworkRequestInfo
Updating NetworkRequestInfo for "multilayered requests" functionality so that
requests can support a network hierarchy. I.e., requests network
with capability A first and if not available, request network with
capability B. This CL is the first step in adding that support by
updating the request object from a single request to a collection.

Bug: 171991028
Test: atest FrameworksNetTests
atest NetworkStackTests
atest FrameworksNetIntegrationTests
atest NetworkStackIntegrationTests
atest CtsNetTestCasesLatestSdk

Change-Id: I64a124802986e4cf4aa7de158c6690fdf9851cb2
2020-11-05 13:55:50 -08:00
cce157aaee Merge "Fix NetworkPolicyManagerService deadlock" 2020-11-05 21:19:12 +00:00