Commit Graph

17901 Commits

Author SHA1 Message Date
TreeHugger Robot
f594c62ec2 Merge "Change SystemApi as per API council feedback" 2017-08-11 14:41:20 +00:00
Neil Fuller
8bb4140516 Change SystemApi as per API council feedback
API council have requested a manifest constant be added
to the SystemApi directly in preference to an indirect
SystemApi constant here:
android.provider.TimeZoneRulesDataContract.READER_PERMISSION.

This is the first of three changes to (1) add the new constant,
(2) switch over code using the constant, (3) remove the
constant.

Bug: 64568899
Test: None, build only
Change-Id: Ib9766591979886d1db3b1d7321536dabf5cf81a8
2017-08-11 13:35:46 +01:00
John Reck
d767cec541 Merge "SharedMemory API changes" into oc-mr1-dev am: edf3384307
am: 20933d0454

Change-Id: I08d5eb7c5cf99c0af6f94a5f88af0ca8328c34f2
2017-08-10 20:11:47 +00:00
John Reck
20933d0454 Merge "SharedMemory API changes" into oc-mr1-dev
am: edf3384307

Change-Id: Ib5f641f37e73fc6b236fe90c229bb3855025375c
2017-08-10 19:53:25 +00:00
TreeHugger Robot
edf3384307 Merge "SharedMemory API changes" into oc-mr1-dev 2017-08-10 19:41:53 +00:00
Hall Liu
7c33bb4aed Merge "Hide the SEND_EMBMS_INTENTS permission" into oc-mr1-dev am: d259d8b80f
am: 6b3ce948c6

Change-Id: Iba626fe3720d0cb1d8b714a9eed7945382a662f4
2017-08-10 18:56:55 +00:00
Hall Liu
6b3ce948c6 Merge "Hide the SEND_EMBMS_INTENTS permission" into oc-mr1-dev
am: d259d8b80f

Change-Id: I5abcbb619d38beb28be00f34a1ee3cffe351c721
2017-08-10 18:29:19 +00:00
Hall Liu
d259d8b80f Merge "Hide the SEND_EMBMS_INTENTS permission" into oc-mr1-dev 2017-08-10 18:20:47 +00:00
Jeff Sharkey
3994a887f2 Merge "Fix handling of @removed APIs." into oc-mr1-dev am: 5cb2d64b9b
am: aff3d6cf6b

Change-Id: Idab5d726027922c66b0ecfe23c3d4f1ea9d2b7a5
2017-08-10 15:37:52 +00:00
Jeff Sharkey
aff3d6cf6b Merge "Fix handling of @removed APIs." into oc-mr1-dev
am: 5cb2d64b9b

Change-Id: I1ac9843cc17efc4ea088e5738c38dcd2ad79e5c5
2017-08-10 15:26:22 +00:00
Jeff Sharkey
5cb2d64b9b Merge "Fix handling of @removed APIs." into oc-mr1-dev 2017-08-10 15:18:58 +00:00
Dianne Hackborn
47d8634cb7 Merge "Go: add features for low ram / normal ram devices." into oc-mr1-dev am: c75f43c1ab
am: a6a33976a3

Change-Id: I0086f082e8d7b74f64dc9e762048e4f0e9579812
2017-08-10 04:53:22 +00:00
Dianne Hackborn
a6a33976a3 Merge "Go: add features for low ram / normal ram devices." into oc-mr1-dev
am: c75f43c1ab

Change-Id: Icf9405de74c4d137b9c8cd0981846a08862ef231
2017-08-10 04:43:52 +00:00
TreeHugger Robot
c75f43c1ab Merge "Go: add features for low ram / normal ram devices." into oc-mr1-dev 2017-08-10 04:35:09 +00:00
Dianne Hackborn
2a103f126f Go: add features for low ram / normal ram devices.
Automatically populated from ActivityManager.isLowRamDevice().

Test: manual

Change-Id: I027b8ae0205c9793a91ffdd2635479610a62aff9
2017-08-09 17:14:00 -07:00
Hall Liu
14f52d9e9d Hide the SEND_EMBMS_INTENTS permission
Bug: 64340162
Change-Id: Ia9370c0e80bb3a99df5008febc994846204272c1
2017-08-09 16:25:45 -07:00
Jeff Sharkey
f52db085e2 Fix handling of @removed APIs.
The @removed docs tag means that a particular API should be considered
as removed from the API surface area that it otherwise would have been
exposed through.

This set of CLs is fixing a bug where we @removed had been treated as
always removing from the public API.

Bug: 62341924
Test: make -j32 update-api
Change-Id: I336b2df4804e947a0b93a12269d6e7c5594eef7e
2017-08-09 09:18:20 -06:00
Todd Kennedy
fab8fa6b81 Merge "Allow applications to define failure handlers" into oc-mr1-dev am: e551d361ac
am: 4cb468814c

Change-Id: Idc4d9eec433255f653a8cc842ce73f2d436973e4
2017-08-09 15:18:14 +00:00
Todd Kennedy
4cb468814c Merge "Allow applications to define failure handlers" into oc-mr1-dev
am: e551d361ac

