Commit Graph

89696 Commits

Author SHA1 Message Date
George Hodulik
cd7695dda0 Add a new "appPredictor" protection flag.
Permissions that have the new apppredictor protection flag will
be granted to the app predictor app, which is AiAi for Pixels.

The MANAGE_APP_PREDICTIONS permission is updated to use the
app predictor flag.

App Predictor for Pixels already set in ag/6019430.
Some one-off handling for app predictor already added in
ag/6025266 and ag/6025267. This cl adds the appPredictor flag.

Test: Tested manually that it worked.
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Bug:123599542

Change-Id: I0550930f78fdb57eea8680762c9b313a330968b6
2019-01-31 10:17:09 -08:00
Jorim Jaggi
9c9b866e1f Merge "Revert "Make WindowContainer surfaces container layers by default."" 2019-01-31 17:26:23 +00:00
Jorim Jaggi
f6ef18334b Revert "Make WindowContainer surfaces container layers by default."
This reverts commit 139c77763b.

Reason: Device gets put into GL comp pretty much all the time,
trashing performance and battery.

Bug: 123686354
Bug: 122561221
Change-Id: Icf658f331c407d03e844557cc2531c034aa38083
Exempt-From-Owner-Approval: Simple revert
2019-01-31 17:26:06 +00:00
TreeHugger Robot
d243eccc6e Merge "Remove TODO from API Javadoc." 2019-01-31 17:06:31 +00:00
TreeHugger Robot
62c8b56d00 Merge "[Magnifier-74] Remove MAX_IN_VIEW sourcebound type" 2019-01-31 16:09:20 +00:00
Peiyong Lin
a0baea28b7 Merge "Replace createHardwareBitmap with wrapHardwareBuffer." 2019-01-31 15:37:56 +00:00
TreeHugger Robot
dbde8ac29b Merge "Add @RequiresFeature to setPasswordHistoryLength." 2019-01-31 15:01:39 +00:00
Dario Freni
566350a93a Remove TODO from API Javadoc.
Test: N/A
Change-Id: If14a5fea300192390e8f4f04ec5ccbf39a0d8a53
Fix: 123661629
2019-01-31 14:56:06 +00:00
Remi NGUYEN VAN
45289f0bef Merge "Add NetworkStackPermissionStub definitions" am: 0fe59007ce am: d1a7c18ec6
am: f502776654

Change-Id: Ic4eb53246e7e61f7ebe6ad574a2e96a2cb4eff4b
2019-01-31 06:47:49 -08:00
Remi NGUYEN VAN
f502776654 Merge "Add NetworkStackPermissionStub definitions" am: 0fe59007ce
am: d1a7c18ec6

Change-Id: I201c5a28b7f07178a6980e582d05b36121037707
2019-01-31 06:36:24 -08:00
Remi NGUYEN VAN
d1a7c18ec6 Merge "Add NetworkStackPermissionStub definitions"
am: 0fe59007ce

Change-Id: I0cd613b09160f7a8f223bd2ec5ab29a85c219f66
2019-01-31 06:29:22 -08:00
Remi NGUYEN VAN
0fe59007ce Merge "Add NetworkStackPermissionStub definitions" 2019-01-31 14:13:22 +00:00
Narayan Kamath
79eed4bf12 Merge "PackageManager: Call RollbackManager API with the right set of installed users." 2019-01-31 14:07:04 +00:00
Martijn Coenen
81973983b0 Merge "Allow app to specify class name for app zygote preloading." 2019-01-31 12:35:13 +00:00
Remi NGUYEN VAN
3b4ee41b21 Merge "Fix bluetooth tethering on multi-user" am: 4bb4c1a792 am: 1a0ac241e8
am: b077c11c2f

Change-Id: I21169bd77683c2f991f0ad1ab76e94b3e871a565
2019-01-31 04:32:06 -08:00
Remi NGUYEN VAN
b077c11c2f Merge "Fix bluetooth tethering on multi-user" am: 4bb4c1a792
am: 1a0ac241e8

Change-Id: I73c2a061f2aeae466f650d85f16cb4587b264737
2019-01-31 04:20:50 -08: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
1a0ac241e8 Merge "Fix bluetooth tethering on multi-user"
am: 4bb4c1a792

Change-Id: I24be143b38bdda59b4cc3037e495f0cb268a2b9f
2019-01-31 04:09:29 -08:00
Remi NGUYEN VAN
4bb4c1a792 Merge "Fix bluetooth tethering on multi-user" 2019-01-31 11:53:53 +00:00
Lenka Trochtova
aa625a7caf Add @RequiresFeature to setPasswordHistoryLength.
Add the @RequiresFeature(FEATURE_SECURE_LOCK_SCREEN) annotation
to setPasswordHistoryLength for the sake of consistency -
the other password history APIs already have the annotation.

Bug: 123270501
Bug: 111072170
Bug: 111071972
Test: make

Change-Id: I0a321d6bb1b8fb2a4c7ccebfd7c46b2dc9ad8956
2019-01-31 11:47:46 +01:00
TreeHugger Robot
d47fcfdc72 Merge "Adding support for adaptive battery saver." 2019-01-31 08:37:32 +00:00
Remi NGUYEN VAN
3884eeeb20 Merge changes from topic "bindprocess-resolv" am: 643e60b0fe am: 291e3726cd
am: 7a71796b0a

