Commit Graph

9091 Commits

Author SHA1 Message Date
Automerger Merge Worker
36250492d2 Merge "Deprecate long-obsolete android:anyDensity" into rvc-dev am: e2e7cd5d4c am: 026b6088f6 am: acd27d5fbf am: b8fca47bcf
Change-Id: Ifa3b33c4ca08b83eb17aa53b48395903502e8b87
2020-03-07 23:04:15 +00:00
John Reck
e2e7cd5d4c Merge "Deprecate long-obsolete android:anyDensity" into rvc-dev 2020-03-06 20:37:53 +00:00
Automerger Merge Worker
a46bddc896 Merge "Use flags to indicate reason for Uri changes." into rvc-dev am: 189e00a46b am: aeb824386b am: de37673a75 am: b605e547fe am: 1a7d76a467
Change-Id: Ia22f2081e1438b48aca89bead528aa567b3a7a4f
2020-03-06 02:08:53 +00:00
Evgenii Stepanov
c3dca56edd Merge "Add "enableGwpAsan" tag to android manifest." 2020-03-06 00:37:11 +00:00
John Reck
7ce90af518 Deprecate long-obsolete android:anyDensity
This API exists for compatibility with pre-Donut applications
that were not properly density aware. As such, there's no
current reason to use this. So deprecate it.

Bug: 150869482
Test: builds
Change-Id: Ie12957988d5f5d292277a291a20b565c2e3ef46e
2020-03-05 16:30:30 -08:00
Jeff Sharkey
189e00a46b Merge "Use flags to indicate reason for Uri changes." into rvc-dev 2020-03-06 00:04:24 +00:00
TreeHugger Robot
8caff7dc81 Merge "DO NOT MERGE: Remove AppSearch from Android R." into rvc-dev 2020-03-05 21:09:00 +00:00
Evgenii Stepanov
db076c83ad Add "enableGwpAsan" tag to android manifest.
This tag can be used to enable and disable gwp-asan on applications and
their components. The default setting is disabled, except for the system
applications which are enabled with a small probability (approx. 1% of
processes).

Enabling gwp-asan can be used to crowd test an app.

This change includes a compat feature that overrides the default value
of enableGwpAsan for an app.

Bug: 149991821
Test: atest CtsGwpAsanTestCases

Change-Id: I5eb647c517e5487b1d1eed6b9a43242490f19289
2020-03-05 12:33:18 -08:00
Jeff Sharkey
d70325359e Use flags to indicate reason for Uri changes.
As part of MediaProvider becoming a Mainline module, some partners
need to understand more details about what triggered a Uri change
notification.  This helps listening apps avoid making expensive and
race-condition-prone calls back into MediaProvider; typically when
they're only interested in insert and delete operations.  This change
uses the existing "flags" argument to communicate the reason.

This change adds overloads to ContentObserver for listening apps to
receive these flags.  In addition, we add overloads that deliver a
clustered set of multiple Uris together in a single Binder transaction
to improve overall efficiency.  (This matches well with the existing
CR.notifyChange() API that we added earlier this year, since they
both work with Iterable<Uri>.)

Tests to verify that we only collapse Uris together when all other
method arguments are identical.