Change-Id: I5c325e4bef2274d35fec3a0653043745383c77b6
2017-08-09 15:05:44 +00:00
TreeHugger Robot
e551d361ac Merge "Allow applications to define failure handlers" into oc-mr1-dev 2017-08-09 14:55:09 +00:00
Philip P. Moltmann
a064b6d12b Revert "Revert session-transfer change" am: 7460c5917b
am: ccf0225c38

Change-Id: I30cc91c765e05e33f9b60005d29ad5f954a2fd23
2017-08-09 01:40:51 +00:00
Philip P. Moltmann
ccf0225c38 Revert "Revert session-transfer change"
am: 7460c5917b

Change-Id: I9f7927993fb3166cc6aeca751dd97aebc277a5db
2017-08-09 01:11:49 +00:00
TreeHugger Robot
81021c77c8 Merge changes from topic 'ClosebySystem' into oc-mr1-dev
* changes:
  Allow to close session from wrong context.
  Prevent closing by prev owner after transfer.
  Revert "Revert session-transfer change"
2017-08-09 01:01:11 +00:00
Todd Kennedy
f39e0569ca Merge "Add virtual preload bit to ApplicationInfo" into oc-mr1-dev am: 6bf2990e28
am: bc0e1e2766

Change-Id: Ie127f827fc1879dcb04f64810ff5c20446e4905a
2017-08-09 00:29:17 +00:00
Todd Kennedy
bc0e1e2766 Merge "Add virtual preload bit to ApplicationInfo" into oc-mr1-dev
am: 6bf2990e28

Change-Id: Ia860bf5f5fc6b5851f076960e8228952f733e3ba
2017-08-08 23:58:02 +00:00
TreeHugger Robot
6bf2990e28 Merge "Add virtual preload bit to ApplicationInfo" into oc-mr1-dev 2017-08-08 23:33:03 +00:00
Todd Kennedy
d0084f7583 Allow applications to define failure handlers
Fixes: 37956764
Test: Manual
Test: Create a test app with no handler, see it's not passed to the installer
Test: Create a test app with a handler, see it's passed to the installer
Test: Create a test app with multiple handlers, see one is passed to the installer
Test: Create a test app with a handler defined in a split, see it's not passed to the installer
Change-Id: Idfc3648154afca7ec300019d9695417274118d6f
2017-08-08 22:17:13 +00:00
Todd Kennedy
5eb5a7db83 Add virtual preload bit to ApplicationInfo
Change-Id: I2735b3823a8709b2ffb65cc8085ffcd952d3e1f2
Fixes: 64205417
Test: Manual
Test: Create a sample app and install it as a normal app
Test: See that it returns 'false' for "isVirtualPreload"
Test: Create a sample app and install it as a virtual preload ["--preload"]
Test: See that it returns 'true' for "isVirtualPreload"
Test: Run sample apps after reboot and see they return the correct value
2017-08-08 13:50:07 -07:00
Philip P. Moltmann
7460c5917b Revert "Revert session-transfer change"
This reverts commit 9890f8b426.

Bug: 64467704
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases --test=android.content.pm.cts.InstallSessionParamsUnitTest
      cts-tradefed run singleCommand cts-dev -m CtsContentTestCases --test=android.content.pm.cts.InstallSessionTransferTest
Change-Id: I0cc7e1129d85e4d0de16ade44232a9bd381d6c04
2017-08-08 13:17:15 -07:00
Philip P. Moltmann
3cb46e1a86 Merge "Revert session-transfer change" into oc-mr1-dev am: 7bec053dff
am: ddeb0a578a

Change-Id: I1dd82bedd35f297931608595da7f8b1e496e8285
2017-08-08 20:07:04 +00:00
Philip P. Moltmann
ddeb0a578a Merge "Revert session-transfer change" into oc-mr1-dev
am: 7bec053dff

Change-Id: I0e9f40dccf423899b48ba8af9f2c266d6f32dc1f
2017-08-08 19:57:56 +00:00
Philip P. Moltmann
7bec053dff Merge "Revert session-transfer change" into oc-mr1-dev 2017-08-08 19:49:13 +00:00
Philip P. Moltmann
9890f8b426 Revert session-transfer change
This reverts:
5d74493f64
94deaf7725

Bug: 64467704
Test: none, 100% revert
Change-Id: I6534c19c594dadfa41457725988485a67f0ed45f
2017-08-08 11:04:56 -07:00
Fyodor Kupolov
88f14dd257 Merge "API Review update for SQLiteDatabase" into oc-mr1-dev am: 3102245b62
am: 7aaf486267

Change-Id: I5bddc3a272a637c8c5a158a7d871087929075213
2017-08-08 17:03:42 +00:00
Fyodor Kupolov
7aaf486267 Merge "API Review update for SQLiteDatabase" into oc-mr1-dev
am: 3102245b62

