Creating an android sync tool


I was tasked with creating a system that would basically update a device with information. In that system it needs to connect to an android device with code. How can i do so without adb or developer mode ? The cavate is that it must work over usb since wifi wont be an option.

Any suggestions ? I have tried searching online and was unable to find anything

Tech stack
Expo for the android app, electron for the sync tool and backend is our next js app

0
Mar 12 at 4:02 PM
User Avataruser32484004
#android#expo#electron#usb

Accepted Answer

It is still unclear what the Android device (OS version? / consumer or custom device) is connected to. You mention 'electron for the sync tool' but don't mention on which OS (Windows/Linux/Mac) that electron is running on assuming it is a PC and not something else.

USB can consist of a number of protocols so you need to define which one you are using.

Assuming you are connecting to a PC, unless you specific a USB protocol/use the correct library in an Android app (and running the appropriate driver on the PC side) the Android device may be attempting connect via MTP protocol which normally used for transferring images/video/music/media. In which case it is less of an Android issue than the PC side.

User AvatarMorrison Chang
Mar 14 at 4:28 AM
1