Commit Graph

444657 Commits

Author SHA1 Message Date
Anton Hansson
33d6fda1e0 Merge "Add module_lib and system-server artifacts to sdk dist" 2020-03-25 15:56:51 +00:00
Anton Hansson
083066201e Merge "Remove the tethering hiddenapi whitelist entry" 2020-03-25 15:35:10 +00:00
Treehugger Robot
5c1ded75db Merge "Update connected clients when a downstream disappears." 2020-03-25 15:00:43 +00:00
Anton Hansson
c2db55d521 Merge "Make system_server stubs consistent with other stubs" 2020-03-25 14:18:31 +00:00
Lorenzo Colitti
fc6e7252c4 Update connected clients when a downstream disappears.
Otherwise, if another downstream of the same type reappears, the
code would fire a callback with the previous list of clients.

Bug: 150644681
Test: atest TetheringIntegrationTests:EthernetTetheringTest --rerun-until-failure 100
Change-Id: I6b34ea747ae1831001077f44879bb6828dcecc96
2020-03-25 22:14:46 +09:00
Julia Reynolds
749cd52664 Merge "Make sure the right DND config is used" 2020-03-25 12:59:05 +00:00
Paul Hu
d91b3319e5 Merge "[TNU04] Add tethering restricted notification" 2020-03-25 11:30:41 +00:00
Chalard Jean
9cbc17d75e Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" 2020-03-25 09:47:03 +00:00
Treehugger Robot
f1c0350c88 Merge "Hide startTethering with type function to module-lib only" 2020-03-25 08:53:02 +00:00
markchien
71a9d6f1c3 Hide startTethering with type function to module-lib only
Bug: 151918384
Test: m
Change-Id: Icef8b363aae97dd020d618bcb397f661aa6c4750
Merged-In: Icef8b363aae97dd020d618bcb397f661aa6c4750
2020-03-25 08:07:01 +00:00
Frank Li
4b12977908 Merge "Add one DNS metrics field to record DNS internal error" 2020-03-25 07:50:24 +00:00
Chalard Jean
d134d4ff57 Allow MANAGE_TEST_NETWORKS to register limited agents
This puts in force some restrictions against test networks,
and in exchange relaxes the restrictions around registering
a network agent that provides a test network.
Test networks can only ever have transport TEST, and have
only a few capabilities available to them.

This is useful in particular to test CTS. See aosp/1253423
for first, basic usage of this capability.

Test: IpSecManagerTunnelTest
Test: new CTS aosp/1253423
Bug: 139268426
Change-Id: I47600e6097e8519e50ae771daa13bb6bb7640451
2020-03-25 16:28:50 +09:00
Paul Hu
35cae460e4 Merge "[TNU03] Add TetheringNotificationUpdaterTest" 2020-03-25 06:45:14 +00:00
Paul Hu
ab29d21f93 Merge "[TNU02] Update tethering notification by active data subid" 2020-03-25 04:53:32 +00:00
Benedict Wong
7df882e039 Merge "Automatically set IPsec tunnel interface as up" 2020-03-25 04:18:50 +00:00
Treehugger Robot
2a4a88c625 Merge "Fix wrong variable in AccountManagerService's TokenCache" 2020-03-25 04:13:55 +00:00
Chalard Jean
b2b692e157 Merge "Expose netId by adding getter API" 2020-03-25 02:23:03 +00:00
Benedict Wong
9b74d7aac6 Merge "Relax IPsec resource count restrictions." 2020-03-24 23:31:37 +00:00
Tom Cherry
f87fe63af1 Merge "Remove ANDROID_LOG_RDONLY" 2020-03-24 21:00:57 +00:00
Yan Yan
a6d47fba4a Merge "Include HexDump in framework-ike-shared-srcs" 2020-03-24 17:30:24 +00:00
Treehugger Robot
7820030367 Merge "Allow staging multiple session with non-overlapping packages (apk-only)" 2020-03-24 16:53:39 +00:00
Tom Cherry
013bd1623f Remove ANDROID_LOG_RDONLY
This macro hasn't been meaningful in years.

