Commit Graph

385650 Commits

Author SHA1 Message Date
Neil Fuller
b4cc036c1e Merge "Switch to HexEncoding from ByteStringUtils" 2019-05-29 10:12:27 +00:00
Neil Fuller
6ae67f8574 Switch to HexEncoding from ByteStringUtils
Migration in preparation for deletion of ByteStringUtils.

This change also fixes some import issues necessary for upload.

Bug: 124232146
Test: build only
Exempt-From-Owner-Approval: Already approved internally
Merged-In: I6ee12e9914503a5b628ae6da82a396aa71dd972c
Change-Id: I6ee12e9914503a5b628ae6da82a396aa71dd972c
2019-05-29 10:11:44 +00:00
Sal Savage
d8b457545a Merge "Update BluetoothProfileConnector to invoke service disconnections with correct profile ID" 2019-05-29 01:26:04 +00:00
Treehugger Robot
b2f9798688 Merge "Do not fully compiled debuggable apps" 2019-05-28 23:47:22 +00:00
Calin Juravle
a349dde606 Do not fully compiled debuggable apps
Force vmSafeMode behaviour on debuggable apps:
- the runtime ignores their compiled code
- they generally have lots of methods that could make the compiler used
run out of memory

Bug: 130828957
Test: manual
Merged-In: I946ce15a18729ec6620aca257c52e5b9e4434265
Change-Id: I946ce15a18729ec6620aca257c52e5b9e4434265
2019-05-28 22:57:19 +00:00
Treehugger Robot
3996c9eb72 Merge "Avoid fake high input latency while vsync drifting" 2019-05-28 21:31:32 +00:00
Sal Savage
4afdab44ab Update BluetoothProfileConnector to invoke service disconnections with correct profile ID
Bug: b/133517229
Test: Build + Manual on automotive hardware
Change-Id: Id8dbeaf844a65020f610505f81eea20b96ec002a
2019-05-28 16:56:23 +00:00
Chalard Jean
70682e9f17 Merge "Let the system server have CONNECTIVITY_USE_RESTRICTED_NETWORKS." 2019-05-28 12:26:10 +00:00
Chalard Jean
1f397201e3 Merge "Make the memory store operations serial." 2019-05-28 10:51:19 +00:00
Treehugger Robot
4b2247d506 Merge "Fix deadlock which causing ANR" 2019-05-28 10:29:23 +00:00
Vladimir Marko
b1ec613190 Merge "Remove unnecessary dependencies on ART libraries." 2019-05-28 08:43:47 +00:00
Chalard Jean
5d258aecb6 Make the memory store operations serial.
Bug: 128499160
Test: new test in this patch
Change-Id: I10b5c5cd85fcb76924ba96c8c379be677774705d
2019-05-28 16:56:50 +09:00
Xiao Ma
2bc72d2fe0 Merge "Wipe the data in IpMemoryStore database upon network factory reset." 2019-05-28 00:52:00 +00:00
Treehugger Robot
d47ae01063 Merge "Deprecate getNetworkType" 2019-05-27 21:10:50 +00:00
Treehugger Robot
0c7239996d Merge "Add permissions check for getNetworkType" 2019-05-27 19:04:39 +00:00
Luke Huang
e682b1526a Merge "Remove broken test testRfc6724Sort" 2019-05-27 14:12:05 +00:00
Treehugger Robot
ab6ab9e4d4 Merge "Reinstate access to a forgotten member" 2019-05-27 11:14:37 +00:00
Luke Huang
c04fd72fff Remove broken test testRfc6724Sort
This test is conitnuely fail in cuttlefish.
Lack of ipv6 default route in cuttlefish caused the test failed.
The reason is that the result of rfc6724Sort depends on on the route in system.
It is not good to expect any route should exists, so remove it.

Bug: 133649648
Test: atest DnsUtilsTest
Change-Id: I91f89782b9b989fa1a49e666bb5ce2df3a0dbbf7
2019-05-27 17:49:32 +08:00
Chalard Jean
506686bc3d Let the system server have CONNECTIVITY_USE_RESTRICTED_NETWORKS.
Also :
- Fix testUidFilteringDuringVpnConnectDisconnectAndUidUpdates that
  was failing on devices with a first released SDK >= Q
- Add a test actually tests that the system has the permission, as
  the test was only testing what's in the mock

