Commit Graph

9265 Commits

Author SHA1 Message Date
Daniel Colascione
4849c3a996 Autocork package invalidations
Bug: 140788621
Test: m; strace -s512 -f -p 1 2>&1 | grep 'cache_key'
Change-Id: Iceaabee5ea8eac42934c1cc4914cdf43d2f11f58
2020-03-20 17:26:07 -07:00
Ryan Mitchell
15869daf9e Merge changes from topic "res_loader_dir" into rvc-dev am: b0544a733c am: c5f968d58b am: f0e186808a am: a857a184f8
Change-Id: I7ff89185051adb674b245082d0069768bc5bcc25
2020-03-20 18:44:14 +00:00
Ryan Mitchell
b0544a733c Merge changes from topic "res_loader_dir" into rvc-dev
* changes:
  Allow using loaders on non-RM Resources instances
  Move AssetsProvider to native layer
  Add ResourcesProvider.loadFromDirectory
  Refactor tests for ApkAsset loading APIs
  Refactor ApkAsset loading APIs
  Fix bugprone-use-after-move warnings
  Fix bugprone-use-after-move warnings
2020-03-20 18:16:30 +00:00
Ryan Mitchell
39cacf2de7 Allow using loaders on non-RM Resources instances
Currently there is a limitation where ResourcesLoaders cannot be  used
on Resources object not created through ResourcesManager. This change
creates an update handler for Resources objects that are not registered
with ResourcesManager.

The handler changes the loaders on the asset manager owned by the
Resources instance.

Bug: 151666644
Test: atest ResourceLoaderValuesTest
Change-Id: I5a89f686386bdb088dc964014e7becc0c2b4770f
2020-03-19 18:33:55 -07:00
Ryan Mitchell
4ea1e42889 Move AssetsProvider to native layer
Querying in the native layer for assets provided through
AssetsProviders does not currently work. This change refactors the
AssetProvider API to return a file descriptor that is read in the
native layer and can bubble up to the java layer.

This change also removes the InputStream API to favor of developers
using memfd_create.

Bug: 142716192
Test: atest ResourceLoaderValuesTest
Change-Id: I1a7eca0994c3b7cc32008d9a72bf91086ff0e816
2020-03-19 18:33:55 -07:00
Ryan Mitchell
c07aa70270 Add ResourcesProvider.loadFromDirectory
This API allows a directory to be loaded as if it was a zipped APK.
This is a substitute for the DirectoryAssetProvider API that
currently does not work in the native layer.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: Ia13e15653e75b421423dd56f9fe89e183ab4cb9a
2020-03-19 18:33:55 -07:00
Ryan Mitchell
ef40d2e832 Refactor ApkAsset loading APIs
To add the partner requested ResourcesProvider#loadFromDir APIs, this
change adds format type integer that allows us to reduce the number of
ApkAssets loading overrides.