Test: logging unit tests
Merged-In: I1b5008dd468e8ce0280a1e3e8c106e34c9648695
Change-Id: I1b5008dd468e8ce0280a1e3e8c106e34c9648695
2020-03-24 09:14:36 -07:00
Treehugger Robot
abe9621f7f Merge "Add a log message if enabling Ethernet tethering if it is already enabled." 2020-03-24 14:54:44 +00:00
Haohua Li
f3880fdc67 Fix wrong variable in AccountManagerService's TokenCache
// mAccountEvictors.put(k.account, tokenEvictor);
// should be:
mAccountEvictors.put(k.account, accountEvictor);

This error in putToken() method causes the confusion of mAccountEvictors,
and may causes the evict() method does not clean up the cache data correctly.

Change-Id: I9435c206a6fa4d90177bbbe8816004365a213d1b
Signed-off-by: Haohua Li <lihaohua90@gmail.com>
2020-03-24 14:19:59 +00:00
Lorenzo Colitti
2688e9f238 Add a log message if enabling Ethernet tethering if it is already enabled.
Test: builds
Bug: 150644681
Change-Id: I68123e6dd04ccae5da2ecd7526c11d9f835d1d57
2020-03-24 13:28:53 +00:00
Treehugger Robot
31145f453b Merge changes Idf2c9bd8,Iec48362f
* changes:
  Remove unnecessary art.module.api.annotations
  Remove dependency on dalvik.annotation.compat.VersionCodes
2020-03-24 11:31:33 +00:00
markchien
b6858e5919 Expose netId by adding getter API
Bug: 151156820
Test: m
      atest TetetheringTests

Clean CP from ag/10747732

Change-Id: Ieb1483c146aa2f7d8f251157e6e81d71c44ae899
Merged-In: Ieb1483c146aa2f7d8f251157e6e81d71c44ae899
2020-03-24 09:19:26 +00:00
Orion Hodson
7f26443fac Merge "Add UnixChannelFactory to preloaded-classes" 2020-03-24 09:04:53 +00:00
paulhu
dd00f67eab [TNU04] Add tethering restricted notification
If tethering is restricted to the user, show restricted
notification to notify the user.

Bug: 122085773
Test: atest TetheringTests
Change-Id: Ic5baca2d6102886f4c3530ce1e321b5dab6ea9d7
2020-03-24 16:45:02 +08:00
paulhu
fb16184c6e [TNU03] Add TetheringNotificationUpdaterTest
Add new test for TetheringNotificationUpdater

Bug: 122085773
Bug: 130596698
Test: atest TetheringTests
Change-Id: I0db3df3e85dd6a8c3989c8bc66a06c50f45a0c15
2020-03-24 15:35:05 +08:00
paulhu
16c102c89a [TNU02] Update tethering notification by active data subid
Tethering notification can be customized by different subid. Thus
update notification when active data subid changed.

Bug: 122085773
Bug: 130596698
Test: atest TetheringTests
Change-Id: I799d713326cfbf4dc96c712c6b15ed5a4ac18dd2
2020-03-24 14:31:03 +08:00
Treehugger Robot
c9bacc92e8 Merge "Fix addRoute replace default route unexpectedly" 2020-03-24 05:51:30 +00:00
junyulai
4fe1889b52 Fix addRoute replace default route unexpectedly
In aosp/1203789, if two routes are with the same destination,
it will be replaced instead of added when calling addRoute.
This breaks scenarios which rely on the ability to add multiple
default routes, such as multiple IPv6 default routes learned
via address autoconfiguration.

This change treats the route is an update if the destination
and nexthop are the same, but different in other properties.

Test: atest OffloadControllerTest#testSetUpstreamLinkPropertiesWorking
Test: atest LinkPropertiesUtilsTest#testLinkPropertiesIdenticalEqual
Test: atest ConnectivityServiceTest#testStackedLinkProperties
Test: atest ConnectivityServiceTest#testRouteAddDeleteUpdate
  (only directly related tests are listed)
Fix: 152170074
Fix: 151911339
Bug: 142892223

