Commit Graph

559602 Commits

Author SHA1 Message Date
Treehugger Robot
80df223aed Merge "Add team members to biometric OWNERS" 2021-01-08 04:20:25 +00:00
Treehugger Robot
4a17bccf59 Merge "Set max frequency as Max_Value of integer if it's negative." 2021-01-08 03:16:19 +00:00
Shuo Qian
45a397a84a Merge "Add Call Composer Tuple in RcsContactPresenceTuple class" 2021-01-08 02:21:34 +00:00
Kevin Chyn
8777a4dda3 Add team members to biometric OWNERS
Test: Presubmit
Change-Id: I0b503756a60fc8dcaaf8bcd1f1fa13628b2b9b75
2021-01-07 17:56:19 -08:00
Les Lee
6ae2535ec6 Merge "wifi: Add systemAPi:setSubscriberId in NetworkAgentConfig" 2021-01-08 00:54:51 +00:00
Henry Fang
7112714a90 Set max frequency as Max_Value of integer if it's negative.
bug: 176097540
Test: Manual
Change-Id: I17cdd3b2861415b4812694d79aa97f3e7463e12a
2021-01-08 00:37:11 +00:00
Treehugger Robot
9e1690609b Merge "Update deprecated link to RecyclerView" 2021-01-07 20:13:51 +00:00
Neil Fuller
6aabdca9b3 Merge "Addition of OWNERS / initial .proto file" 2021-01-07 20:08:06 +00:00
Treehugger Robot
eedc45be11 Merge "Fix TelephonyRegistry's mListenLog." 2021-01-07 19:47:00 +00:00
Benedict Wong
073452a700 Merge "Repackage vcn utils in frameworks-minus-apex" 2021-01-07 19:36:24 +00:00
Shuo Qian
4506656274 Merge "Add title and description of MANAGE_ONGOING_CALLS" 2021-01-07 18:32:48 +00:00
Shuo Qian
077cefb9a9 Merge "Add Setting API to set/get enriched calling with call composer user option" 2021-01-07 18:32:44 +00:00
Treehugger Robot
1fb7770381 Merge "Introduce public APIs to check whether a remote bluetooth headset supports voice recognition as well as echo cancellation and/or noise reduction via the AT+BRSF bitmask" 2021-01-07 17:55:04 +00:00
Lorenzo Colitti
5a5613209d Merge changes Iec22ff63,Iaca8a7cc
* changes:
  Stop using VPNs in getDefaultNetworkCapabilitiesForUser.
  Inform ConnectivityService about always-on VPN lockdown.
2021-01-07 16:31:58 +00:00
Neil Fuller
1f5202afe0 Addition of OWNERS / initial .proto file
Addition of OWNERS entry and the file it pertains to.

Test: build only
Bug: 172934905
Change-Id: I986957f7ead522fa8e13fbf7cbd514691d476858
2021-01-07 15:52:12 +00:00
Ryan Mitchell
b9ba6a8d0f Merge changes from topic "oms-transactional-api"
* changes:
  OMS: add tests for the OMS transactional API
  Push OverlayDeviceTests onto /system
  OMS: add transactional API
  OMS: block until settings are persisted
  OMS: replace OMSImpl.OverlayChangeListener with return values
  OverlayDeviceTests: add missing TEST_MAPPING
2021-01-07 15:48:20 +00:00
Treehugger Robot
1ef739b3fa Merge changes from topic "revert-1532910-connectivity_jar_in_apex-LKXFLQGLIU"
* changes:
  Revert "Set setCurrentProxyScriptUrl as public"
  Revert "Move service-connectivity to the tethering APEX"
2021-01-07 15:25:03 +00:00
Treehugger Robot
86b6f66d9f Merge "MTP: Update language to comply with Android's inclusive language guidance" 2021-01-07 15:23:53 +00:00
Jeff Sharkey
6e01e06579 Merge "Update owner for ConnectivityServiceInitializer.java" 2021-01-07 14:55:01 +00:00
Jeff Sharkey
6173852165 Merge "update owners for shortcut and launcher related files" 2021-01-07 14:50:03 +00:00
Andrei-Valentin Onea
29ed176b46 Merge changes from topic "preinstall-overrides"
* changes:
  Add force_non_debuggable_final_build_for_compat
  Allow overriding compat config prior to install time.