Bug: 147778404, 144464323
Test: atest CtsDatabaseTestCases
Test: atest CtsContentTestCases:android.content.cts.ContentResolverTest
Test: atest FrameworksServicesTests:com.android.server.content.ObserverNodeTest
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I0bbd8a8b4a898ab6f891d085de0ecb4d68cbe302
2020-03-05 11:01:23 -07:00
Automerger Merge Worker
b6585d21cb Merge "Make ActivityInfo.preferMinimalPostProcessing a flag" into rvc-dev am: fc1430a39e am: 6d9e77306d am: bbddd16505 am: ec0afe1111
Change-Id: If309659d6957d3a55b75f49baf74d4b12940aa4a
2020-03-05 16:20:23 +00:00
Automerger Merge Worker
f2108d9a04 Merge "Logs for test & debug blocks" into rvc-dev am: 3b91ac3e6c am: 4827c44bb1 am: 327ec86646 am: 6c71255d54
Change-Id: I535896048ee7bb6def635cc93c385644c378f782
2020-03-05 16:18:44 +00:00
Galia Peycheva
fc1430a39e Merge "Make ActivityInfo.preferMinimalPostProcessing a flag" into rvc-dev 2020-03-05 15:45:06 +00:00
Patrick Baumann
3b91ac3e6c Merge "Logs for test & debug blocks" into rvc-dev 2020-03-05 15:25:46 +00:00
Automerger Merge Worker
4e9f8f4f5f Merge "Extract source stamp during app install" into rvc-dev am: 759dbb7cf6 am: 08d82e4c1a am: 2b769b4c6e am: 0efac82be9
Change-Id: Id70d92aac814238d4ef9717834b2a50ee8a7c2b2
2020-03-05 00:31:59 +00:00
Khaled Abdelmohsen
759dbb7cf6 Merge "Extract source stamp during app install" into rvc-dev 2020-03-04 23:47:33 +00:00
Automerger Merge Worker
82997c719b Merge "make IDataLoaderManager and IDataLoader stable interfaces" into rvc-dev am: ecd96c2be4 am: 1716f68245 am: bbb4c0e9fc am: a275888d0a
Change-Id: I687a54a9636b43193c80e4c318e6f41e3b448005
2020-03-04 23:23:35 +00:00
Songchun Fan
ecd96c2be4 Merge "make IDataLoaderManager and IDataLoader stable interfaces" into rvc-dev 2020-03-04 22:53:12 +00:00
Patrick Baumann
4b4918782c Logs for test & debug blocks
This change adds logging for debuggable and test-only apps when they are
the caller and visibility of another app is blocked due to app
enumeration.

It also adds an adb command to turn logging on and off for other apps to
help developers while debugging issues.

Test: atest AppsFilterTest AppEnumerationTests PackageManagerPerfTest
Bug: 145623959
Change-Id: I1fa930ef40bf08b00c41f51aa25c50b2189395bf
2020-03-04 13:47:33 -08:00
Khaled Abdelmohsen
02067c2e4f Extract source stamp during app install
Bug: 148006415
Test: atest FrameworksServicesTests:AppIntegrityManagerServiceImplTest
Change-Id: I3453c94d93e35b01de1a353d592e01db514e8921
2020-03-04 19:36:11 +00:00
Automerger Merge Worker
8af796bdd6 Merge "Restore PackageParser UnsupportedAppUsage" into rvc-dev am: 1c275d93d2 am: 2535cd4ec9 am: ab6eb01a1e am: 65a1a4d70f
Change-Id: I821db3b1271372d6da7e8c718cb538f3fd1ac3e4
2020-03-04 19:28:31 +00:00
Ryan Mitchell
1c275d93d2 Merge "Restore PackageParser UnsupportedAppUsage" into rvc-dev 2020-03-04 18:00:05 +00:00
Automerger Merge Worker
ca960112f4 Merge "Support settings activity for accessibility shortcut target" into rvc-dev am: 6820d68e25 am: 218fb98760 am: c5431cc946 am: ae55b1288c am: 66508944d1
Change-Id: I17134b41b19dda484375128ff3f26c12bdadcb64
2020-03-04 13:32:34 +00:00
Jason Hsu
6820d68e25 Merge "Support settings activity for accessibility shortcut target" into rvc-dev 2020-03-04 12:13:42 +00:00
Songchun Fan
6381d6193e make IDataLoaderManager and IDataLoader stable interfaces
Instead of using Bundle, explicitly specify params when initializing a data loader.

BUG: 150406132
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: I2f89d3c3ea1058fdbd689da0d5cb801bf4d9a0b4
2020-03-03 21:18:30 -08:00
Automerger Merge Worker
a2c01d5a69 Merge "Fix cross profile attribute parsing" into rvc-dev am: 2b1fa477ff am: 7d53b40f88 am: 96d2083616 am: 6db354ea2d
Change-Id: I3da87af49c50bff2cb37fbf4c877d146d2a82168
2020-03-04 01:58:14 +00:00
Winson Chiu
2b1fa477ff Merge "Fix cross profile attribute parsing" into rvc-dev 2020-03-04 00:48:53 +00:00
Winson
a20ba0beee Fix cross profile attribute parsing
Was lost in a rebase.

