Commit Graph

382696 Commits

Author SHA1 Message Date
Lorenzo Colitti
a6d5664819 Merge "Make DNS cache lifecycle management explicit" 2019-04-26 00:23:22 +00:00
Pengquan Meng
e994a0d66a Merge "Fixed the comment of carrier config for CDNR" 2019-04-25 22:07:25 +00:00
Pengquan Meng
b4a53fdb9e Fixed the comment of carrier config for CDNR
Bug: 122921456
Test: build
Merged-In: If5cc8d37ba1e66d59e5bfe9444fe4108f2263be9
Change-Id: If5cc8d37ba1e66d59e5bfe9444fe4108f2263be9
(cherry picked from commit 7ac9a8f314)
2019-04-25 11:23:27 -07:00
Chiachang Wang
d32d766a04 Merge "Remove Settings constants for NetworkStack" 2019-04-25 04:49:04 +00:00
Chiachang Wang
fb60c85219 Merge "Update exception type thrown when NetworkStack is missing" 2019-04-25 03:48:52 +00:00
Chiachang Wang
e6d0ab916a 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
2019-04-25 02:40:51 +00:00
Lorenzo Colitti
f11bd352b4 Merge "Add privapp permissions to network modules." 2019-04-25 02:05:19 +00:00
Treehugger Robot
f545515ee6 Merge "Use injected instance of RcsControllerCall" 2019-04-24 23:48:40 +00:00
Jordan Liu
b3fded4d17 Merge "Do not populate SLOT_KEY with wrong slot info" 2019-04-24 23:04:25 +00:00
Jordan Liu
dd50042fb8 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
2019-04-24 13:50:56 -07:00
SongFerng Wang
8442966df9 Merge "Add 5G evolution icon" 2019-04-24 16:41:14 +00:00
Treehugger Robot
d0e7befaaf Merge "Make the network stack a persistent process." 2019-04-24 16:25:24 +00:00
SongFerngWang
f07d64bdc9 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
2019-04-24 23:03:29 +08:00
Treehugger Robot
5d2c5d5dc2 Merge "Remove unused methods from INetworkManagementService" 2019-04-24 14:29:39 +00:00
Lorenzo Colitti
6c13b4e0f4 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
2019-04-24 23:13:29 +09:00
Chiachang Wang
79bc7e28a9 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
2019-04-24 13:59:50 +00:00
Lorenzo Colitti
796afddd6c 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
2019-04-24 22:36:55 +09:00
Neil Fuller
6badf7c7da Merge "Switch to HexEncoding from ByteStringUtils" 2019-04-24 12:57:25 +00:00
Treehugger Robot
1439bbb6d5 Merge "Delete unused timeout constant." 2019-04-24 09:44:14 +00:00
Treehugger Robot
554a15d5ea Merge "Reinstate new VPN uid filtering unit tests" 2019-04-24 09:37:49 +00:00
Lorenzo Colitti
11aaadd6ae Delete unused timeout constant.
Test: m
Bug: 129312219
Change-Id: I5b4c8b42dea515f674ff10d64d0e1d06d849cca1
2019-04-24 17:11:12 +09:00
Treehugger Robot
6af6e3a4f6 Merge "Create new RcsMessageQueryResultParcelable" 2019-04-24 06:12:47 +00:00
Aaron Huang
833edcbb1b Merge "Move NattKeepalivePacketData out of the framework" 2019-04-24 04:00:56 +00:00
Tyler Gunn
990053e552 Merge "Update API docs for country ISO APIs." 2019-04-23 21:40:12 +00:00
Pengquan Meng
570f5dcae1 Merge "Add carrier display name related CarrierConfig" 2019-04-23 20:23:20 +00:00
Christopher Ferris
aba4de21e0 Merge "Move to android_mallopt for malloc debug calls." 2019-04-23 17:45:01 +00:00
Rubin Xu
9e64dc05d2 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
2019-04-23 18:04:14 +01:00
Jack Yu
4da7f91b23 Merge "Fixed that emergency alert dialog not popped up" 2019-04-23 16:57:04 +00:00
Tyler Gunn
2fc81693c0 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
2019-04-23 08:55:56 -07:00
Lorenzo Colitti
e721b4b83e Merge "Add a timeout for the DNS probe." 2019-04-23 14:13:14 +00:00
Paul Hu
367c758601 Merge "Add tests for DhcpErrorEvent" 2019-04-23 11:31:03 +00:00
Lorenzo Colitti
950767f9f9 Merge "Freeze the networkstack-aidl-interfaces interface" 2019-04-23 08:33:41 +00:00
Junyu Lai
fb36d44462 Merge "[KA11] Verify fd ownership and allocate resource for NattKeepalive" 2019-04-23 07:48:08 +00:00
Remi NGUYEN VAN
1232fe37be 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
2019-04-23 06:49:58 +00:00
junyulai
cecd4a3d64 [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
2019-04-23 10:47:19 +08:00
Treehugger Robot
1f55cbf416 Merge "Fix urn compare in EmergencyNumber" 2019-04-23 01:29:25 +00:00
Pengquan Meng
0806c2fa77 Add carrier display name related CarrierConfig
Bug: 122921456
Test: build
Merged-In: I79836b2912be5223a2269e660bfaadf4aa72b930
Change-Id: I79836b2912be5223a2269e660bfaadf4aa72b930
(cherry picked from commit 4ae672f192c009c5e0ae629d1c4e321d9677169b)
2019-04-22 17:46:08 -07:00
Chalard Jean
b00786fe21 Merge "Fix an argument to the legacy broadcast" 2019-04-23 00:38:10 +00:00
Treehugger Robot
46b3d6d05d Merge "Disable iorap test mapping" 2019-04-22 20:38:24 +00:00
Benedict Wong
c345527430 Merge "Add NATT keepalive resources and methods into IpSecService" 2019-04-22 20:03:54 +00:00
Treehugger Robot
779be5e4a9 Merge "Reduce cbrubaker bus factor by 2" 2019-04-22 19:56:25 +00:00
Mathieu Chartier
6aaa03ab91 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 6565a34d7f)

