dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
29
share rss forum feed


Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL
reply to unibroker

Re: adb umount problems

If you want to transfer a file from your PC to your phone try this.

~ touch ~/foo
~ adb push ~/foo /sdcard/
~ adb shell
shell@android:/ $ cd /sdcard
shell@android:/sdcard $ ls -l foo
-rw-rw-r-- root sdcard_rw 0 2012-11-30 13:41 foo
shell@android:/sdcard $ exit
~

--
"Padre, nobody said war was fun now bowl!" - Sherman T Potter

»maxolasersquad.com/

»maxolasersquad.blogspot.com

»www.facebook.com/maxolasersquad

unibroker
Premium
join:2010-11-12
Altadena, CA
Is my particular filename in this? This looks more complicated than my single push command but if it'll allow me to transfer and to safely remove device I'm willing to give it a try.


Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL
The foo in my example is just a placeholder. Replace it with the actual file on your PC.
When you transfer a file with adb push the filesystem on your phone is never mounted to your computer so no mounting or unmounting is needed. You can simply exit out of the adb shell and unplug your phone. adb push and adb pull are the best two commands for transferring files to and from your computer.

Edit: And you don't need to run the touch command. I just used that to create an empty file.

unibroker
Premium
join:2010-11-12
Altadena, CA
reply to Maxo
# ls -l cm-10-20121129-UNOFFICIAL-encore.zip
----rwxr-x system sdcard_rw 157698499 2012-11-28 20:22 cm-10-20121129-UNOFFICIAL-encore.zip


Looks like I have no permissions and Group has them all! Even everyone else has more than me.


Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL
said by unibroker:

# ls -l cm-10-20121129-UNOFFICIAL-encore.zip
----rwxr-x system sdcard_rw 157698499 2012-11-28 20:22 cm-10-20121129-UNOFFICIAL-encore.zip


Looks like I have no permissions and Group has them all! Even everyone else has more than me.

I think when you connect over adb you are automatically part of the sdcard_rw group.
If you are looking to flash to this cm rom, your custom bootloader should be able to do it.

unibroker
Premium
join:2010-11-12
Altadena, CA
I think you are correct because all of my files in the sdcard are listed the same way. I knew it was user error based on my history with everything having to do with tech. You kind sir are a gentleman and a scholar. Very much appreciated!