Change-Id: I3f35e6719db4a1152281d1143e8756e726d51e64
2019-01-31 00:30:06 -08:00
Remi NGUYEN VAN
7a71796b0a Merge changes from topic "bindprocess-resolv" am: 643e60b0fe
am: 291e3726cd

Change-Id: I80f85170981c2f5b1ef949b5db88baf5fc101cd0
2019-01-31 00:19:37 -08:00
Remi NGUYEN VAN
291e3726cd Merge changes from topic "bindprocess-resolv"
am: 643e60b0fe

Change-Id: I3aacc6c2ae5242e28eec6e9e8e2a9a4b3e4f715d
2019-01-31 00:11:25 -08:00
Mark Chien
c85d681cec Merge "Add get last entitlement value callback API" am: 4163ff7928 am: 524fbd619e
am: a31f85f6dc

Change-Id: If67c8d092dd2c40f95cbe423bc694aa349039541
2019-01-30 23:59:01 -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
a31f85f6dc Merge "Add get last entitlement value callback API" am: 4163ff7928
am: 524fbd619e

Change-Id: I42892bdacaa41f9cea7e653f0bb9b5497192e5f6
2019-01-30 23:49:43 -08:00
Mark Chien
524fbd619e Merge "Add get last entitlement value callback API"
am: 4163ff7928

Change-Id: I1961297c3fa31f5575ae3a11a3fc90d695cb7de5
2019-01-30 23:35:15 -08:00
Michael Groover
3684f14c48 Merge "Set Build.SERIAL to UNKNOWN for all target SDK" 2019-01-31 07:29:15 +00:00
Mark Chien
4163ff7928 Merge "Add get last entitlement value callback API" 2019-01-31 07:23:31 +00: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
5de539172f Merge "Add UserHandle.getAppId to SystemApi" am: b334bbefd4 am: dac257d27c
am: ac358e2951

Change-Id: I64f2353311978ac585e6a2555adedbe967e23588
2019-01-30 22:41:52 -08:00
Hung-ying Tyan
26a8573b27 Merge "Add the DynamicAndroid Service" 2019-01-31 06:31:51 +00:00
Remi NGUYEN VAN
ac358e2951 Merge "Add UserHandle.getAppId to SystemApi" am: b334bbefd4
am: dac257d27c

Change-Id: If35e251dbbbca2839529bbb999c6813fb601d1c0
2019-01-30 22:29:31 -08:00
Anson Lin
9898084744 Merge "SeamlessMedia button as one of media action button" 2019-01-31 06:24:21 +00:00
linanson
2bcd403526 SeamlessMedia button as one of media action button
- Implement the mechanism for Seamless button in the group of media action button.
- Have a fake Seamless icon in the right of media action button group.
- Need to bind with MediaOutputSlice that are implementing.

Bug: 118428931
Test: Build pass
Change-Id: Idc51d416cc1fc85babdc83d138c8558db5ed5d8e
2019-01-31 14:20:49 +08:00
Howard Chen
0a94764738 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

Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
2019-01-31 14:19:34 +08:00
Remi NGUYEN VAN
dac257d27c Merge "Add UserHandle.getAppId to SystemApi"
am: b334bbefd4

Change-Id: I6be04cb335e642921d67a68970078c2cae4af4e7
2019-01-30 22:17:58 -08:00
Anson Lin
75ef7a2723 Merge "Set the flag string "settings_seamless_transfer" as a static constant" 2019-01-31 06:17:47 +00:00
Remi NGUYEN VAN
b334bbefd4 Merge "Add UserHandle.getAppId to SystemApi" 2019-01-31 06:04:11 +00:00
TreeHugger Robot
bdd22d05a9 Merge "Consolidate wake-screen settings" 2019-01-31 05:30:10 +00: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
Varun Anand
066e326222 Merge "Add an API that allows VPNs to declare themselves as metered." am: 62a9b66a38 am: 9563c15d09
am: b8ae5b64a9

Change-Id: I74c6eceaa7444d0cc79fac3b94151a1bdeb63037
2019-01-30 20:11:09 -08:00
Lorenzo Colitti
e5ca11604e 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
2019-01-31 13:08:24 +09:00
Remi NGUYEN VAN
9e70a42252 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
2019-01-31 12:52:03 +09:00
linanson
5fbcaf46c1 Set the flag string "settings_seamless_transfer" as a static constant
Bug: 118428931
Test: Build pass
Change-Id: I1eb31307d4a1a63f4217f031bcb4d8bb856babdc
2019-01-31 11:42:01 +08:00
Varun Anand
b8ae5b64a9 Merge "Add an API that allows VPNs to declare themselves as metered." am: 62a9b66a38
am: 9563c15d09

Change-Id: Iab1d2a3bf27ec9c033253ccd48ce8026e3b18799
2019-01-30 19:39:50 -08:00
Varun Anand
9563c15d09 Merge "Add an API that allows VPNs to declare themselves as metered."
am: 62a9b66a38

Change-Id: Iadf012754e2e39f4b99efc97d5666dd0bc1ff2d6
2019-01-30 19:09:30 -08:00
Varun Anand
62a9b66a38 Merge "Add an API that allows VPNs to declare themselves as metered." 2019-01-31 02:43:25 +00:00
TreeHugger Robot
1fe4278594 Merge "Test Context's opPackageName should be the target package name" 2019-01-31 02:40:31 +00:00