Commit Graph

382290 Commits

Author SHA1 Message Date
Colin Cross
8ea6953a12 Merge "Export framework-res raw resources to robolectric" 2019-04-04 04:00:13 +00:00
Treehugger Robot
5f2ae0dfbd Merge "Temporarily disable InetDiagSocketTest." 2019-04-04 03:48:29 +00:00
Lorenzo Colitti
e8a44acc0c Temporarily disable InetDiagSocketTest.
This test is too flaky to run in presubmits.

Bug: 124354087
Test: atest InetDiagSocketTest
Change-Id: I90bc52a6f5b92d634862e3464634dfdbd3cada6a
2019-04-04 02:02:13 +00:00
Chen Xu
7871659f67 Merge "scrub pii (imsi) from carrierIdentifier logging" 2019-04-04 01:53:53 +00:00
Yifan Hong
e4d640b3a8 Merge "Fix NetworkStackTests." 2019-04-04 01:21:34 +00:00
Yifan Hong
0e5459731f Fix NetworkStackTests.
NetworkStackTests dlopens library which indirectly
uses libcgrouprc. Add it to jni_libs.

Test: atest
Fixes: 129902619
Change-Id: I0d60d7a317fa60607d6fdaea15f61b458aefd2f0
2019-04-03 18:15:22 -07:00
chen xu
c33a47fece scrub pii (imsi) from carrierIdentifier logging
Bug: 129229239
Test: Manual
Change-Id: I642d60e4ba1001bfd481aada87fa08dbd19098be
(cherry picked from commit 61b2c86719)
Merged-in: I642d60e4ba1001bfd481aada87fa08dbd19098be
2019-04-03 17:32:05 -07:00
Cody Kesting
4d71a57887 Merge "Clarify documentation for TelMan#iccOpenLogicalChannel." 2019-04-04 00:01:06 +00:00
Treehugger Robot
fa8fc65340 Merge "Fix ConnectivityServiceTest fail." 2019-04-03 23:54:38 +00:00
Jack Yu
ced4a31769 Merge "Removed data and voice RAT from service state" 2019-04-03 23:39:24 +00:00
Xiangyu/Malcolm Chen
63bf486921 Merge "Clean up a few names of Telephony intent extra." 2019-04-03 23:06:47 +00:00
Jack Yu
138e2af543 Removed data and voice RAT from service state
The voice and data RAT are now derived from
CS and PS network registration info.

Test: Manual + unit tests
Bug: 129863444

Merged-In: I3f4cb6057a4ae821363099583eeac7c867147afb
Change-Id: I3f4cb6057a4ae821363099583eeac7c867147afb
(cherry picked from commit 5ff5ab5649)
2019-04-03 15:26:21 -07:00
Shuo Qian
b8c7afacec Merge "Modify the deprecation of PhoneNumberUtil isEmergencyNumber" 2019-04-03 22:18:31 +00:00
sqian
9371193264 Modify the deprecation of PhoneNumberUtil isEmergencyNumber
1) Telephony API is still called by a bunch of Util methods in Android that
don't have context, therefore the service can be null. Throwing an
 exception can cause crash.
2) Fix the usage of isEmergencyNumber and isPotentialEmergencyNumber.

Test: Manual
Fixes: 129721537
Change-Id: If82bfc5102a9ac1d7e07ff744c0775a1dc95ba2c
Merged-In: If82bfc5102a9ac1d7e07ff744c0775a1dc95ba2c
(cherry picked from commit c6d55453ee)
2019-04-03 21:32:28 +00:00
Treehugger Robot
dc489aba0e Merge "Use Class.forName instead of ClassLoader.loadClass." 2019-04-03 19:24:22 +00:00
Yifan Hong
847de83188 Merge "libmedia2_jni: link to libcgrouprc" 2019-04-03 19:08:51 +00:00
Treehugger Robot
e6bcf626be Merge "Convert Android.mk file to Android.bp" 2019-04-03 18:23:31 +00:00
Cody Kesting
2680416a67 Clarify documentation for TelMan#iccOpenLogicalChannel.
TelephonyManager#iccOpenLogicalChannel documentation should be improved
to clarify the function and its inputs. Relevant standards are also
explicitly referenced.

Bug: 129555815
Test: Only documentation is changed. Tests not affected.
Change-Id: I0664572c83cde480a9ac5f39d8664723b9ac81c9
2019-04-03 10:39:55 -07:00
Nicolas Geoffray
7ef8030754 Use Class.forName instead of ClassLoader.loadClass.
Class.forName has a fast path that ClassLoader.loadClass doesn't
have yet.