2021-01-07 14:04:12 +00:00
Pete Bentley
3a67cc18fc Revert "Set setCurrentProxyScriptUrl as public"
Revert submission 1532910-connectivity_jar_in_apex

Reason for revert: Breaks boot tests: b/176969905
Reverted Changes:
Ie41a5b569:Set setCurrentProxyScriptUrl as public
Id7b6a4664:Move service-connectivity to the tethering APEX
Ia7cb83834:Add service-connectivity to tethering APEX

Change-Id: I634242e3dbdab9f900b05410d5d208c5ae19ddb9
2021-01-07 13:51:18 +00:00
Pete Bentley
3e157018f7 Revert "Move service-connectivity to the tethering APEX"
Revert submission 1532910-connectivity_jar_in_apex

Reason for revert: Breaks boot tests: b/176969905
Reverted Changes:
Ie41a5b569:Set setCurrentProxyScriptUrl as public
Id7b6a4664:Move service-connectivity to the tethering APEX
Ia7cb83834:Add service-connectivity to tethering APEX

Change-Id: I1c369dd8a6527513f8fc1a5cacde59d78d104c7e
2021-01-07 13:51:18 +00:00
Adrian Roos
169c132627 Merge "Add inputmethod coretests OWNERS" 2021-01-07 13:46:17 +00:00
Adrian Roos
44695952c6 Add inputmethod coretests OWNERS
Test: n/a
Change-Id: If240716ddb0aa99111f8e343fca36a5bd97ed0dc
2021-01-07 14:44:07 +01:00
Rhed Jao
2042ea04aa Merge "Fix missing fields when parceling the BugreportInfo" 2021-01-07 12:05:46 +00:00
Treehugger Robot
883c34a45d Merge "Stop using BaseNetdEventListener in ConnectivityService." 2021-01-07 10:58:03 +00:00
Mathew Inwood
6e1f2d209b Merge "Derestrict ContextWrapper.createApplicationContext." 2021-01-07 10:19:23 +00:00
Mathew Inwood
4224dc8b99 Derestrict ContextWrapper.createApplicationContext.
Usage has been discovered by an app so reverting this to its previous
state. This is conceptually a partial revert of change 5d123b6775.

NoNonSdkCheck: b/170729553

Bug: 175981568
Test: m
Change-Id: I3e61d3f56f176d573f68ba85f3b1762686aa62ef
2021-01-07 09:51:37 +00:00
Mathew Inwood
8e6ce38bde Merge "Derestrict mSurfaceTexture, mProducer." 2021-01-07 09:47:42 +00:00
Mathew Inwood
b698722956 Merge "Derestrict RippleDrawable.mState." 2021-01-07 09:47:34 +00:00
Mathew Inwood
ea01ff86d0 Merge "Derestrict Resources.getDisplayAdjustments()." 2021-01-07 09:47:22 +00:00
Aaron Huang
61057da320 Update owner for ConnectivityServiceInitializer.java
Test: N/A
Change-Id: Ie95191423b4dd11f5213c1ff88f367f0c8c9f536
2021-01-07 17:45:07 +08:00
Lorenzo Colitti
9ff84b493a Stop using BaseNetdEventListener in ConnectivityService.
Switch to using IDnsResolver#registerEventListener and
INetdEventListener directly.

Test: atest FrameworksNetTests
Test: atest CtsNetTestCases
Change-Id: I72a6b4457a2c22fdbe8c9b25ea92903db3f6fc91
2021-01-07 08:52:40 +00:00
Lorenzo Colitti
1a0836e3eb Stop using VPNs in getDefaultNetworkCapabilitiesForUser.
This was the last place in CS that fetched underlying networks
from Vpn. Therefore, delete Vpn#getUnderlyingNetworks, which is
no longer used.

