OSDN Git Service

android-x86/frameworks-base.git
5 years agoRollback SHELL UID check for CarrierConfigLoader
Brad Ebinger [Thu, 25 Apr 2019 17:59:08 +0000 (10:59 -0700)]
Rollback SHELL UID check for CarrierConfigLoader

When a test calls adoptShellPermissionIdentity before
calling a command, it doesn't adopt the shell UID, only
the permissions. So, we can not use
Binder#getCallingIdentity to determine it the API is
being called as part of a test. For now, we must only
use MODIFY_PHONE_STATE until a better pattern is
established.

Test: Manual
Bug: 131185660
Merged-In: I607b7c9afe1c384a41ce12b92ae43747b2ee1bc3
Change-Id: I59d32a2e36950b2485e1a46a25e3724928676219

5 years agoMerge "Add EPROTONOSUPPORT to IpSecManager SSE map"
Benedict Wong [Mon, 29 Apr 2019 19:59:38 +0000 (19:59 +0000)]
Merge "Add EPROTONOSUPPORT to IpSecManager SSE map"

5 years agoMerge "Support adding NATT keepalive packet filter"
Mark Chien [Mon, 29 Apr 2019 15:59:16 +0000 (15:59 +0000)]
Merge "Support adding NATT keepalive packet filter"

5 years agoMerge "Add Network, NetworkCapabilities, StaticIpConfiguration common test cases"
Paul Hu [Mon, 29 Apr 2019 15:38:48 +0000 (15:38 +0000)]
Merge "Add Network, NetworkCapabilities, StaticIpConfiguration common test cases"

5 years agoMerge "Freeze {ipmemorystore,networkstack}-aidl-interfaces as version 2."
Treehugger Robot [Mon, 29 Apr 2019 13:55:06 +0000 (13:55 +0000)]
Merge "Freeze {ipmemorystore,networkstack}-aidl-interfaces as version 2."

5 years agoSupport adding NATT keepalive packet filter
Aaron Huang [Fri, 19 Apr 2019 14:47:26 +0000 (22:47 +0800)]
Support adding NATT keepalive packet filter

Support adding NATT keepalive packet filter to APF
filter.
Generating APF program will be addressed in another CL.

Bug: 33530442
Test: - atest NetworkStackTests
      - atest FrameworksNetTests

Change-Id: I4961d5da343d8700600269632787c28112f0f9f1

5 years agoFreeze {ipmemorystore,networkstack}-aidl-interfaces as version 2.
Lorenzo Colitti [Mon, 29 Apr 2019 10:32:42 +0000 (19:32 +0900)]
Freeze {ipmemorystore,networkstack}-aidl-interfaces as version 2.

Generated with:
m networkstack-aidl-interfaces-freeze-api \
    ipmemorystore-aidl-interfaces-freeze-api

Test: builds, boots
Bug: 128803828
Change-Id: I079018679766738a97b827bc87a6903655f308dd

5 years agoMerge "Add AIDL parcelable for NattKeepalivePacketData"
Mark Chien [Mon, 29 Apr 2019 10:26:35 +0000 (10:26 +0000)]
Merge "Add AIDL parcelable for NattKeepalivePacketData"

5 years agoAdd Network, NetworkCapabilities, StaticIpConfiguration common test cases
paulhu [Mon, 29 Apr 2019 10:07:51 +0000 (18:07 +0800)]
Add Network, NetworkCapabilities, StaticIpConfiguration common test cases

Bug: 129200415
Bug: 129200142
Bug: 129200418
Test: atest FrameworksNetTests
Test: atest CtsNetTestCases: added tests pass
Change-Id: I568d516e1ffc9e32061ca6860224c102bdfd7445

5 years agoMerge "Revert "Make the network stack a persistent process.""
Lorenzo Colitti [Mon, 29 Apr 2019 01:40:34 +0000 (01:40 +0000)]
Merge "Revert "Make the network stack a persistent process.""

5 years agoMerge changes Ia9865c75,I47d9d53d,Idbe10c36
Lorenzo Colitti [Mon, 29 Apr 2019 00:50:30 +0000 (00:50 +0000)]
Merge changes Ia9865c75,I47d9d53d,Idbe10c36

* changes:
  Fix some checkstyle nits in DhcpPacketTest.
  Additional code for server name in DHCP packets.
  Parse the server host name field of the dhcp package

5 years agoRevert "Make the network stack a persistent process."
Lorenzo Colitti [Sat, 27 Apr 2019 15:02:50 +0000 (15:02 +0000)]
Revert "Make the network stack a persistent process."

This reverts commit 796afddd6c7012dc7f10bc2557eb06767c5d873a.

Reason for revert: breaks updatability because persistent processes are not updatable.

Change-Id: I35ded113b31e742f13ad8523a10af3a83a111374

