445306 Commits

Author SHA1 Message Date
Mark Chien
339e06ba90 Merge "Remove Preconditions usage to stop dependecy with non-updatble class" 2020-04-27 10:54:19 +00:00
Mark Chien
71dd69e10a Merge "Unbreak tethering for no offload supported devices" 2020-04-27 08:42:36 +00:00
Remi NGUYEN VAN
fd0d370631 Merge "Add comment / logging in NetworkMonitor callbacks" 2020-04-27 07:26:25 +00:00
markchien
c55343801b Unbreak tethering for no offload supported devices
Catch NoSuchElementException to unbreak no offload devices.

To consistent with fetching offload config service, retry fetcheing
offload control service.
b/152430668#comment4 assert that the fetch will be retried only
if the service is installed on the device.

Bug: 155026033
Test: run TetheringCoverageTests in virtual devices(do not support
offload)

Change-Id: Ie0a32a9062c722327a27c6de13e3bb8d9588bebb
2020-04-27 14:47:56 +08:00
Mark Chien
abc1066887 Merge "Convert Android.mk file to Android.bp" 2020-04-27 03:24:55 +00:00
Treehugger Robot
3632ab2e76 Merge "derive_sdk: set min_sdk_version" 2020-04-27 02:18:20 +00:00
Jack Yu
c08bdc5d94 Merge "Only setup data when config and sim is ready" 2020-04-25 16:04:07 +00:00
Anton Hansson
7ee30a4438 Merge "Update reference to test in TEST_MAPPING" 2020-04-25 07:22:11 +00:00
Jooyung Han
e140bc06a6 Merge "Add min_sdk_version:R to updatable apexes" 2020-04-25 04:41:44 +00:00
Jack Yu
4584d589bd Only setup data when config and sim is ready
SIM needs to be fully loaded before we can setup
data connection because APN slection requires
MCC/MNC on the SIM. Also lots of data related configs
are stored in carrier config. Both needs to be ready
before we can setup a data connection (except for
emergency APN).

Bug: 152816633
Test: Manual + unit tests

Merged-In: I69c7838bdd9751bef4c15e9504519b55afb9fefb
Change-Id: I69c7838bdd9751bef4c15e9504519b55afb9fefb
(cherry picked from commit 38de77534aaf4092f01de5dda1654d7963c297c9)
2020-04-24 20:48:41 -07:00
Benedict Wong
203b7a7c0d Merge "Add tests for Tunnel, Transport mode application with released SPIs" 2020-04-24 22:32:41 +00:00
Benedict Wong
3a28eabc52 Merge "Use TransformRecord to get SPI instead of SpiRecord" 2020-04-24 22:32:41 +00:00
Anton Hansson
a0aa233f30 Update reference to test in TEST_MAPPING
apiextensions_e2e_test doesn't exist, the right name is
sdkextensions_e2e_test.

Test: presubmit
Change-Id: Ibb9618bf0f1fdce6ceceb808705dab910b38755d
Merged-In: Ibb9618bf0f1fdce6ceceb808705dab910b38755d
2020-04-24 19:59:55 +00:00
Jordan Liu
6f76a035be Merge "Implement equals and hashCode" 2020-04-24 19:31:51 +00:00
David Su
51090a3fed Merge "framework-wifi: remove duplicate classes" 2020-04-24 17:55:29 +00:00
Tyler Gunn
7cea5cddcb Merge "IMS: Explicit Call transfer APIS." 2020-04-24 16:29:51 +00:00
Treehugger Robot
25a3473c28 Merge "Make CtsShim*Prebuilt be available to the test APEXes" 2020-04-24 12:12:23 +00:00
Remi NGUYEN VAN
def16d1d57 Add comment / logging in NetworkMonitor callbacks
Add a comment explaining the ordering of messages sent to the tracker
and connectivity diagnostics handlers.

Add a Slog.wtf call in case the deprecated notifyNetworkTested callback
is called.

Bug: 153500847
Test: atest ConnectivityServiceTest
Change-Id: I2dbfc9bf7b2f785ea4594851bd354e9fd0fc0bd1
2020-04-24 20:56:39 +09:00
Remi NGUYEN VAN
152c94589a Merge "Address comments on NetworkStack AIDL v6" 2020-04-24 11:56:32 +00:00
Remi NGUYEN VAN
b955ac2f73 Address comments on NetworkStack AIDL v6
Address issues found during AIDL review:
 - Rename clientAddr to singleClientAddr
 - Do not use a ParcelableBundle for notifyNetworkTested or
   notifyDataStallSuspected; instead use AIDL parcelables for stronger
   backwards compatibility guarantees.