Bug: 119770201
Test: New test making sure this stays true
Change-Id: I74cf5f0fa17fcf818f1fed78c7e3e4375c20152e
2019-05-27 16:35:22 +09:00
Gao Shuo
7e05ff35fa Avoid fake high input latency while vsync drifting
Usually isTrippleBuffered should be true when mSwapDeadline bigger
than IntendedVsync. However, vsync could be drifting on some platforms,
which make isTrippleBuffered to be true and report a fake high input
latency.

So add a small threshold to avoid this case.

Test: Manually
Change-Id: Ib6ff1046cfb94f89f4985361b84ad2d34850f783
Signed-off-by: Gao Shuo <shuo.gao@intel.com>
Signed-off-by: Wu Zhongmin <zhongmin.wu@intel.com>
Signed-off-by: Zhu Tingting <tingting.zhu@intel.com>
2019-05-27 14:14:57 +08:00
Xiao Ma
d91ec0907e Wipe the data in IpMemoryStore database upon network factory reset.
Bug:128499160
Test: manual
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Ib563463a861a5d27b1e9b5fbb92342249b573802
2019-05-27 15:05:09 +09:00
Treehugger Robot
7a5b9c2d0a Merge "Clean up for multiple validation result update" 2019-05-25 09:27:50 +00:00
Elliott Hughes
9fa4e0442c Merge "StrictJarFile can use the new std::string libziparchive Next overload." 2019-05-24 19:45:12 +00:00
Sal Savage
9dd24d05e9 Merge "Add timestamp and read status extra constants to MAP Client" 2019-05-24 18:29:43 +00:00
Hall Liu
d99ca07884 Merge "Stop silently dropping a NullPointerException" 2019-05-24 18:27:44 +00:00
Treehugger Robot
8863583ffa Merge "Revert "Fix incorrect parsing of UVC interface descriptor"" 2019-05-24 18:20:25 +00:00
Paul Mclean
341f0934a2 Revert "Fix incorrect parsing of UVC interface descriptor"
This reverts commit b83cf0c7f1.

Reason for revert: This changes breaks connection to ALL USB Audio interface. Camera audio should be investigat

Bug: 124374863
Bug: 133501871

Change-Id: I19fed05c0b5f4227f88df3ac17ddd5ebe4246f3d
2019-05-24 17:34:32 +00:00
mrcasey
053905656c Merge "Update sysui OWNERS" 2019-05-24 14:25:20 +00:00
Matt Casey
5ec20d472e Update sysui OWNERS
Test: None
Change-Id: I43640d87c4fcd0a8211dc04c4203a7b80b150f58
2019-05-24 09:01:06 -04:00
Paul Hu
c28ae5a01d Merge "Fix null IpmemoryService object in AGO project." 2019-05-24 08:09:56 +00:00
Treehugger Robot
1421daa1c3 Merge "Add server information for pptp vpn" 2019-05-24 03:35:06 +00:00
Chiachang Wang
f6d10b09bf Clean up for multiple validation result update
This is a follow-up commit for aosp/955431 to update commets
and minor updates in unit test.

Test: atest com.android.server.ConnectivityServiceTest#testCaptivePortalOnPartialConnectivity
Bug: 130683832
Change-Id: I581eae8daeddd2c4c186e7b40e27fef2aaa7ab43
2019-05-24 03:29:56 +00:00
Chiachang Wang
20ee375003 Merge "Update multiple validation result to ConnectivityService" 2019-05-24 02:50:54 +00:00
Chenbo Feng
b38065dd3a Add server information for pptp vpn
The pptp vpn set up in ip-up-vpn.c does not provide an environment
variable for the remote server so we cannot setup a correct throw route
to the VPN endpoint. Change the LegacyVpnRunner class to include the
remote server information in the class so it can use it to bring up the
vpn and set the throw rule correctly.

Bug: 131386220
Test: Build
Change-Id: Ia6b00dd88f8f31823647c56c20b8c7edd20280f7
2019-05-24 01:23:36 +00:00
Elliott Hughes
ace3371ef5 StrictJarFile can use the new std::string libziparchive Next overload.
Bug: http://b/129068177
Test: treehugger
Change-Id: I44e89f0767723de7fce46dae58f2156fcd9a6362
2019-05-23 13:19:23 -07:00
Treehugger Robot
98e2663802 Merge "Revert "LayoutInflater: Special case well-known View constructors"" 2019-05-23 19:59:33 +00:00
Treehugger Robot
1f721ee602 Merge "Fix the internet permission for native services" 2019-05-23 18:40:42 +00:00
Eric Holk
d28e721546 Revert "LayoutInflater: Special case well-known View constructors"
This reverts commit cb694714f1.