5 years agoFix some checkstyle nits in DhcpPacketTest.
Lorenzo Colitti [Sat, 27 Apr 2019 07:36:39 +0000 (16:36 +0900)]
Fix some checkstyle nits in DhcpPacketTest.

Use the Generated code suppression comment filter instead of the
IndentationCheck suppression comment filter because the latter
complains that '+' should be on a new line.

Bug: 120584519
Bug: 127423755
Test: atest NetworkStackTests
Test: atest FrameworksNetTests
Change-Id: Ia9865c75f940e2fbb3aef374a297339e8ea2fd1b

5 years agoAdditional code for server name in DHCP packets.
Lorenzo Colitti [Fri, 26 Apr 2019 10:10:20 +0000 (19:10 +0900)]
Additional code for server name in DHCP packets.

- Add the hostname to DhcpResultsParcelable.
- Don't store the server hostname if option overload is in use,
  as this is not valid.
- Add unit tests.

Bug: 120584519
Bug: 127423755
Test: atest NetworkStackTests
Test: atest FrameworksNetTests
Change-Id: I47d9d53d1fb58968322cc8b071a44fbc8f7156e1

5 years agoParse the server host name field of the dhcp package
yuanyunli [Wed, 9 Jan 2019 08:59:37 +0000 (16:59 +0800)]
Parse the server host name field of the dhcp package

Some hotspot devices will fill in the server host name field of the DHCP
package, such as iphone. Parsing the server host name of the DHCP
package can help identify ios hotspots.

Bug: 120584519
Test: 127423755
Test: builds, boots, wifi works
Change-Id: Idbe10c36332ce421f1bba93eb87e9e1e12463088

5 years agoMerge "Convert misc tests Android.mk files to Android.bp"
Treehugger Robot [Fri, 26 Apr 2019 13:10:24 +0000 (13:10 +0000)]
Merge "Convert misc tests Android.mk files to Android.bp"

5 years agoMerge "Add validation type definition to support multiple probe result"
Lorenzo Colitti [Fri, 26 Apr 2019 10:32:19 +0000 (10:32 +0000)]
Merge "Add validation type definition to support multiple probe result"

5 years agoMerge "Make DNS cache lifecycle management explicit"
Lorenzo Colitti [Fri, 26 Apr 2019 00:23:22 +0000 (00:23 +0000)]
Merge "Make DNS cache lifecycle management explicit"

5 years agoMerge "Fixed the comment of carrier config for CDNR"
Pengquan Meng [Thu, 25 Apr 2019 22:07:25 +0000 (22:07 +0000)]
Merge "Fixed the comment of carrier config for CDNR"

5 years agoFixed the comment of carrier config for CDNR
Pengquan Meng [Tue, 23 Apr 2019 20:55:02 +0000 (13:55 -0700)]
Fixed the comment of carrier config for CDNR

Bug: 122921456
Test: build
Merged-In: If5cc8d37ba1e66d59e5bfe9444fe4108f2263be9
Change-Id: If5cc8d37ba1e66d59e5bfe9444fe4108f2263be9
(cherry picked from commit 7ac9a8f314ad8be530f6745a947b90bfcff9495c)

5 years agoAdd validation type definition to support multiple probe result
Chiachang Wang [Thu, 25 Apr 2019 15:58:27 +0000 (23:58 +0800)]
Add validation type definition to support multiple probe result

In order to allow NetworkMonitor to tell ConnectivityService
if the network is either parital, validated or both.
NetworkMonitor could update the probe result by passing the
bitmask to ConnectivityService.

Bug: 130078798
Bug: 130683832
Test: build
Change-Id: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d

5 years agoMerge "Remove Settings constants for NetworkStack"
Chiachang Wang [Thu, 25 Apr 2019 04:49:04 +0000 (04:49 +0000)]
Merge "Remove Settings constants for NetworkStack"

5 years agoMerge "Update exception type thrown when NetworkStack is missing"
Chiachang Wang [Thu, 25 Apr 2019 03:48:52 +0000 (03:48 +0000)]
Merge "Update exception type thrown when NetworkStack is missing"

5 years agoRemove Settings constants for NetworkStack
Chiachang Wang [Thu, 25 Apr 2019 01:47:27 +0000 (09:47 +0800)]
Remove Settings constants for NetworkStack

The definitions reference of these constants are moved from
Settings to DeviceConfig. These definitions are @hide and the
usage in the Settings are removed. Thus, remove the definitions
from API level.

Bug: 123167629
Test: make system-api-stubs-docs-update-current-api \
      test-api-stubs-docs-update-current-api
Test: atest NetworkStackTests
Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570
Merged-In: I7291cfa86cd6e907df35e8fbc97e2e9a77e56cab
Merged-In: Ic48bea07e79490dd3787068bc88c748525752a61

5 years agoMerge "Add privapp permissions to network modules."
Lorenzo Colitti [Thu, 25 Apr 2019 02:05:19 +0000 (02:05 +0000)]
Merge "Add privapp permissions to network modules."

