Micromax Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Chainfire Turns Your Bootanimation into a Logging Center

Having a nice boot animation certainly adds a little bit of aesthetic polish to your … more

Android TV Launcher Pushed to Google Play

Over the past decade, the tech universe has seen two drastic and widely contrasting changes with … more

Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] ADB cannot push/mkdir/cp a file to extSdCard

OP The Jinxer

9th April 2014, 01:48 PM   |  #1  
OP Member
Flag Cape Town
Thanks Meter: 4
 
82 posts
Join Date:Joined: Aug 2012
More
Hi people, I have looked around and haven't found anything to do with adb not letting any editing to the extSdCard whatsoever (without root)
I want to be able to use
Code:
adb push "C:\whatever.txt" /storage/extSdCard/
and actually work. everytime I do this it gives me:
Code:
failed to copy 'C:\whatever.txt /storage/extSdCard/whatever.txt': Permission denied
I have not got superuser privileges and made this thread for those who do not have it. PLEASE do NOT post anything to do with busybox or su, your efforts will be in vain.
Thanks in advance
10th September 2014, 12:27 PM   |  #2  
OP Member
Flag Cape Town
Thanks Meter: 4
 
82 posts
Join Date:Joined: Aug 2012
More
for those coming here as reference, this is probably due to the changes to file permissions in KitKat
10th September 2014, 04:47 PM   |  #3  
Senior Member
Thanks Meter: 590
 
3,105 posts
Join Date:Joined: May 2010
Donate to Me
More
Quote:
Originally Posted by The Jinxer

for those coming here as reference, this is probably due to the changes to file permissions in KitKat

No, it's not. The Kit Kat SD card deal is only for 3rd party apps on the phone for writing to the SD card. http://www.androidcentral.com/kitkat-sdcard-changes . Has nothing to do with adb.

There are tons of people through the past few years that have this "trouble" for various phones and many versions of android. Often times it does just not work. Are you certain that the external is at /storage/extSDcard? Sometimes you have to do this as well:

adb push somefile.zip /storage/extSDcard/somefile.zip


What phone do you have? Why to the external and not internal and then just use a file manager to swap it over? Or use an external card reader. Or wifi file transfer.
10th September 2014, 04:53 PM   |  #4  
OP Member
Flag Cape Town
Thanks Meter: 4
 
82 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by es0tericcha0s

No, it's not. The Kit Kat SD card deal is only for 3rd party apps on the phone for writing to the SD card. http://www.androidcentral.com/kitkat-sdcard-changes . Has nothing to do with adb.

There are tons of people through the past few years that have this "trouble" for various phones and many versions of android. Often times it does just not work. Are you certain that the external is at /storage/extSDcard? Sometimes you have to do this as well:

adb push somefile.zip /storage/extSDcard/somefile.zip


What phone do you have? Why to the external and not internal and then just use a file manager to swap it over? Or use an external card reader. Or wifi file transfer.

my phone's details are in my signature.
I do push to the internal since i cant push to external. my external is called sdcard1 by the system. The reason for pushing to external is that it is 16GB compared to 8GB internal (5GB usuable)
10th September 2014, 04:59 PM   |  #5  
Senior Member
Thanks Meter: 590
 
3,105 posts
Join Date:Joined: May 2010
Donate to Me
More
Why can't you just transfer via MTP or wifi file transfer?
10th September 2014, 05:15 PM   |  #6  
OP Member
Flag Cape Town
Thanks Meter: 4
 
82 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by es0tericcha0s

Why can't you just transfer via MTP or wifi file transfer?

I have an automatic script which moves files to the phone/installs them if apk file etc. MTP sucks big time and wifi can be slow/not available
10th September 2014, 05:33 PM   |  #7  
Senior Member
Thanks Meter: 590
 
3,105 posts
Join Date:Joined: May 2010
Donate to Me
More
Quote:
Originally Posted by The Jinxer

I have an automatic script which moves files to the phone/installs them if apk file etc. MTP sucks big time and wifi can be slow/not available

Never really had issues with MTP. I work on phones for a living and have owned many (see list in sig) and use 3 different PCs - Win XP, Win 7, and Win 8.1 and MTP works right 99% of time for me on - you name it - HTC, Samsung, Sony, LG, etc etc. Have rooted/modded/upgraded/fixed 100s of devices and pretty much all of them I have to use MTP these days. *shrug*

If you have the ability to wifi tether, you can tether to your device and send files that way too. It's as fast/reliable as your data connection at that point though. I'm lucky enough to live in an area where I have a good signal almost always and have unlimited data so this option works great for me too. Your results may vary.
10th September 2014, 07:11 PM   |  #8  
OP Member
Flag Cape Town
Thanks Meter: 4
 
82 posts
Join Date:Joined: Aug 2012
More
i forgot to mention i am in a no signal zone. so wifi is not an option. i dont mean mtp does not work, but i feel it is sluggish and has flaws, while my script has none. do you want my script?
basically it is a drag and drop batch file, and if the dropped file is an apk, it installs it. if the file is a mp3, video etc it moves it to a corresponding folder, and if the extension is not recognised, it offers to move the file to downloads. only flaw it has is that it needs editing to work on a phone that names the internal sd something else, which can be changed with an easy find/replace

Post Reply Subscribe to Thread

Tags
adb, extsdcard, push
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes