Answer the question
In order to leave comments, you need to log in
Is it possible to open a file in the electron.js desktop application on a USB connected android phone?
I need to open a file in a desktop application on electron.js in a given folder on android. I can open a file on my local drive using the shell (something like https://stackoverflow.com/questions/30381450/open-... )
but I can't figure out how to get the Android path.
I also tried
https://github.com/node-hid/
https://github.com/openstf/adbkit
But for adbkit, as it will be, adb should be installed, and users will obviously not have this
Answer the question
In order to leave comments, you need to log in
For ADB, among other things, it is required that debugging is enabled on the phone and allowed from the computer to which this phone is connected.
Moreover, the phone can be connected in MTP mode, so you have to figure out what is there and how and ask the user to change the setting.
So it's easier to make an application that will send a file to a PC via the cloud, and if it can be found that the PC and phone are on the same Wi-Fi network, send it over the network.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question