5 years agoMerge "Use injected instance of RcsControllerCall"
Treehugger Robot [Wed, 24 Apr 2019 23:48:40 +0000 (23:48 +0000)]
Merge "Use injected instance of RcsControllerCall"

5 years agoMerge "Do not populate SLOT_KEY with wrong slot info"
Jordan Liu [Wed, 24 Apr 2019 23:04:25 +0000 (23:04 +0000)]
Merge "Do not populate SLOT_KEY with wrong slot info"

5 years agoAdd EPROTONOSUPPORT to IpSecManager SSE map
Benedict Wong [Mon, 16 Jul 2018 21:56:20 +0000 (14:56 -0700)]
Add EPROTONOSUPPORT to IpSecManager SSE map

This change maps EPROTONOSUPPORT to the list of error codes that map to
UnsupportedOperationException in IpSecManager.

Bug: 80103456
Test: Compiles, CTS tests ran
Change-Id: Iec3d5fc4a9bcad7c104414afefae775232d46558

5 years agoDo not populate SLOT_KEY with wrong slot info
Jordan Liu [Mon, 22 Apr 2019 20:58:02 +0000 (13:58 -0700)]
Do not populate SLOT_KEY with wrong slot info

The slotId is not necessarily the phoneId, so do not broadcast as if it
is. SLOT_KEY is a hidden extra so this should not impact apps in general
(if they need the old extra they can still use the hidden PHONE_KEY).

For select broadcasts like SIM_CARD_STATE_CHANGED, we will manually
populate the slot key. This is a temporary solution to b/130664115 and
we should eventually review and consider making the SLOT_KEY public for
some broadcasts.

Bug: 130664115
Test: manual
Change-Id: I84bd4c6bc4277e32cee9916dd18dd80948a808a0
Merged-In: I84bd4c6bc4277e32cee9916dd18dd80948a808a0

5 years agoMerge "Add 5G evolution icon"
SongFerng Wang [Wed, 24 Apr 2019 16:41:14 +0000 (16:41 +0000)]
Merge "Add 5G evolution icon"

5 years agoMerge "Make the network stack a persistent process."
Treehugger Robot [Wed, 24 Apr 2019 16:25:24 +0000 (16:25 +0000)]
Merge "Make the network stack a persistent process."

5 years agoAdd 5G evolution icon
SongFerngWang [Thu, 21 Mar 2019 15:14:20 +0000 (23:14 +0800)]
Add 5G evolution icon

This add the 5GE icon to the system UI for specific carriers
LTE CA network.

Bug: 124768697
Test: build & manually test:
fake the operator name with pattern, and check the status bar data icon.

Change-Id: Ife0401219138c7ed22e7bfbd4d5e8648c54a98a8
Merged-In: Ife0401219138c7ed22e7bfbd4d5e8648c54a98a8

5 years agoMerge "Remove unused methods from INetworkManagementService"
Treehugger Robot [Wed, 24 Apr 2019 14:29:39 +0000 (14:29 +0000)]
Merge "Remove unused methods from INetworkManagementService"

5 years agoAdd privapp permissions to network modules.
Lorenzo Colitti [Wed, 24 Apr 2019 13:51:49 +0000 (22:51 +0900)]
Add privapp permissions to network modules.

When built as part of the system, the network stack and the
captive portal login app should have the BYPASS_PRIVATE_DNS
and CONNECTIVITY_USE_RESTRICTED_NETWORKS permissions.
These are necessary to validate restricted networks, bypass VPNs,
bypass private DNS for captive portal login, etc. Add these
permissions to privapp-permissions-platform.xml.

When installed as mainline modules that cannot use signature
permissions, the modules get this ability by virtue of having the
MAINLINE_NETWORK_STACK permissions.

Additionally, add the CONNECTIVITY_USE_RESTRICTED_NETWORKS
permission to the captive portal login app manifest, which did
not contain it.

Bug: 129789428
Test: builds, boots
Test: dumpsys package shows permissions
Change-Id: I632359f7eff09fed71167733ac75824a5aa57894

5 years agoUpdate exception type thrown when NetworkStack is missing
Chiachang Wang [Wed, 24 Apr 2019 13:44:05 +0000 (21:44 +0800)]
Update exception type thrown when NetworkStack is missing

rethrowFromSystemServer is throwing DeadSystemException which
is different from the original log message. Thus, update the
way to rethrow the same RemoteException.

Bug: 130028724
Test: atest FrameworksNetTest
Test: Kill NetworkStack and check the log message
Change-Id: I60862e276dd4e2d143278b272a9ba54219acce26

5 years agoMake the network stack a persistent process.
Lorenzo Colitti [Wed, 24 Apr 2019 13:26:42 +0000 (22:26 +0900)]
Make the network stack a persistent process.

The network stack should never be killed, because if it does,
recovering networking requires a reboot. Make the process
persistent to reduce the chances of it being killed by the OOM
killer.