This change also adds hidden offset and length based ResourcesProvider
APIs that could not make R.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: I926fde257cae701901dcd4ca408024feae8c90a6
Merged-In: I926fde257cae701901dcd4ca408024feae8c90a6
2020-03-19 18:33:55 -07:00
Evgenii Stepanov
21c6a0f598 Merge "Convert enableGwpAsan to @IntDef and rename to gwpAsanMode." into rvc-dev 2020-03-19 22:47:05 +00:00
Winson Chiu
69f16bb812 Merge "Convert InstantAppRequestInfo to getters and add @MainThread" into rvc-dev am: 5051748f22 am: 795a638f8b am: db513da27e am: 32ac62c2bc
Change-Id: I744bd1d60e19e599adf8c820d742b9a505d6f21b
2020-03-19 21:54:12 +00:00
TreeHugger Robot
8e42a566f3 Merge "Change createRequestInteractAcrossProfilesIntent to throw Exception" into rvc-dev am: cff44bd82e am: 57e6a44d8c am: bde27ad69a am: 917402b9e3
Change-Id: Ib3b534e97ff0128f5ac87e47a67b751b20adbeb1
2020-03-19 21:52:25 +00:00
Peter Wang
8c8b591bd0 Merge "[Telephony Mainline] Hide setSystemAppState and related constants for R" into rvc-dev am: 24f63edb41 am: 949ad27332 am: 762328df00 am: 8c74ced88e
Change-Id: I4272f92d9a05a4647e1081cd84949b26752d6812
2020-03-19 21:51:55 +00:00
Patrick Baumann
e4868593fd Fixes wildcard intent filter matching logic am: 28a68105e1 am: 6acd3edcbc am: 0d5003753b am: f7ca5ff0af
Change-Id: If68f6474f6a5837178e85a6fb2961102f99d5332
2020-03-19 21:39:11 +00:00
Winson Chiu
5051748f22 Merge "Convert InstantAppRequestInfo to getters and add @MainThread" into rvc-dev 2020-03-19 21:02:36 +00:00
TreeHugger Robot
cff44bd82e Merge "Change createRequestInteractAcrossProfilesIntent to throw Exception" into rvc-dev 2020-03-19 20:51:30 +00:00
Peter Wang
24f63edb41 Merge "[Telephony Mainline] Hide setSystemAppState and related constants for R" into rvc-dev 2020-03-19 20:50:10 +00:00
Patrick Baumann
6acd3edcbc Fixes wildcard intent filter matching logic am: 28a68105e1
Change-Id: I194aea06beda52f4c1e2b43ebb382935f86f0e73
2020-03-19 20:44:06 +00:00
Patrick Baumann
8a25d0fa42 Merge "Fixes wildcard intent filter matching logic" into rvc-dev 2020-03-19 20:43:32 +00:00
Songchun Fan
2577925e5b Merge "remove dynamicArgs from public methods" into rvc-dev am: 2f83e15e18 am: 4783af442c am: edc36101b5 am: f03d8116a7
Change-Id: Ifdf19c40083f91db099abe3612712ede11d0bc47
2020-03-19 20:17:55 +00:00
Songchun Fan
2f83e15e18 Merge "remove dynamicArgs from public methods" into rvc-dev 2020-03-19 19:07:18 +00:00
Evgenii Stepanov
d43d109af8 Convert enableGwpAsan to @IntDef and rename to gwpAsanMode.
Following API feedback, make
  ApplicationInfo.enableGwpAsan
  ProcessInfo.enableGwpAsan
a @IntDef integers instead of @Nullable booleans.

Rename both, and the manifest attribute, to gwpAsanMode.
Turn the manifest attribute into an enum.
Fix manifest documentation to match the implementation.