Bug: 173331190
Test: new tests in ConnectivityServiceTest added in previous CL
Change-Id: Iec22ff636de0c02193576fe2e2d36b8bc7380457
2021-01-07 17:44:29 +09:00
Lorenzo Colitti
282ed251ce Inform ConnectivityService about always-on VPN lockdown.
Currently, when an always-on VPN is set in lockdown mode, Vpn
configures prohibit UID rules in netd directly and does not
inform ConnectivityService of the fact.

This means that ConnectivityService cannot send NetworkCallbacks
that tells apps that they are blocked or unblocked. It also means
that ConnectivityService has to take the mVpns lock and call into
Vpn to allow synchronous APIs such as getActiveNetwork to return
BLOCKED if the app is blocked.

Move all this to ConnectivityService:
- Add a setRequireVpnForUids API to ConnectivityManager, and have
  that pass the routing rules to netd.
- Update VpnTest to expect calls to ConnectivityManager instead
  of to netd.
- Whenever setRequireVpnForUids is called, ensure that
  ConnectivityService sends onBlockedStatusChanged to the
  affected callbacks.
- Update existing unit tests to check for callbacks.
- Add a way to find the VPN that applies to a given UID without
  taking the VPN lock, by instead scanning all connected VPNs.
  Use this as a replacement for direct access to mVpns.

For simplicity, and in order to ensure proper ordering between
the NetworkCallbacks sent for VPNs connecting and disconnecting,
process blocked UID ranges on the handler thread. This means that
when setRequireVpnForUids returns, the rule changes might not
have been applied. This shouldn't impact apps using network
connectivity, but it might mean that apps setting an always-on
package, and then immediately checking whether networking is
blocked, will see a behaviour change.

Bug: 173331190
Fix: 175670887
Test: new test coverage in ConnectivityServiceTest
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn \
            MixedDeviceOwnerTest#testAlwaysOnVpnLockDown \
	    MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot \
	    MixedDeviceOwnerTest#testAlwaysOnVpnPackageUninstalled \
	    MixedDeviceOwnerTest#testAlwaysOnVpnUnsupportedPackage \
	    MixedDeviceOwnerTest#testAlwaysOnVpnUnsupportedPackageReplaced \
	    MixedDeviceOwnerTest#testAlwaysOnVpnPackageLogged \
            MixedProfileOwnerTest#testAlwaysOnVpn \
            MixedProfileOwnerTest#testAlwaysOnVpnLockDown \
	    MixedProfileOwnerTest#testAlwaysOnVpnAcrossReboot \
	    MixedProfileOwnerTest#testAlwaysOnVpnPackageUninstalled \
	    MixedProfileOwnerTest#testAlwaysOnVpnUnsupportedPackage \
	    MixedProfileOwnerTest#testAlwaysOnVpnUnsupportedPackageReplaced \
	    MixedProfileOwnerTest#testAlwaysOnVpnPackageLogged \
            MixedManagedProfileOwnerTest#testAlwaysOnVpn \
            MixedManagedProfileOwnerTest#testAlwaysOnVpnLockDown \
	    MixedManagedProfileOwnerTest#testAlwaysOnVpnAcrossReboot \
	    MixedManagedProfileOwnerTest#testAlwaysOnVpnPackageUninstalled \
	    MixedManagedProfileOwnerTest#testAlwaysOnVpnUnsupportedPackage \
	    MixedManagedProfileOwnerTest#testAlwaysOnVpnUnsupportedPackageReplaced \
	    MixedManagedProfileOwnerTest#testAlwaysOnVpnPackageLogged
Test: atest FrameworksNetTests HostsideVpnTests \
            CtsNetTestCases:VpnServiceTest \
	    CtsNetTestCases:Ikev2VpnTest
Change-Id: Iaca8a7cc343aef52706cff62a7735f338cb1b772
2021-01-07 17:44:29 +09:00
Lorenzo Colitti
60dfb880de Merge changes from topic "connectivity_jar_in_apex"
* changes:
  Move service-connectivity to the tethering APEX
  Set setCurrentProxyScriptUrl as public