Bug: 131046856
Test: builds, boots
Test: process oom_score_adj is -800
Test: process goes from "Persistent Service" to "Persistent" in dumpsys meminfo
Change-Id: Ic8ebf6356e23489f6cd984d680ff9f1b4cbbe52d

5 years agoMerge "Switch to HexEncoding from ByteStringUtils"
Neil Fuller [Wed, 24 Apr 2019 12:57:25 +0000 (12:57 +0000)]
Merge "Switch to HexEncoding from ByteStringUtils"

5 years agoMerge "Delete unused timeout constant."
Treehugger Robot [Wed, 24 Apr 2019 09:44:14 +0000 (09:44 +0000)]
Merge "Delete unused timeout constant."

5 years agoMerge "Reinstate new VPN uid filtering unit tests"
Treehugger Robot [Wed, 24 Apr 2019 09:37:49 +0000 (09:37 +0000)]
Merge "Reinstate new VPN uid filtering unit tests"

5 years agoAdd AIDL parcelable for NattKeepalivePacketData
Aaron Huang [Tue, 23 Apr 2019 14:17:16 +0000 (22:17 +0800)]
Add AIDL parcelable for NattKeepalivePacketData

Bug: 33530442
Test: atest FrameworksNetTests

Change-Id: I9b9a51dc5dc06c90229fb36c34c24258991c4146

5 years agoDelete unused timeout constant.
Lorenzo Colitti [Wed, 24 Apr 2019 08:09:08 +0000 (17:09 +0900)]
Delete unused timeout constant.

Test: m
Bug: 129312219
Change-Id: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1

5 years agoMerge "Create new RcsMessageQueryResultParcelable"
Treehugger Robot [Wed, 24 Apr 2019 06:12:47 +0000 (06:12 +0000)]
Merge "Create new RcsMessageQueryResultParcelable"

5 years agoMerge "Move NattKeepalivePacketData out of the framework"
Aaron Huang [Wed, 24 Apr 2019 04:00:56 +0000 (04:00 +0000)]
Merge "Move NattKeepalivePacketData out of the framework"

5 years agoMerge "Update API docs for country ISO APIs."
Tyler Gunn [Tue, 23 Apr 2019 21:40:12 +0000 (21:40 +0000)]
Merge "Update API docs for country ISO APIs."

5 years agoMerge "Add carrier display name related CarrierConfig"
Pengquan Meng [Tue, 23 Apr 2019 20:23:20 +0000 (20:23 +0000)]
Merge "Add carrier display name related CarrierConfig"

5 years agoMerge "Move to android_mallopt for malloc debug calls."
Christopher Ferris [Tue, 23 Apr 2019 17:45:01 +0000 (17:45 +0000)]
Merge "Move to android_mallopt for malloc debug calls."

5 years agoReinstate new VPN uid filtering unit tests
Rubin Xu [Tue, 23 Apr 2019 17:04:14 +0000 (18:04 +0100)]
Reinstate new VPN uid filtering unit tests

Mock out PackageManager and returns correct information corresponding
to the test app package itself.

Test: atest --generate-new-metrics 10 com.android.server.ConnectivityServiceTest
Bug: 114231106
Bug: 130397860
Change-Id: Ib921700eda417f411d7a2c77c1140fba9ab50bbb

5 years agoMerge "Fixed that emergency alert dialog not popped up"
Jack Yu [Tue, 23 Apr 2019 16:57:04 +0000 (16:57 +0000)]
Merge "Fixed that emergency alert dialog not popped up"

5 years agoUpdate API docs for country ISO APIs.
Tyler Gunn [Tue, 23 Apr 2019 15:55:56 +0000 (08:55 -0700)]
Update API docs for country ISO APIs.

Updating to make it more clear the format of the returned country ISO
codes.

Test: Build
Fixes: 131154060
Change-Id: I10c00c1a48e36e00720f50e85d6bb931756f1085

5 years agoMerge "Add a timeout for the DNS probe."
Lorenzo Colitti [Tue, 23 Apr 2019 14:13:14 +0000 (14:13 +0000)]
Merge "Add a timeout for the DNS probe."

5 years agoMerge "Add tests for DhcpErrorEvent"
Paul Hu [Tue, 23 Apr 2019 11:31:03 +0000 (11:31 +0000)]
Merge "Add tests for DhcpErrorEvent"

5 years agoMerge "Freeze the networkstack-aidl-interfaces interface"
Lorenzo Colitti [Tue, 23 Apr 2019 08:33:41 +0000 (08:33 +0000)]
Merge "Freeze the networkstack-aidl-interfaces interface"

5 years agoMerge "[KA11] Verify fd ownership and allocate resource for NattKeepalive"
Junyu Lai [Tue, 23 Apr 2019 07:48:08 +0000 (07:48 +0000)]
Merge "[KA11] Verify fd ownership and allocate resource for NattKeepalive"