Bug: 129834244
Test: m
Change-Id: I52427be9dae5acd8eef530f706626246d16dc82a
2019-04-03 10:32:49 -07:00
Treehugger Robot
7754d368f4 Merge "Clean up permissions when uids are no longer used" 2019-04-03 17:15:48 +00:00
paulhu
8a7d2b0e00 Fix ConnectivityServiceTest fail.
NetdService#getInstance() will get null object in
WrappedConnectivityService constructor. Then pass this null
INetd object to PermissionMonitor will case NPE in
PermissionMonitor#sendPackagePermissionsToNetd()

Bug: None
Test: atest FrameworksNetTests
Change-Id: Ia1c80f9600a19c4aaf3f3c1b497b355d96c49c8e
2019-04-04 00:07:40 +08:00
David Brazdil
16749ac83e Merge "Pass app's data dir to ART" 2019-04-03 15:21:45 +00:00
David Brazdil
06f2e1294b Pass app's data dir to ART
Inform ART about the location of the app's data directory when setting
up the process. This is part of an optimization that has ART cache
verification data into that directory.

Test: compiles, boots
Bug: 72131483
Change-Id: Ic80526b6ee383733eb5860e66f6c608109d838fb
2019-04-03 13:22:27 +01:00
Treehugger Robot
c895b818e0 Merge "Fix NetworkMonitor won't do private dns resolution" 2019-04-03 10:50:09 +00:00
Mark Chien
31b33b6f41 Merge "Some cleanups for Tethering" 2019-04-03 10:16:25 +00:00
lucaslin
8175ac99ad Fix NetworkMonitor won't do private dns resolution
NetworkMonitor cannot do the private dns resolution due to lack
"mNetworkCapabilities". ConnectivityService will call
NetworkStackService#notifyPrivateDnsChanged() before doing
network validation. After NetworkMonitor received
CMD_PRIVATE_DNS_SETTINGS_CHANGED, it will call
isValidationRequired to check if the validation is required.
But mNetworkCapabilities didn't be set, so the
mPrivateDnsProviderHostname will be set to empty and make
EvaluatingPrivateDnsState doesn't do private dns resolution.

Bug: 129375892
Test: 1. Build pass
      2. atest FrameworksNetTests
      3. atest NetworkStackTests

Change-Id: I637212fb4746bb2e9a2f4a4457fd36c4c2701149
2019-04-03 17:09:28 +08:00
Nicolas Geoffray
75a76da717 Merge "Remove support for dexopting shared libraries." 2019-04-03 08:22:35 +00:00
Nicolas Geoffray
0c6d4db413 Remove support for dexopting shared libraries.
The CL landed after feature complete, and has shown it can cause related issues,
not easy to deal with (eg b/128529256 or b/128912573).

The libs are expected to be preopted (as in P).

Partial revert of 653356f114.

Test: BackgroundDexOptServiceIntegrationTests
Test: DexoptUtilsTest
Bug: 119800099
Change-Id: I3570fbc0e4f7079da3315691d676452b17e516a7
2019-04-03 08:21:47 +00:00
Remi NGUYEN VAN
0470353c2e Merge "Fix API in CaptivePortal, StaticIpConfiguration" 2019-04-03 06:51:35 +00:00
Treehugger Robot
a84cdf4fc6 Merge "Add tests for PermissionMonitor" 2019-04-03 06:12:12 +00:00
Colin Cross
8eb5b16300 Export framework-res raw resources to robolectric
Robolectric needs the raw resources from framework-res for now,
export them as a filegroup.

Bug: 122331577
Test: m checkbuild
Change-Id: I3981743d579c6ed1a93da81e583d565c9d8a2cba
2019-04-02 22:59:54 -07:00
markchien
9f246bd9e3 Some cleanups for Tethering
Bug: 126481523
Test: -build, flash, boot
      -FrameworksNetTests

Change-Id: I904646efa87eb5434124c7828aca4ab09c5dc38e
2019-04-03 13:56:00 +08:00
Yifan Hong
b30f53ee69 libmedia2_jni: link to libcgrouprc
libcgrouprc is an LLNDK library used by libprocessgroup.
libprocessgroup is linked statically, so the dependency needs
to be explicitly stated in libmedia2_jni.

Test: boots (sanity)
Bug: 123664216
Change-Id: Ieebba36417d1f83a5946f927043f15dc8abc188a
Merged-In: Ieebba36417d1f83a5946f927043f15dc8abc188a
2019-04-02 22:26:16 -07:00
Chenbo Feng
a6817cd532 Clean up permissions when uids are no longer used
The kernel eBPF maps have a blacklist to store all the uids that doesn't
have internet permission. When an app is unintalled from the device and
it is the last package on device that uses that uid, make sure we
cleaned the uid from the map and do not add no longer used uids into the
eBPF map. This action helps reduce the number of entries stored in the
map and reduce the chance of overflow the eBPF map.

