how to push files with adb - HTC Sensation

how does one push files through adb.i will answer that question once my 10 post are put up and i can post in developer forum

What i did was downloading the radio from arhd tread. Then you got a start here file. Open that one
Them:
Adb push fileinthatfolder.xxx /mnt/sdcard/file.xxx
Sent from my HTC Sensation Z710e using XDA App

Change directory (CD) to your ADB folder, type in adb push *filename* /*directory*
Eg: Push Market app to /system/app folder,
adb push market.apk /system/appp

illuminarias said:
Change directory (CD) to your ADB folder, type in adb push *filename* /*directory*
Eg: Push Market app to /system/app folder,
adb push market.apk /system/appp
Click to expand...
Click to collapse
Come on illumiarias he not gonna understand that. Lol.
Type in cd\ then push enter
Type in cd (folder where your adb tools are in) ex: androidSDK\tools\ then enter
Then type in your adb command. Make sure your file your trying to push is in the same folder as your tools.makes things easier.

http://forum.xda-developers.com/showthread.php?t=517874

Related

I wanna remove the clear lockscreen and put the original one??

I am on fresh 1.1 but i dont like the clear lockscreen. Is there a way i can change it??
yes try looking
just push this to system/app
you can use the fresh kitchen or adb
btw you can take apps out of any rom.zip on your computer, that's where i got this
Thank You thedudejdog it worked perferct
You can take the HtcLockscreen.apk out of the /system/app dir of any ROM you like to get that rom's lockscreen going.
thedudejdog said:
just push this to system/app
you can use the fresh kitchen or adb
btw you can take apps out of any rom.zip on your computer, that's where i got this
Click to expand...
Click to collapse
am a newly rooted hero owner. read/re-read/followed the steps to do it on this forum and am grateful to those who lent their knowledge/expertise.
want to have the original hero lockscreen and downloaded this HtcLockScreen.apk file.
i searched online to see if i could find instructions to push this but can't seem to figure it out.
i've done the following:
- copied HtcLockScreen.apk to the root of my sd card.
- opened a command prompt
- got to "C:\android-sdk-windows\tools>"
from here am i supposed to type:
- "adb shell"
- "su"
'cause i think to push this is the command, right:
- "push /sdcard/HtcLockScreen.apk /system/app/"?
help please!
thank you.
ok, put the file that you want to push in your tools directory of the sdk (c:\sdk\tools) these are the commands to push the file using adb
make sure you are in the command prompt and in your android sdk/tools directory.
you can copy/paste these one line at a time
i always do a
Code:
adb devices
first just to make sure adb sees your phone. if your phone shows up then continue
then mount system read/write
Code:
adb remount
then push the new lockscreen (this will overwrite the one that is there now)
Code:
adb push HtcLockScreen.apk /system/app
then close the cmd prompt window
Code:
exit
or you can use the fresh kitchen for a nice gui that does all the dirty work for you.
then reboot and there ya go, new lockscreen (or whatever)
i've never used the shell to push files, but i assume those commands that you listed should work for that, but you have to remount the filesystem first.
I thought I saw on here a little while back that showed you how to remove just the image from the lockscreen so all you have is the grey bar. Does anyone know where that is because I thought that that was kinda cool.
thedudejdog said:
ok, put the file that you want to push in your tools directory of the sdk (c:\sdk\tools) these are the commands to push the file using adb
make sure you are in the command prompt and in your android sdk/tools directory.
you can copy/paste these one line at a time
i always do a
Code:
adb devices
first just to make sure adb sees your phone. if your phone shows up then continue
then mount system read/write
Code:
adb remount
then push the new lockscreen (this will overwrite the one that is there now)
Code:
adb push HtcLockScreen.apk /system/app
then close the cmd prompt window
Code:
exit
or you can use the fresh kitchen for a nice gui that does all the dirty work for you.
then reboot and there ya go, new lockscreen (or whatever)
i've never used the shell to push files, but i assume those commands that you listed should work for that, but you have to remount the filesystem first.
Click to expand...
Click to collapse
thank you! it worked...

HTC Navigation.apk

anyone have this please id like to have it ...... and how do i remove the other nav please ( like to save it incase i dont like the HTC NAV )
I don't have the .apk for HTC Navigation, but when/if you do get it, just to to system/app and rename your current nav application (i.e. navigation.apk.old) if you don't want it to show up in your app list, but don't want to uninstall.
http://forum.xda-developers.com/showthread.php?t=700448 At the bottom of post #1 Flip was nice enough to zip all the apks into one zip file. Hope that helps.
Stunna4life888 said:
http://forum.xda-developers.com/showthread.php?t=700448 At the bottom of post #1 Flip was nice enough to zip all the apks into one zip file. Hope that helps.
Click to expand...
Click to collapse
yea i pulled that from the SDcard but it wont install i might have to push it
Sporkman said:
yea i pulled that from the SDcard but it wont install i might have to push it
Click to expand...
Click to collapse
Thats what I had to do, know how do that?
Stunna4life888 said:
Thats what I had to do, know how do that?
Click to expand...
Click to collapse
hmm, could you kindly explain what "pushing" is, and how to do it?
my android pushing and pulling files.
for those of you new to android and adb.
ok here is the real answer
pulled directly from android developer tools.
----------------------------------------------------------------------
Copying Files to or from an Emulator/Device Instance
You can use the adb commands pull and push to copy files to and from an emulator/device instance's data file. Unlike the install command, which only copies an .apk file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance.
To copy a file or directory (recursively) from the emulator or device, use
adb pull <remote> <local>To copy a file or directory (recursively) to the emulator or device, use
adb push <local> <remote>In the commands, <local> and <remote> refer to the paths to the target files/directory on your development machine (local) and on the emulator/device instance (remote).
Here's an example:
adb push foo.txt /sdcard/foo.txt
How to push the file via your sd card
So for an example on pushing a file from a computer to phone make sure you are in recovery mode. And assuming you have the apk somewhere on your sd card. Open command prompt and navigate to your sdk-tools to use adb. THIS EXAMPLE IS STRAIGHT FROM FRESH THATS WHY I SAYS ..../FRESH-REMOVED-APKS/. That is just the location on your sd card so this is where you need to type where the file is. WHATEVERAPP.apk thats what the apk name is. Make sure that it is the same spelling and spacing/no spacing as well. notice the space after .apk as well. Now you are ready simply type the following commands (enter at the end of each line.) Last line is simply where your file is on your sdcard then the file name as it appears in the file on your sd card. Hope this helps!
adb shell mount /sdcard
adb shell mount /system
adb shell
cp /sdcard/fresh-removed-apks/WHATEVERAPP.apk /system/app

how to use themes from theme repo

sorry guys forgive my dumpness but i downloaded theme from the topic . after i replaced the apk files through root explorer and made restart to the device after that my x10 couldnt start i reflashed root steps but i really still want to change this stupid blue colore is there any easy way to do it . i wanna use the themes that already made from devlopers it comes like normal apk files........thanks in advance
Sent from my X10i using the XDA mobile application powered by Tapatalk
see Here *10chars*
What files do you have exactly? framework-res.apk? Phonebook.apk? Phone.apk
This thread as given above is taken that you have ADB installed on your computer.
http://forum.xda-developers.com/showthread.php?t=714288
If you do not have ADB, visit this thread first.
http://forum.xda-developers.com/showthread.php?t=532719
Feel free to ask if you have more questions
xGary said:
What files do you have exactly? framework-res.apk? Phonebook.apk? Phone.apk
This thread as given above is taken that you have ADB installed on your computer.
http://forum.xda-developers.com/showthread.php?t=714288
If you do not have ADB, visit this thread first.
http://forum.xda-developers.com/showthread.php?t=532719
Feel free to ask if you have more questions
Click to expand...
Click to collapse
i have framework-res.apk? Phonebook.apk? Phone.apk
and i know about adb commands but i wonder what is the diffrences it's all about replacing apk files and i manged that with root explorer and the guide is too hard it's all about modfications of the system files but it didn't tell us how to use an exsiting theme files ....is it all about the remount command that make us have to use adb ??? thanks in advance
h.boushi1987 said:
i have framework-res.apk? Phonebook.apk? Phone.apk
and i know about adb commands but i wonder what is the diffrences it's all about replacing apk files and i manged that with root explorer and the guide is too hard it's all about modfications of the system files but it didn't tell us how to use an exsiting theme files ....is it all about the remount command that make us have to use adb ??? thanks in advance
Click to expand...
Click to collapse
Not sure if ADB is required but thats the only method I know of. A step by step guide (Might want to double check with advanced users)
1) Install ADB and set the environment variables, etc.
2) Go to the folder (Should be c:/android-sdk-windows/tools) and open adb.exe (If it flashes and auto closes, open up cmd [Start>Run>cmd] and drag the adb.exe into the cmd and press enter)
3) Put Phone In Debugging Mode Settings>Applications>Development>USB Debugging
In ADB, type these commands
*Note that the commands are case sensitive*
Pull the files you are about to replace with the following commands:
cd c:/anrdroid-sdk-windows/tools
adb pull /system/framework/framework-res.apk framework-resk.apk
adb pull /system/app/Phonebook.apk
adb pull /system/app/Phone.apk
4) Now framework-res.apk, Phonebook.apk, and Phone.apk should be in your tools folder where your adb.exe is. Put these files somewhere safe.
5) Now drag your new framework-res.apk, Phonebook.apk, and Phone.apk into the tools folder.
6) Go back to adb and type the following command:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
7) Now these commands will move your new theme files to the sdcard:
adb push framework-res.apk /sdcard/framework-res.apk
adb push Phonebook.apk /sdcard/Phonebook.apk
adb push Phone.apk /sdcard/Phone.apk
8) Now these commands will install the new theme files in the sd card from the previous step:
adb shell dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk
adb shell dd if=/sdcard/Phonebook.apk of=/system/app/Phonebook.apk
adb shell dd if=/sdcard/Phone.apk of=/system/app/Phone.apk
9) Now your phone will restart (If not, manually restart) and your theme should be installed.
Gary~
thanks a lot man ... you are the best i'll try that and report back but any way you still the best.....
Sent from my X10i using the XDA mobile application powered by Tapatalk
why every time i put the mount command it tells me "the device not found"
and the pull commands don't seems to work
i tried adb devices command but it seems it doesnt found my device
Mmm...maybe its sound dumb, but I'm a noob in this. How do you change the battery icon? Thx
rein_hiryu said:
Mmm...maybe its sound dumb, but I'm a noob in this. How do you change the battery icon? Thx
Click to expand...
Click to collapse
You pull the framework-res.apk file and open it with 7-zip. Inside should be some folders and there should be a folder (forgot which one) with a bunch of pngs. Replace the battery icons with desired ones.
Gary~

Need help

I rooted my cool with one click method and tried to flashed the latest tiamat kernel for SD card capabilities got as far as the and remount step and got to the step where you adb push the kernels system files and it didn't work it said file location doesn't exist now my WiFi doesn't work I'm sorry this is just one big sentence but I need help.
Sent from my PC36100 using XDA Premium App
Do you mean it can't find the files on your computer? Easiest fix is to copy all files in every subdirectory of the ZIP archive into one folder and run the adb commands from there.
My cmd is c:/users/(nam
Sent from my PC36100 using XDA Premium App
E)/ and I put the kernels system files there and adb pushed the file name and location and it still didn't work
Sent from my PC36100 using XDA Premium App
does your cmd window look anything like the attached file?
put single qoutes around your C:\ path like this 'C:\path\to\kernel\file'
When starting to type out a file name in the command prompt, pressing the TAB key will try to fill in the title. It ensures that you've got quotes around everything too if needed.
Like if I wanted to list the C:\Program Files folder, I'd type "dir C:\progr" and hit tab after going that far. It'll fill in what it can. Just keep typing to help it along as you press tab.
I copied and pasted what the instructions said about the kernel my CMD directory isn't c temp its c users (computer name)
Sent from my PC36100 using XDA Premium App
blackroseimmortal09 said:
I copied and pasted what the instructions said about the kernel my CMD directory isn't c temp its c users (computer name)
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
OK, let's try it this way. I packed you all the files of the Tiamat 1.3.1 into an archive that does not create subdirectories. Please follow the steps below:
connect the Xoom
create a directory on C: called "temp"
extract all files from the archive found here to c:\temp\
Start cmd (command prompt)
Simply copy and paste the next steps, line by line:
Code:
cd C:\temp\
adb shell
mkdir /data/media/sdcard2
exit
adb reboot bootloader
(wait until Motorola logo shows)
Code:
fastboot flash boot boot.img
fastboot reboot
(wait for reboot)
Code:
adb remount
adb push bcm4329.ko /system/lib/modules/bcm4329.ko
adb push tun.ko /system/lib/modules/tun.ko
adb push scsi_wait_scan.ko /system/lib/modules/scsi_wait_scan.ko
adb push cifs.ko /system/lib/modules/cifs.ko
adb push vold.fstab /system/etc/vold.fstab
adb reboot
Please let me know if that works for ya!
Never mind root my xoom got updated with the latest tiamat kernel with SD card support thanks anyways
Sent from my PC36100 using XDA Premium App

[GUIDE] How To Use ADB To Push And Pull Files

Welcome XDA Members!
To Use ADB First You Have Enable ADB In The Developer Options In Your Android Phone. In This Thread I Will Tell You How To Push And Pull Files Via ADB.
Pull = Taking (OR) Copying Files For System(Android)
Push = Copying The Files To The System
Note: If You Are Using CM12,CM13 Set Root Access To "Apps And ADB".
How To Pull Files:
1. Open CMD (OR) Terminal In Your PC
2. First You Have To Start ADB In Root
Code:
adb root
3. You Have To Mount The System
Code:
adb remount
4. Now We Pull The Files (Exampel: Settings.apk)
Code:
adb pull /system/priv-app/Settings/Settings.apk
5. Replace /system/priv-app/Settings.apk To Your File Location
6. You Got Your File Form The System!
How To Push files
1. Open CMD (OR) Terminal In Your PC
2. First You Have To Start ADB In Root
Code:
adb root
3. You Have To Mount The System
Code:
adb remount
4. Put Your File In The ADB Folder
5. Now We Push The Files (Example: Settings.apk)
Code:
adb push Settings.apk /system/priv-app/Settings.apk
6. Replace /system/priv-app/Settings.apk To Your File Location
7. You Have Copied Your Files To Android System.
Press The Thanks Button!
Enjoy! :
Is there any way to push files in bunch to like hundreds of files to system at once just like copy paste
Ash225 said:
Is there any way to push files in bunch to like hundreds of files to system at once just like copy paste
Click to expand...
Click to collapse
yes just push the folder containing those files (you can leave a space at the end of your push command and specify a particular location in your android device)

Categories

Resources