Test: atest NetworkMonitorTest ConnectivityServiceTest
      ConnectivityServiceIntegrationTest, manual
Bug: 153500847
Change-Id: Id9b71784e5f6294d203230e57737979e063ff0f8
2020-04-24 18:52:02 +09:00
Po-Chien Hsueh
ad00b4c7f1 Merge "Extend strings.xml character limits" 2020-04-24 02:33:40 +00:00
Treehugger Robot
ff0df9a6fc Merge "Fix EmergencyAffordanceService" 2020-04-24 01:48:19 +00:00
Jooyung Han
4f49b2a289 derive_sdk: set min_sdk_version
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

Removed sdk_version because the sdk variant is not used by sdkext apex.
And, changed the dep from libbase_ndk to libbase. libbinder_ndk would
still work. But there's no reason to use it if not set sdk_version.

We could've set "sdk_variant_only" so that sdkext apex use the sdk
variant of derive_sdk explicitly. But even if we do that, we still have
to set min_sdk_version to be used by the apexes anyway.

Bug: 145796956
Test: m
Change-Id: I94ad8b9ffc5088822d3365253bf2f005a659d923
2020-04-24 01:43:46 +00:00
Treehugger Robot
c538baa3ab Merge "Test NetworkStack.getService" 2020-04-24 01:19:50 +00:00
Jordan Liu
aaff63781a Implement equals and hashCode
This keeps SmsHeader in sync with cellbroadcastservice.SmsHeader.

Bug: 148482334
Test: builds
Change-Id: I2a3188a603595e4c97acf6413036dcddf35c0b87
Merged-In: : I2a3188a603595e4c97acf6413036dcddf35c0b87
2020-04-23 15:26:31 -07:00
markchien
2a52c09dda Remove Preconditions usage to stop dependecy with non-updatble class
Stop depending on Preconditions that is not released on the same cadence
as the module, and is maintained as part of the framework.

Bug: 148636687
Test: atest TetheringTests NetworkStackNextTests

Change-Id: Id0dcec44f362f79bc8c046d722635687a7388aa2
2020-04-24 00:47:56 +08:00
Brad Ebinger
f5ed9171e6 Merge "Add a new call direction parameter to conferences for multiparty" 2020-04-23 15:35:35 +00:00
Treehugger Robot
0619aec8f9 Merge "Add test for NetworkSpecifier" 2020-04-23 14:12:37 +00:00
Treehugger Robot
a1a2bf5fd1 Merge "Move NetworkStackTest to common folder to support cts" 2020-04-23 13:43:34 +00:00
Chiachang Wang
47aed501bd Test NetworkStack.getService
Bug: 154775373
Test: atest CtsNetTestCasesLatestSdk:\
      android.net.NetworkStackTest#testGetService
      on both Q and R devices
Change-Id: I937c7cceaed3e2ea8a3d7c4d187890a6e9fdcd28
2020-04-23 12:27:18 +00:00
Chiachang Wang
066d6ccb7d Move NetworkStackTest to common folder to support cts
Bug: 154775373
Test: atest CtsNetTestCasesLatestSdk:android.net.NetworkStackTest
      on both Q and R device
Change-Id: I91be50077749c2d357ee6f292fe4e127d1e46b8b
2020-04-23 12:25:21 +00:00
Treehugger Robot
13d10dac2b Merge "derive_sdk: run as nobody" 2020-04-23 12:18:10 +00:00
Mohammad Samiul Islam
48d5ec5dc6 Convert Android.mk file to Android.bp
Bug: 135177365
Test: runs like before using - atest FrameworksUtilTests
Change-Id: I61f827c65590d7fdabd94e56096c88d9d7e79b5d
2020-04-23 19:35:55 +08:00
Chiachang Wang
1390c2e4c1 Add test for NetworkSpecifier
Tests for canBeSatisfiedBy() and redact()

Bug: 154686765
Test: atest CtsNetTestCasesLatestSdk:android.net.NetworkSpecifierTest
Change-Id: Iade6a5b355b8812a5eb191345dfe393938ee272c
2020-04-23 18:03:16 +08:00
Anton Hansson
8b9e50c2b3 Merge "Remove obsolete droidstub args" 2020-04-23 09:56:40 +00:00
Jeff Vander Stoep
3c587db57d derive_sdk: run as nobody
Unfortunately, root is the default user/group for
init-launched services. This can lead to processes
unnecessarily requesting permissions like privileged
capabilities. This service doesn't require any privileges
so run it as AID_NOBODY.

Addresses:
avc: denied { sys_resource } for comm=\"derive_sdk\" capability=24
scontext=u:r:derive_sdk:s0 tcontext=u:r:derive_sdk:s0
tclass=capability permissive=0

