OSDN Git Service
Santos Cordon [Tue, 5 Feb 2019 18:03:55 +0000 (18:03 +0000)]
Merge "Migrate suspend HAL interactions to new suspend control AIDL."
Santos Cordon [Wed, 30 Jan 2019 01:39:44 +0000 (01:39 +0000)]
Migrate suspend HAL interactions to new suspend control AIDL.
Use the new Suspend Control Service AIDL definition to communicate with
the suspend HAL instead of using the HAL interface directly.
Bug:
121210355
Test: manual - verify auto-suspend loop is still processing.
Change-Id: I61cf05a8095f9d121fafb862def8239b325a7f43
Merged-In: I61cf05a8095f9d121fafb862def8239b325a7f43
Nathan Harold [Tue, 5 Feb 2019 17:59:57 +0000 (17:59 +0000)]
Merge "Track Multiple Event Instances in EventReporter"
Nathan Harold [Tue, 5 Feb 2019 17:59:14 +0000 (17:59 +0000)]
Merge "Add a Telephony Debug Surface"
Chalard Jean [Tue, 5 Feb 2019 17:56:02 +0000 (17:56 +0000)]
Merge "[KA02] internal cleanup and refactor for SocketKeepalive"
Nandana Dutt [Tue, 5 Feb 2019 13:48:13 +0000 (13:48 +0000)]
Merge "Add error handling and other improvements to Bugreporting API"
junyulai [Thu, 3 Jan 2019 10:50:15 +0000 (18:50 +0800)]
[KA02] internal cleanup and refactor for SocketKeepalive
In previous change, the new SocketKeepalive API was exported.
But internally, old PacketKeepalive names and structures are
still used.
This change rename them properly for code consistency and also
refactor KeepalivePacketData to support different types of
KeepalivePacketData.
Bug:
114151147
Test: 1. atest FrameworksNetTests
2. atest FrameworksWifiTests
3. atest FrameworksTelephonyTests
Change-Id: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e
Merged-In: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e
Nandana Dutt [Wed, 23 Jan 2019 09:51:49 +0000 (09:51 +0000)]
Add error handling and other improvements to Bugreporting API
* Validate input arguments
* Ensure primary user
* Handle remote exceptions
* Pass error conditions to listener
* Ensure only one bugreport is in progress, at least via the API.
BUG:
123584708
BUG:
123571915
Test: Builds
Test: Manual; unit tests coming up
Change-Id: I4d1e0000fe815a02b82ce625864759fd818e6a24
Treehugger Robot [Tue, 5 Feb 2019 09:15:21 +0000 (09:15 +0000)]
Merge "Move CLIENT_PROTOCOL_VERSION to point of use"
Sooraj Sasindran [Tue, 5 Feb 2019 02:53:14 +0000 (02:53 +0000)]
Merge "Allow Privileged apps to read prefered data state"
Jordan Liu [Tue, 5 Feb 2019 00:59:31 +0000 (00:59 +0000)]
Merge "CallAttributes.equals does deep check"
Sooraj Sasindran [Thu, 31 Jan 2019 18:06:04 +0000 (10:06 -0800)]
Allow Privileged apps to read prefered data state
Allow Privileged apps to read prefered data state
Change ArrayList to List for public API
Bug:
122900079
Bug:
123697660
Test: verified manually
Change-Id: Ib1221a65edf554b700088d68505da137ccd7de5e
Treehugger Robot [Mon, 4 Feb 2019 23:41:33 +0000 (23:41 +0000)]
Merge "Use default methods for MBMS group call callbacks"
Nathan Harold [Sat, 2 Feb 2019 01:43:09 +0000 (17:43 -0800)]
Track Multiple Event Instances in EventReporter
To avoid spamming users or the debug app with debug
events, the DebugEventReporter will now track each
event it receives and only send a single intent for
each event signature per boot. In the future, some
other method of persistence (such as per-build) might
be preferable, but this should mitigate any looping
events.
In addition, add dump() to the event reporter so that
even if there is no debug app installed, or in case
an event happens multiple times, it can be observed
through a bugreport.
Bug:
120941729
Test: dump and observe that the events are printed.
Change-Id: Iaf04a308a29bc074acfaa16b9e70947761759181
Nathan Harold [Mon, 14 Jan 2019 20:00:06 +0000 (12:00 -0800)]
Add a Telephony Debug Surface
This commit adds a small surface to allow telephony
to generate events for an external logger to capture
and use to take action such as gathering bugreports
or proprietary logs.
The event-IDs are considered non-stable, so they may
change from release to release or device to device.
Bug:
120941729
Test: manually tested by modifying Settings. Further
tests will require the creation of a package
that has READ_PRIVILEGED_PHONE_STATE.
Change-Id: I6360dab2d997d518ebd5f38a72fe88801e693bb7
Jordan Liu [Mon, 4 Feb 2019 20:24:57 +0000 (12:24 -0800)]
CallAttributes.equals does deep check
Also fix PreciseCallState.equals() to not return the opposite of equals.
Bug:
123363462
Test: CallAttributesTest
Change-Id: I7a9b65a01bc32ebfe304a0434a82bfe97929421c
Hall Liu [Mon, 4 Feb 2019 21:15:04 +0000 (21:15 +0000)]
Merge "Unhide isRttSupported in TelephonyManager"
Treehugger Robot [Mon, 4 Feb 2019 20:46:26 +0000 (20:46 +0000)]
Merge "Temporarily disable clang-tidy for dex_builder.cc."
Chih-Hung Hsieh [Mon, 4 Feb 2019 18:35:55 +0000 (10:35 -0800)]
Temporarily disable clang-tidy for dex_builder.cc.
Bug:
123880763
Test: build with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=*,-readability-*,
-google-readability-*,-google-runtime-references,-cppcoreguidelines-*,
-modernize-*,-llvm-*,-bugprone-narrowing-conversions,
-misc-non-private-member-variables-in-classes,
-misc-unused-parameters,-hicpp-*,-fuchsia-*
Change-Id: I7be72b9db232a375bf7caf3b2dbeb9c6f7368a8e
Youming Ye [Mon, 4 Feb 2019 18:03:32 +0000 (18:03 +0000)]
Merge "Add IntDef for SIP response code."
Orion Hodson [Mon, 4 Feb 2019 16:54:24 +0000 (16:54 +0000)]
Move CLIENT_PROTOCOL_VERSION to point of use
Removes dependency on constant that was in libcore.
Bug: b/
119742461
Test: m -j100 checkbuild
Change-Id: I1708652edf65789ef4bdb6e83568696f70f96bdd
Anton Hansson [Mon, 4 Feb 2019 12:23:47 +0000 (12:23 +0000)]
Merge "Separate privapp grant for dialer"
Hans Boehm [Mon, 4 Feb 2019 01:20:56 +0000 (01:20 +0000)]
Merge "Improve AsyncTask API documentation"
Suren Baghdasaryan [Sun, 3 Feb 2019 22:28:22 +0000 (22:28 +0000)]
Merge "Replace hardcoded cgroup paths"
Suren Baghdasaryan [Fri, 14 Dec 2018 18:32:22 +0000 (10:32 -0800)]
Replace hardcoded cgroup paths
Replace hardcoded cgroup paths with new processgroup library API calls,
include required headers. Add required dependencies.
Bug:
111307099
Test: builds, boots
Change-Id: Ic2dc2a94328cf1927fafaa9506537aeb213df413
Merged-In: Ic2dc2a94328cf1927fafaa9506537aeb213df413
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Chen Xu [Sat, 2 Feb 2019 01:24:00 +0000 (01:24 +0000)]
Merge "Add NR to preferred network type combination"
Amit Mahajan [Fri, 1 Feb 2019 22:25:37 +0000 (22:25 +0000)]
Merge "Fix wrong userData length and excessive userData issues"
Pengquan Meng [Fri, 1 Feb 2019 21:09:46 +0000 (21:09 +0000)]
Merge "Add signal strength converter"
Treehugger Robot [Fri, 1 Feb 2019 18:57:18 +0000 (18:57 +0000)]
Merge "[viewcompiler] Support more than 16 registers in invoke instructions"
Jordan Liu [Fri, 1 Feb 2019 18:23:26 +0000 (18:23 +0000)]
Merge "Refresh cardId before using it."
Tyler Gunn [Fri, 1 Feb 2019 17:27:58 +0000 (17:27 +0000)]
Merge "Deprecate acceptRingingCall and endCall."
Treehugger Robot [Fri, 1 Feb 2019 16:44:36 +0000 (16:44 +0000)]
Merge "Fix the wrong assignment"
Eran Messeri [Fri, 1 Feb 2019 12:51:51 +0000 (12:51 +0000)]
Merge "Add owners for KeyChain code"
Kyeongkab.Nam [Fri, 1 Feb 2019 02:51:02 +0000 (11:51 +0900)]
Fix the wrong assignment
the format value is erroneously assigned to sinkChannelMask.
Therefore, it modify to assign the format value to sinkFormat.
Test: manual
Change-Id: Iaa2f2cef0f1448a432279483b23e0057ae3ed381
Treehugger Robot [Fri, 1 Feb 2019 08:08:32 +0000 (08:08 +0000)]
Merge "Fix to register the receiver for all users"
Holly Jiuyu Sun [Fri, 1 Feb 2019 04:16:50 +0000 (04:16 +0000)]
Merge "Handle permission check for multi-active SIMs devices."
Treehugger Robot [Fri, 1 Feb 2019 02:50:31 +0000 (02:50 +0000)]
Merge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING"
Hans Boehm [Fri, 1 Feb 2019 01:22:55 +0000 (17:22 -0800)]
Improve AsyncTask API documentation
Bug:
34278255
Test: TreeHugger
Change-Id: I0347072112254f98d257a72ef1fc7c21b086df39
Pengquan Meng [Fri, 1 Feb 2019 00:29:43 +0000 (16:29 -0800)]
Add signal strength converter
This add a converter for SignalStrength response and indication.
Bug:
123532650
Test: build & current test
Change-Id: Id4cf874f6cc1798c732d6afb4a22f4d6bc4047fd
Jordan Liu [Fri, 1 Feb 2019 01:20:53 +0000 (01:20 +0000)]
Merge "Fix read/write parcel of CallAttributes"
Taesu Lee [Thu, 31 Jan 2019 05:38:56 +0000 (14:38 +0900)]
Fix wrong userData length and excessive userData issues
Added checking size excess in encodeUCS2() and an exception cause in
EncodeException to distinguish between unencodable char and size excess.
It will prevent wrong userData length and excessive userData issues
during encoding userData. Please see below one issue scenario.
stringToGsm7BitPackedWithHeader() throws an EncodeException when
septeCount > 255. The EncodeException is caught and encoding again
through encodeUCS2(). However, the length of encoded userData as UCS-2
is converted as Byte without checking size excess. Thus first byte of
userData will be wrong and total userData will exceed maximum User Data.
Test: Manual
Change-Id: Ib6df5484072d77548e8adcbcbd15ad7a401c99f8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Brad Ebinger [Thu, 31 Jan 2019 23:26:57 +0000 (23:26 +0000)]
Merge "Add new ImsException to better handle ImsService errors"
Eric Holk [Tue, 29 Jan 2019 16:32:42 +0000 (08:32 -0800)]
[viewcompiler] Support more than 16 registers in invoke instructions
This was causing the viewcompiler to crash on deeper layout hierarchies.
We fix this by reserving several scratch registers. When an invoke instruction
uses registers that don't fit in a 4-bit field, we move all of these values into
the scratch registers and use an invoke/range instruction instead. The scratch
registers are all above the highest allocated register, so they are guaranteed
not to clobber meaningful values.
Supporting more registers for invoke also required supporting
register-to-register moves, which some how we'd gotten by without so far.
Finally, to make viewcompiler fail more loudly when things go wrong, many
DCHECKs have been changed to CHECKs.
Bug:
123517491
Test: atest
Change-Id: I9eb7c9bcf1fc7d713e664b331804bdcddafc95a4
Holly Jiuyu Sun [Wed, 30 Jan 2019 23:25:24 +0000 (15:25 -0800)]
Refresh cardId before using it.
Bug:
122978614
Bug:
111614811
Test: on phone
Change-Id: I30d70b839f05183ad201a114ea12c79c730f4206
Merged-In: I30d70b839f05183ad201a114ea12c79c730f4206
Peter Kalauskas [Thu, 31 Jan 2019 22:05:47 +0000 (22:05 +0000)]
Merge "Update android.hidl.manager-V1.0-java to V1.2"
Peter Kalauskas [Tue, 22 Jan 2019 23:41:59 +0000 (15:41 -0800)]
Update android.hidl.manager-V1.0-java to V1.2
Test: Manual
Bug:
123307146
Change-Id: I8dcd291c187af2cb20fd9a8f09bd55e75a2762e1
Eric Holk [Mon, 28 Jan 2019 23:16:52 +0000 (15:16 -0800)]
[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING
PrecompiledLayoutTest makes sure that layouts generated by the viewcompiler are
equivalent to inflating from the resource XML file. We'll want to run these
tests when making changes to the viewcompiler.
Bug:
111895153
Test: atest
Change-Id: Iffa6f0f01c3f43d43feaabd1a5cd36be76650975
Jordan Liu [Wed, 30 Jan 2019 23:35:44 +0000 (15:35 -0800)]
Fix read/write parcel of CallAttributes
Fixes:
123363462
Test: manual
Change-Id: I947005d43930ad136e5d6933c950d0f27f8fbadd
Hall Liu [Thu, 31 Jan 2019 19:37:45 +0000 (11:37 -0800)]
Unhide isRttSupported in TelephonyManager
Was hidden due to development process and never unhidden.
Change-Id: I1ef35e9988ad45491b2098628024f8d96b11ae3b
Fixes:
119620879
Test: compiles
Treehugger Robot [Thu, 31 Jan 2019 19:25:59 +0000 (19:25 +0000)]
Merge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true"
Tyler Gunn [Thu, 31 Jan 2019 18:54:03 +0000 (10:54 -0800)]
Deprecate acceptRingingCall and endCall.
These APIs are replaced by CallScreeningService and the new
companion app roles in InCallService.
Test: Update Apis and verify deprecated.
Bug:
63966743
Change-Id: Ib4c4ac6b723ccd46d3052fb2b9c9f58b3151cc29
Remi NGUYEN VAN [Thu, 31 Jan 2019 15:01:49 +0000 (15:01 +0000)]
Merge "Compile CaptivePortalLogin as system_current"
Howard Chen [Thu, 31 Jan 2019 14:35:49 +0000 (14:35 +0000)]
Merge "Add the DynamicAndroid Service"
Remi NGUYEN VAN [Thu, 31 Jan 2019 14:13:22 +0000 (14:13 +0000)]
Merge "Add NetworkStackPermissionStub definitions"
Remi NGUYEN VAN [Thu, 31 Jan 2019 12:46:00 +0000 (12:46 +0000)]
Merge "Prepare CaptivePortalLogin for system_current"
Remi NGUYEN VAN [Wed, 30 Jan 2019 12:45:56 +0000 (21:45 +0900)]
Add NetworkStackPermissionStub definitions
The NetworkStackPermissionStub package is used to enforce that
permissions used by the NetworkStack are only used in packages
sharing signature with NetworkStackPermissionStub.
Permissions defined in this package are intended to be used only by the
NetworkStack: both NetworkStack and the stub APK will be signed with
a dedicated certificate to ensure that, with permissions being signature
permissions.
This APK *must* be installed, even if the NetworkStack app is not
installed, because otherwise, any application will be able to define
this permission and the system will give that application full access
to the network stack.
Test: flashed, booted
Bug:
112869080
Change-Id: Ia13a9e6a703cb7b4403697a7f7bfff0f6f3b813e
Remi NGUYEN VAN [Thu, 31 Jan 2019 11:53:53 +0000 (11:53 +0000)]
Merge "Fix bluetooth tethering on multi-user"
Eran Messeri [Thu, 31 Jan 2019 11:48:40 +0000 (11:48 +0000)]
Add owners for KeyChain code
Add the Android Enterprise Security team as OWNERS for KeyChain and
KeyChain-related code.
The KeyChain code currently lives under keystore/, which means every
change requires Keystore owners approval, but it does not make sense for
KeyChain as KeyChain is a Keystore client and is developed
independently.
Test: Gerritt upload.
Bug:
33166666
Change-Id: Idfedda9553add303439179ce10a1e75e437bbe83
Remi NGUYEN VAN [Wed, 30 Jan 2019 15:16:27 +0000 (00:16 +0900)]
Compile CaptivePortalLogin as system_current
Test: make CaptivePortalLogin
Test: flashed, boots, login works
Bug:
112869080
Change-Id: I955c1b111ce76262fe20f5891b1853de0889f4b8
Remi NGUYEN VAN [Wed, 30 Jan 2019 14:39:24 +0000 (23:39 +0900)]
Prepare CaptivePortalLogin for system_current
Includes small changes to stop using non-SystemApi endpoints.
Test: make CaptivePortalLogin
Test: flashed, login works, SSL certificate invalid flow works
Bug:
112869080
Merged-In: Ic6ce98942959705ea7ef14a7a62d33e3abf7eb72
Change-Id: Ie7ea3bab6aa8629ce4c111adee0c0699d95d4b0e
chen xu [Thu, 31 Jan 2019 08:44:52 +0000 (00:44 -0800)]
Add NR to preferred network type combination
This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.
Bug:
111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit
8bcdc4cf66e9d654fa31d7c62654ff81ee04cdc6)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
Remi NGUYEN VAN [Thu, 31 Jan 2019 07:52:04 +0000 (07:52 +0000)]
Merge changes from topic "bindprocess-resolv"
* changes:
Allow use of bindProcessToNetwork only to change private DNS bypass.
Allow bypassing private DNS via bindProcessToNetwork.
Mark Chien [Thu, 31 Jan 2019 07:23:31 +0000 (07:23 +0000)]
Merge "Add get last entitlement value callback API"
Howard Chen [Mon, 7 Jan 2019 06:10:44 +0000 (14:10 +0800)]
Add the DynamicAndroid Service
Define the DynamicAndroid with AIDL.
Add a java implementation.
Start a service instance in the system server.
Add a permission test.
Bug:
122015653
Test: Build & Test on a pixel phone with following command \
./frameworks/base/services/tests/runtests.py -e class com.android.server.DynamicAndroidTest
Merged-In: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
Remi NGUYEN VAN [Wed, 30 Jan 2019 23:46:36 +0000 (08:46 +0900)]
Fix bluetooth tethering on multi-user
Bluetooth runs as UID
1001002 when on a secondary user. With this change
the NetworkStack verifies that the calling UID matches the Bluetooth app
regardless of the user.
Test: flashed, BT reverse tethering still working as primary user
(no option to turn on as secondary user on phones)
Bug:
123655057
Change-Id: I23f9c5fa40f3bb676ac65dd8c15106c9d78309a4
Remi NGUYEN VAN [Thu, 31 Jan 2019 06:04:11 +0000 (06:04 +0000)]
Merge "Add UserHandle.getAppId to SystemApi"
Nazanin Bakhshi [Thu, 31 Jan 2019 05:23:43 +0000 (05:23 +0000)]
Merge "Add a method to determine if a reboot is required to alter the modem config"
Treehugger Robot [Thu, 31 Jan 2019 05:18:17 +0000 (05:18 +0000)]
Merge "[KA06] export keepalive offload permission as system api."
Holly Jiuyu Sun [Thu, 17 Jan 2019 22:41:14 +0000 (14:41 -0800)]
Handle permission check for multi-active SIMs devices.
For download and switch, if the caller can manage (has carrier privilege)
on any active sub on any other slots && the caller can manage the active
sub on the target slot or there is no active sub on the target slot, we
allow the caller to continue download. Otherwise, we require user consent.
For getting EID, we now check whether the caller has privilege on the
target card with the given cardId.
Other logic including the logic for single-active slot still keep the
same.
Also, open disable sub (switch to empty sub) to privileged carrier apps
instead of just system.
Bug:
36260308
Bug:
120621262
Test: unit test, test on phone
Change-Id: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
Merged-In: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
markchien [Wed, 16 Jan 2019 09:44:13 +0000 (17:44 +0800)]
Add get last entitlement value callback API
The callback would be used to notify entitlement value. If the
cache value indicates entitlement succeeded, it just fire
callback with cache value instead of run entitlement check.
Bug:
120887283
Test: atest FrameworksNetTests
Change-Id: I8afe928423bd75c54c61533a50a5c0814922ceb1
Nazanin Bakhshi [Wed, 30 Jan 2019 18:49:29 +0000 (10:49 -0800)]
Add a method to determine if a reboot is required to alter the modem config
Bug:
123101701
Test: sanity
Change-Id: I841b947efda0016c003f54ecf7853624582abab9
Merged-In: I841b947efda0016c003f54ecf7853624582abab9
(cherry picked from commit
7eca4afab4565ca1bd0f9827e93370885ba5ccea)
Lorenzo Colitti [Thu, 31 Jan 2019 04:08:24 +0000 (13:08 +0900)]
Allow use of bindProcessToNetwork only to change private DNS bypass.
Currently it is not possible to change private DNS bypass by
doing:
setProcessDefaultNetwork(network.getPrivateDnsBypassingCopy());
setProcessDefaultNetwork(network);
because the code will ignore the change. Fix this by ensuring
that we always call bindProcessToNetwork (which does not have
side effects) and then only performing the expensive operations
(flushing DNS cache, upating socket pools) if the netId changed.
Bug:
112869080
Test: None
Change-Id: I5e8999cb11d8b8c1e9eb583fa8b3932f212accff
Remi NGUYEN VAN [Thu, 31 Jan 2019 03:36:54 +0000 (12:36 +0900)]
Add UserHandle.getAppId to SystemApi
This is consistent with other methods in this class, and unbundled
system apps such as the network stack need this API to verify their
callers regardless of the userid. The method is already marked as
TestApi.
Test: m
Bug:
123655057
Change-Id: I0ecef4abcd850dc641cd70681a56cb038778c04c
Nazanin Bakhshi [Thu, 31 Jan 2019 03:44:15 +0000 (03:44 +0000)]
Merge "Add telephony API to switch multi sim config"
Tyler Gunn [Thu, 31 Jan 2019 03:05:52 +0000 (03:05 +0000)]
Merge "Call Screening / Caller ID API Changes"
Varun Anand [Thu, 31 Jan 2019 02:43:25 +0000 (02:43 +0000)]
Merge "Add an API that allows VPNs to declare themselves as metered."
Treehugger Robot [Thu, 31 Jan 2019 02:35:42 +0000 (02:35 +0000)]
Merge "Informing app idle listeners on enabled state changes."
Treehugger Robot [Thu, 31 Jan 2019 01:37:43 +0000 (01:37 +0000)]
Merge "Add sandness@ and rubinxu@ to OWNERS for UserRestrictionsUtils"
Christian Wailes [Thu, 31 Jan 2019 01:04:28 +0000 (01:04 +0000)]
Merge "Added OWNERS entries for some Zygote related files."
Jack Yu [Thu, 31 Jan 2019 00:46:04 +0000 (00:46 +0000)]
Merge "Fixed crash in data service"
Jack Yu [Wed, 30 Jan 2019 00:26:49 +0000 (16:26 -0800)]
Fixed crash in data service
Test: telephony sanity tests
Bug:
123598340
Change-Id: Ie15f8869849a2aed4a32f4f6731abd5ba1eb05cd
Hall Liu [Wed, 30 Jan 2019 23:46:20 +0000 (15:46 -0800)]
Use default methods for MBMS group call callbacks
Use default methods so that they get picked up by CTS coverage
Also this lets clients ignore certain methods easier.
Bug:
122619617
Test: CTS
Change-Id: I1f5fcdbce9548d3b4e59af7e648f29959a22774e
Nazanin Bakhshi [Wed, 30 Jan 2019 22:57:28 +0000 (14:57 -0800)]
Add telephony API to switch multi sim config
Bug:
122115649
Test: sanity
Change-Id: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
Merged-In: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
(cherry picked from commit
1e031bde1a85048bc43e72b38869d296db9ae228)
Remi NGUYEN VAN [Wed, 30 Jan 2019 22:24:12 +0000 (22:24 +0000)]
Merge "Add SystemApi for captive portal metrics"
Treehugger Robot [Wed, 30 Jan 2019 22:10:40 +0000 (22:10 +0000)]
Merge "Nuke old setAlwaysOnVpnPackageForUser method."
Varun Anand [Mon, 14 Jan 2019 19:45:33 +0000 (11:45 -0800)]
Add an API that allows VPNs to declare themselves as metered.
For VPN apps targeting Q and above, they will by default be treated as
metered unless they override this setting before establishing VPN.
Bug:
120145746
Test: atest FrameworksNetTests
Test: On device tests verifying meteredness setup correctly for apps
targeting Q and apps targeting P.
Change-Id: Ia6d1f7ef244bc04ae2e28faa59625302b5994875
Yifan Hong [Wed, 30 Jan 2019 21:09:14 +0000 (21:09 +0000)]
Merge "Use default argument for VintfObject::CheckCompatibility."
Jack Yu [Wed, 30 Jan 2019 21:02:17 +0000 (21:02 +0000)]
Merge "Added a broadcast intent for clients to listen for country changes"
Dan Sandler [Wed, 30 Jan 2019 20:58:46 +0000 (20:58 +0000)]
Merge "Some of us are weird."
Pavel Grafov [Wed, 30 Jan 2019 19:56:36 +0000 (19:56 +0000)]
Nuke old setAlwaysOnVpnPackageForUser method.
All callers have migrated to 4-argument one.
Test: builds
Bug:
77468593
Change-Id: I253515f6b0100b675505646339e5b82d373c9429
Jack Yu [Fri, 25 Jan 2019 22:50:15 +0000 (14:50 -0800)]
Added a broadcast intent for clients to listen for country changes
Added a broadcast intent ACTION_NETWORK_COUNTRY_CHANGED for clients
to listen for network country code changes. The same value can be
retrieved from TelephonyManager.getNetworkCountryIso().
Test: Manual + unit tests
Bug:
122900588
Merged-In: Ifec87dda7bae386118b7bc7523844342bd16c3ea
Change-Id: Ifec87dda7bae386118b7bc7523844342bd16c3ea
(cherry picked from commit
3d33698bf5d98a6480a9f6928d1f1e23d519cc08)
Treehugger Robot [Wed, 30 Jan 2019 19:34:47 +0000 (19:34 +0000)]
Merge "VpnDialogs should be able to control always-on VPN."
Chen Xu [Wed, 30 Jan 2019 18:01:56 +0000 (18:01 +0000)]
Merge "new API for IMS call fail cause"
Treehugger Robot [Wed, 30 Jan 2019 17:55:18 +0000 (17:55 +0000)]
Merge "[layout precompilation] Add testing hook for precompiled layouts"
Pavel Grafov [Wed, 30 Jan 2019 17:11:33 +0000 (17:11 +0000)]
VpnDialogs should be able to control always-on VPN.
Bug:
77468593
Test: atest HostsideVpnTests#testIsAlwaysOnIsLockdown
Change-Id: I0a0c6b138c748a6cb8681c20c137f70ee1fc6cf9
Andrei-Valentin Onea [Wed, 30 Jan 2019 16:42:54 +0000 (16:42 +0000)]
Merge "Initialise hidden api usage logger pre-fork"
Eric Holk [Fri, 18 Jan 2019 19:49:55 +0000 (11:49 -0800)]
[layout precompilation] Add testing hook for precompiled layouts
We want to be able to control at a fine grained level whether precompiled
layouts are enabled so we can compare inflation results with and without. This
changes adds a @TestApi method that supports this.
Bug:
111895153
Merged-In: Ib6b62d79a9ca7aefefff8639752aa5838e491038
Change-Id: I2f28f6912499825e52c17cc163be9c0fe93855cb
Lorenzo Colitti [Wed, 30 Jan 2019 14:04:54 +0000 (23:04 +0900)]
Allow bypassing private DNS via bindProcessToNetwork.
Currently, bypassing private DNS requires calling the deprecated
setProcessDefaultNetworkForHostResolution. Allow apps to do this
via the non-deprecated binProcessForNetwork as well.
This has fewer backwards compatibility concerns than the
alternative approach of having setProcessDefaultNetwork call
setProcessDefaultNetworkForHostResolution. That approach would
have been problematic, for example, if an app did:
cm.bindProcessToNetwork(network);
...
cm.bindProcessToNetwork(null);
In this case, it would be difficult to know whether to clear the
resolver mapping as well: what if an app had also called
setProcessDefaultNetworkForHostResolution?
Similarly, it would be difficult to know what to do if an app did:
cm.setProcessDefaultNetworkForHostResolution(network);
cm.bindProcessToNetwork(null);
This approach does not have these concerns, and has no effect
on apps that don't call Network.getPrivateDnsBypassingCopy, which
regular apps don't have permission to use. It also provides a
path to deprecate setProcessDefaultNetworkForHostResolution.
Bug:
112869080
Test: atest android.net.cts.ConnectivityManagerTest android.net.cts.MultinetworkApiTest
Change-Id: I4158a37b6ed87a9a9b2677c526dcfee8af48e483
Remi NGUYEN VAN [Wed, 30 Jan 2019 06:22:01 +0000 (15:22 +0900)]
Add SystemApi for captive portal metrics
The metrics go through NetworkMonitor in the NetworkStack so that they
can be upgraded to new metrics in the future.
Test: flashed, captive portal login works, metrics shown in events log
Bug:
112869080
Merged-In: I4bccfbd87bae5b2d65e45c7a5918aa45ab5d76e8
Change-Id: Ib5e2126788f8d56a00a56d7efcd33c5f9a37a6de
Andrei Onea [Fri, 25 Jan 2019 16:29:44 +0000 (16:29 +0000)]
Initialise hidden api usage logger pre-fork
Topic: hidden-api-reporting-upcall
Test: m
Bug:
119217680
Change-Id: I8722f0bf4275fea4a8faf41d7b862c04b4014824
Merged-In: I80f82092ef779a7dc1f1322cb7c05ebf5e59939b