Merge "Move Nearby flags to common and add specify it in java_sdk_library" into main am: c92872e3d5 am: 28864bc5e8

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2973051

Change-Id: I421bb8b9c95436a6c22f54bb2132c66d6bd18395
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>