diff options
| author | Jason Monk <jmonk@google.com> | 2018-01-21 14:17:37 -0500 |
|---|---|---|
| committer | Jason Monk <jmonk@google.com> | 2018-01-21 14:17:37 -0500 |
| commit | e696acbbd749b6e87844bf463a7cb3f76a49b7fe (patch) | |
| tree | b81e8d9567bdaf60d0fecc851390b8fde0f1ed48 /core/java | |
| parent | e8f8be7698ea7690b81736e766c7fa5b20045164 (diff) | |
Expose permission-related Slice APIs
- Let providers know who is binding them
- Let providers tell the system if a slice shouldn't be cached
for different apps so the app can perform custom permission
checks.
Test: update-api
Bug: 68751119
Change-Id: I9f74df5516e6efb354ad52fc5c266bd8d4da3c4d
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/slice/Slice.java | 9 | ||||
| -rw-r--r-- | core/java/android/app/slice/SliceProvider.java | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/app/slice/Slice.java b/core/java/android/app/slice/Slice.java index 5bd3440d09f8..f3e4a11f26a2 100644 --- a/core/java/android/app/slice/Slice.java +++ b/core/java/android/app/slice/Slice.java @@ -156,10 +156,11 @@ public final class Slice implements Parcelable { */ public static final String HINT_SEE_MORE = "see_more"; /** - * A hint to tell the system that this slice cares about the return value of - * {@link SliceProvider#getBindingPackage} and should not cache the result - * for multiple apps. - * @hide + * A hint used when implementing app-specific slice permissions. + * Tells the system that for this slice the return value of + * {@link SliceProvider#onBindSlice(Uri, List)} may be different depending on + * {@link SliceProvider#getBindingPackage} and should not be cached for multiple + * apps. */ public static final String HINT_CALLER_NEEDED = "caller_needed"; /** diff --git a/core/java/android/app/slice/SliceProvider.java b/core/java/android/app/slice/SliceProvider.java index 8ffacf5280c1..6422669b7ce7 100644 --- a/core/java/android/app/slice/SliceProvider.java +++ b/core/java/android/app/slice/SliceProvider.java @@ -158,7 +158,6 @@ public abstract class SliceProvider extends ContentProvider { * currently happening. The returned package will have been * verified to belong to the calling UID. Returns {@code null} if not * currently performing an {@link #onBindSlice(Uri, List)}. - * @hide */ public final @Nullable String getBindingPackage() { return mBindingPkg; |