5 years agoFreeze the networkstack-aidl-interfaces interface
Remi NGUYEN VAN [Fri, 5 Apr 2019 06:15:48 +0000 (15:15 +0900)]
Freeze the networkstack-aidl-interfaces interface

This freezes the interface as of the latest beta build, not the tip of
tree. IIpClient#setL2KeyAndGroupHint is not in the frozen definition in
particular.

Generated with:
m networkstack-aidl-interfaces-freeze-api \
    ipmemorystore-aidl-interfaces-freeze-api

Test: flashed, booted, WiFi and captive portal working
Bug: 128803828
Change-Id: Ideabe73fc93bbefca2d624ee9ca190cf31419424

5 years ago[KA11] Verify fd ownership and allocate resource for NattKeepalive
junyulai [Tue, 16 Apr 2019 11:32:32 +0000 (19:32 +0800)]
[KA11] Verify fd ownership and allocate resource for NattKeepalive

Since socket keepalive APIs for UDP encapsulation sockets are
public to generic app. In order to ensure the given fd is valid,
this change verifies the resource id inside the UDP
encapsulation socket by using methods provided by IpSecService.

Bug: 125517194
Fix: 123968920
Test: 1. atest FrameworksNetTests --generate-new-metrics 10
      2. atestcom.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 100
Change-Id: I408aacc19b364683854d15a095c34e72389a6e5b

5 years agoMerge "Fix urn compare in EmergencyNumber"
Treehugger Robot [Tue, 23 Apr 2019 01:29:25 +0000 (01:29 +0000)]
Merge "Fix urn compare in EmergencyNumber"

5 years agoAdd carrier display name related CarrierConfig
Pengquan Meng [Thu, 18 Apr 2019 02:36:58 +0000 (19:36 -0700)]
Add carrier display name related CarrierConfig

Bug: 122921456
Test: build
Merged-In: I79836b2912be5223a2269e660bfaadf4aa72b930
Change-Id: I79836b2912be5223a2269e660bfaadf4aa72b930
(cherry picked from commit 4ae672f192c009c5e0ae629d1c4e321d9677169b)

5 years agoMerge "Fix an argument to the legacy broadcast"
Chalard Jean [Tue, 23 Apr 2019 00:38:10 +0000 (00:38 +0000)]
Merge "Fix an argument to the legacy broadcast"

5 years agoMerge "Disable iorap test mapping"
Treehugger Robot [Mon, 22 Apr 2019 20:38:24 +0000 (20:38 +0000)]
Merge "Disable iorap test mapping"

5 years agoMerge "Add NATT keepalive resources and methods into IpSecService"
Benedict Wong [Mon, 22 Apr 2019 20:03:54 +0000 (20:03 +0000)]
Merge "Add NATT keepalive resources and methods into IpSecService"

5 years agoMerge "Reduce cbrubaker bus factor by 2"
Treehugger Robot [Mon, 22 Apr 2019 19:56:25 +0000 (19:56 +0000)]
Merge "Reduce cbrubaker bus factor by 2"

5 years agoDisable iorap test mapping
Mathieu Chartier [Thu, 31 Jan 2019 17:36:19 +0000 (09:36 -0800)]
Disable iorap test mapping

Post submit tests are failing, disable the tests for now.

Bug: 123659771
Bug: 72170747
Bug: 130883339
Test: TH

(cherry picked from commit 6565a34d7ff731180ddb9c4ef05c51bcf6691ec7)

Merged-In: I17befa52ebad92413122253f692168cf93cbab6e
Change-Id: Ida6c6cb2ee30ebb08c959df83ae05fabb112d9c2

5 years agoFixed that emergency alert dialog not popped up
Jack Yu [Mon, 22 Apr 2019 00:21:43 +0000 (17:21 -0700)]
Fixed that emergency alert dialog not popped up

Fixed by granting START_ACTIVITIES_FROM_BACKGROUND
to the cell broadcast receiver.

Test: Manual
Bug: 130384940

Merged-In: Ie563a8f11ac991ab9568f65df6a4d14eebe47c5e
Change-Id: Ie563a8f11ac991ab9568f65df6a4d14eebe47c5e
(cherry picked from commit 974607aac84c49dd102a578c7776752216280128)

5 years agoFix urn compare in EmergencyNumber
sqian [Mon, 22 Apr 2019 18:14:09 +0000 (11:14 -0700)]
Fix urn compare in EmergencyNumber

Test: Sanity
Bug: 130979270
Change-Id: I585ecafcf9996e24befec2dbe86465a1d5a0f030

5 years agoMerge "Add configurability of LinkProperties, meteredness for Test Networks"
Benedict Wong [Mon, 22 Apr 2019 17:41:20 +0000 (17:41 +0000)]
Merge "Add configurability of LinkProperties, meteredness for Test Networks"