2021-01-07 08:34:25 +00:00
Hunter Knepshield
1865ad9960 Fix TelephonyRegistry's mListenLog.
The size of the LocalLog buffer was unintentionally reduced to 0 in
ag/12288380. Also fix minor formatting related in the dump code.

Test: make, dumpsys telephony.registry
Bug: 176052183
Change-Id: I68cc337bfeff6b728f68511477ffe49a9a7ea762
2021-01-07 00:19:35 -08:00
Chiachang Wang
518d9d8f27 Merge "Remove mobile provision design out from connectivity service" 2021-01-07 06:47:26 +00:00
Chiachang Wang
454497b7df Remove mobile provision design out from connectivity service
In order to support ConnectivityService mainline, module should
not use hidden APIs. The logic to get mobile provision is moved
to telephony surface since it's only used by telephony.
Hence, remove the design out from Connectivity.

Bug: 175177794
Test: atest FrameworksNetTests
Change-Id: Ic3082fc1c4d7ac998f4e4cff1351e6829d500924
2021-01-07 06:46:40 +00:00
Rhed Jao
fe41c8a0ce Fix missing fields when parceling the BugreportInfo
Shell app exception resulted from two missing fields in BugreportInfo
when it's parceling. Application ran into the duplicate logic to send
notification and start foreground service then caused the exception.

Bug: 176624074
Test: Request a bugreport; kill the com.android.shell; \
      tap the share notification
Change-Id: Ia80f5e77f5486addf9ea7822f566c3fd7d75f42a
2021-01-07 14:19:18 +08:00
Lucas Lin
c7906266c5 Merge "Replace withCleanCallingIdentity with [clear|restore]CallingIdentity" 2021-01-07 04:32:54 +00:00
Shuo Qian
d70514cf01 Add Call Composer Tuple in RcsContactPresenceTuple class
Test: Treehugger
Bug: 173437870
Change-Id: Id1c3eaf11d85ec5df3c253443bafdb18fd31ccce
Merged-In: Id1c3eaf11d85ec5df3c253443bafdb18fd31ccce
(cherry picked from commit 111e80214e)
2021-01-07 03:13:04 +00:00
Remi NGUYEN VAN
dbbf7a3b4e Move service-connectivity to the tethering APEX
As part of modularization of ConnectivityService and expansion of the
Tethering module scope, move service-connectivity.jar into the tethering
APEX, and load it from there.

Bug: 171540887
Test: m, device boots and connectivity
Change-Id: Id7b6a4664ae73224b9ab219c94f56d603a62ee5a
2021-01-07 11:52:42 +09:00
Paul Hu
8918df04a5 Merge "Replace INetworkPolicyManager to NetworkPolicyManager" 2021-01-07 02:08:58 +00:00
Remi NGUYEN VAN
26dbdc853b Set setCurrentProxyScriptUrl as public
PacManager is part of services.jar, while ProxyManager is in
service-connectivity.jar. setCurrentProxyScriptUrl cannot be
package-private and called across jars.

As part of modularization of service-connectivity.jar, the
PacManager interface will then be formally defined.

Bug: 171540887
Test: Splitting service-connectivity, ProxyManager can reference the
      method
Change-Id: Ie41a5b569a119f305bf647e55a65febbde459352
2021-01-07 10:47:11 +09:00
Rahul Sabnis
2b2f76b7bb Introduce public APIs to check whether a remote bluetooth headset
supports voice recognition as well as echo cancellation and/or noise
reduction via the AT+BRSF bitmask

Tag: #feature
Bug: 172960943
Test: Manual
Change-Id: I40579d9b6d493d2b32fb260983eeb7c79cc0d525
2021-01-06 17:20:19 -08:00
Pinyao Ting
a4d472d23b update owners for shortcut and launcher related files
Bug: 151359749
Test: manual
Change-Id: I7e670f2c59a61ffaa341bb267133c2441206a686
2021-01-06 17:08:46 -08:00
Treehugger Robot
40e2fb68e6 Merge "configure owners for shortcut related tests" 2021-01-07 00:50:50 +00:00
Henry Fang
c8af272fb6 Merge "TvProvider API standardization for ARIB and DVB TvProvider" 2021-01-07 00:30:05 +00:00