Bug: 128944261
Test: PermissionMonitorTest
Change-Id: I10dd0113d00d6cf9ca39902d9721f2591d387d4a
2019-04-02 20:31:57 -07:00
Chenbo Feng
436fe58cce Add tests for PermissionMonitor
Add more tests to PermissionMonitor to verify the functionality related
to INTERNET permission and UPDATE_DEVIE_STATS permission. Modified some
of the class design of PermissionMonitor so that it is easier to test
the new functionalities.

Bug: 111560570
Test: PermissionMonitorTest

Change-Id: Ic5585f337db5de48e2f87bf4f01ed7d85c349827
2019-04-02 20:31:49 -07:00
Jack Yu
8dedf2b5e4 Merge changes from topics "lte_ca_support", "ss_provider"
* changes:
  Correctly support LTE carrier aggregation
  Passing ServiceState as byte array into ServiceStateProvider
2019-04-03 02:47:20 +00:00
Paul Hu
3db9cfe660 Merge "Make CaptivePortalProbeSpec and CaptivePortalProbeResult as a library" 2019-04-03 02:42:06 +00:00
Malcolm Chen
7619445d61 Clean up a few names of Telephony intent extra.
Bug: 128645056
Test: build
Change-Id: Iaf004d6881964bd19072e9ef623f2e89f2529639
Merged-In: Iaf004d6881964bd19072e9ef623f2e89f2529639
2019-04-02 19:15:11 -07:00
Treehugger Robot
50b59ccafc Merge "Use LOCAL_REQUIRED_MODULES instead of LOCAL_TARGET_REQUIRED_MODULES" 2019-04-02 23:46:52 +00:00
Treehugger Robot
3c1a889a9c Merge "Change UT to disabled by default" 2019-04-02 23:21:31 +00:00
Dan Willemsen
dfd0fd2c59 Use LOCAL_REQUIRED_MODULES instead of LOCAL_TARGET_REQUIRED_MODULES
LOCAL_TARGET_REQUIRED_MODULES is intended for host -> target
dependencies, not target -> target dependencies (which can use
LOCAL_REQUIRED_MODULES).

Test: treehugger
Change-Id: I84de8adcdd772be0169b6d6b8df6f69b00ce888f
2019-04-02 14:56:38 -07:00
Jack Yu
27ff407104 Correctly support LTE carrier aggregation
NetworkRegistrationInfo.getAccessNetworkTechnology() should
report LTE as the network type when modem reports the RAT
LTE_CA. Fixed by adding a flag in data specific registration
info.

Test: Manual
Bug: 129707180
Merged-In: Ib152f97711441fded998a36528ef007f9e28ccbf
Change-Id: Ib152f97711441fded998a36528ef007f9e28ccbf
(cherry picked from commit 05a6543248)
2019-04-02 14:26:06 -07:00
Jack Yu
2d9b4faedc Passing ServiceState as byte array into ServiceStateProvider
This allows the provider to reconstruct the service state
object correctly. Also we can get rid of all the 'set'
methods in ServiceState, which we'd like to remove in the future.

Test: Manual
Bug: 129768354
Merged-In: I835d30e544b3ed49d5d0b6b1ca981a81e3ee2039
Change-Id: I835d30e544b3ed49d5d0b6b1ca981a81e3ee2039
(cherry picked from commit 2e273b2f0f)
2019-04-02 14:02:57 -07:00
Colin Cross
179e132823 Merge "Convert frameworks/base/cmds/* to Android.bp" 2019-04-02 16:39:04 +00:00
Treehugger Robot
97f778f0b5 Merge "docs: Linked VpnService class description to guide." 2019-04-02 15:14:28 +00:00
Andrei-Valentin Onea
1f80714c2d Merge "Automatically greylist code in 3P packages" 2019-04-02 13:10:37 +00:00
Junyu Lai
7934214f4c Merge "Ignore the asynchronous result while stopping keepalive" 2019-04-02 10:48:23 +00:00
paulhu
b0f53b84cc Make CaptivePortalProbeSpec and CaptivePortalProbeResult as a library
These two classes were added to @SystemApi because they are used
both by NetworkMonitor and CaptivePortalLogin. However it turns
out they are not needed in the framework, so having them as a
library sounds better.

Change-Id: Iadf77ec5952b6da8812dc6d006a39bd4e93d2bd9
Fix: 129433264
Test: atest NetworkStackTests FrameworksNetTests
2019-04-02 17:55:42 +08:00
Paul Hu
1e97aab6f4 Merge "Address leftover comments on 923337 and 930217." 2019-04-02 07:39:04 +00:00
Steven Moreland
4b5ca28dfe Merge "Revert "Revert "Preload non-bootclasspath Java lib ClassLoaders.""" 2019-04-02 02:19:44 +00:00