Bug: 151262688
Test: CtsGwpAsanTestCases
Exempt-From-Owner-Approval: cherrypick
Merged-In: Ie33954700e1526f9764a751e474a3f930a65e957
Change-Id: Ie33954700e1526f9764a751e474a3f930a65e957
(cherry picked from commit 7487f249dd)
2020-03-19 16:35:41 +00:00
Steve Elliott
2ba498ea7c Merge "Populate conversation notifs from shortcut info" into rvc-dev am: a7aededa7d am: a56418164b am: 8c40cf389e am: 29f9d774dd
Change-Id: Ib0cb8a48255ec96c82c253c70da8f5c9988ddd39
2020-03-19 16:16:36 +00:00
Martin Sundermeyer
23d68f1f7c Merge "Rename EXTRA_TIME to EXTRA_EPOCH_TIME." 2020-03-19 15:56:20 +00:00
Steve Elliott
a7aededa7d Merge "Populate conversation notifs from shortcut info" into rvc-dev 2020-03-19 15:18:33 +00:00
Yurii Zubrytskyi
4487582db3 Merge "Incremental apps removal on data loader failures." into rvc-dev am: 793f73812d am: e1a0a7411c am: 7a2eb4a13e am: 6889df698e
Change-Id: I363f9d32117409f4eced705a799f262b1f42669f
2020-03-19 07:22:55 +00:00
Yurii Zubrytskyi
793f73812d Merge "Incremental apps removal on data loader failures." into rvc-dev 2020-03-19 06:20:37 +00:00
Peter Wang
1b0836a826 [Telephony Mainline] Hide setSystemAppState and related constants for R
Bug: 146904426
Fix: 146904426
Test: Build
Change-Id: Ia331068ac49f6f6bc97643766b521b27bff2e6b6
2020-03-18 21:55:52 -07:00
Evgenii Stepanov
2fe7090de9 Merge "Convert enableGwpAsan to @IntDef and rename to gwpAsanMode." 2020-03-19 03:37:21 +00:00
Automerger Merge Worker
f222115d58 Merge "Merge changes from topic "netstack_api_review" into rvc-dev am: 54a6565668 am: bd5a4e48ad am: 48e949a52d" into rvc-qpr-dev-plus-aosp am: a0f5f45301
Change-Id: I598acc3fc1655e86e34a97ae76ded6973039fb07
2020-03-19 02:33:29 +00:00
Remi NGUYEN VAN
54a6565668 Merge changes from topic "netstack_api_review" into rvc-dev
* changes:
  Remove usage of Context.NETWORK_STACK_SERVICE
  Remove NETWORK_STACK_SERVICE constant
2020-03-19 01:21:29 +00:00
Sarah Chin
0f871decb2 Merge "Remove Mainline APIs for MmsManger and TelephonyManager" into rvc-dev am: 91604c2138 am: 701f4bedb7 am: 8c876265e3 am: bc8df91496
Change-Id: I8b2e7d1bf01b9bc99f1de514454cd8efba8a5908
2020-03-19 00:23:21 +00:00
Sarah Chin
91604c2138 Merge "Remove Mainline APIs for MmsManger and TelephonyManager" into rvc-dev 2020-03-18 23:15:16 +00:00
Eugene Susla
0481fe2342 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev am: 733a81b9f7 am: b153c4dd0a am: bf14f7d5b4 am: 197a6d4727
Change-Id: I34796f401ef54aff243e14b28d5f7212618f557b
2020-03-18 22:53:29 +00:00
TreeHugger Robot
c3752e30f0 Merge "Revert "Expose ACTION_USER_SWITCHED as system API"" into rvc-dev 2020-03-18 22:23:22 +00:00
Eugene Susla
bf14f7d5b4 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev am: 733a81b9f7 am: b153c4dd0a
Change-Id: I369f7357c985446ef462d62730a646b6d3243d86
2020-03-18 22:14:07 +00:00
Patrick Baumann
28a68105e1 Fixes wildcard intent filter matching logic
Fixes: 151638510
Test: atest IntentFilterTests AppEnumerationTests
Change-Id: I5f0297b5f1ca0458bc6d9ada5ac6d623b7b9a89f
2020-03-18 15:07:54 -07:00
Eugene Susla
733a81b9f7 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev 2020-03-18 21:46:40 +00:00
Sarah Chin
8ac7ce5a5d Remove Mainline APIs for MmsManger and TelephonyManager
Test: build
Bug: 144004293
Bug: 147611125
Change-Id: I44682d1f33eee02d1dcf57f4de8ce2df0a9b126d
2020-03-18 14:28:06 -07:00
Evgenii Stepanov
7487f249dd Convert enableGwpAsan to @IntDef and rename to gwpAsanMode.
Following API feedback, make
  ApplicationInfo.enableGwpAsan
  ProcessInfo.enableGwpAsan
a @IntDef integers instead of @Nullable booleans.

Rename both, and the manifest attribute, to gwpAsanMode.
Turn the manifest attribute into an enum.
Fix manifest documentation to match the implementation.