Reason for revert: test failures (http://b/133342433)

Change-Id: I4967e21769a0e45038e9f0941909faec731b3124
2019-05-23 18:18:04 +00:00
Etan Cohen
1b7640a762 Merge "[CM] Fix NPE due to unvalidated callback value" 2019-05-23 16:01:51 +00:00
Etan Cohen
22e0fc1ca9 [CM] Fix NPE due to unvalidated callback value
Fix flaky test resulting from the above fix.

Bug: 132950880
Test: atest ConnectivityServiceTest
Change-Id: I1ddf3bb016239bf88cdd8843a71dcb5e582e83ac
2019-05-23 08:16:20 -07:00
Vladimir Marko
d9a4221be5 Remove unnecessary dependencies on ART libraries.
Test: atest NetworkStackTests
Change-Id: Ica084cd37626c71cae493f0b5259e2bf2d4c334f
2019-05-23 15:17:30 +01:00
Luke Huang
7a1133eb44 Merge "Add Rfc6724 style sort for DnsResolver and fix potential bug" 2019-05-23 12:05:14 +00:00
Chiachang Wang
8ea15c9648 Update multiple validation result to ConnectivityService
Once a network is determined to have partial connectivity, it
cannot go back to full connectivity without a disconnect. This
is because NetworkMonitor can only communicate either
PARTIAL_CONNECTIVITY or VALID, but not both. Thus, multiple
validation results allow ConnectivityService to know the real
network status.

Bug: 129662877
Bug: 130683832
Test: atest FrameworksNetTests
Test: atest NetworkStackTests
Test: atest --generate-new-metrics 50
NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest
Test: Simulate partial connectvitiy
Change-Id: I406c9368617c03a2dd3ab15fb1f6dbf539d7c714
2019-05-23 16:29:30 +08:00
Remi NGUYEN VAN
1c6fb830c3 Merge "Add getInterfaceVersion to NetdEventListener" 2019-05-23 03:47:44 +00:00
Chalard Jean
25f1828778 Reinstate access to a forgotten member
Followup to aosp/964440

Bug: 131764329
Test: none
Change-Id: I6f6b2cf75793532d3d537a223b8e15d7304a1e3f
2019-05-23 03:32:30 +00:00
Luke Huang
247d83a68b Add Rfc6724 style sort for DnsResolver and fix potential bug
1. pass default network explicitly to fix potential
   mis-sync network problem in DnsResolver#query
2. Add rfc6724 sort and related test
3. DnsResolver do rfc6724 sort before response InetAddress answers
4. move haveIpv* function from DnsResolver to DnsUtils

Bug: 129530368
Test: atest DnsResolverTest DnsUtilsTest
Change-Id: I4efa599c0605f6a9e4ef2dd1a36572c69b3c433f
2019-05-23 11:23:41 +08:00
Chenbo Feng
e5d6f0fa6c Fix the internet permission for native services
The native services should specify their permissions in platform.xml if
they need internet permission, otherwise the eBPF program will block the
socket creation request. Fixing the known services that are in group
AID_INET but didn't specify their permission in the xml file.

Bug: 132217906
Test: CtsJdwpTestCases dumpsys netd trafficcontroller
Change-Id: I84cde7d3757953bc0bf761727d64a715bcdd68bb
2019-05-22 17:59:29 -07:00
Nathan Harold
7293d28543 Deprecate getNetworkType
This API is a functional duplicate of getDataNetworkType.

Bug: 132466954
Test: make update-api (docstring-only change)
Change-Id: I3a5ba3d601013bc9c97c6ea1732bfac21fce0dcd
2019-05-22 13:57:42 -07:00
Nathan Harold
744b57e122 Add permissions check for getNetworkType
-Add a function in TelephonyPermissions to check
 READ_PHONE_STATE or return NETWORK_TYPE_UNKNOWN (soft denial).
-Honor the subId in TM or use the default DATA sub when
 returning the network type.

Bug: 132466954
Test: cts - atest TelephonyManagerPermissionTest
Merged-In: I4e1767c9dc10acbadec286512752d4bb52059b74
Change-Id: I4e1767c9dc10acbadec286512752d4bb52059b74
(cherry picked from commit 39444b39ba)
2019-05-22 13:44:24 -07:00
Julia Reynolds
41537638f0 Merge "Catch the SQLiteFullException in NotificationUsageStats." 2019-05-22 16:32:45 +00:00