Adb Push File - Desire HD Q&A, Help & Troubleshooting

I have my Desire HD connected to my pc and it is in recovery.
I want to adb push a file to the /system.
Do I need to mount the /system in Clockworkmod first or do I just push the file?
Thanks

Firstly you need root. Once you have that simply use,
Code:
adb remount
adb push <local file> <remote destination>
E.g,
adb push bootanimation.zip /system/media/

I am so trying to understand all this (I'm new of course!!), I have the zip files I want to push, but I just don't understand where exactly I start. I have the files on my sdcard, and now what? where do I go to get that abd?
Please help!!!

htc-elsalv said:
I am so trying to understand all this (I'm new of course!!), I have the zip files I want to push, but I just don't understand where exactly I start. I have the files on my sdcard, and now what? where do I go to get that abd?
Please help!!!
Click to expand...
Click to collapse
I believe that Andyharney means once you have rooted your phone, you use the adb client on your computer to then push the file.
Type in 'adb remount' first then 'adb push <local file> <remote destination>'
Local file is what you want to push and remote destination is the address where you want it to go.

Related

[Q] How to push HTCFacebook.apk to /system/apps

Hey guys, before saying anything else, I'm a complete newb to this. That being said, I have MetroDroid 1.0 as my ROM and it doesn't have htcfacebook.apk installed on it, so no contacts syncing. It angers me! What I need is the htcfacebook.apk and .odex files, and a good tutorial on how to install them on my EVO. Im a noob, so you'll need to be detailed lol. I've been looking around but I cant find clear instructions, so I tough I might as well ask. Thank in advance
Nevermind, I figured all that out. Now it says 'failed to copy. out of memory'
After trying to install using the
adb install HtcFacebook.apk
Click to expand...
Click to collapse
command it says
Failure INSTALL_PARSE_FAILED_NO_CERTIFICATES
Click to expand...
Click to collapse
^that was when I was trying to install it while not in recovery. In recovery it says
/sbin/sh: pm: not found
Click to expand...
Click to collapse
Anyone? Help? I'm stuck. lol.
Try this. Put the apk in the Android sdk tools folder and open command prompt and navigate to the tools folder. Then run;
adb push HTCFacebook.apk /system/app/ (press enter)
adb shell reboot
Hope this helps.
Sent from my HTC SUPERSONIC
dglowe343 said:
Try this. Put the apk in the Android sdk tools folder and open command prompt and navigate to the tools folder. Then run;
adb push HTCFacebook.apk /system/app/ (press enter)
adb shell reboot
Hope this helps.
Sent from my HTC SUPERSONIC
Click to expand...
Click to collapse
Alright so I tried what you said and it gives me the error
failed to copy 'HtcFacebook.apk' to '/system/app/': Is a directory
Click to expand...
Click to collapse
To be more exact, this what I had typed in
C:\AndroidSDK\tools>adb push HtcFacebook.apk /system/app/
Click to expand...
Click to collapse
Also, my EVO was in recovery when I did this.
type "adb remount" before you push
and if that doesnt work, lose the first '/'
if you are in recovery you will need to
adb shell
#mount /system/
exit
then you can push them to system
adb push /yoursdklocation/tools/yourapk.apk/ /system/app
if not in recovery the
adb remount
will suit your purpose
[email protected] said:
if you are in recovery you will need to
adb shell
#mount /system/
exit
then you can push them to system
adb push /yoursdklocation/tools/yourapk.apk/ /system/app
if not in recovery the
adb remount
will suit your purpose
Click to expand...
Click to collapse
Alright, I did what you said (for pushing in recovery, because out of recovery it would say i didnt have enough memory) and now it said
C:\Users\Marius>adb push HtcFacebook.apk /system/app
1226 KB/s (164592 bytes in 0.131s)
Click to expand...
Click to collapse
I'm guessing that was supposed to happen? Now what do I do? just run the command 'adb install HtcFacebook.apk'?

Rooting with Gfree HELP!

Okay, I'm a complete noob and I'm following these instructions (http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2) using Gfree I believe.
I finished downloading the SDK File Manager and all the .zip folders that were mentioned on the site. However, I am stuck at the first temp root step. It says I can either enter in the command via cmd window or a different terminal. I chose a cmd window because I already have that and know how to use.
I run Windows 7, so I simply type cmd in the search bar to pull up a cmd window. I then "cd desktop" and then "cd gfree_temp-root" because it says to navigate to that folder. However, when I enter in the first command, my cmd window tells me this "adb is not recognized as an internal or external command, operable program or batch file". Does anyone know what I have to do?
Also, do I have to install Eclipse and an ADT plug-in to root my phone? And is anyone available right now to chat and walk this complete noob through this????
You're fine, just make sure your android sdk with adb is in your system path, in Win7 find it in ctrl panel/sys and security/system -> advanced system settings on the left, then advanced tab, environment variables at the bottom. In there in the bottom text window, find Path, edit it, go to the end of the path line and if there isnt already add a ; to the end of the line then paste in the full path to your android sdk where adb is - for me someandroidsdkpath\platform-tools
Alright, bumping into a new problem. I found an alternative way to run adb through another guide on the forum. Downloaded adb.exe and this is what I do.
Pull up a cmd window and then cd to the folder that contains the adb.exe, and then I copied all the files that needed to be push on the wiki page that needed to be push into that same folder. Howeverr, I am getting permission denied.
I got adb to recognize my device and all, but don't understand why permission is being denied.
EDIT: While I am waiting for a reply, I went ahead and did what the previous user told me to do. Now I can use adb through my cmd window. I navigate to the window of the file but I still get permission denied. What's going on?
LGS1231 said:
Alright, bumping into a new problem. I found an alternative way to run adb through another guide on the forum. Downloaded adb.exe and this is what I do.
Pull up a cmd window and then cd to the folder that contains the adb.exe, and then I copied all the files that needed to be push on the wiki page that needed to be push into that same folder. Howeverr, I am getting permission denied.
I got adb to recognize my device and all, but don't understand why permission is being denied.
EDIT: While I am waiting for a reply, I went ahead and did what the previous user told me to do. Now I can use adb through my cmd window. I navigate to the window of the file but I still get permission denied. What's going on?
Click to expand...
Click to collapse
Hmmm, are you in adb shell running the commands? ie a $ prompt?
the prompt at the point you send the push command would look like (for Windows): c:\myrootfileshere> adb push somefiles /sdcard/wherever
No, I am in a cmd window.
This what is looks like:
C:\User\XXXX\Desktop\gfree_temp-root> adb push su /sdcard/su ... I would then get "failed to copy 'su' to '/sdcard/su': Permission denied
Even if I wanted to use adb shell, I would get this:
C:\User\XXXX\Desktop\gfree_temp-root>adb shell
$ adb push su /sdcard/su
adb: permission denied
LGS1231 said:
No, I am in a cmd window.
This what is looks like:
C:\User\XXXX\Desktop\gfree_temp-root> adb push su /sdcard/su ... I would then get "failed to copy 'su' to '/sdcard/su': Permission denied
Even if I wanted to use adb shell, I would get this:
C:\User\XXXX\Desktop\gfree_temp-root>adb shell
$ adb push su /sdcard/su
adb: permission denied
Click to expand...
Click to collapse
Alrighty then try adb devices (not in the shell) and just verify it actually shows your phone, it won't show 'PHONE' but it's either going to show something or not.
Next, make sure the sdcard is mounted for the phone and not usb disk mode for the pc
Another thought, make sure there isnt a loose 'adb.exe' in the folder, we want to use the one ref'd from androidsdk\platform-tools
All of that failing, mount the SD card.. copy/paste the file(s) to to SD card.. unmount SD card.. continue as if you pushed it to the SD card
WHOOHOOO! I am rooted! I had to turn off the USB transfer thing and it all worked!!!! THANKS SO MUCH!
Nice bro! If I helped at all and if you wouldn't mind, hit the thanks
No problem!
thanks and happy flashing!

[Q] How do I use adb in a linux terminal?

Hello all,
I want to know how to use adb.
It seems pretty easy but I just can't get it to work. I'm using Ubuntu... I've already installed the android sdk.
So where do I go from here.
## WHAT I WANT TO KNOW IS THIS: ##
I want to (among other things) push a new boot animation to my phone from my Ubuntu laptop...
____Of course I could flash it but I want to learn how to push____
I have the "bootanimation.zip" on the root of my SD card.
NOW WHAT? In terminal?
Thanks
generalExpert said:
Hello all,
I want to know how to use adb.
It seems pretty easy but I just can't get it to work. I'm using Ubuntu... I've already installed the android sdk.
So where do I go from here.
## WHAT I WANT TO KNOW IS THIS: ##
I want to (among other things) push a new boot animation to my phone from my Ubuntu laptop...
____Of course I could flash it but I want to learn how to push____
I have the "bootanimation.zip" on the root of my SD card.
NOW WHAT? In terminal?
Thanks
Click to expand...
Click to collapse
First, put bootanimation.zip in the same directory as ADB
su
cd <enter directory with ADB here>
./adb remount
./adb push ./bootanimation.zip /system/media
And you should have your new boot animation.
EndlessDissent said:
First, put bootanimation.zip in the same directory as ADB
su
cd <enter directory with ADB here>
./adb remount
./adb push ./bootanimation.zip /system/media
And you should have your new boot animation.
Click to expand...
Click to collapse
Ok, after I enter "su" it asks for my pass and then says "su: Authentication Failure"
Is there another way like with sudo perhaps?
Ok, I did "sudo su" to become root... I think..
Then did "./adb remount" and it spit out "error: insufficient permissions for device"
Then i did "./adb devices" and it said "???????????? no permissions"
Any Ideas?
My EVO is connected via usb and I have usb debugging on and USB storage ON.
when you do the "su" command, you will need to allow superuser permission on your phone
"sudo su" first in ubuntu
in fact, ive pushed many files to my phone using ubuntu without running as root. if you are new to linux though, be advised the characters will not show as you enter your password, but dont worry, they're there... oh and what he said, you need to be rooted and make sure you can gain root access on the phone, type "./adb shell" and you should see a # sign; meaning you have root. if you see a $ sign you do not have root access. also you can type "./adb devices" to see if you device is 'online' with your computer

Cyanogenmod, adb, custom_backup_list.txt and host file

Hi All,
I'm trying to use the custom_backup_list.txt file to preserve my hosts file after a flash of a new nightly.
However, when i put /etc/hosts into custom_backup_list.txt it ignores it and deletes it anyway.
Also, if i use adb and type
adb pull /etc/hosts
or
adb pull /system/etc/hosts
or
adb remount
+ above
It doesn't see the hosts file, i get
"remote object '/etc/hosts' not a file or directory"
which makes me think im getting the path wrong.
If i use File expert and navigate to /etc/ the hosts file is there and populated with adfree updates.
So, what am i doing wrong here?
u have to populate the custom backup list in this way
Code:
etc/hosts
app/TheAppYouwant.apk
...
without the / at the beginnning of each line
about the adb command to save it on ur computer
Code:
adb remount [hit enter]
adb pull /system/etc/hosts C:\TheFolderYouWant\ [hit enter]
(this after 2 minutes searching on google)
andQlimax said:
u have to populate the custom backup list in this way
Code:
etc/hosts
app/TheAppYouwant.apk
...
without the / at the beginnning of each line
about the adb command to save it on ur computer
Code:
adb remount [hit enter]
adb pull /system/etc/hosts C:\TheFolderYouWant\ [hit enter]
(this after 2 minutes searching on google)
Click to expand...
Click to collapse
Well maybe you should have spent longer searching on Google because it doesn't work,, also if you checked my post above you would see i already tried adb pull /system/etc/hosts after adb remount.
In case your wondering , if you don't specify C:\TheFolderYouWant\ etc it assumes pwd (present working directory).
I can for instance pull custom_backup_list.txt from etc by specifying
adb pull /etc/custom_backup_list.txt
with no problem whatsoever, it seems to be specific to hosts.
Can i also ask how you know about
Code:
etc/hosts
app/TheAppYouwant.apk
...
I have other apps in the custom_backup_list.txt file that start /etc/ that are preserved fine which again points to a specific issue with hosts and hence why i think these two point may be connected.

[HELP please] Protocol failure when pushing through adb

Hey guys, I accidentally formated my sdcard and then Im stuck at Google logo.
Im typing the command to push a rom in order to get my device working again, but all I get its "not such file or directory" or sometimes "protocol failure" when the first one does not appear.
-Ive got the zip file in the same folder than adb
-My device is recognized in adb mode
-Im in recovery mode when Im doing this ( CMW 6.0.x )
-my device recognize commands like adb reboot for example so is connected properly
Please I really need help, I have to push the rom in order to save my phone.
Whay am I doing wrong? Ive tried almost every comand for example
adb push C:/android/nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard
adb push nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard/nameofzip.zip
HEEEELP PLEASE
please I need to repair it.
tyraelasd said:
Hey guys, I accidentally formated my sdcard and then Im stuck at Google logo.
Im typing the command to push a rom in order to get my device working again, but all I get its "not such file or directory" or sometimes "protocol failure" when the first one does not appear.
-Ive got the zip file in the same folder than adb
-My device is recognized in adb mode
-Im in recovery mode when Im doing this ( CMW 6.0.x )
-my device recognize commands like adb reboot for example so is connected properly
Please I really need help, I have to push the rom in order to save my phone.
Whay am I doing wrong? Ive tried almost every comand for example
adb push C:/android/nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard
adb push nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard/nameofzip.zip
HEEEELP PLEASE
Click to expand...
Click to collapse
On a windows pc that would be
adb push C:\android\nameofzip.zip /sdcard/
I generally copy the zip to the same directory as adb so there is no need to type the local directory
3rdstring said:
On a windows pc that would be
adb push C:\android\nameofzip.zip /sdcard/
I generally copy the zip to the same directory as adb so there is no need to type the local directory
Click to expand...
Click to collapse
Thanks dude, but neither of em worked.
Happily after trying so much to push the file/install the drivers and get it working, the toolkit recognized my fastboot drivers and I was able to install a google factory image through it and now everything is perfect.
Cheers.

Categories

Resources