5 years agoAdd tests for DhcpErrorEvent
Remi NGUYEN VAN [Fri, 12 Apr 2019 03:35:55 +0000 (12:35 +0900)]
Add tests for DhcpErrorEvent

The tests are run both in unit and CTS tests.
Test: atest FrameworksNetTests NetworkStackTestCases
Bug: 129200175

Change-Id: I52976bbbaca26fb317836e8461e372c25df02a22

5 years agoAdd a timeout for the DNS probe.
Lorenzo Colitti [Thu, 18 Apr 2019 04:44:32 +0000 (13:44 +0900)]
Add a timeout for the DNS probe.

Bug: 129312219
Test: atest NetworkStackTests
Test: atest --generate-new-metrics 50 NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest
Change-Id: Ib3ab9105d7ae39f551b51e8d5a04b9ec5e549655

5 years agoMerge "Move more network unit tests to common tests"
Paul Hu [Mon, 22 Apr 2019 13:59:25 +0000 (13:59 +0000)]
Merge "Move more network unit tests to common tests"

5 years agoFix an argument to the legacy broadcast
Chalard Jean [Thu, 11 Apr 2019 05:09:07 +0000 (14:09 +0900)]
Fix an argument to the legacy broadcast

Test: new test for this
Fixes: 62650382
Change-Id: I918b8271d3c3c058553ca888cb54cd36a6efba66

5 years agoMake DNS cache lifecycle management explicit
Luke Huang [Tue, 9 Apr 2019 10:41:49 +0000 (18:41 +0800)]
Make DNS cache lifecycle management explicit

1. ConnectivityService calls netd binder to create/destroy network directly.
2. Call dnsresolver binder to create/destroy cache after create/destroy network.
3. Remove unused network create/destroy methods in NetworkManagementService.

Bug: 129453995
Test: atest FrameworksNetTests
Change-Id: I15660d27f735e33d621d4af8972cdf115bf76dfa

5 years agoMerge "Fix a bug where + before % is ignored"
Treehugger Robot [Mon, 22 Apr 2019 08:09:32 +0000 (08:09 +0000)]
Merge "Fix a bug where + before % is ignored"

5 years agoMerge changes Id598ae1d,I475bd011
Chalard Jean [Mon, 22 Apr 2019 02:15:04 +0000 (02:15 +0000)]
Merge changes Id598ae1d,I475bd011

* changes:
  Fix a possible crash when the listener is null
  Straighten AIDL interface for the memory store

5 years agoMerge "Add more documentation for LE CoC"
Treehugger Robot [Mon, 22 Apr 2019 02:05:22 +0000 (02:05 +0000)]
Merge "Add more documentation for LE CoC"

5 years agoFix a bug where + before % is ignored
Chalard Jean [Fri, 19 Apr 2019 05:58:51 +0000 (14:58 +0900)]
Fix a bug where + before % is ignored

Achievement unlocked : fix a 10-year-old trivial bug

Bug: 1866121
Test: new CTS in Ib7ee866f65baf99b46a31e2115355a42a829421e
Change-Id: Ic91660d974dce21f2affdcacaeffe9accf8451ac

5 years agoFix a possible crash when the listener is null
Chalard Jean [Thu, 4 Apr 2019 09:39:32 +0000 (18:39 +0900)]
Fix a possible crash when the listener is null

Test: manual
Bug: 129930804
Change-Id: Id598ae1d98154b19d156e52973cf379669e7060c
Merged-In: I325fd3eda6e89228353342f00a49f50b22b17071
Merged-In: Id8151886ab1d26101e02f9abe9e21c58c7236623
(cherry picked from commit 28671455229a7a1b74b54fa183c6ba4cc225099f)

5 years agoStraighten AIDL interface for the memory store
Chalard Jean [Fri, 1 Feb 2019 05:20:32 +0000 (14:20 +0900)]
Straighten AIDL interface for the memory store

Some names were still wrong somehow, and the wrappers were
missing.

Test: NetworkStack & FrameworkNetTests
Change-Id: I475bd011ad9bc714a07021a9dfd85c4876f8e9ad
Merged-In: I475bd011ad9bc714a07021a9dfd85c4876f8e9ad

5 years agoMerge "Make LegacyTypeTracker testable"
Chalard Jean [Sun, 21 Apr 2019 23:57:14 +0000 (23:57 +0000)]
Merge "Make LegacyTypeTracker testable"

5 years agoMerge "Remove framework.aidl rules"
Colin Cross [Sun, 21 Apr 2019 17:20:17 +0000 (17:20 +0000)]
Merge "Remove framework.aidl rules"

5 years agoMerge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServ...
Treehugger Robot [Sat, 20 Apr 2019 02:20:04 +0000 (02:20 +0000)]
Merge "Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid"

5 years agoMerge changes from topic "R"
Dan Willemsen [Sat, 20 Apr 2019 01:06:00 +0000 (01:06 +0000)]
Merge changes from topic "R"

