diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index a09027fafb840..fe06cb9c915fe 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -5781,6 +5781,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.