You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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!
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.
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
Reacted by Atemu, VesperLlama, Mateusz Soszyński, yulan, Samyak बरड़िया, 1fexd, Jérôme, David Akopov, IsHacker and James Flynn
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
Reacted by Atemu, Mateusz Soszyński, Wolfgang, mak448a and IsHacker
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.
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.
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
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.
@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.
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.
@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?
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.0google/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):
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.
Same-LAN discovery and transfer over mDNS (_FC9F5ED42C8A._tcp. via NsdManager) + BLE 0xFE2C fast-advertisement trigger.
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.
Host-JVM unit/loopback test suite for the protocol core plus on-device stock GMS interoperability verification.
Deferred to Follow-Up Milestones:
Wi-Fi Aware (NAN) medium upgrades (hardware concurrency and vendor HAL support vary significantly across custom ROMs compared to Wi-Fi Direct + LAN).
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!
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):
Route Nearby Sharing intents off DummyService into a real service in :play-services-nearby-core
Clean-room Bluetooth discovery/bootstrap + Wi‑Fi Direct transfer path sufficient for basic file send/receive with stock Quick Share peers
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.
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.
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?
@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.
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.
Activity
FarisZR commentedon Jan 20, 2021
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.
s3n-w6i commentedon Feb 18, 2021
It seems like there is an implementation for chrome under development: https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/nearby_sharing/
samyakbardiya commentedon Apr 15, 2021
would love to see this implemented.
TheLastGimbus commentedon Oct 3, 2021
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 🙏 👀 🚀
fbievan commentedon Oct 21, 2022
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.
alex9099 commentedon Feb 6, 2023
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
Idcrafter commentedon Feb 7, 2023
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
cyrneko commentedon Jun 2, 2023
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.
Idcrafter commentedon Jun 19, 2023
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.
bblacher commentedon Sep 8, 2023
https://github.com/grishka/NearDrop/blob/master/PROTOCOL.md
Some more documentation on the protocol, may help implementing this feature.
Also, there is an implementation for MacOS:
https://github.com/grishka/NearDrop
alex9099 commentedon Sep 11, 2023
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
Idcrafter commentedon Oct 26, 2023
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.
rorlig commentedon Dec 17, 2023
any updates ? is the support for nearby connections planned?
12 remaining items
kv9898 commentedon Oct 26, 2026
@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.
psk039999 commentedon Oct 29, 2026
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.
inversor-clawbogota commentedon Oct 29, 2026
@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?
feat(solution): implement solution and tests for microg#1272
mau16ro commentedon Nov 5, 2026
/attempt #1272
Proposed solution submitted for review in PR #3968 (#3968).
Abobo7 commentedon Nov 15, 2026
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 forGmsCoreand the exact acceptance scope for the initial$300bounty milestone.1. Proposed
GmsCoreIntegration ArchitectureCurrently,
play-services-core/src/main/AndroidManifest.xmlroutescom.google.android.gms.nearby.sharing.service.NearbySharingService.STARTandcom.google.android.gms.nearby.sharing.START_SERVICEtoorg.microg.gms.DummyService, while:play-services-nearby-coreonly containsexposurenotification. 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-prefixedFramedSocket(5 MiBframe cap), RFC 5869HKDF-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 chunkedPayloadTransferFramestate machines. To keep:play-services-nearby-corelightweight and avoidprotobuf-javavs.Wireclasspath 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 theDummyServicemanifest bindings with a realBaseService/INearbySharingServicestub, system share sheet target (Intent.ACTION_SEND/ACTION_SEND_MULTIPLE),com.google.android.gms.RECEIVE_NEARBY+ReceiveActivityQrCodeAliasQR pairing entry points, consent notification/dialog, and Quick Settings visibilityTileService.2. Clean-Room Licensing Note
While
kyujin-cho/Badademonstrates strong stock Android/Samsung interoperability on Android, that repository currently has noLICENSEfile, andleonboe1/QuickDropis Swift/macOS (UNLICENSE). All code contributed here is written clean-room underApache-2.0directly from Google'sApache-2.0google/ukey2andgoogle/nearbyspecifications alongside the public-domain wire documentation ingrishka/NearDrop/blob/master/PROTOCOL.md.3. Milestone 1 Scope Confirmation (
$300Bounty)To make sure expectations are aligned before full transport wiring:
Send+Receive,"Everyone"visibility + QR code pairing) interoperability with stock Android GMS Quick Share (Pixel / Samsung One UI), Windows Quick Share, and macOS NearDrop._FC9F5ED42C8A._tcp.viaNsdManager) + BLE0xFE2Cfast-advertisement trigger.0xFEF3/ Bluetooth Classic RFCOMM bootstrap upgrading to 5 GHz Wi-Fi Direct (WifiP2pManager) for high-throughput payload streaming.NAN) medium upgrades (hardware concurrency and vendor HAL support vary significantly across custom ROMs compared to Wi-Fi Direct + LAN).@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
$300bounty, 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, andUKEY2(P256_SHA512) handshake + 9-test JUnit/TCP loopback suite compiling cleanly and passing:play-services-nearby-core:testDebugUnitTeston currentmaster, and can open the initial draft PR as soon as you confirm. Thanks!onmyownpace commentedon Nov 19, 2026
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):
DummyServiceinto a real service in:play-services-nearby-coreExplicitly 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:
—
onmyownpace(Bouziane Adam)MarcoDiPolo commentedon Nov 25, 2026
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?
deadYokai commentedon Nov 27, 2026
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
MarcoDiPolo commentedon Nov 27, 2026
@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.
Aboudeh2010 commentedon Nov 27, 2026
Dev-in-the-BM commentedon Nov 27, 2026
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.
lol123412153636-hash commentedon Nov 27, 2026
?? Mine works via WiFi direct
Bluetooth. And WiFi. Basically quick share. Try uninstalling it and reinstalling. And give it all the permissions
Dev-in-the-BM commentedon Nov 27, 2026
Which version of Android are you on?
Aboudeh2010 commentedon Nov 28, 2026