Skip to content

Implementation of Nearby Share  #1272

Open

Description

@VesperLlama

Is it possible to add Nearby Share to MicroG and also make it work with the normal Play Services?

Activity

  1. FarisZR commented on Jan 20, 2021

    @FarisZR

    i really hope @mar-v-in adds support for nearby share.
    its really useful and a genuine competitor for airdrop, unlike previous attempts its a universal standard.

  2. samyakbardiya commented on Apr 15, 2021

    @samyakbardiya

    would love to see this implemented.

  3. TheLastGimbus commented on Oct 3, 2021

    @TheLastGimbus

    I'm getting more and more interested in Nearby Sharing - and also other Nearby APIs from google - they look really cool aka something that google would deprecated after a year - but they actually didn't!

    Discord, for example, uses it to let you discover people nearby - this is such an obvious feature that absolutley every messaging app should have, but they don't 🤔

    One time I wanted to try it out, but I couldn't, because microG didn't have it 😞 - we still had to slowly exchange usernames with my friend

    I don't know why corona warnings are named nearby - but we should probably change this 😕

    Also, looks like google is slowly open sourcing it:

    Can we open a bounty for this? @mar-v-in, this is THE feature we need 🙏 👀 🚀

  4. fbievan commented on Oct 21, 2022

    @fbievan

    Nearby share would be an incredibly useful feature... As android beam is uh discontinued... Introducing this I think would take a lot of work... I'm gonna go mess around myself... Likely not gonna get anywhere... But still would be fun to mess around with. Willing to put up a bounty myself. But not ready to yet. Anyway I'll be back to this thread later.

  5. alex9099 commented on Feb 6, 2023

    @alex9099

    I'm trying to document the protocol here https://github.com/alex9099/SimpleNearby

    Also I'm doing a PoC implementation in python, should then be ported to java/kotlin to use on android/microg but to do quick prototypes I find python quite simple :D

    Even though google released the code for it, there doesn't seem to be proper documentation, which makes understanding the whole thing quite complicated

    If anyone wants to help feel free to contact me

  6. Idcrafter commented on Feb 7, 2023

    @Idcrafter

    nearby share is a quite useful feature which most android users have never heard of. it would be excellent if it also could be done with privacy or at least more privacy as google's implementation

  7. cyrneko commented on Jun 2, 2023

    @cyrneko

    Nearby Share is quite the nice feature, which people without Google Play services sadly can't use, just like many other features that GMS provides. It would be great if someone could step up and start working on an implementation, especially as it would probably be more private.

  8. Idcrafter commented on Jun 19, 2023

    @Idcrafter

    yes, i meant what if there is a Nearbyshare like feature for microG, it would be a great addition to the project, i am not good enough in programming to create such a feature.

  9. bblacher commented on Sep 8, 2023

    @bblacher
  10. alex9099 commented on Sep 11, 2023

    @alex9099

    I should take a look into that project, i was following the BT/BLE approach, they are doing the TCP (so you are already in the same network) approach.
    Haven't had much time (or motivation) to develop it further

  11. Idcrafter commented on Oct 26, 2023

    @Idcrafter

    i know that NearbyShare uses a BLE Beacon to open up a Wifi-direct connection and if the phones both have network and get seperated will it switch to sending it over the internet if allowed in the settings.

  12. rorlig commented on Dec 17, 2023

    @rorlig

    any updates ? is the support for nearby connections planned?

  13. 12 remaining items

  14. kv9898 commented on Oct 26, 2026

    @kv9898

    @psk039999 Does Bada already satisfy the standalone implementation requirements of the bounty? It is open source and reports Quick Share interoperability without GMS, including Bluetooth discovery/bootstrap and Wi-Fi Direct transfers.

    If Bada already covers the required functionality, is the remaining goal for this issue to incorporate its implementation into microG? Or are there specific protocol features or compatibility requirements that Bada still needs to meet?

    It would be helpful to clarify the remaining scope before starting another implementation.

  15. psk039999 commented on Oct 29, 2026

    @psk039999

    Yes, proper integration into microG would be the remaining objective. Ideally with support for Wifi Aware and implementation of functionality from quick share extensions (Allows interoperability with AirDrop on supported devices). Thank you for the response, feel free to let me know if there's anything you'd like me to clarify on.

  16. inversor-clawbogota commented on Oct 29, 2026

    @inversor-clawbogota

    @psk039999, would the advertised $300 cover an initial microG integration for Quick Share interoperability, leaving Wi-Fi Aware and AirDrop support for later milestones, and what acceptance criteria and payout terms would apply?

  17. mau16ro commented on Nov 5, 2026

    @mau16ro

    /attempt #1272

    Proposed solution submitted for review in PR #3968 (#3968).

  18. Abobo7 commented on Nov 15, 2026

    @Abobo7

    Hi @psk039999, @mar-v-in,

    I would like to pick up this issue and implement clean-room Quick Share (Nearby Share) support inside :play-services-nearby-core. Before opening a draft PR, I want to confirm both the architectural fit for GmsCore and the exact acceptance scope for the initial $300 bounty milestone.

    1. Proposed GmsCore Integration Architecture

    Currently, play-services-core/src/main/AndroidManifest.xml routes com.google.android.gms.nearby.sharing.service.NearbySharingService.START and com.google.android.gms.nearby.sharing.START_SERVICE to org.microg.gms.DummyService, while :play-services-nearby-core only contains exposurenotification. I plan to structure the implementation in two cleanly separated layers inside :play-services-nearby-core:

    • org.microg.gms.nearby.sharing.protocol (Zero-Android-Dependency JVM Core): Length-prefixed FramedSocket (5 MiB frame cap), RFC 5869 HKDF-SHA256, UKEY2 (P256_SHA512) client/server handshake with explicit NIST P-256 curve validation, D2D / SecureMessage (AES-256-CBC + HMAC-SHA256) envelope codec, 4-digit PIN derivation, and chunked PayloadTransferFrame state machines. To keep :play-services-nearby-core lightweight and avoid protobuf-java vs. Wire classpath conflicts, all cryptography uses standard JCA (javax.crypto / java.security) with no Google Tink dependency.
    • org.microg.gms.nearby.sharing (Android Service, Transports & UI): Replaces the DummyService manifest bindings with a real BaseService / INearbySharingService stub, system share sheet target (Intent.ACTION_SEND / ACTION_SEND_MULTIPLE), com.google.android.gms.RECEIVE_NEARBY + ReceiveActivityQrCodeAlias QR pairing entry points, consent notification/dialog, and Quick Settings visibility TileService.

    2. Clean-Room Licensing Note

    While kyujin-cho/Bada demonstrates strong stock Android/Samsung interoperability on Android, that repository currently has no LICENSE file, and leonboe1/QuickDrop is Swift/macOS (UNLICENSE). All code contributed here is written clean-room under Apache-2.0 directly from Google's Apache-2.0 google/ukey2 and google/nearby specifications alongside the public-domain wire documentation in grishka/NearDrop/blob/master/PROTOCOL.md.

    3. Milestone 1 Scope Confirmation ($300 Bounty)

    To make sure expectations are aligned before full transport wiring:

    • Included in Milestone 1 (Initial PR Series):
      1. Bidirectional (Send + Receive, "Everyone" visibility + QR code pairing) interoperability with stock Android GMS Quick Share (Pixel / Samsung One UI), Windows Quick Share, and macOS NearDrop.
      2. Same-LAN discovery and transfer over mDNS (_FC9F5ED42C8A._tcp. via NsdManager) + BLE 0xFE2C fast-advertisement trigger.
      3. Off-LAN discovery and transfer via BLE 0xFEF3 / Bluetooth Classic RFCOMM bootstrap upgrading to 5 GHz Wi-Fi Direct (WifiP2pManager) for high-throughput payload streaming.
      4. Host-JVM unit/loopback test suite for the protocol core plus on-device stock GMS interoperability verification.
    • Deferred to Follow-Up Milestones:
      1. Wi-Fi Aware (NAN) medium upgrades (hardware concurrency and vendor HAL support vary significantly across custom ROMs compared to Wi-Fi Direct + LAN).
      2. Quick Share Extensions / Apple AirDrop interoperability (depends on hardware-gated AWDL / NAN radio capabilities that are not exposed through standard AOSP APIs on most devices).

    @psk039999 — Does the Milestone 1 scope above (full bidirectional Android/Windows/macOS Quick Share over LAN mDNS + BLE/RFCOMM bootstrap + 5 GHz Wi-Fi Direct integrated into microG) satisfy your acceptance criteria for the $300 bounty, leaving Wi-Fi Aware and AirDrop extensions for separate follow-up issues?

    @mar-v-in — Are you happy with housing this under :play-services-nearby-core (org.microg.gms.nearby.sharing.*) using Wire protobuf schemas and JCA crypto, and would you prefer a single PR or a 2-part split (PR 1: pure-JVM protocol core + tests; PR 2: Android transports, Binder service, and UI)?

    I already have the standalone pure-Kotlin FramedSocket, HKDF, and UKEY2 (P256_SHA512) handshake + 9-test JUnit/TCP loopback suite compiling cleanly and passing :play-services-nearby-core:testDebugUnitTest on current master, and can open the initial draft PR as soon as you confirm. Thanks!

  19. onmyownpace commented on Nov 19, 2026

    @onmyownpace

    Hi @psk039999 — interested in the BountyHub $300 listing on this issue (bounty view). Per your note that the remaining goal is proper microG integration (with Wi‑Fi Aware / Quick Share extensions as stretch), I’d like to align on a milestone before writing code.

    Proposed Milestone 1 (for the $300 claim path):

    1. Route Nearby Sharing intents off DummyService into a real service in :play-services-nearby-core
    2. Clean-room Bluetooth discovery/bootstrap + Wi‑Fi Direct transfer path sufficient for basic file send/receive with stock Quick Share peers
    3. Unit tests + a short device verification checklist

    Explicitly out of Milestone 1 (separate paid follow-ups if you want them): Wi‑Fi Aware and AirDrop-extension interoperability.

    Questions before I open any PR:

    • Is the $300 BountyHub bounty still the active claim/acceptance path given the open PRs already targeting Implementation of Nearby Share  #1272?
    • For Milestone 1, is interoperability with stock Quick Share (non‑Galaxy + Galaxy) the acceptance bar, or is a narrower peer set OK for first merge?
    • I use AI coding assistance with human design/review (BountyHub’s agent-assisted posture). Fully AI-generated PRs are not my intent — flag if that’s a problem for acceptance.

    — onmyownpace (Bouziane Adam)

  20. MarcoDiPolo commented on Nov 25, 2026

    @MarcoDiPolo

    Hi @psk039999, would you fund a separate hardware test for the microG integration? I can check whether a Samsung Galaxy phone and a Windows PC can each discover the device running the candidate build, send a small test file and receive the same file back. I would record the versions and verify that the received file matches the original.

    Which build and microG test device would be needed, and could you provide them? If these checks would help, what results would you accept and what fixed fee would you offer on BountyHub for the test report?

  21. deadYokai commented on Nov 27, 2026

    @deadYokai
    Contributor

    maybe i can try implement some parts, because wearable also somewhat connected to nearby module

    if somewhone woriking on this, say, so i not going to waste my time on that

  22. MarcoDiPolo commented on Nov 27, 2026

    @MarcoDiPolo

    @deadYokai My offer covers testing with a Galaxy phone and a Windows PC. The Nearby implementation is free on my side. If you publish a candidate build, please link it and say which microG device and version it needs. Once the sponsor agrees to the separate test and a compatible test device is available, I can check discovery in both directions and compare the received file against the original. My test proposal has the scope.

  23. Aboudeh2010 commented on Nov 27, 2026

    @Aboudeh2010
  24. Dev-in-the-BM commented on Nov 27, 2026

    @Dev-in-the-BM

    I've been testing Bada, it works great, but I haven't gotten it to work between devices not on the same network, so it definitely needs some fine-tuning.

  25. lol123412153636-hash commented on Nov 27, 2026

    @lol123412153636-hash

    ?? Mine works via WiFi direct
    Bluetooth. And WiFi. Basically quick share. Try uninstalling it and reinstalling. And give it all the permissions

  26. Dev-in-the-BM commented on Nov 27, 2026

    @Dev-in-the-BM

    Which version of Android are you on?

  27. Aboudeh2010 commented on Nov 28, 2026

    @Aboudeh2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions