This sounds like a much better implemetation (since it uses a direct wi-fi connection, if I’m understanding it right), but there *was* an official google way to do this before, via NFC — Android Beam transferred files between (very) nearby phones way back in the days of Jelly Bean.