Bug: 150398686

Test: atest com.android.cts.devicepolicy.QuietModeHostsideTest
Test: manual verify no other ParsingPackage changes were lost

Change-Id: I3e17796433686ef38e24492c3255f5ccba1f431c
2020-03-03 13:18:39 -08:00
Leon Scroggins
68b1fe2c2c Merge "Revert "Better preload drawable logging"" 2020-03-03 20:45:57 +00:00
Automerger Merge Worker
9aa22b5d63 Merge changes I815bb92e,I1777f84c into rvc-dev am: f5f588e032 am: 86ff244d06 am: 0fa47d4a9c am: 200ab0fe72
Change-Id: I528ad6f90ea44ab3b3a5c36f0ce287af2b2daca2
2020-03-03 18:53:13 +00:00
Winson Chiu
f5f588e032 Merge changes I815bb92e,I1777f84c into rvc-dev
* changes:
  Adjust AndroidPackage String interning
  Add package parsing v1 vs v2 benchmark
2020-03-03 18:06:37 +00:00
Ryan Mitchell
cc6acd2268 Restore PackageParser UnsupportedAppUsage
The UnsupportedAppUsage annotation was accidentally removed in
e6d7a2d022. Restore the method
signature/annotation.

Bug: 150681392
Test: none
Change-Id: I6c46a777c0dbd53fa67d6e1c3e09248f636fe82b
2020-03-03 08:59:53 -08:00
Galia Peycheva
bdd66e30f8 Make ActivityInfo.preferMinimalPostProcessing a flag
Bug: 149420259

Test: atest CtsWindowManagerDeviceTestCases:MinimalPostProcessingTest

Change-Id: I250669158a532316bebed8fa8c17e009b9293ecb
2020-03-03 16:59:26 +01:00
Leon Scroggins
fb654cf97a Revert "Better preload drawable logging"
Bug: 63136392
Bug: 150395371
Test: make

This reverts commit 1480b67635.

Bitmap moving into a new mainline module in S. These module-boundary-
crossing hidden APIs need to be either made official or removed.

We already got the information we need from this logging, so remove it
and the hidden APIs. If/when we need to investigate this in the future,
we should be able to recreate the logging without crossing the boundary.

Change-Id: I5d094a0e427d225719614745867d5b00888d8fec
2020-03-03 10:17:53 -05:00
Automerger Merge Worker
7b3aea833a Merge "Hides FEATURE_CONTEXT_HUB from Android SDK" into rvc-dev am: 6c46c74576 am: bdc7da35d6 am: 5c62eab0f6 am: b4bf7b7dd9
Change-Id: I69d39d3a1fd9cdf9c1b548914e62faf0b1d4cdf6
2020-03-03 02:56:58 +00:00
Arthur Ishiguro
6c46c74576 Merge "Hides FEATURE_CONTEXT_HUB from Android SDK" into rvc-dev 2020-03-03 01:52:07 +00:00
Automerger Merge Worker
ad7eb51ce6 Merge "Make IccCardConstants APIs hidden as per API concil's feedback" into rvc-dev am: db5c0688f3 am: 6f4d7ca2a6 am: 43f6069969 am: a4c9590269
Change-Id: I9961d06f3af5028844cc815745cf5a60a2504bda
2020-03-02 21:59:06 +00:00
Jayachandran Chinnakkannu
db5c0688f3 Merge "Make IccCardConstants APIs hidden as per API concil's feedback" into rvc-dev 2020-03-02 21:18:50 +00:00
Arthur Ishiguro
8b9db55adb Hides FEATURE_CONTEXT_HUB from Android SDK
This feature guards a @SystemApi and should be hidden from the SDK.