* changes:
  master designated for R. Update MAX_PLATFORM_VERSION, etc.
  AAPT2: Update SDK development codename to Q

5 years agoAdd more documentation for LE CoC
Stanley Tng [Fri, 19 Apr 2019 21:27:09 +0000 (14:27 -0700)]
Add more documentation for LE CoC

Added more information into Android SDK for LE Connection-oriented
Channels (CoC) so that it matches the corresponding RFComm
documentation.

Bug: 70683224
Test: Compile
Change-Id: I40abde70a7ca6bcd194ee75bd8367c0ed9e97d05

5 years agoAdd nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSoli...
Zach Johnson [Fri, 19 Apr 2019 21:13:03 +0000 (14:13 -0700)]
Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid

Test: compilation
Fixes: 126698824
Change-Id: I4873b46a37df3e103ddc62001cc9f0bc01aea4dc

5 years agoMerge changes from topic "GameDriver3"
Treehugger Robot [Fri, 19 Apr 2019 20:47:35 +0000 (20:47 +0000)]
Merge changes from topic "GameDriver3"

* changes:
  Game Driver: process sphal libraries in GPU service
  Game Driver: Add a Settings.Global property for sphal libraries
  [Game Driver] Add global whitelist option.
  [GPU Service] Move blacklists process to GPU service.
  Split blacklist from versioned blacklists.
  Game Driver: clean up GraphicsEnvironment
  [GPU Service] Implement GPU service.

5 years agoMerge "Return copies for get methods"
Jack Yu [Fri, 19 Apr 2019 20:29:08 +0000 (20:29 +0000)]
Merge "Return copies for get methods"

5 years agoGame Driver: process sphal libraries in GPU service
Yiwei Zhang [Thu, 14 Feb 2019 20:05:47 +0000 (12:05 -0800)]
Game Driver: process sphal libraries in GPU service

This change adds the sphal libraries text file parsing to the GPU
service. As the result, when the Game Driver apk is updated, the sphal
library list will be read out to the GAME_DRIVER_SPHAL_LIBRARIES
settings global property to be used in the graphics environment to
extend the current linker namespace.

Bug: 124448366
Test: Build, flash and boot. Install the apk to verify settings global.

Change-Id: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
Merged-In: Ifb4007a1fe7269e0a2857fe7badc8642342b1449

5 years agoGame Driver: Add a Settings.Global property for sphal libraries
Yiwei Zhang [Thu, 14 Feb 2019 18:43:42 +0000 (10:43 -0800)]
Game Driver: Add a Settings.Global property for sphal libraries

This change add the GAME_DRIVER_SPHAL_LIBRARIES property to save the
list of sphal libraries assessible to Game Driver.

Bug: 124448366
Test: Build, flash and boot.
Change-Id: I7cb06df80f19d87f5fd13d7df3c991ceb5bdfb06
Merged-In: I7cb06df80f19d87f5fd13d7df3c991ceb5bdfb06
Exempt-From-Owner-Approval: Change in CoreSettingsObserver.java is too
minor

5 years agoMerge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS"
Dan Willemsen [Fri, 19 Apr 2019 19:30:50 +0000 (19:30 +0000)]
Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS"

5 years agoMove to android_mallopt for malloc debug calls.
Christopher Ferris [Tue, 16 Apr 2019 18:34:58 +0000 (11:34 -0700)]
Move to android_mallopt for malloc debug calls.

Remove the guardrail/MemoryLeakTrackUtil.* files. They aren't used
and they are a copy of frameworks/av/media/utils/MemoryLeakTrackUtil.*.

Bug: 130028357

Test: Enable backtrace for calendar, run am dumpheap -n <PID> <FILE>
Change-Id: I6ce69465b0c04fae97b3622df2763a2996063d85
Merged-In: I6ce69465b0c04fae97b3622df2763a2996063d85
(cherry picked from commit 98180a344cfd08748dcf5a6aa5aebfdeb7e78b62)

5 years agoAdd NATT keepalive resources and methods into IpSecService
Benedict Wong [Mon, 25 Feb 2019 20:33:22 +0000 (12:33 -0800)]
Add NATT keepalive resources and methods into IpSecService

This change adds a new NATTKeepalive resource type, along with the
associated allocation/deallocation. Additionally, this change allows
ReferenceCountedResource(s) to not be binder-linked, to allow the
ConnectivityService to verify ownership and allocate a NattKeepalive
without double-registering for binder-death notifications.

Bug: 125517194
Test: IpSecService frameworks tests ran
Change-Id: I8293f79940ad57dabb6f2b9de5e334d06b869443

5 years ago[Game Driver] Add global whitelist option.
Peiyong Lin [Wed, 13 Feb 2019 22:46:54 +0000 (14:46 -0800)]
[Game Driver] Add global whitelist option.

Allow a '*' at the beginning of the whitelist file to mean whitelist
everything.