Change-Id: I0997e70779456c1181d7750c1daa539afbc8dc0e
2017-08-08 16:55:10 +00:00
Fyodor Kupolov
3102245b62 Merge "API Review update for SQLiteDatabase" into oc-mr1-dev 2017-08-08 16:46:24 +00:00
Philip P. Moltmann
615fefc04a Merge changes from topic 'TransferInstallSession-oc-mr1-dev' into oc-mr1-dev am: fdaad13803
am: f288de8421

Change-Id: Ia429dfd3ee1f44094ba519d22300297326f3421e
2017-08-08 01:07:17 +00:00
Philip P. Moltmann
f288de8421 Merge changes from topic 'TransferInstallSession-oc-mr1-dev' into oc-mr1-dev
am: fdaad13803

Change-Id: I2eaaf989fb6e5f006edd974d56386731d778e604
2017-08-08 00:54:48 +00:00
Tomasz Wasilczyk
98ea4bfa1d Merge "Change VENDOR program types to range." into oc-mr1-dev am: ecacb9850c
am: 24d0f84bf1

Change-Id: Idc444801a6da7c19cfa947db07d84f24162a52c4
2017-08-08 00:49:24 +00:00
TreeHugger Robot
fdaad13803 Merge changes from topic 'TransferInstallSession-oc-mr1-dev' into oc-mr1-dev
* changes:
  Allow to read all params used to create session.
  Allow to transfer+seal a install session
2017-08-08 00:45:48 +00:00
Tomasz Wasilczyk
24d0f84bf1 Merge "Change VENDOR program types to range." into oc-mr1-dev
am: ecacb9850c

Change-Id: I702d77c693303f903d1daabd8746a4d5ea4cfb5f
2017-08-08 00:41:04 +00:00
Tomasz Wasilczyk
ecacb9850c Merge "Change VENDOR program types to range." into oc-mr1-dev 2017-08-08 00:35:09 +00:00
Felipe Leme
3bec59a777 Merge "Minor Autofill changes after API council review." into oc-mr1-dev am: be3e4a6285
am: a9adf37e1d

Change-Id: Ic266dfc62284b345f707a3dee36e0dcf4faca328
2017-08-08 00:01:28 +00:00
Felipe Leme
a9adf37e1d Merge "Minor Autofill changes after API council review." into oc-mr1-dev
am: be3e4a6285

Change-Id: Ia2c1c3cf1987ac0567a6d04e8f9c10d4f2b62539
2017-08-07 23:53:09 +00:00
TreeHugger Robot
be3e4a6285 Merge "Minor Autofill changes after API council review." into oc-mr1-dev 2017-08-07 23:35:56 +00:00
John Reck
e4f60cce85 SharedMemory API changes
Hides getFd & getFileDescriptor due to lifecycle concenrs.
Adds ASharedMemory_dupFromJava to allow sharing a shared
memory region between Java & Native as safe as possible.
Mis-use results in an FD leak instead of double-close.

Bug: 64394076
Test: SharedMemory CTS tests
Change-Id: I01a5eb978fc4e99559a79baac75754c32f13bdc4
2017-08-07 15:36:10 -07:00
Fyodor Kupolov
76436c04a4 API Review update for SQLiteDatabase
SQLiteDatabase openDatabase -- should take File for first parameter
  instead of a String path

SQLiteDatabase.OpenParams.Builder -- make sure the javadocs says what
  the default openFlags is and default idle connection timeout

SQLiteDatabase createInMemory -- throw if it has trouble instead of
  returning null.

Test: cts/SQLiteDatabaseTest
Bug: 64331777
Bug: 64331778
Bug: 64330914

Change-Id: Ibecf4f4a6498795f9a5d12b94b77481e5745b523
2017-08-07 11:12:38 -07:00
Philip P. Moltmann
5d74493f64 Allow to read all params used to create session.
So that they can be verified by the app calling commit().

This really only makes sense if the app calling commit is different from
the app that created the session.

Bug: 37281396
Test: cts-tradefed run cts-dev -m CtsContentTestCases --test=android.content.pm.cts.InstallSessionTransferTest
      Installed and uninstalled packages via the PackageInstaller app

Change-Id: I5c954ca59b7582555bea847f3ddbba0aeefba301
2017-08-07 10:50:58 -07:00
Philip P. Moltmann
94deaf7725 Allow to transfer+seal a install session
... so that one package can supply the data and another one can issue
the commit.

Also allow reading of sealed sessions.

Also lock more in PackageInstallerSession so that we can be sure the
session is not used by the old package anymore once transferred and that
all calls into the session work on consistent data.

Bug: 37281396
Test: cts-tradefed run cts-dev -m CtsContentTestCases --test=android.content.pm.cts.InstallSessionTransferTest
      Installed and uninstalled packages via the PackageInstaller app
      Installed and uninstalled packages via the Google Play Store

Change-Id: Id4b7a0071d703b7d18c9f5bf2bd15ebf67086d07
2017-08-07 10:50:57 -07:00
Tomasz Wasilczyk
d2b5cfbdaa Change VENDOR program types to range.
Bug: b/64331420
Test: instrumentation
Change-Id: If5c56f09e2b9e272a40f0ca074a590ca6ec3a703
2017-08-07 10:20:24 -07:00