Bug: 150326953
Test: None
Change-Id: Ifc5087fc956efd966e38934fcaacfa46f2cd7b28
2020-03-02 18:45:55 +00:00
Automerger Merge Worker
f550750784 Merge "Fix overlaying shared libraries" into rvc-dev am: dc65c78fcf am: 4e71e80108 am: e9edcb802e am: e775d32193
Change-Id: Id5a857191c54ee0ca13f28fef067c32887c7ac23
2020-03-02 17:48:28 +00:00
Ryan Mitchell
dc65c78fcf Merge "Fix overlaying shared libraries" into rvc-dev 2020-03-02 16:51:56 +00:00
Jayachandran C
6c546d00d0 Make IccCardConstants APIs hidden as per API concil's feedback
We will make the external components to use alternate APIs in S

Bug: 147320577
Change-Id: I22d35ea0fceb3071b1e21899cbdc3a26c9d8e972
2020-02-28 16:57:54 -08:00
Ryan Mitchell
41b93d8caa Fix overlaying shared libraries
Overlaying shared library support accidentally got dropped while
refactoring internal PMS structure.getAllOverlayPaths includes shared
library overlay paths.

Bug: 150446147
Test: OverlayRemountedTest
Change-Id: I5eed0f219c85156c753df6ff829970e1c4e4c4de
2020-02-28 11:40:44 -08:00
Peter Wang
879f32b1cc Merge "[API Review] Expose sendOrderedBroadcast" into rvc-dev 2020-02-28 19:05:26 +00:00
Automerger Merge Worker
d8b147c05d Merge "Skip no-state checkUseInstalled check inside PackageInfoUtils" into rvc-dev am: a57109b660 am: c5fa94559c am: bd300dec2f am: 3d8a9126a6
Change-Id: Icc5d32df319d653183b834d7408943b89eafa832
2020-02-28 07:34:09 +00:00
Winson
d2732995bb Skip no-state checkUseInstalled check inside PackageInfoUtils
PackageInfoWithoutStateUtils is designed for use in core when
the caller doesn't have a PackageSeting.

Because its generic generateApplicationInfo method does a simplified
checkUseInstalled check without the PackageSetting, this fails whenever
state must be taken into account.

This introduces method variants which skips the checks and defers to
PackageInfoUtils's own check.

Bug: 150328400

Test: manual verify call into PackageManager#setSystemAppState with
    SYSTEM_APP_STATE_UNINSTALLED and verify
    PackageManager#getApplicationInfo throws NameNotFoundException
    without fix and succeeds with fix
Test: atest com.android.server.pm.parsing
Test: TODO PackageInfo(WithoutState)Utils test in follow up change

Change-Id: Ie00984c2e1b80d2a3948923dc1293fbfddf01037
2020-02-27 17:07:51 -08:00
Automerger Merge Worker
e41d775033 Merge "Merge changes from topic "actor-signature-policy-rvc-dev" into rvc-dev am: b0c5105b2d am: e6df1e9de3 am: 01fdeba08b" into rvc-qpr-dev-plus-aosp am: 9b362ff9b7
Change-Id: Ia5869204383ae3fb270723874c468fb7a6205d0b
2020-02-27 19:17:45 +00:00
Automerger Merge Worker
5caf1948e8 Merge "Include pending media as well when deleting mediastore entries." into rvc-dev am: 442399b1c1 am: 377d13b37e am: 49cf50aef9 am: f5f2b98b63
Change-Id: I504020913aca72138b00dd2e04553e974e007adf
2020-02-27 18:33:29 +00:00
Winson Chiu
b0c5105b2d Merge changes from topic "actor-signature-policy-rvc-dev" into rvc-dev
* changes:
  Actor signature overlayable policy
  Refactor overlayable policy
2020-02-27 18:27:53 +00:00
Sudheer Shanka
442399b1c1 Merge "Include pending media as well when deleting mediastore entries." into rvc-dev 2020-02-27 17:49:53 +00:00
Rhed Jao
27c781d917 Support settings activity for accessibility shortcut target
Bug: 150277218
Test: atest AccessibilityShortcutInfoTest
Change-Id: I9afc6b2c917b0abe7bb4f5969dd665ba31157c7c
2020-02-27 12:33:26 +08:00