new issue when connecting via usb cable

jaekim717

Well-known member
Sep 19, 2010
131
2
0
hi,

in the past day i have encounter a weird issue when connecting my fascinate to my computer (mac os x, snow leopard) via a usb cable.

in the past i was able to connect to it and use adb to root my fascinate and push files to it.

now when i do the following command:
./adb push nfl.apk /sdcard
i get the following error:
failed to copy 'nfl.apk' to '/sdcard/nfl.apk': Permission denied

i am able to manually copy the file over using the finder within OSX and copying it directly over to the sdcard

However, when i run the following command:
$ ./adb shell
$ cd /sdcard
cd: can't cd to /sdcard
$ su
# cd sdcard
# ./nfl.apk
./nfl.apk: not found
# ls
# ls -al
-al: No such file or directory
# pwd
/sdcard

using astro file viewer i can see the file exist in my /sdcard folder.

anyone have any idea what is going on? I have verified that debugging is turned on within settings --> applications-->development.

thanks,

jae
 
Are you still rooted? Did you lose root when applying the OTA?

Hi,

I am still rooted, i got the phone the day after the OTA came out, therefore I applied the OTA first, then rooted my phone/de-binged, etc.

Is it possible my adb got corrupted? a

Anyone else have any ideas?

any help will be greatly appreciated.

thanks

jae
 
I tried again with a different file this morning. Got the following:


j-bombs-computer:tools JFun$ ./adb push Sleigh_Bells /sdcard/Music
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
push: Sleigh_Bells/Treats/11 Treats.mp3 -> /sdcard/Music/Treats/11 Treats.mp3
failed to copy 'Sleigh_Bells/Treats/11 Treats.mp3' to '/sdcard/Music/Treats/11 Treats.mp3': Permission denied
j-bombs-computer:tools JFun$


Please any help will be greatly appreciated
 
Is your SD card mounted? It should not be.. You either move it over via the OS (in your case, it looks like OS X?), or you push via ADB. You can't do both at the same time.
 
Is your SD card mounted? It should not be.. You either move it over via the OS (in your case, it looks like OS X?), or you push via ADB. You can't do both at the same time.

Brandon i think you may be right. I assume my sdcard is mounted b/c it is showing up in finder. How do I unmount it? simply hit the eject button in finder (OS X) and then open up terminal and use the adb commands? sorry if this is android 101, just want to make sure i am doing this correctly.
 
I think so. I don't use OS X that often, but I think you just eject it, or drag it to the trash can to unmount it. Once it's unmounted from the OS, adb will be able to use the /sdcard mount point.
 
hey in case anyone else runs into this issue, there were two things I needed to do:
1. unmount the SD card on my Mac
2. Disable USB storage on the phone. You can do that by going to your notifications tab (top of your screen) and there should be an option listed for turn off USB Storage.

You will still see that you're connected via USB and once you type the adb commands, they work like a charm.

namebrandon, is there a section for tips for noobies? Can i suggest we create one and start sticky-ing commonly asked questions and fixes? I am sure someone down the road will have this same issue and it would be great to keep them all in one centralized location?

anyway, thanks for your help.
 

Trending Posts

Members online

Forum statistics

Threads
957,050
Messages
6,971,209
Members
3,163,693
Latest member
Ap2300