Bug: 151262688
Test: CtsGwpAsanTestCases
Change-Id: Ie33954700e1526f9764a751e474a3f930a65e957
2020-03-18 14:16:04 -07:00
Yurii Zubrytskyi
75674be988 Merge "Removing race condition accessing shared binder object." into rvc-dev am: 1d6e6bfe96 am: 92a23de26f am: 592fe5d0ef am: bd0f07a650
Change-Id: Ie789e954d3373a0d24a73f50eee57a2774ea5edd
2020-03-18 20:21:29 +00:00
Amit Mahajan
da359f6747 Merge changes from topic "Remove telephony protection level" into rvc-dev am: 0ed16d7b4b am: 86baf0e5bd am: b4d5fecc2f am: c0c199dbaa
Change-Id: Ia07892286894d3c0f5b91126fefc940073115e68
2020-03-18 20:18:36 +00:00
Amit Mahajan
9e9f7a6e93 Revert "Expose ACTION_USER_SWITCHED as system API"
This reverts commit ffe0cbe5ca.

Reason for revert: Not needed for now; will be redone in S.

Bug: 148180958
Merged-in: I426e00e1eb79af5b520fc8c59439614459720fa6
Change-Id: I426e00e1eb79af5b520fc8c59439614459720fa6
(cherry picked from commit 5a29b0447b)
2020-03-18 13:02:27 -07:00
Yurii Zubrytskyi
92a23de26f Merge "Removing race condition accessing shared binder object." into rvc-dev am: 1d6e6bfe96
Change-Id: I667d3e7a0043d98085e07bcc9ddf0de3916a0b8b
2020-03-18 19:58:32 +00:00
Yurii Zubrytskyi
1d6e6bfe96 Merge "Removing race condition accessing shared binder object." into rvc-dev 2020-03-18 19:54:55 +00:00
Amit Mahajan
86baf0e5bd Merge changes from topic "Remove telephony protection level" into rvc-dev am: 0ed16d7b4b
Change-Id: If4e18fe057a500863cbd62db7bcd68be05bd0d6d
2020-03-18 19:42:35 +00:00
Amit Mahajan
0ed16d7b4b Merge changes from topic "Remove telephony protection level" into rvc-dev
* changes:
  Remove telephony protection level.
  Revert "Allowed telephony to bind network service"
  Revert "add telephony role to some permissions needed by telephony module"
2020-03-18 19:22:36 +00:00
kholoud mohamed
e39e9b2f69 Change createRequestInteractAcrossProfilesIntent to throw Exception
Change to the API to throw a security exception if the app can't
request to interact rather than returning null, this is to address
an API review feedback.

Fixes: 151157516
Test: atest CrossProfileAppsPermissionHostSideTest
Change-Id: Icdc9798a8a315cdffbe35b118c988fb60bb285af
2020-03-18 18:56:43 +00:00
Steve Elliott
46bb2a10a2 Populate conversation notifs from shortcut info
Fixes: 151330577
Test: manual
Change-Id: Ib7b7037155fc1891935fcbe89ced9f1639378ba0
2020-03-18 13:23:51 -04:00
Alex Buynytskyy
2cf1d18fe1 Incremental apps removal on data loader failures.
Test: adb install --incremental megacity.apk over USB2.0, remove usb connection
after installed.
Bug: b/15041101

Change-Id: Ib848640dbe49c76021f7cf544de4413599c2c763
2020-03-18 10:18:48 -07:00
Daniel Colascione
b6b699b7fc Merge changes from topic "cache-cork"
* changes:
  Cork permission and package cache around bulk permission update
  Cork package information cache invalidations during boot
  Add a "cork" mechanism to prevent cache invalidation flooding
  Add TODO for resolving property-set race
2020-03-18 17:11:01 +00:00
Amit Mahajan
8cd4b39be7 Merge "Revert "Expose ACTION_USER_SWITCHED as system API"" am: 0aa828ab5d am: a558fae2e7 am: 20054220be am: ba36f724cc am: c60dafafd6
Change-Id: Iafc33ada9b53e2f054d0de248653f422617e838e
2020-03-18 16:31:10 +00:00