OSDN Git Service
nharold [Wed, 17 Jan 2018 19:07:10 +0000 (19:07 +0000)]
Merge "IpSec - API Tweak for removeTransportModeTransform"
Treehugger Robot [Wed, 17 Jan 2018 17:33:41 +0000 (17:33 +0000)]
Merge "Skip SystemUI check in BluetoothServiceManager if noHome."
David Brazdil [Wed, 17 Jan 2018 13:42:29 +0000 (13:42 +0000)]
Merge "Pass targetSdkVersion to installd"
Nathan Harold [Wed, 17 Jan 2018 09:00:20 +0000 (01:00 -0800)]
IpSec - API Tweak for removeTransportModeTransform
Because IpSecTransforms are now unidirectional,
and because the only mechanism for removing Transforms
removes it from both directions, the API can no longer
use the Transform parameter to meaningfully validate
that the caller had applied a transform. Since that
functionality was as-yet unimplemented and is now
infeasible, the transform parameter is removed.
Bug:
72079356
Test: cts - IpSecManagerTest; runtest frameworks-net
Change-Id: If19b0d34bdc6daf31a40d6d62bff326dcbca08c0
nharold [Wed, 17 Jan 2018 08:45:29 +0000 (08:45 +0000)]
Merge "Prevent Closure of Underlying Socket FDs"
nharold [Wed, 17 Jan 2018 08:40:37 +0000 (08:40 +0000)]
Merge changes from topic "ipsec-oneway-transform"
* changes:
Update IpSecService UnitTests
Make Transforms Unidirectional
Nathan Harold [Tue, 16 Jan 2018 20:08:43 +0000 (12:08 -0800)]
Prevent Closure of Underlying Socket FDs
The version of applyTransportModeTransform() and
removeTransportModeTransform() that accepted
Socket and DatagramSocket were closing the underlying
FDs upon return. It's unclear whether this is due to
a behavior change elsewhere in ParcelFileDescriptor,
but either way, converting to using getFileDescriptor$
and then calling dup() explicitly rather than relying
on ParcelFileDescriptor seems like a better idea anyway.
Bug:
72047396
Test: CTS - IpSecManagerTest.testCreateTransform()
Change-Id: Ia2f02564e1289f25bf113dbb861fcfd2240537a7
nharold [Wed, 17 Jan 2018 03:39:44 +0000 (03:39 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING"
Nathan Harold [Wed, 17 Jan 2018 03:34:01 +0000 (19:34 -0800)]
Update IpSecService UnitTests
The IpSecService Unit tests relied on the
directionality of the IpSecConfig and previously
did not specify a source address. Unit tests
updated without functional change other than to
address these two requirements.
Bug:
71717213
Test: runtest frameworks-net
Change-Id: Iedbed735bc50fd4fdfe985f9e173956062a7b0d1
Ryan Lothian [Tue, 16 Jan 2018 23:31:41 +0000 (23:31 +0000)]
Merge "Handle onBindingDied in notification manager"
Ryan Lothian [Mon, 4 Dec 2017 16:56:58 +0000 (11:56 -0500)]
Handle onBindingDied in notification manager
On Android, if the process containing the service being bound to
crashes before the bind succeeds, the app doing the binding won't
get a success or failure callback.
When that happens in this code, this leaves notif. manager thinking
that a binding is in progress, so it never attempts to rebind until
the device is rebooted.
Bug:
69064494
Test: original CL was manually tested --
crashed listener on proc start, verified not unbound forever
Change-Id: Id2082744208e21a709d9453365f282449a2e9407
(cherry picked from commit
4a86a51b672617b02994fc812e4f96342daf424e)
David Brazdil [Tue, 16 Jan 2018 20:01:47 +0000 (20:01 +0000)]
Pass targetSdkVersion to installd
Dex2oat now accepts targetSdkVersion as a parameter to determine
whether ART should treat the app as "legacy" and allow or restrict
access to private APIs.
We also bump arguments of otapreopt to v4 to accommodate the new value.
Bug:
64382372
Test: manual
Change-Id: Iae3867325dfaf8deaba51626ab04b97ad797d3b6
Ivan Lozano [Tue, 16 Jan 2018 20:27:36 +0000 (20:27 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds."
Nathan Harold [Sat, 6 Jan 2018 03:25:13 +0000 (19:25 -0800)]
Make Transforms Unidirectional
Convert the IpSecTransform from being a bi-directional
pair of SAs to a unidirectional single SA. This CL
also removes the concept of "direction from SAs meaning
that a IpSecTransform may now be applied to a socket
in either direction.
-Make transforms unidirectional
-Add Convert allocateSpi() to use destination rather
than direction and remote address
-Remove directionality from builders for IpSecTransform
-Change applyTransportModeTransform() to take a
direction in which to apply the transform object.
-Additional minor naming updates
-Restrict IpSecConfig to only print keys on eng builds
-Move DIRECTION constants to IpSecManager
-Add sourceAddress parameter to IpSecTransform to provide
additional guarantees about the source address of data;
(explicit failure rather than implicit failure).
-Move SPI to the build() method of IpSecTransform
Bug:
71717213
Test: runtest frameworks-net, CTS - IpSecManagerTest
Change-Id: I0824b37f443f4b8c62536d9801238c63ed8f2a1c
Treehugger Robot [Tue, 16 Jan 2018 18:25:32 +0000 (18:25 +0000)]
Merge "ActivityThread: Attempt to attach agent with app's classloader"
Treehugger Robot [Tue, 16 Jan 2018 14:25:13 +0000 (14:25 +0000)]
Merge changes I0d0c0fac,Ifb9b00b6
* changes:
Split updateCapabilities into two methods.
More strictly check NetworkCapabilities callbacks.
Lorenzo Colitti [Mon, 15 Jan 2018 15:52:07 +0000 (00:52 +0900)]
Split updateCapabilities into two methods.
This makes the code a bit easier to follow.
Test: ConnectivityServiceTest continues to pass
Change-Id: I0d0c0facc1e3ba07b53542b35da40ddc096ff92e
Treehugger Robot [Tue, 16 Jan 2018 12:23:02 +0000 (12:23 +0000)]
Merge "Update netId to nethandle mapping in NetworkTest."
Paul Duffin [Tue, 16 Jan 2018 10:47:47 +0000 (10:47 +0000)]
Merge "Replace legacy-test with android.test.base in bp files"
Lorenzo Colitti [Tue, 16 Jan 2018 08:18:17 +0000 (17:18 +0900)]
Update netId to nethandle mapping in NetworkTest.
Bug:
63052780
Test: NetworkTest now passes
Change-Id: I5f1cb3055b7042a19afb5dd62f082912157612ba
Hugo Benichi [Tue, 16 Jan 2018 07:10:50 +0000 (07:10 +0000)]
Merge "MacAddress: add @NonNull annotations"
Hugo Benichi [Fri, 12 Jan 2018 00:46:29 +0000 (09:46 +0900)]
MacAddress: add @NonNull annotations
This patch adds to the MacAddress class:
- getAddressType() method which replaces addressType(), for naming
consistency
- @NonNull annotations on all input and output reference values for
all public methods (@hide and public).
TYPE_UNKNOWN, which currently cannot be observed with a non @hide
method, is also removed from the public api.
Bug:
71866627
Test: $ runtest frameworks-net
Change-Id: I2af70408d46f431b7b32183e6b48ddae9a261a2c
Treehugger Robot [Tue, 16 Jan 2018 02:58:56 +0000 (02:58 +0000)]
Merge "Change the netId to nethandle mapping."
Hugo Benichi [Tue, 16 Jan 2018 00:20:52 +0000 (00:20 +0000)]
Merge "ConnectivityService: synchronize access on mLockdownEnabled"
Andreas Gampe [Fri, 5 Jan 2018 21:55:15 +0000 (13:55 -0800)]
ActivityThread: Attempt to attach agent with app's classloader
Try to use the app's (main) classloader when an attach-agent request
is handled. If that fails, retry without a classloader.
Add bind-application-time flag to ProfilerInfo. Use the flag to have
a second attach-agent point on app startup. Add --attach-agent-bind
to cmd activity start to expose the difference between pre-bind and
bind-time attaching.
Bug:
70901841
Test: m
Test: cts-tradefed run commandAndExit cts-dev -m CtsJvmtiAttachingHostTestCases
Change-Id: I21698ec3be43a6d095d577100b2adfb22daca7d5
Nathan Harold [Mon, 15 Jan 2018 18:48:00 +0000 (10:48 -0800)]
Update documentation for KEY_CARRIER_NAME_STRING
The documentation for KEY_CARRIER_NAME_STRING was out
of date; documentation updated to support the additional
use case of "fallback" carrier name when SPN is
unavailable.
Bug:
71882065
Test: compilation (docstring-only change)
Change-Id: I8e6a44358f8b18384c3c6e3cc0964e94c2484a11
Lorenzo Colitti [Tue, 5 Sep 2017 02:15:37 +0000 (11:15 +0900)]
Change the netId to nethandle mapping.
Being able to update this handle is necessary to ensure that
system-only OTAs do not break vendor code that relies on
nethandles.
Bug:
63052780
Test: walleye builds, boots, networking works
Test: MultinetworkApiTest CTS tests passes
Change-Id: I049a4ad2610ca68b8f56377b63be7e5e8ce76039
Paul Duffin [Mon, 15 Jan 2018 15:47:47 +0000 (15:47 +0000)]
Replace legacy-test with android.test.base in bp files
The legacy-test target is deprecated and will be replaced by
android.test.base. This replaces a few usages of the legacy-test target
in Android.bp files with android.test.base.
Bug:
30188076
Test: make checkbuild
Change-Id: I3575f638114fe2a3b703e67837496346bde24472
Lorenzo Colitti [Fri, 12 Jan 2018 07:22:21 +0000 (16:22 +0900)]
More strictly check NetworkCapabilities callbacks.
This change more strictly accounts for onCapabilitiesChanged
callbaks and their values. It exposes several cases where we the
callbacks we send are spurious.
Test: ConnectivityServiceTest continues to pass
Change-Id: Ifb9b00b6f0cae48f8ed41a525100d1744b5f429b
vichang [Mon, 15 Jan 2018 13:55:54 +0000 (13:55 +0000)]
Merge "Add a new API android.icu.util.LocaleData"
Treehugger Robot [Mon, 15 Jan 2018 12:39:09 +0000 (12:39 +0000)]
Merge "change NMS removeNetwork to netd binder variant"
vichang [Mon, 15 Jan 2018 11:56:58 +0000 (11:56 +0000)]
Merge "Expose API android.icu.util.IllformedLocaleException"
Erik Kline [Mon, 15 Jan 2018 08:05:07 +0000 (17:05 +0900)]
change NMS removeNetwork to netd binder variant
Also: require NETWORK_STACK instead of CONNECTIVITY_INTERNAL.
Bug:
34953048
Bug:
64133961
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net
Change-Id: I26f07f51a8a2f4a8bb43a276da7c5e66c355c848
Paul Duffin [Sat, 13 Jan 2018 19:33:39 +0000 (19:33 +0000)]
Merge "Remove junit classes from legacy-android-test"
Paul Duffin [Fri, 12 Jan 2018 16:08:35 +0000 (16:08 +0000)]
Remove junit classes from legacy-android-test
A mistake during the conversion of the legacy-android-test target from
Android.mk to Android.bp caused some junit classes to be accidentally
included in the legacy-android-test target. That caused some warnings
about duplicate classes to be output during the build.
The junit classes are being included as part of the static library
android.test.runner. This fixes that by adding a new
android.test.runner-minus-junit which excludes the junit classes
and then using that instead.
Test: make checkbuild
Change-Id: Icd00b38c64d3416a55c1055f9716ddb78ec278f8
Paul Duffin [Sat, 13 Jan 2018 09:33:05 +0000 (09:33 +0000)]
Merge changes from topic "fix-legacy-android-test-spam"
* changes:
Added new android.test.base targets
Move legacy-test to test-base
Treehugger Robot [Sat, 13 Jan 2018 04:09:42 +0000 (04:09 +0000)]
Merge "Add the user mobile data state into PhoneStateListener so that applications can listen to the change of the user mobile data state."
Treehugger Robot [Sat, 13 Jan 2018 01:42:52 +0000 (01:42 +0000)]
Merge "Used LinkAddress insteaad of InterfaceAddress"
Ivan Lozano [Thu, 14 Dec 2017 20:25:36 +0000 (12:25 -0800)]
Fix doFadingAnimationLocked in sanitized builds.
The loop as constructed causes i to overflow twice when i = 0 on integer
overflow sanitized builds.
runtime error: unsigned integer overflow: 0 - 1 cannot be represented
in type 'size_t' (aka 'unsigned long')
runtime error: unsigned integer overflow:
18446744073709551615 + 1
cannot be represented in type 'size_t' (aka 'unsigned long')
This refactors the loop to avoid the overflows.
Bug:
30969751
Test: Compiles, device boots, enabled pointer location overlay.
Change-Id: I844bb3b84b1f536c50d06fb489fcc22590d4aa98
Merged-In: I844bb3b84b1f536c50d06fb489fcc22590d4aa98
(cherry picked from commit
7ee0dba09550811040df4d7b494766f7d146e3de)
Sanket Padawe [Fri, 12 Jan 2018 23:50:40 +0000 (23:50 +0000)]
Merge "Add permission check for old call handover apis."
Treehugger Robot [Fri, 12 Jan 2018 22:12:39 +0000 (22:12 +0000)]
Merge "android.os.VintfObject: update for VNDK version format change."
Joseph Pirozzo [Fri, 12 Jan 2018 22:11:50 +0000 (22:11 +0000)]
Merge "Bluetooth in band ring"
Hall Liu [Fri, 12 Jan 2018 20:56:36 +0000 (20:56 +0000)]
Merge "Use proper classloader when reading from parcel"
Treehugger Robot [Fri, 12 Jan 2018 20:52:14 +0000 (20:52 +0000)]
Merge "Minor LoadedApk refactoring."
Jack Yu [Thu, 11 Jan 2018 20:44:07 +0000 (12:44 -0800)]
Used LinkAddress insteaad of InterfaceAddress
Also removed InterfaceAddress which was added
in aosp/561351 since LinkAddress is exactly same
as InterfaceAddress.
Test: Telephony sanity tests
bug:
64132030
Merged-In: Ib7965a44b307c4cff2581abf0b7c12fcb1b9526a
Change-Id: Ib7965a44b307c4cff2581abf0b7c12fcb1b9526a
Jeff Hamilton [Tue, 24 Oct 2017 19:20:43 +0000 (15:20 -0400)]
Minor LoadedApk refactoring.
- Rename varaibles holding LoadedApk to make the code easier to read.
- Move resource creation into LoadedApk, consolidating the logic.
(cherry picked from commit
7541ca4d1aa48e3110187a83a8dccbfa72084148)
Test: manual
Merged-In: I6bdc70482fbbb346ff694ada528ded18d3a63ef7
Change-Id: I6bdc70482fbbb346ff694ada528ded18d3a63ef7
Sanket Padawe [Fri, 5 Jan 2018 22:26:16 +0000 (14:26 -0800)]
Add permission check for old call handover apis.
Bug:
65415068
Test: manual
Change-Id: I4784debf1be255de24c341fe5474fc529bc1cebe
Holly Jiuyu Sun [Fri, 12 Jan 2018 17:18:03 +0000 (17:18 +0000)]
Merge "Add dependencies of EuiccCard."
Paul Duffin [Thu, 16 Nov 2017 15:53:09 +0000 (15:53 +0000)]
Added new android.test.base targets
Renames ...-legacy-test-... targets related to stubs generation to
...-android-test-base-....
(cherry picked from commit
5c99382a1995723637814221cd5432c458c622ad)
Bug:
30188076
Test: make checkbuild
Change-Id: I40b39c5250b7d990a903052c0b1ebd694242b5b3
Merged-Id: I54204733612d6d3f14dd8023973e993a5ddab51d
Paul Duffin [Thu, 16 Nov 2017 15:47:05 +0000 (15:47 +0000)]
Move legacy-test to test-base
Make it consistent with the test-mock and test-runner directories.
Also renames the files in api/ subdirectory.
(cherry picked from commit
f779efd62cd579f67bd3b387d59fda11ee0cbe90)
Bug:
30188076
Test: make checkbuild
Change-Id: Ied3621e6201d8717223fe1ccd4ea77d458126b25
Merged-In: If4f99a65fcca416ede5b3e63481398f0b451bcb7
Badhri Jagan Sridharan [Fri, 12 Jan 2018 15:36:08 +0000 (15:36 +0000)]
Merge "DO NOT MERGE: Add setScreenUnlockedFunctions method to UsbManager"
Jerry Zhang [Fri, 1 Dec 2017 03:10:55 +0000 (19:10 -0800)]
DO NOT MERGE: Add setScreenUnlockedFunctions method to UsbManager
Cherry-pick from
30b9adfad1c5055044f0b585782b10f764e0ddf9
The screen unlocked functions save effort on setting
the usb config during each connection. These
functions persist between connections and between
boots. When the screen is unlocked and these
functions are set, the current functions will
be automatically set to the screen unlocked functions.
Also added svc command for this so it can be
used and tested while the UI is worked on.
Bug:
62876645
Test: svc usb setScreenUnlockedFunctions mtp
Test: Test functions with locking, unlocking, and
disconnecting, with no lockscreen, swipe, and pattern
Change-Id: Ia05e095917166d25398c4d310b02971e3a1bb12a
Treehugger Robot [Fri, 12 Jan 2018 12:39:35 +0000 (12:39 +0000)]
Merge "base: Convert libs/services/Android.mk into a blueprint"
Sami Kyostila [Thu, 11 Jan 2018 00:12:14 +0000 (00:12 +0000)]
base: Convert libs/services/Android.mk into a blueprint
Convert libs/services/Android.mk into a blueprint module so it can be
linked by other blueprint modules.
Test: mmm frameworks/base
Change-Id: I7acf9aa084d262a5aba5a58e45d9647e15c6dffb
Merged-In: I7acf9aa084d262a5aba5a58e45d9647e15c6dffb
Chalard Jean [Fri, 12 Jan 2018 05:11:29 +0000 (05:11 +0000)]
Merge "Readability improvements to the Vpn class with no logic changes"
Hall Liu [Fri, 12 Jan 2018 01:23:40 +0000 (17:23 -0800)]
Use proper classloader when reading from parcel
Use the proper classloader when loading ImsStreamMediaProfile from a
parcel.
Bug:
71873453
Test: manual
Change-Id: Idf60f18b5d25b4c8eae225cb92a5391303c86d3b
Arthur Hsu [Fri, 12 Jan 2018 00:46:22 +0000 (16:46 -0800)]
Skip SystemUI check in BluetoothServiceManager if noHome.
When device is configured with config_noHomeScreen, there will be no
SystemUI. Checking SystemUI UID is meaningless.
Bug:
62413935 69965109
Test: On sailfish, logcat shows expected SystemUI UID by default
Change-Id: Iaccc0f10cb82da454077056824c3f6eea6a37c4e
Treehugger Robot [Thu, 11 Jan 2018 23:52:46 +0000 (23:52 +0000)]
Merge "Frameworks: Move SharedPreferencesImpl to tristate"
Jerry Zhang [Thu, 11 Jan 2018 23:50:34 +0000 (23:50 +0000)]
Merge "DO NOT MERGE: Add ScreenObserver"
Yifan Hong [Thu, 11 Jan 2018 00:04:18 +0000 (16:04 -0800)]
android.os.VintfObject: update for VNDK version format change.
Test: CTS device info collect
Bug:
36400653
Change-Id: I7b22f82ddd9ddc3b0930b5c1564435c42be2a6fa
Treehugger Robot [Thu, 11 Jan 2018 22:43:10 +0000 (22:43 +0000)]
Merge "Add new config for number of physical SIM slots on the device."
Joseph Pirozzo [Wed, 3 Jan 2018 00:15:23 +0000 (16:15 -0800)]
Bluetooth in band ring
Prevent the telecom service from generating a ringer if there is already
a ringer generated by a phone connected over bluetooth headset client
service.
Bug:
65673832
Test: runtest telecom-unit -c
com.android.server.telecom.tests.RingerTest
Change-Id: I40710787cab0215f0456153a3557aa8cf1a50cdf
(cherry picked from commit
40ea5eea4194f56f63e6aa3383772f462306c02a)
Holly Jiuyu Sun [Thu, 11 Jan 2018 20:44:33 +0000 (20:44 +0000)]
Merge "Add EuiccCardManager and EuiccCardController."
Treehugger Robot [Thu, 11 Jan 2018 20:22:05 +0000 (20:22 +0000)]
Merge "Make Bluetooth constants used by gmscore a system api"
Jerry Zhang [Thu, 11 Jan 2018 18:46:13 +0000 (10:46 -0800)]
DO NOT MERGE: Add ScreenObserver
ScreenObserver allows system components to
monitor the screen lock state.
Bug:
68054513
Test: manual
Change-Id: I50f4690f68443f676d17e93efb1b7cb0857abd9e
Holly Jiuyu Sun [Fri, 22 Dec 2017 02:44:59 +0000 (18:44 -0800)]
Add EuiccCardManager and EuiccCardController.
EuiccCardManager is in the same path with EuiccManager.
EuiccCardController is in the same path with EuiccController.
Use getAllProfiles() as an example interface.
The implementation of EuiccCard and its content will be added in a
follow up CL.
The new API is marked as @hide and TODO for @SystemApi.
Bug:
38206971
Test: test on phone
Change-Id: I153937c0f79bdd1a00b06b234a6e254a3f43072c
Merged-In: I153937c0f79bdd1a00b06b234a6e254a3f43072c
Badhri Jagan Sridharan [Thu, 11 Jan 2018 17:53:11 +0000 (17:53 +0000)]
Merge "Overcome disconnect during oem override"
Treehugger Robot [Thu, 11 Jan 2018 11:33:30 +0000 (11:33 +0000)]
Merge changes I47ccfa99,I5db1de3e
* changes:
Extract DNS setting logic into DnsManager class
Add minimal test for setting DNS properties
Erik Kline [Wed, 13 Dec 2017 10:40:49 +0000 (19:40 +0900)]
Extract DNS setting logic into DnsManager class
In future, managing DNS-over-TLS hostname lookup and netd programming
can be encapsulated here.
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug:
64133961
Change-Id: I47ccfa99c30c780524c45c4af605e720ccba34a0
Erik Kline [Thu, 11 Jan 2018 07:11:10 +0000 (16:11 +0900)]
Add minimal test for setting DNS properties
Test: as follows
Change-Id: I5db1de3ee8e179edd56c93988b821242b81c2387
Treehugger Robot [Thu, 11 Jan 2018 05:52:59 +0000 (05:52 +0000)]
Merge "Add checking permission at the setDataSaverModeEnabled()"
Treehugger Robot [Thu, 11 Jan 2018 05:48:20 +0000 (05:48 +0000)]
Merge "Move DhcpClient SM thread onto IpClient's SM thread"
Treehugger Robot [Thu, 11 Jan 2018 04:01:32 +0000 (04:01 +0000)]
Merge "Add public ApnSetting in android.telephony."
Erik Kline [Fri, 9 Jun 2017 10:20:26 +0000 (19:20 +0900)]
Move DhcpClient SM thread onto IpClient's SM thread
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- basic wifi usage nominal
Bug:
62476366
Change-Id: I9a74e001bc86972e31b7e0898711628e65d9cf7a
Lorenzo Colitti [Thu, 11 Jan 2018 03:09:40 +0000 (03:09 +0000)]
Merge "Move more core networking tests to framework/base/tests/net."
Treehugger Robot [Thu, 11 Jan 2018 02:52:00 +0000 (02:52 +0000)]
Merge "Refactor to InterfaceParams utility class"
Erik Kline [Fri, 8 Dec 2017 08:47:50 +0000 (17:47 +0900)]
Refactor to InterfaceParams utility class
NetworkInterface throws Exceptions every time you look at it askance.
Try to make something we instantiate fully, once, and pass it around.
Partial MacAddress-ification as well, for good measure.
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- basic IPv6 tethering works
Bug:
32163131
Bug:
62476366
Change-Id: I16c145fddb4e76387370338d792a438eed886d7f
Badhri Jagan Sridharan [Sat, 19 Aug 2017 00:26:05 +0000 (17:26 -0700)]
Overcome disconnect during oem override
Cherry-pick from
83a0d6fa577fab4d45aba38e3eb52b08b8123c17
While bootup, usb gets configured when the property triggers are
run. While in oemOverride, the current configuration is persisted
in sys.usb.<bootmode>.config. Do not reconfigure the stack if the
current configuration is same as the new configuration.
Bug:
64225494
Change-Id: Id35d110bf3fa8f58d05e14941716d4ad2b196f8d
Amit Mahajan [Sat, 6 Jan 2018 00:20:36 +0000 (16:20 -0800)]
Add new config for number of physical SIM slots on the device.
Test: Basic telephony sanity
Bug:
64131518
Merged-in: If393b144fd7280b11242caeb8bb4dc6a202f80ad
Change-Id: If393b144fd7280b11242caeb8bb4dc6a202f80ad
Holly Jiuyu Sun [Wed, 10 Jan 2018 03:23:11 +0000 (19:23 -0800)]
Add dependencies of EuiccCard.
Include EuiccNotification and EuiccRat.
Change EuiccRat to Parcelable.
Bug:
38206971
Test: unit test
Change-Id: Ifbe01e64b92ab0b042779487df4dd99159c5e3b8
Treehugger Robot [Wed, 10 Jan 2018 21:29:02 +0000 (21:29 +0000)]
Merge "Add API EuiccController#startOtaUpdatingIfNecessary"
Qingxi Li [Thu, 14 Dec 2017 23:36:06 +0000 (15:36 -0800)]
Add API EuiccController#startOtaUpdatingIfNecessary
This function requests calling app has WRITE_EMBEDDED_SUBSCRIPTIONS
permission. It will check whether the OTA update needed to be done
first. If current eUICC OS isn't latest one and OTA needed to be
performed, it will update eUICC OS. When the OS update is started or
finished, a broadcast will be sent.
Bug:
37279356
Test: E2E
Merged-In: Iea86add4bdc01c79a8714af4b3a89735ba78ee74
Change-Id: Iea86add4bdc01c79a8714af4b3a89735ba78ee74
Treehugger Robot [Wed, 10 Jan 2018 18:46:36 +0000 (18:46 +0000)]
Merge "Revert "Move zygote's seccomp setup to post-fork""
Jack Yu [Wed, 10 Jan 2018 18:39:53 +0000 (18:39 +0000)]
Merge "Added Cell identity for TD-SCDMA and a base class CellIdentity"
Jerry Zhang [Wed, 10 Jan 2018 18:38:44 +0000 (18:38 +0000)]
Merge "Revamp USB tethering startup flow."
Jerry Zhang [Wed, 20 Dec 2017 22:26:39 +0000 (14:26 -0800)]
Revamp USB tethering startup flow.
Modify usb tethering flow to no longer require
mUsbTetherRequested. The new simplified flow is:
1. Usb rndis function is set through UsbManager
2. Usb is configured with rndis enabled
3. We tether the USB interface
4. Usb is disconnected
5. We untether the USB interface
This allows USB tethering to be enabled through
either UsbManager or ConnectivityManager and aligns
the flow to be similar to other usb function services
such as MTP.
Bug:
62876645
Test: Enable and disable tethering through connectivity and with `svc
usb setFunction rndis`
Change-Id: Ica4203a499db177999302e099e28948b06ef2298
Treehugger Robot [Wed, 10 Jan 2018 18:19:03 +0000 (18:19 +0000)]
Merge "Don't wait for Bluetooth when shutting down"
Myles Watson [Sat, 6 Jan 2018 00:12:54 +0000 (16:12 -0800)]
Don't wait for Bluetooth when shutting down
Bluetooth doesn't need to be shut down cleanly; shutting it down just
slows down the shutdown process.
Change-Id: I91fc9b26930a392f0c4462c76626a966051aea7b
Merged-In: Ic2ed89dd618806adc6646066ab0956dea4a94d8e
Bug:
70855323
Test: Boot, shut down, boot, shut down.
Victor Hsieh [Wed, 10 Jan 2018 17:22:25 +0000 (17:22 +0000)]
Revert "Move zygote's seccomp setup to post-fork"
This reverts commit
6a4a3398325787f6cb1b93db17a7bf50d353e2a5.
Reason for revert: caused some SELinux error
Bug:
71768585
Change-Id: I0ef270ec6fed1d5d96b4257ec1a2dd6a55a816ed
Merged-In: Ic1b81e146b52b68445ba634de39657f199107da3
Jordan Liu [Wed, 10 Jan 2018 17:06:14 +0000 (17:06 +0000)]
Merge "Add precise disconnect cause in DisconnectCause"
Lorenzo Colitti [Fri, 14 Apr 2017 15:12:33 +0000 (00:12 +0900)]
Move more core networking tests to framework/base/tests/net.
Test: "runtest frameworks-net" passes except for already-failing IpConnectivityMetricsTest
Change-Id: I2a20d546089699ac67bc819f10a8fcd50c637ac4
Victor Chang [Mon, 8 Jan 2018 20:27:44 +0000 (20:27 +0000)]
Add a new API android.icu.util.LocaleData
1. getDelimiter is useful to avoid quoted text in string resource
and reduce apk size
<string name="verbal_quote_string">“<xliff:g id="value"
example="Mountain">%1$s</xliff:g>”</string>
Two related methods, i.e. setNoSubstitute, getNoSubstitute, are used to
avoid using values in root locale
2. getMeasurementSystem, getPaperSize
Handful method to determine to use km or miles and paper size
Bug:
71706733
Test: android.icu.dev.test.util.LocaleDataTest
Merged-In: I86b0126f6df62ed5b6081cabdb55487e7145ade0
(cherry picked from commit
98b16b6f437d9ae5fc6b81d6dbe8de279dccfecf)
Change-Id: Ic7cf70439658430c0154459f3ac695f24c99fc5d
Victor Chang [Fri, 5 Jan 2018 17:14:35 +0000 (17:14 +0000)]
Expose API android.icu.util.IllformedLocaleException
android.icu.util.IllformedLocaleException is referenced in javadoc, but
is not exposed as a public API
Test: Existing tests cover this API. cts-tradefed run cts-dev
-m CtsIcuTestCases -t android.icu.dev.test.util.ULocaleTest
Test: m
Bug:
71629543
Merged-In: I2571ecc9e561294033ff13460bdd363a0ffc6c9b
(cherry picked from commit
e6e9308d6ed37dd031f1589ac87f757e29cfc468)
Change-Id: I80d2619e945e415e6ad8c5966a73f44e8dc5b6de
Jack Yu [Thu, 28 Dec 2017 22:41:12 +0000 (14:41 -0800)]
Added Cell identity for TD-SCDMA and a base class CellIdentity
Added CellIdentityTdscdma for TDS-CDMA cell identity. Also added
a base class for existing CellIdentityXxx so that the network
service can return specific RAT cell identity through the
network service callback API which takes generic cell identity
as the parameter.
This is the preliminary change for IWLAN refactoring since cell
identity is part of the CS/PS network registration.
bug:
64132030
Test: Unit tests
Change-Id: I3ca405d687667b6c43e782339edec26a6f6edfc9
Holly Jiuyu Sun [Wed, 10 Jan 2018 05:21:35 +0000 (05:21 +0000)]
Merge "Merge EuiccProfile into EuiccProfileInfo."
yuemingw [Fri, 24 Nov 2017 18:20:11 +0000 (18:20 +0000)]
Add public ApnSetting in android.telephony.
Bug:
68208293
Test: manual
Add public ApnSetting class in android.telephony. Move APN TYPE constants out from
PhoneConstants into public ApnTypeConstants.
Design doc: https://docs.google.com/document/d/1UEYjhRGSEwwccPLs_FzFD-IeOsVq63gxmAHNtDfnzAY/edit?pli=1#
Change-Id: I74d23644a872df0abc19730285ae196b6e3e39dd
Treehugger Robot [Wed, 10 Jan 2018 03:07:26 +0000 (03:07 +0000)]
Merge "Check null before calling clone()"
Treehugger Robot [Wed, 10 Jan 2018 02:19:20 +0000 (02:19 +0000)]
Merge "Exposed CDMA SID/NID get APIs"
Treehugger Robot [Wed, 10 Jan 2018 01:24:41 +0000 (01:24 +0000)]
Merge "Remove obsolete workaround."
Cassie Han [Wed, 10 Jan 2018 00:55:32 +0000 (00:55 +0000)]
Merge "Expose a new public column network_type_bitmask and deprecate bearer_bitmask gradually."