379391 Commits

Author SHA1 Message Date
Colin Cross
98d3da8651 Move hiddenapi rules to Soong
The hiddenapi rules are now in build/soong/java/hiddenapi_singleton.go.
The dist goals are still here for now.

Bug: 123645297
Test: m checkbuild
Change-Id: Id25b2bf0d6b49be2f908a4613f012773fb1f02c4
2019-02-05 12:49:54 -08:00
Youming Ye
0d16222125 Merge "Add IntDef for SIP response code." 2019-02-04 18:03:32 +00:00
Anton Hansson
5d7fc9568e Merge "Separate privapp grant for dialer" 2019-02-04 12:23:47 +00:00
Hans Boehm
1cbb20b2df Merge "Improve AsyncTask API documentation" 2019-02-04 01:20:56 +00:00
Suren Baghdasaryan
1e4b9d7583 Merge "Replace hardcoded cgroup paths" 2019-02-03 22:28:22 +00:00
Suren Baghdasaryan
9c9b025715 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>
2019-02-02 17:03:41 +00:00
Chen Xu
996f047394 Merge "Add NR to preferred network type combination" 2019-02-02 01:24:00 +00:00
Amit Mahajan
13d5d5a1c8 Merge "Fix wrong userData length and excessive userData issues" 2019-02-01 22:25:37 +00:00
Pengquan Meng
b8e4cd87de Merge "Add signal strength converter" 2019-02-01 21:09:46 +00:00
Treehugger Robot
f96ebc501e Merge "[viewcompiler] Support more than 16 registers in invoke instructions" 2019-02-01 18:57:18 +00:00
Jordan Liu
84d250c18d Merge "Refresh cardId before using it." 2019-02-01 18:23:26 +00:00
Tyler Gunn
6e3a88a3e2 Merge "Deprecate acceptRingingCall and endCall." 2019-02-01 17:27:58 +00:00
Treehugger Robot
cf74daba15 Merge "Fix the wrong assignment" 2019-02-01 16:44:36 +00:00
Eran Messeri
0f9319ed1b Merge "Add owners for KeyChain code" 2019-02-01 12:51:51 +00:00
Kyeongkab.Nam
7a40f70c4a 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
2019-02-01 17:22:08 +09:00
Treehugger Robot
c72866785a Merge "Fix to register the receiver for all users" 2019-02-01 08:08:32 +00:00
Holly Jiuyu Sun
2638587995 Merge "Handle permission check for multi-active SIMs devices." 2019-02-01 04:16:50 +00:00
Treehugger Robot
1cb64c6a85 Merge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING" 2019-02-01 02:50:31 +00:00
Hans Boehm
13060ffbd8 Improve AsyncTask API documentation
Bug: 34278255
Test: TreeHugger
Change-Id: I0347072112254f98d257a72ef1fc7c21b086df39
2019-01-31 17:36:36 -08:00
Pengquan Meng
45fcd30fb0 Add signal strength converter
This add a converter for SignalStrength response and indication.

Bug: 123532650
Test: build & current test
Change-Id: Id4cf874f6cc1798c732d6afb4a22f4d6bc4047fd
2019-01-31 17:32:32 -08:00
Jordan Liu
ed3af9f960 Merge "Fix read/write parcel of CallAttributes" 2019-02-01 01:20:53 +00:00
Taesu Lee
309fc2d4a8 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>
2019-02-01 08:51:56 +09:00
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00:00
Eric Holk
d1b4383660 [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
2019-01-31 15:15:14 -08:00
Holly Jiuyu Sun
d0b187b204 Refresh cardId before using it.
Bug: 122978614
Bug: 111614811
Test: on phone
Change-Id: I30d70b839f05183ad201a114ea12c79c730f4206
Merged-In: I30d70b839f05183ad201a114ea12c79c730f4206
2019-01-31 14:46:33 -08:00
Peter Kalauskas
b9e216c2b6 Merge "Update android.hidl.manager-V1.0-java to V1.2" 2019-01-31 22:05:47 +00:00
Peter Kalauskas
65589e9563 Update android.hidl.manager-V1.0-java to V1.2
Test: Manual
Bug: 123307146
Change-Id: I8dcd291c187af2cb20fd9a8f09bd55e75a2762e1
2019-01-31 21:40:12 +00:00
Eric Holk
8c933e5a9d [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
2019-01-31 21:22:06 +00:00
Jordan Liu
6192edb752 Fix read/write parcel of CallAttributes
Fixes: 123363462
Test: manual
Change-Id: I947005d43930ad136e5d6933c950d0f27f8fbadd
2019-01-31 20:03:30 +00:00
Treehugger Robot
f9ec508556 Merge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true" 2019-01-31 19:25:59 +00:00
Tyler Gunn
9bd8db4af7 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
2019-01-31 10:54:03 -08:00
Remi NGUYEN VAN
a5a7af11d7 Merge "Compile CaptivePortalLogin as system_current" 2019-01-31 15:01:49 +00:00
Howard Chen
0b2057db02 Merge "Add the DynamicAndroid Service" 2019-01-31 14:35:49 +00:00
Remi NGUYEN VAN
0fe59007ce Merge "Add NetworkStackPermissionStub definitions" 2019-01-31 14:13:22 +00:00
Remi NGUYEN VAN
74b1c8626e Merge "Prepare CaptivePortalLogin for system_current" 2019-01-31 12:46:00 +00:00
Remi NGUYEN VAN
d8c75a0438 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
2019-01-31 21:16:13 +09:00
Remi NGUYEN VAN
4bb4c1a792 Merge "Fix bluetooth tethering on multi-user" 2019-01-31 11:53:53 +00:00
Eran Messeri
bf0728bca8 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
2019-01-31 11:48:40 +00:00
Remi NGUYEN VAN
38d20263af Compile CaptivePortalLogin as system_current
Test: make CaptivePortalLogin
Test: flashed, boots, login works
Bug: 112869080
Change-Id: I955c1b111ce76262fe20f5891b1853de0889f4b8
2019-01-31 18:15:03 +09:00
Remi NGUYEN VAN
47274275cf 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
2019-01-31 18:14:54 +09:00
chen xu
a143659d29 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
2019-01-31 00:44:52 -08:00
Remi NGUYEN VAN
643e60b0fe Merge changes from topic "bindprocess-resolv"
* changes:
  Allow use of bindProcessToNetwork only to change private DNS bypass.
  Allow bypassing private DNS via bindProcessToNetwork.
2019-01-31 07:52:04 +00:00
Mark Chien
4163ff7928 Merge "Add get last entitlement value callback API" 2019-01-31 07:23:31 +00:00
Howard Chen
f17f42b0df 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
2019-01-31 15:10:21 +08:00
Remi NGUYEN VAN
3b906878f8 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
2019-01-31 16:03:21 +09:00
Remi NGUYEN VAN
b334bbefd4 Merge "Add UserHandle.getAppId to SystemApi" 2019-01-31 06:04:11 +00:00
Nazanin Bakhshi
3483983223 Merge "Add a method to determine if a reboot is required to alter the modem config" 2019-01-31 05:23:43 +00:00
Treehugger Robot
6943546771 Merge "[KA06] export keepalive offload permission as system api." 2019-01-31 05:18:17 +00:00
Holly Jiuyu Sun
a2c1da0847 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
2019-01-30 20:33:31 -08:00
markchien
f273127880 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
2019-01-31 12:31:55 +08:00