diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 98e124d7e8f4c..f99352a9d328e 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -5777,6 +5777,16 @@ public abstract class Context { */ public static final String DISPLAY_HASH_SERVICE = "display_hash"; + /** + * Use with {@link #getSystemService(String)} to retrieve a + * {@link android.nearby.NearbyManager} to discover nearby devices. + * + * @see #getSystemService(String) + * @see android.nearby.NearbyManager + * @hide + */ + public static final String NEARBY_SERVICE = "nearby"; + /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system.