Merged-In: I17befa52ebad92413122253f692168cf93cbab6e
Change-Id: Ida6c6cb2ee30ebb08c959df83ae05fabb112d9c2
2019-04-22 12:38:00 -07:00
Jack Yu
4337bc1f09 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 974607aac8)
2019-04-22 11:57:05 -07:00
sqian
3b35404279 Fix urn compare in EmergencyNumber
Test: Sanity
Bug: 130979270
Change-Id: I585ecafcf9996e24befec2dbe86465a1d5a0f030
2019-04-22 11:14:09 -07:00
Benedict Wong
248cbf0025 Merge "Add configurability of LinkProperties, meteredness for Test Networks" 2019-04-22 17:41:20 +00:00
Remi NGUYEN VAN
a7b8452e88 Add tests for DhcpErrorEvent
The tests are run both in unit and CTS tests.
Test: atest FrameworksNetTests NetworkStackTestCases
Bug: 129200175

Change-Id: I52976bbbaca26fb317836e8461e372c25df02a22
2019-04-23 00:19:06 +08:00
Lorenzo Colitti
6413419435 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
2019-04-22 23:38:58 +09:00
Paul Hu
4a208ae14a Merge "Move more network unit tests to common tests" 2019-04-22 13:59:25 +00:00
Chalard Jean
72102e5bbd Fix an argument to the legacy broadcast
Test: new test for this
Fixes: 62650382
Change-Id: I918b8271d3c3c058553ca888cb54cd36a6efba66
2019-04-22 22:26:16 +09:00
Luke Huang
a24d5d8f8b 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
2019-04-22 17:43:37 +08:00