You are not logged in.

#1 2013-07-27 19:36:04

Convergence
Member
Registered: 2005-07-02
Posts: 377

Transfer Files to Nexus 4

I guess that there are 2 ways to transfer files to the Nexus 4. One way is MTP, the other is adb push.  I can't get either to work.

when I use mtp, I:
enable mtp in the phone's usb connection options
run mtp-detect
mtp-connect.  This is where it chokes.  I get:

Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Device 0 (VID=18d1 and PID=4ee2) is a Google Inc (for LG Electronics/Samsung) Nexus 4/10 (MTP+ADB).
Android device detected, assigning default bug flags
Usage: connect <command1> <command2>
Commands: --delete [filename]
          --sendfile [source] [destination]
          --sendtrack [source] [destination]
          --getfile [source] [destination]
          --newfolder [foldername]

From googling, it seems like there is just a bug, and that the workaround is to just use adb for file transfers.  So this is what I do:

$ adb devices
List of devices attached 
04ed741f959409ba	device

$ adb shell sysrw
/system/bin/sh: sysrw: not found
$ 
$ adb push gapps-jb-20130301-signed.zip /
failed to copy 'gapps-jb-20130301-signed.zip' to '//gapps-jb-20130301-signed.zip': Read-only file system
$ 

So the problem seems to be that I can't mount the drive as rw.  So I try to use the adb shell:

$ adb shell
shell@android:/ $ su
/system/bin/sh: su: not found
127|shell@android:/ $ 
[/help]

any help?


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#2 2013-07-28 16:52:38

portwolf
Member
Registered: 2008-09-09
Posts: 9

Re: Transfer Files to Nexus 4

Try go-mtpfs, works for me. But theres a speed issue, I guess. Since I only get as much as 2mb/s. I have the strange feeling, that the files are getting pushed quicker when I transfer files on windows. If you find out another method/tool, let me know.

Offline

#3 2013-07-28 19:25:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Transfer Files to Nexus 4

On a complete tangent, have you considered something like dropbox?

Edit:  Also, is your device rooted?

Last edited by ewaller (2013-07-28 19:26:26)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2013-07-28 19:27:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Transfer Files to Nexus 4

There is also the option of using samba or ftp.  My home fileserver broadcasts samba shares on my LAN, so I just use a smb capable Android file manager.  I find it fast and easy this way.

Offline

#5 2013-07-29 14:44:21

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Transfer Files to Nexus 4

Please DO NOT push gapps to /. Push them to your /sdcard and flash from recovery on the device. It also looks like you don't even have root yet so these files will get you nothing. Check XDA on how to root your device. You will need root and a custom recovery.

EDIT: This really isn't related in anyway to kernel.

Last edited by doug piston (2013-07-29 14:52:38)

Offline

Board footer

Powered by FluxBB