• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help HELP: I can't push files using ADB!

Raadius

Member
Jun 9, 2010
90
6
First, I'm not rooted. I don't need root to push files using ADB though. I'm trying to push a file to "system/app" using ADB but I keep getting "permission denied". I've read countless threads and still cant get it.

I can get everything started,

F:\Android SDK\tools\
F: adb devices

Than it list my devices. Than I type in

F:adb shell and I get a "$" sign.

Anything I type after that I get permission denied.

I tried adb push [insert file here] /system/app I get

"ADB: Permission Denied."

I tried adb remount, I get 'ADB: Permission Denied"

Here is my log:
F:\>adb devices
List of devices attached
HT05CHL02486 device


F:\>adb shell
$ adb push f:\smoothcalendar.apk /system/app
adb push f:\smoothcalendar.apk /system/app
adb: permission denied
$ adb push f:\smoothcalendar.apk \system\app
adb push f:\smoothcalendar.apk \system\app
adb: permission denied
$ adb push f:\smooothcalendar.apk
adb push f:\smooothcalendar.apk
adb: permission denied
$
F:\>adb devices
List of devices attached
HT05CHL02486 device



F:\>adb devices
List of devices attached
HT05CHL02486 device


F:\>adb shell
$ adb remount
adb remount
adb: permission denied
$ adb mount
adb mount
adb: permission denied
$ adb devices
adb: permission denied
$
Any help
 
you are not using adb correctly.

1) if you are using adb shell, you are now in shell mode, and you should be using standard linux commands. The "permission denied" error you are getting is misleading. If you type kjdzgkjfdlkgdhgslkhfdg and press enter, it will say permission denied. You should read the error as "unknown command."

2) if you want to use adb to push files to your phone, you need to do that from your windows prompt, not inside adb shell. For example:

C:\>adb push myfile.txt /system/app/myfile.txt
3) I believe that you need to specify the target file name. it's not enough to specify the directory. See my push example above.

4) /system/app is a root-only area. You can't mount that writable without root. So even if you got all the syntax right, it wouldn't work. You are right, though. Not all areas are protected, and you can indeed push files to your phone without root. /system/* is not one of those areas.

Hope that helps.
 
  • Like
Reactions: EarlyMon
Upvote 0
Thanks Novox77, I'm guessing there is no way I can push my modified .apk than since it goes to the system/app :(

You can root your phone :) To even attempt what you are trying to do seems to indicate you're the type of person that would enjoy the benefits of rooting.

I'd give it some thought. And there's lots of ppl here to help you through it. If you do your research and understand what's going on, it's pretty hard to screw up your phone trying to root it.
 
  • Like
Reactions: EarlyMon
Upvote 0
novox,

Any idea what I'm doing wrong?

I'm use a MacBook Pro. I was trying to push a boot animation with adb after 5 hours just gave up.

I DL'd SDK Android for Mac, put the boot animation zip in the tools folder, put the phone into recovery (bootloader usb) and connected it to my Mac, opened up Terminal and tried the following coomands:

./adb remount
./adb push bootanimation.zip /system/customize/resource
./adb reboot


This is what Terminal said:

Screenshot2010-08-08at44038PM.png


I just can't get adb to work. No idea what I'm doing wrong.
 
Upvote 0
based on your screenie, my guess is that your current directory is not the /tools directory of the SDK. Therefore, when you call ./adb, your computer is saying, "I don't see the command adb in this current directory."

A few unix basics:
~ = home directory
. = current directory
.. = parent directory
pwd = command to show you what directory you are in
cd ~ = go to your home dir. In your case, it appears to be johngirgenti/
cd .. = go back one directory (the parent)
cd / = go to the root directory (the parent of all folders; the root)
ls -al = list contents of the current directory in vertical list format and showing all hidden files (files beginning with a dot).

With these commands, you should be able to navigate the directories on your mac from the terminal.

when you say ./adb, you are saying current directory/adb. Based on your prompt, you seem to be in your home directory. Unless you have defined the location of adb in your PATH environment variable, you can't just run adb from any location. I don't know where the default location of the android SDK is for the Mac, but you should navigate there (tools directory) and try your ./adb command from there.

You are trying to replace the stupid 4G animation with your own 1337 animation. Here's how I'd do it, once you've verified you can get adb running:

./adb shell
mount /system
exit
./adb push bootanimation.zip /system/customize/resource/bootanimation.zip
./adb reboot
Do this while your phone is in custom recovery.
 
Upvote 0
based on your screenie, my guess is that your current directory is not the /tools directory of the SDK. Therefore, when you call ./adb, your computer is saying, "I don't see the command adb in this current directory."

A few unix basics:
~ = home directory
. = current directory
.. = parent directory
pwd = command to show you what directory you are in
cd ~ = go to your home dir. In your case, it appears to be johngirgenti/
cd .. = go back one directory (the parent)
cd / = go to the root directory (the parent of all folders; the root)
ls -al = list contents of the current directory in vertical list format and showing all hidden files (files beginning with a dot).

With these commands, you should be able to navigate the directories on your mac from the terminal.

when you say ./adb, you are saying current directory/adb. Based on your prompt, you seem to be in your home directory. Unless you have defined the location of adb in your PATH environment variable, you can't just run adb from any location. I don't know where the default location of the android SDK is for the Mac, but you should navigate there (tools directory) and try your ./adb command from there.

You are trying to replace the stupid 4G animation with your own 1337 animation. Here's how I'd do it, once you've verified you can get adb running:

Do this while your phone is in custom recovery.

I thought I had it this time. Rebooted the phone and the animation wasn't there...I think I give up...lol

Screenshot2010-08-10at74449PM.png
 
Upvote 0
wrong directory. push it to /system/customize/resource/bootanimation.zip
**also note, you need to specify the target file**

./adb push bootanimation.zip /system/customize/resource/bootanimation.zip

be sure to mount /system first.

and there's also an mp3 file you can replace in /system/customize/resource. it's the one that plays with the boot animation. sounds like crap.
 
Upvote 0
wrong directory. push it to /system/customize/resource/bootanimation.zip
**also note, you need to specify the target file**



be sure to mount /system first.

and there's also an mp3 file you can replace in /system/customize/resource. it's the one that plays with the boot animation. sounds like crap.

Gotcha...what do you mean by mount /system first?

Sorry...slowly learning this adb stuff :(.

Yeah...have an mp3 file too....just push it the same way right?
 
Upvote 0
Tried to do the mp3...thought I had it but on reboot it didn't play, any idea's?

Tried this too...didn't work

Did it play the original sound at all? If not, then I'm guessing the issue is with your mp3 file. try something standard like 44khz@128.

Looks like your locations are different than mine. for me, on 2.1, the boot animation was in /system/customize/resource, and the sound was in /system/media. In 2.2 (for me), the sound was moved to /system/customize/resource, and it was also renamed.
 
Upvote 0
Did it play the original sound at all? If not, then I'm guessing the issue is with your mp3 file. try something standard like 44khz@128.

Looks like your locations are different than mine. for me, on 2.1, the boot animation was in /system/customize/resource, and the sound was in /system/media. In 2.2 (for me), the sound was moved to /system/customize/resource, and it was also renamed.

No, didn't play any sound.

Here's the mp3 file I'm trying to push.....it obviusly works on Evo's....just not sure why I can't get it to work.

[Boot Screen] Custom EVO animation - xda-developers
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones