diff options
| author | 2016-05-18 15:25:40 +0000 | |
|---|---|---|
| committer | 2016-05-18 15:25:41 +0000 | |
| commit | f45bc095c6cef916f5f801fb320b3413f0fc099a (patch) | |
| tree | 58575c632fe70d8a698d72234dadacc42543c7bc | |
| parent | 746de4e9c87d3068643a97a3b0b5709ffdbb4ad6 (diff) | |
| parent | 55b2d11cd30b0088206750cf38cca94b5a229e35 (diff) | |
Merge "Add clarifying documentation to Context.BIND_EXTERNAL_SERVICE." into nyc-dev
| -rw-r--r-- | core/java/android/content/Context.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 8f5ddf818bf4..a43d06ed5ae0 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -342,6 +342,14 @@ public abstract class Context { * {@link android.R.attr#isolatedProcess isolated}, * {@link android.R.attr#externalService external} service. This binds the service into the * calling application's package, rather than the package in which the service is declared. + * <p> + * When using this flag, the code for the service being bound will execute under the calling + * application's package name and user ID. Because the service must be an isolated process, + * it will not have direct access to the application's data, though. + * + * The purpose of this flag is to allow applications to provide services that are attributed + * to the app using the service, rather than the application providing the service. + * </p> */ public static final int BIND_EXTERNAL_SERVICE = 0x80000000; |