BUG: 120869311
Test: Build, flash and boot. Verify with apk
Change-Id: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2
Merged-In: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2

5 years ago[GPU Service] Move blacklists process to GPU service.
Peiyong Lin [Thu, 7 Feb 2019 03:37:04 +0000 (19:37 -0800)]
[GPU Service] Move blacklists process to GPU service.

Instead of re-process blacklists proto everytime, we move the processing to GPU
Service, and add SettingsObserver to observe the change of
Settings.Global.GAME_DRIVER_BLACKLISTS such that we only re-process the
blacklists when needed.

As a result, we will have GAME_DRIVER_BLACKLISTS which is used to accept a list
of blacklist from the server, one for each game driver version that needs to
have blacklist, and GAME_DRIVER_BLACKLIST will only contain a list of
blacklisted application package names for the current version of game driver on
the device, separated by comma.

BUG: 120869311
Test: Build, flash and boot. Use adb shell settings put command to verify.
Change-Id: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
Merged-In: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b

5 years agoAdd configurability of LinkProperties, meteredness for Test Networks
Benedict Wong [Fri, 19 Apr 2019 02:18:43 +0000 (19:18 -0700)]
Add configurability of LinkProperties, meteredness for Test Networks

This commit adds the ability to pass in LinkProperties and meteredness
for additional testing use cases.

Bug: ?
Test: Compiles. Test utility only.
Change-Id: Idf6c3bcae2dea5e61c0418b72b889496919be8ba

5 years agoReturn copies for get methods
Jack Yu [Tue, 16 Apr 2019 15:20:18 +0000 (08:20 -0700)]
Return copies for get methods

NetworkRegistrationInfo and ServiceState are not
immutable class. Their get methods should return a new
copy of object so the caller won't modify its state.

Bug: 130538118
Test: Unit tests + manual

Merged-In: I51662a92b0b6189a8c8aa017085affedac417190
Change-Id: I51662a92b0b6189a8c8aa017085affedac417190
(cherry picked from commit 37538594e68dea9a1965ffb8307b259d8cf3717b)

5 years agoMerge changes from topic "128616035"
Xiangyu/Malcolm Chen [Fri, 19 Apr 2019 16:53:19 +0000 (16:53 +0000)]
Merge changes from topic "128616035"

* changes:
  Adding @hide API to return whether an APN is metered or not.
  Add API to set alwaysAllowMms

5 years agoMove NattKeepalivePacketData out of the framework
Aaron Huang [Tue, 2 Apr 2019 07:36:00 +0000 (15:36 +0800)]
Move NattKeepalivePacketData out of the framework

For implementing parcelable interface for NattKeepalivePacketData.
Move this class out of framework.jar and move to services.jar

This class is used in telephony-common.jar and it also loads
service.jar.

Bug: 33530442
Test: - build pass
      - atest NetworkStackTests
      - atest ConnectivityServiceTest

Change-Id: Id2fdec5c4015d2cefd8a93e0cfdcc3c304fc9b64

5 years agoMerge "Add CallLog provider loggging to check for app-ops denial."
Tyler Gunn [Fri, 19 Apr 2019 15:33:53 +0000 (15:33 +0000)]
Merge "Add CallLog provider loggging to check for app-ops denial."

5 years agoMerge "Don't call ConnectivityService when holding ActivityManagerService lock."
Treehugger Robot [Fri, 19 Apr 2019 11:50:28 +0000 (11:50 +0000)]
Merge "Don't call ConnectivityService when holding ActivityManagerService lock."

5 years agoAdding @hide API to return whether an APN is metered or not.
Malcolm Chen [Thu, 18 Apr 2019 20:49:17 +0000 (13:49 -0700)]
Adding @hide API to return whether an APN is metered or not.

In addition, make isMmsDataEnabled more generic:
isDataEnabledForApn

Bug: 128616035
Test: manual
Change-Id: Icd520c3094dd761a13435fae79b7b6b3ba2ebda9
Merged-In: Icd520c3094dd761a13435fae79b7b6b3ba2ebda9

5 years agoMake LegacyTypeTracker testable
Chalard Jean [Wed, 10 Apr 2019 14:07:55 +0000 (23:07 +0900)]
Make LegacyTypeTracker testable

...and add basic trivial tests for it.

Test: this, and ConnectivityServiceTest
Bug: 62650382
Change-Id: Ie7ca938e6f66f1b15feb6ed93afa0aebb20884ae

5 years agoAdd API to set alwaysAllowMms
Malcolm Chen [Wed, 10 Apr 2019 02:27:57 +0000 (19:27 -0700)]
Add API to set alwaysAllowMms

Add API in SubscriptionManager setAlwaysAllowMmsData
and isMmsDataAllowed.

Bug: 128616035
Test: unittest
Change-Id: Ie56c2d0619a68b188c35e8e24db6c2012d22538b
Merged-In: Ie56c2d0619a68b188c35e8e24db6c2012d22538b