summaryrefslogtreecommitdiff
path: root/core/java/android/app/InstantAppResolverService.java
Commit message (Collapse)AuthorAgeFilesLines
* Convert InstantAppRequestInfo to getters and add @MainThreadWinson2020-03-111-12/+15
| | | | | | | | | | From API review feedback. Bug: 151243497 Test: atest android.app.instantapp.resolver.test.ResolverServiceMethodFallbackTest Change-Id: Ice724bfb0fb24bb8246b473bc29470252e011302
* Test InstantAppResolverService method fallbackWinson2019-12-201-1/+5
| | | | | | | | | | | | | | | | | Verifies the appropriate methods are called or not called when onGetInstantAppResolveInfo and onGetInstantAppIntentFilter are invoked and different API versions are implemented. There are 5 versions tested, with version 0 meaning no API was implemented. Bug: 137962971 Test: atest FrameworksInstantAppResolverTests Test: manual swapped platform implementation to log method calls and verify call stack when under test Change-Id: I66f84630d9824b74de57eaae71422d8773279a0f
* Expose request data to InstantAppResolverServiceWinson2019-11-211-47/+84
| | | | | | | | | | | | | | Wraps InstantAppRequest to InstantAppRequestInfo which is passed directly to the service so that new method parameters can be avoided in the future by directly adding a field to the info object. Bug: 135551866 Test: manual log resolution with Try Now Test: manual test app with intersplit navigation Test: manual click through to instant app using a link in browser Change-Id: I4f807ebe32ff25dc526cee7e58de541e6b22008a
* Add NonNull/Nullable annotationsTodd Kennedy2019-03-261-12/+18
| | | | | | Change-Id: Id2a343765b29226a13ba41102df4bca739112192 Fix: 126701786 Test: Manual
* Fix ClassCastException in 2nd phase resolution.Jon Boekenoogen2018-10-291-1/+1
| | | | | | | | | This has been broken since the original Oreo implementation was added https://android.googlesource.com/platform/frameworks/base/+/android-8.0.0_r1/core/java/android/app/InstantAppResolverService.java#118 Bug: 118635643 Test: Manual build and run locally. Change-Id: Ie3f2ca2d0baf4ebcedbf75753cc2cdbcfa4b3e1b
* Pass user to InstantAppResolverService methods.Hai Zhang2018-08-241-20/+83
| | | | | | | | | | | This change adds userHandle as a parameter for InstantAppResolverService. onGetInstantAppResolveInfo() and onGetInstantAppIntentFilter(), so that Instant Apps can be resolved correctly for secondary users. Bug: 109674934 Bug: 111436542 Test: manual Change-Id: I6fed43896d0010fda2f1e6068b6a692a20b359d4
* Addresses API feedback for Intent Discovery changePatrick Baumann2018-03-011-5/+29
| | | | | | | | | * Clarifies purpose and effects of resolver methods * Adds javadocs to non-obvious constructors and constants Test: none - no functional changes Bug: 73950163 Change-Id: Id668b890a8c97da74502698f71b16cc213eda6c6
* Require only ACTION_VIEW for web instant appsPatrick Baumann2018-02-051-2/+2
| | | | | | | | | | When generic intent resolution support was added to instant apps, it added the requirement that web instant app resolution also require the BROWSABLE category. This change relaxes that requirement. Test: manual - sent intent without browsable and observed resolution Change-Id: I7d4d891484f538b46d37f2c8e7c040b370b46b9e Fixes: 72835413
* Revert "Revert "Removes EphemrealResolverService and related""Patrick Baumann2018-01-311-5/+5
| | | | | | | | | | | This reverts commit 1e0c91968e802d49c26e2e8d6ca6e8d31f451894. Reason for revert: Original issue fixed Fixes: 38137176 Fixes: 38121489 Test: manual; builds and instant apps launch Change-Id: If320503381b21580ac1b127c49f754b39ffcc93b
* Revert "Revert "Adds generic intent Instant App resolution""Patrick Baumann2018-01-311-39/+68
| | | | | | | | | | | | | | | | | | | | | This reverts commit 860b8ba71938e9860a31881c1d1431877f9d01a2. The original change that was reverted contained a bug that allowed an http view/browsable intent used to query for browsers to be considered as a candidate for instant apps. This was resulting in an attempt to bind to the instant app resolver while holding a lock on mPackages. This change ensures that PMS doesn't bind while checking for the browser status of a package in both the instant app filtering code and by adding the FLAG_IGNORE_EPHEMERAL to the canonical browser intent. Reason for revert: Applying fix Change-Id: I4896b3a15416a11fdc3f6c191e552c4ce8963623 Fixes: 63117034 Fixes: 71916178 Test: Manual using test app at google_experimental/users/patb/InstantAppsInP Test: atest android.appsecurity.cts.EphemeralTest passes after modification
* Revert "Adds generic intent Instant App resolution"Patrick Baumann2018-01-311-68/+39
| | | | | | | | | This reverts commit 3e8bd0f3b5ffab9a07189ed3ebcc6c4437778a0e. Reason for revert: b/72710855 Change-Id: I1378ccb5c5c16256e472e1ff7c3ad2460e091300 Fixes: 72710855
* Adds generic intent Instant App resolutionPatrick Baumann2018-01-291-39/+68
| | | | | | | Bug: 63117034 Change-Id: Ie3818e913e8e1077f60434a626bc606c0b5015ab Test: Manual using test app at google_experimental/users/patb/InstantAppsInP Test: atest android.appsecurity.cts.EphemeralTest passes after modification
* fix service bindingTodd Kennedy2017-04-211-2/+8
| | | | | | | | | there were cases where we wouldn't bind when we should. also, add some additional debug to better track potential connection issues. Change-Id: I381da24f490e3102817a14428ef1a63982f33d19 Fixes: 37122153 Test: kill/upgrade GMS to ensure we re-bind in a timely manner
* Bind with the correct actionTodd Kennedy2017-04-051-0/+15
| | | | | | | | | | | | While services themselves don't need an action when an explicit component is specified, services in GMS may be different. In the case of instant apps, the resolver service is hidden behind a proxy that uses the action to route to the actual, implementing service. Bug: 36594944 Test: see that ephemeral resolution occurs Change-Id: Id8c352614f780dc63f36c65be2ddb2d480b6846b
* Add token to the resolver APIsTodd Kennedy2017-03-201-33/+41
| | | | | | Change-Id: Ia6d4f6d88ec265480a4dca94fe77ef42592a328c Fixes: 35442315 Test: Build and make sure instant apps still resolve
* Refactor EphemeralResolverServiceTodd Kennedy2017-03-031-0/+176
* Change name to InstantAppResolverService * Left old service in place to handle existing client [to be removed prior to O launch] * When resolving phase II, return a list instead of a single item Bug: 34763730 Test: Build and verify resolution occurs w/ legacy & new resolver service Change-Id: Ieccaf91538bd91c04f4be4e35d8264619d7cd6d7