Change-Id: I7153ec9866f14a109ba8155c905e5d9e4f85eb64
2020-03-24 10:27:01 +08:00
Treehugger Robot
6982a7dc69 Merge "Fix idmap2 uninitialized variables" 2020-03-24 01:47:12 +00:00
Ryan Mitchell
a7b7de59e0 Fix idmap2 uninitialized variables
Some primitives were not initialized to a default value causing
--ignore-overlayable and --verbose to default to true.

Bug: 148181123
Test: idmap2_tests
Change-Id: If87ba76b7d24803f46b71ef36befa12f25916680
Merged-In: Ic9dbd3e9a768beb39ac677ff294b0fca5ee8f9d2
2020-03-24 01:02:38 +00:00
Sarah Chin
48b63e04f6 Merge "SubscriptionPlan: remove getNetworkTypesBitMask" 2020-03-23 22:14:31 +00:00
Sarah Chin
3782fad894 Merge "Fix NPE in updateNrState" 2020-03-23 22:14:12 +00:00
Xiangyu/Malcolm Chen
074af36692 Merge "Fix bug that getBaseBandVersion() may write the value incorrectly." 2020-03-23 21:31:35 +00:00
Paul Duffin
c58441f56a Remove unnecessary art.module.api.annotations
Test: m droid
Change-Id: Idf2c9bd8b1cd1cfc573cf84cb1c3a1f8afc07f4b
2020-03-23 21:06:02 +00:00
Paul Duffin
8fca45318d Remove dependency on dalvik.annotation.compat.VersionCodes
Allows removal of dependency on art.module.api.annotations.

(cherry picked from 5dc3088cc1)

Test: m droid
Merged-In: Ib0632a3eccfed73d66a51afc0ad6aa50c0311501
Change-Id: Iec48362f2eb643b80f900b974393e23b692e7d1c
2020-03-23 21:01:26 +00:00
Hunter Knepshield
b2a7f082e4 Merge "Forward IBinder#dump to CarrierService#dump" 2020-03-23 20:21:13 +00:00
Brad Ebinger
0fd00037ea Merge "API Review: Clarify deprecated docs and rethrow from system server" 2020-03-23 20:17:41 +00:00
satayev
cce5cd451a Merge "Remove unsupportedappusage_index.csv from droidcore target." 2020-03-23 19:42:25 +00:00
Daniel Hunt
62f0d6d87b Make sure the right DND config is used
The notifications are sometimes updated before the new
reminder policy is set and are incorrectly shown/hidden
in the statusbar and notification panel.

Bug: 152070118
Test: Manual - See bug details
Change-Id: I3352cdd71538dd9f1333b6e737690e39dd713ee4
2020-03-23 19:18:15 +01:00
Hunter Knepshield
dcd87bf35c Forward IBinder#dump to CarrierService#dump
This will allow CarrierConfigLoader to dump packages' bound carrier
services as part of bug reports when appropriate.

Bug: 146521742
Test: manual with modified CarrierConfigLoader + dumpsys carrier_config
Change-Id: Ie3aef4216e7a42e5e4cc5ba4a3978b9c4dda50dd
Merged-In: Ie3aef4216e7a42e5e4cc5ba4a3978b9c4dda50dd
(cherry picked from commit 05a57b6f5e)
2020-03-23 11:01:35 -07:00
Brad Ebinger
06d11782d7 Merge "API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull" 2020-03-23 17:18:26 +00:00
Brad Ebinger
2a15872d99 Merge "API fix: getProprietaryCallExtras should not return null" 2020-03-23 17:10:13 +00:00
Brad Ebinger
ee30a546d6 Merge "API fix: Rename and clarify ProvisioningManager constants" 2020-03-23 16:19:36 +00:00
Brad Ebinger
3d46c07f77 Merge "API Review: Rethrow from system server for ImsCallSessionListener" 2020-03-23 16:18:18 +00:00
Brad Ebinger
a8ea082246 Merge "API Review: Define the extras as containing CharSequences, not Strings" 2020-03-23 16:17:21 +00:00