Bug: 154711554
Test: m com.android.sdkext
Test: boot && adb shell getprop | grep sdk_info
Change-Id: Ibd4ad616901a9d5c402ba89d636d0238b0043afa
2020-04-23 10:12:56 +02:00
Paul Hu
428a847981 Merge "[TNU09] Adjust restricted notification" 2020-04-23 07:50:34 +00:00
Po-Chien Hsueh
8f3bdb821c Extend strings.xml character limits
Per linguist's suggestion, extend character limits of strings. And,
keep app's name "Dynamic System Update" not translated.

Bug: 154345776
Bug: 154345861
Bug: 154345863
Test: None
Change-Id: If57e0e0f301588f60744678f0ec942e8eb8e8a70
2020-04-23 14:48:08 +08:00
Hall Liu
233ee8126c Merge "Expose android.telephony.DisconnectCause" 2020-04-22 23:44:02 +00:00
Bill Yi
20de183938 Merge "Import translations. DO NOT MERGE" 2020-04-22 23:05:49 +00:00
Tyler Gunn
bc3d4c82b0 Merge "Add carrier config to support local disconnect of empty IMS conference." 2020-04-22 21:11:20 +00:00
Anton Hansson
0fa5427c3b Remove obsolete droidstub args
- I see no usages of private_api_filename / private.txt /
  private_dex_api_filename
- tags are no longer used as of
  Iff355041d88eb59ac47dd19a03e993cf1ce3927e
- api_filename/removed_api_filename does nothing if check_api is
  specified. test-api does not need a removed.txt

Bug: 152479829
Bug: 144149403
Test: m
Change-Id: Ic1e859dc6aa91f8d7b4f285b63d3faafb27edc9b
Merged-In: Ic1e859dc6aa91f8d7b4f285b63d3faafb27edc9b
(cherry picked from commit 960c16cd389fd56542fd3dcc8935406e022cb1be)
2020-04-22 21:14:47 +01:00
Tyler Gunn
bd7e9c42d7 Merge "Add carrier config to indicate if cep is supported on peer." 2020-04-22 19:55:47 +00:00
Tom Cherry
9656b0942c Merge "Include log/log_read.h for reading logs" 2020-04-22 19:52:59 +00:00
Tyler Gunn
988ca64c3d Merge "Hide adhoc conference APIs." 2020-04-22 19:44:50 +00:00
Tyler Gunn
ba1878f55a Merge "Fix potential issue where sub info change listener is not registered." 2020-04-22 19:43:55 +00:00
Bill Yi
febf51f1b4 Import translations. DO NOT MERGE
Change-Id: I44c343149dc88a88c94327cdd6d5ac26ce7a6816
Auto-generated-cl: translation import
2020-04-22 12:03:48 -07:00
Tyler Gunn
cc0dcc6ad6 Add carrier config to support local disconnect of empty IMS conference.
Adding carrier config key to support ability to locally disconnect an
empty IMS conference.  The network normally does this, but there             are some
carriers which rely on the device to do it.

Test: Add unit test to verify local disconnect when participant count is
zero.
Test: Use conference event package test cmd/intents to inject test CEP to
simulate a conference dropped to 0 participants.  Verify IMS conference is
disconnected.
Bug: 151707520
Fixes: 154245549
Merged-In: If6fb25b669a74e7e586736c04101a42ab6adcffe
Change-Id: Id7238bc668e6d6d2d7a04a8696263b260d6b6fd8
2020-04-22 11:26:25 -07:00
Tyler Gunn
559ac652d0 Add carrier config to indicate if cep is supported on peer.
Adding new carrier config option to indicate if conference event package
data is supported on the conference peer.  We already have an option for
the conference host.  This new option is used to indicate when the peer
can or cannot support the CEP data.  When not supported, even if the
network provides CEP data, it is ignored by the device.

Test: Manual testing using test intents.
Test: Added unit tests for these cases.
Bug: 150860282
Fixes: 154245604
Merged-In: I47b5e49acf08e085ea23e21a5f6b2d5a5d00bc09
Change-Id: Ib8d8f171699f21f45b0ce2eec2dbe75d7466b76a
2020-04-22 10:51:42 -07:00
paulhu
f8d6163cab [TNU09] Adjust restricted notification
1. Let restricted notification that can be dismissed.
2. Only put up restricted notification when any of tethering is
   activating.

Bug: 154214549
Test: atest TetheringTests
Change-Id: Ib980aca154036828abdab35e3bb11d42f85ff610
2020-04-23 00:17:28 +08:00