1

I just want to access the files on my Verizon LG G3 phone from my Linux PC.

I have adb installed and I followed this ArchLinux tutorial but adb devices outputs the following:

[grease-lightning]/home/lucas$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached 

I also followed this xda-developers tutorial but the MTP tool does not seem to detect my device properly.

I have usb debug on, and MTP mode on, (via Settings > Storage > usb/pc connection > "MTP" (default was PTP) on my Android phone).

I also tried running the commands mtp-detect with this output and mtp-connect with this output, but I cannot seem to access the file system. Most notably, it seems that the vender and product id are not detected, as quoted here from the mtp-detect output:

Device 0 (VID=1004 and PID=627f) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   1004:627f @ bus 3, dev 25

As instructed in the xda tutorial, here are the contents of my udev file:

[my-pc]/home/lucas$ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb",ATTR{idVendor}=="1004",ATTR{Product}=="627f",MODE="0666"

and here is the lsusb info for clarification:

[grease-lightning]/home/lucas$ lsusb | grep LG
Bus 003 Device 039: ID 1004:627f LG Electronics, Inc.

So, after trying these tutorials using the mtp and adb approaches, how can I connect to the files/media on my Android phone? Any suggestions?

I am using ArchLinux if that matters, and I would prefer a simple CLI approach to accessing the files on my phone.

  • If the goal is to only copy files to-and-fro the device then consider this answer which will need hotspot on your device or USB tethering enabled or internet access, and then using an app to host an FTP server on your device. You can then access it from PC locally. You can use curlftpfs on Linux to mount FTP server on your PC and then access anything from CLI. – Firelord Jun 12 '15 at 19:27
  • And sometimes, it happens with people that using root account on Linux and then connecting you device with Linux results in access to ADB and MTP on the device. I use root for it and never had to use udev rules or something. – Firelord Jun 12 '15 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.