Related
Prerequisites have...
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
usadevil7193 said:
hi mate...i m new to android..i own a nexus1..hav rooted without unlockin d bootloader..i am tryin to push d track ball to wake mod...evry time i type adb remount it says permission denied..any ideas to get things workin...???????
Click to expand...
Click to collapse
Welcome to XDA and Android! Are you trying to get help for your Nexus One? This forum here is specifically for the HTC Hero CDMA.
You will probably find better and more specific help in the Nexus One forums which are here: http://forum.xda-developers.com/forumdisplay.php?f=556
Great post, very easy to follow, thank you.
yea I'm trying to do this, over and over, but with not luck. i have sdk on my pc and im running the cmd prompt to run adb remount & devices and its not picking up the phone, wth is going on, plz help
this also works for the samsung Galaxy S in recovery mode.
mikeybonez28 said:
yea I'm trying to do this, over and over, but with not luck. i have sdk on my pc and im running the cmd prompt to run adb remount & devices and its not picking up the phone, wth is going on, plz help
Click to expand...
Click to collapse
mine shows up but then says error, device offline
hi, i have adb recognizing my phone, but i still can't seem to push the files over.... every time i try, i get 'cannot stat 'su' : No such file or directory'. i have made sure over and over to put the files in the same folder where adb is.... actually i have tried placing the files in the tools folder, as well as the platform-tools folder, and i keep getting that error when i try to push anything.
any suggestions? thx
yogi2010 said:
hi, i have adb recognizing my phone, but i still can't seem to push the files over.... every time i try, i get 'cannot stat 'su' : No such file or directory'. i have made sure over and over to put the files in the same folder where adb is.... actually i have tried placing the files in the tools folder, as well as the platform-tools folder, and i keep getting that error when i try to push anything.
any suggestions? thx
Click to expand...
Click to collapse
i had the same issue with something i was trying to push. I think you need to make sure you have exactly the same file name like caps and all. i was trying to push rootexplorer.apk and i got the same message but i then changed it to RootExplorer.apk and it work.(notice the difference in caps)
just watch this and it'll explain everything.
http://www.youtube.com/xdadevelopers
Does it matter where sdk is installed my file path is
C:\Program Files\Android\android-sdk\tools
instead of
C:\android-sdk-windows\tools.
I just installed it in the default location.
I type adb remount and get the not recognised command.....
Thanks.
I don't think my phone is being picked up?
{LCD}Stelios said:
Does it matter where sdk is installed my file path is
C:\Program Files\Android\android-sdk\tools
instead of
C:\android-sdk-windows\tools.
I just installed it in the default location.
I type adb remount and get the not recognised command.....
Thanks.
I don't think my phone is being picked up?
Click to expand...
Click to collapse
Make sure your have the drivers for your phone installed first of all.....Then, in your command prompt you have to change directories to the sdk (which you made harder by not installing to C:\
Try: cd Program Files\Android\android-sdk\tools
Then type: adb devices
That should return "xxxxxxdevice" connected....Then you know you have it set up.
Look in kyouko sig he has all the commands for adb
Sent from my HERO200 using XDA App
Bierce22 said:
just watch this and it'll explain everything.
http://www.youtube.com/xdadevelopers
Click to expand...
Click to collapse
great video arse....thanks for the help donkey
Flashing fresh ROM via ADB in Linux
Hello there.
M volumeUp and VolumeDown buttons are broken on my rooted Desire HD, so I cannot go through CWM any longer.
With regard to this post, I would ask the followings:
1) can this method be used to flash a new ROM (i.e. Coredroid, Leedroid..) without the need of those 2 buttons ?
2) My PC runs Linux. How does it work with this O.S. ?
Thanks
paolo
pacut said:
Hello there.
M volumeUp and VolumeDown buttons are broken on my rooted Desire HD, so I cannot go through CWM any longer.
With regard to this post, I would ask the followings:
1) can this method be used to flash a new ROM (i.e. Coredroid, Leedroid..) without the need of those 2 buttons ?
2) My PC runs Linux. How does it work with this O.S. ?
Thanks
paolo
Click to expand...
Click to collapse
There is a thread somewhere on how to flash without a SD card and flashed using adb I believe, but don't take my word for it. Adb works fine with Linux, just have to set it up differently. Look in my sig and select the compile aosp on Ubuntu one and follow instructions on getting the USB set up.
Sent from Dorian's HTC Hero CDMA
Yes, I saw it. It's http://forum.xda-developers.com/showthread.php?t=911228
The fact is...still have to navigate through menu via VolumeUp/volumeDown buttons
Maybe through ROM manager, premium, I can install ROM direclty.
I am gonna trying
YES ! It works !
Hi I need help. I accidentally wipped my phone in CWM and now I'm trying to use adb push to push the update.zip into my phone sd everything seems to work but then in CMW it says there are no files..
any suggestions?
[Edit]
nevermind
I kept trying different locations
not sure which one did the trick but I'll list the one's I tried
so \update.zip /sdcard/
.... /sdcard/update.zip
(note I put "/update.zip" thinking maybe it needed to be reallocated to the same file/destination
Can i use adb push *.apk /system/app to push several files at once, and then repeat but using *.odex instead of *.apk? I keep ending up getting the same error, and i want to find out which app is messing with me...
rulermon said:
Prerequisites have...
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
Click to expand...
Click to collapse
Hey guys ...
I have also rooted my phone , everything was OK until one day i tried to write something to /system/app and i recieve this error:
in Addition , i am writing "adb shell" and it shows me $
if i am doing adb shell --> $ --> su --> it shows #
Can some1 knows what is the problem?
Hey Boys and Girls,
where i can find an manual to root the tattoo with a mac?
sorry, i have search for this, but i cant find information for this
I don't thing that there is a difference.
As soon as you have SDK installed and adb works, the commands are the same.
hi,
i'm also doing all the rooting process from mac, just put the directory contain 'adb' shell into your home/user places and executing it with 'terminal'..
Same here, using a Mac ever since and also using it for Android development. Due to the underlying Unix core of OS X you just have to follow the steps as described for Linux. If it's just adb commands it's the same on every platform anyway.
You might want to add a
Code:
export PATH=${PATH}:/Users/yourusername/android.sdk/tools
to your .bash_profile file in your home folder so you don't have to cd to the SDK tools folder everytime. Happy rooting!
Mod. edit: not dev related, moved to general
Okay thanks for yours answers but i'm a newbie.
the background story is, I want to edit the boot.mp3. Because the startsound is really annoying
So i have download SDK, open the terminal and switch to usb-debbugging mode on my tattoo.
And now? sorry, I'm still missing a few knowledge
thanks for your help
well just use the various adb commands in Terminal Just type in "adb", press enter and you'll get a list of all possible commands. Assuming you've added the path to your sdk tools folder to your bash profile. Otherwise just drag & drop the adb binary from the tools folder onto your Terminal window, et voila.
The most used commands are probably push and pull where you can, well, push stuff to your phone or pull it to your computer.
So if you want to modify the boot.mp3 you would pull the original from the phone to your computer, modify it and push it back, overwriting the original file. In Terminal speak: ;-)
adb pull /system/media/bootscreen/boot.mp3
adb push /path/to/boot.mp3 /system/media/bootscreen/boot.mp3
Please note depending on the ROM you're using the paths may be different. To browse the device via Terminal type in "adb shell" and make a simple "ls" to list the directories, "cd" to change directories etc.
Or if you just want to use another mp3:
adb push /path/to/whatever.mp3 /system/media/bootscreen/boot.mp3
Again, on the Mac you can just drag & drop files onto the Terminal to get their full Unix paths like to your custom mp3
Thanks a lot. i love it its really simple
and now i have load and edit the the boot.mp3. But i can't push it to my tattoo, because i can only read but not write
I have tried to root my phone with "adb root" but it is the message "adbd cannot run as root in production builds"
Terminal: "adb remount", then push again
damn the next bad message "remount failed: Operation not permitted"
You need to root your phone first.
http://forum.xda-developers.com/showthread.php?t=637927
Okay i have executed the instructions. But I've stop at this part:
You should get something like this:
Code:
# id
uid=0(root) gid=1000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
uid=0(root) is important.
Click to expand...
Click to collapse
Yes i've root but i'cant download the "su binary" because its doesnt exist.
But its absolute essential to need the "su binary" to only copy the boot.mp3 to my phone? Or there is an other way? What are the commands to push the boot.mp3 back to may tattoo then i'm in the root mode like >> "#".
okay hope you understand me
You need "su" to do root stuff... no other way.
Download the package from 1 click root thread and find "su" there...
http://forum.xda-developers.com/showthread.php?t=644279
now, i have install the su binary. Then i does this command
user:~ user$ /Users/user/android-sdk-mac_86/tools/adb shell
$ /data/local/bin/su
#
Click to expand...
Click to collapse
And now? Is there a comand to push the boot.mp3 back to the phone in this mode >> "#" ?
I have try to open an new terminal window and type
adb push /path/to/boot.mp3 /system/media/bootscreen/boot.mp3
Click to expand...
Click to collapse
but the answer is
failed to copy '/Users/android-sdk-mac_86/boot.mp3' to '/system/media/bootscreen/boot.mp3': Permission denied
Click to expand...
Click to collapse
and adb remount doesnt work to
You also need tattoo-hack.ko file and do insmod tattoo-hack.ko to make /system writable.
Or even better... flash custom amon_ra recovery image and then a custom rom with all this already included.
Mine for example http://forum.xda-developers.com/showthread.php?t=702401
It doesnt have boot sound enabled
Okay thank you very much.
now it was successful
Aight so if u noticed once u installed the leak for froyo 2.2 if u had a custom bootanimation on ur phone it revert or essentially upgraded it and when u try to put ur custom one back in /data/local along wit an Android_audio.mp3 file the animation still won't change..
Here's the fix..
ok assuming u have sdk already installed and u already experienced changing animation before Imma go the short route...
When upgrading to froyo the spot of ur bootanimation has switched.. so what u want to do is
First , rename the bootanimation.zip file to VZW_bootanimation.zip then rename ur Android_audio.mp3 to VZW_audio.mp3 please rename exactly wit caps on VZW and underscore
Secondly, goto ur sdk directory and copy n paste ur newly named files into the tools folder...
Third , start phone up in recovery mode once there goto partition menu then select the first option which should be mount. Go back to computer screen and open cmd prompt change directory to ur sdk folder under tools..once there do these commands
Adb push VZW_bootanimation /system/customize/resource/
Adb push VZW_Droid.mp3 /system/customize/resource/
The transfer should show on screen after every command
The on ur phone hit the optical button to unmount
Hit ur power button to go back a screen
Then reboot system and ur custom bootanimation and sound should load.. lemme know if u have any issues..
Sent from my ADR6300 using XDA App
I haven't tried this but assuming it works, has anyone isolated the Incredible's new boot animation so that in case I ever want to go back to it I can? I don't mind it but wish it was just the eye without all of the words flying by on the screen. I want to change it to the Droid X boot but may want to go back to this one someday. Thanks.
Sent from my incredible Droid Incredible using the XDA app
Can someone help me with something.
I have an audio clip that is about 30 seconds long and after 10 seconds (with leaked froyo) the sound goes really low.
Anyway to change this?
I couldn't get this to work. It says/sbin/sh: adb: not found
I don't know why it won't work, but it's only since 2.2. It worked fine using 2.1 but then I only had to use these commands...
adb push bootanimation.zip /data/local
adb push android_audio.mp3 /data/local
adb reboot
OMFG! thank you so much! this is a life saver! is there any way i can donate?!
U can donate thru paypal
Email is
[email protected]
Sent from my ADR6300 using XDA App
@ishootpixels be sure to do instructions to don't skip.. it sounds like ur not navigating to ur sk/tools folder in order to use the abd commands.. commands are pretty much the same Adb push VZW_bootanimation.zip then the instructed folder... b sure to do this while phone is in recovery mode.. if u have further issues lemme know I can see what I can do
Sent from my ADR6300 using XDA App
also ishootpixels if you actually go into shell and try to run these commands they wont work... just navigat to sdk/tools folder once there run commands... after changing name of files though.. also it would help to know when exactly ur getting this error is it right off the bat with the first one?? make sure ur device is being seen type in adb devices...
also one issue when getting that error is debugging is not turned on... let me know what you find n gimme an update hopefully we can get it working for you
I DL'd the boot animation from droid life today for the new D2.
Moved it to the tools folder and renamed it.
booted phone into recovery, went to partions menu and mounted system
opened command prompt. cd \sdk\tools to open tools folder
adb shell
typed commands and I tried it various ways. I copied and pasted it your way, I tried it by leaving off the ".zip", etc..
For some reason I just can't get this to work. I even tried it with "/system/customize" as someone mentioned in another thread. I give up.
once ur in sdk\tools folder
DO NOT ENTER COMMAND "ADB SHELL"
thats why ur getting that issue..
once you open cmd prompt type in and navigate to your sdk\tools folder just copy n paste the following commands
Adb push VZW_bootanimation /system/customize/resource/
Adb push VZW_Droid.mp3 /system/customize/resource/
The transfer should show on screen after every command
Then on ur phone hit the optical button to unmount
Hit ur power button to go back a screen
Then reboot system and ur custom bootanimation and sound should load..
thats why u were getting that error dont got into adb shell just run those commands as soon as u navigate to sdk\tools folder
this should work no problem now.... GOOD LUCK!!!
again Donations can be made through paypal
my email is: [email protected]
hackadeehack236 said:
once ur in sdk\tools folder
DO NOT ENTER COMMAND "ADB SHELL"
thats why ur getting that issue..
once you open cmd prompt type in and navigate to your sdk\tools folder just copy n paste the following commands
Adb push VZW_bootanimation.zip /system/customize/resource/
Adb push VZW_Droid.mp3 /system/customize/resource/
The transfer should show on screen after every command
Then on ur phone hit the optical button to unmount
Hit ur power button to go back a screen
Then reboot system and ur custom bootanimation and sound should load..
thats why u were getting that error dont got into adb shell just run those commands as soon as u navigate to sdk\tools folder
this should work no problem now.... GOOD LUCK!!!
again Donations can be made through paypal
my email is: [email protected]
Click to expand...
Click to collapse
tried what you said and get "no such file directory" when trying to push it over ? never mind got it thanks OOOOnnn wait its boot looping now help
What Rom are u using? Need specs... and also did u get transfer messages as soon as u hit enter after command?
Sent from my ADR6300 using XDA App
I have an at&t locked streak and i would love to have froyo on my deivce. I read and understand the guide on how to do it. The only thing is when using the command prompt to locate files is the part i have trouble with. I am not good with CMD. is this the only way to update it and if it is could someone maybe help me out with doing this or maybe some more detail.
well for cmd....
leave all the files u need on the desktop....(not in any folder)
then run cmd
ull probably get c\users\your name>
type cd desktop
so it'll become c\users\your name\desktop>
then type all the fastboot commands...
leaving it on the desktop is I think the simplest way if u r unsure of how to locate files on cmd..
thank you very much. On my way to 2.2
hi ..
i need help with this ,, i already posted on Q/A forum and didn't get any answers !!
i want to make some changes on the squashed.sqsh file but i can't cause it is read only !!
so is there a way to unsquash it or unpack it and then resquash the file ??
i did some search and found out that this could only be done on linux so i went ahead and downloaded the latest Ubuntu build
and tried this command
"sudo squashfs /home/'user'/desktop/extract /home/'user'/desktop/squashed.sqsh"
the file is on my desktop
but i get command not found ..
i searched and found that i need to download "squashfs-tools" and i did download version 4.1
but now how do i install it ??
the read me says that i have to use "make" command but i don't know how to use it !!
i also searched and it is all complicated and i couldn't figure out the way to install it !!
this is my first time using linux !!
please help cause as for now Android on NAND is pretty much useless for me !!
i'll be sure to make a guide after this .. for people who want to modify the squashed.sqsh file ..
I agree with you too.. Nand is kinda useless for the EU HD2.. TMOUS HD2 are lucky to have 1gb ROM.. these days i'm having nothing on my phone :/
D69K said:
hi ..
i need help with this ,, i already posted on Q/A forum and didn't get any answers !!
i want to make some changes on the squashed.sqsh file but i can't cause it is read only !!
so is there a way to unsquash it or unpack it and then resquash the file ??
i did some search and found out that this could only be done on linux so i went ahead and downloaded the latest Ubuntu build
and tried this command
"sudo squashfs /home/'user'/desktop/extract /home/'user'/desktop/squashed.sqsh"
the file is on my desktop
but i get command not found ..
i searched and found that i need to download "squashfs-tools" and i did download version 4.1
but now how do i install it ??
the read me says that i have to use "make" command but i don't know how to use it !!
i also searched and it is all complicated and i couldn't figure out the way to install it !!
this is my first time using linux !!
please help cause as for now Android on NAND is pretty much useless for me !!
i'll be sure to make a guide after this .. for people who want to modify the squashed.sqsh file ..
Click to expand...
Click to collapse
to unpack a squashed image use this command:
sudo unsquashfs /your directory/system.sqsh, this yo will do inside the directory that you have your system.sqsh
then to repack it use sudo squashfs /the unquashed system folder/ system.sqsh
there might be some mistakes its been a while since iv tampered with sytem images squashed. hopefully you have an idea now
siulmagic said:
to unpack a squashed image use this command:
sudo unsquashfs /your directory/system.sqsh, this yo will do inside the directory that you have your system.sqsh
then to repack it use sudo squashfs /the unquashed system folder/ system.sqsh
there might be some mistakes its been a while since iv tampered with sytem images squashed. hopefully you have an idea now
Click to expand...
Click to collapse
thank you very much for the help
it is nice to see that people still care about each other
i actually tried that but i get an error
Code:
Parallel unsquashfs: Using 2 processors
713 inodes (2805 blocks) to write
dir_scan: failed to open directory squashfs-root, because File exists
[| ] 0/2805 0%
created 0 files
created 0 directories
created 0 symlinks
created 0 devices
created 0 fifos
I can't squshfs.. just unsqushfs, thats all..
EDIT: someone helped me solving all the problems, its mksquashfs.
So, any luck being able unsquash and squash? Have any of you been able to modify system files using this method? I'd love to be able to modify framework-res.apk. Seems like a difficult process though....
I'll try making a tutorial for who doesn't know how to do those methods.
patmorris said:
So, any luck being able unsquash and squash? Have any of you been able to modify system files using this method? I'd love to be able to modify framework-res.apk. Seems like a difficult process though....
Click to expand...
Click to collapse
have you tried using "sudo unsquashfs /home/user/location/squashed.sqsh" ??
white-energy said:
I'll try making a tutorial for who doesn't know how to do those methods.
Click to expand...
Click to collapse
yes please i tried the above command but couldn't get it to work on my machine !!
it says something about failed to access squashed-root because file exists !!!
any help would be appreciated
This can be done within Windows aswell. You just have to grab this package and unzip into a new folder.
Copy the squashed.fsqh into this folder and execute
>unsquashfs squashed.sqsh
it will create a folder squashfs-root.
Now you can edit whatever you want. When you are done use this command to repack. Note that you must delete the old sqaushed.sqsh before you do so or you will get an error message
>mksquashfs squashfs-root squashed.sqsh -all-root
now you can connect to the device with adb and log into shell
>adb shell
And delete the squashed.sqsh on the device
#rm /system/squashed.sqsh
#exit
and reeboot
>adb reboot
The device will stop during boot because the squashed.sqsh ist missing
connect with adb and push the new squashed.sqsh
>adb push squashed.sqsh /system/squashed.sqsh
and reboot
>adb reboot
Done!
Note that this is for gauners Rom. He used squashfs 4.0. Maybe you will need 4.1 for other roms. I don´t know. Not a linux guy
Odhinn said:
This can be done within Windows aswell. You just have to grab this package and unzip into a new folder.
Copy the squashed.fsqh into this folder and execute
>unsquashfs squashed.sqsh
it will create a folder squashfs-root.
Now you can edit whatever you want. When you are done use this command to repack. Note that you must delete the old sqaushed.sqsh before you do so or you will get an error message
>mksquashfs squashfs-root squashed.sqsh -all-root
now you can connect to the device with adb and log into shell
>adb shell
And delete the squashed.sqsh on the device
#rm /system/squashed.sqsh
#exit
and reeboot
>adb reboot
The device will stop during boot because the squashed.sqsh ist missing
connect with adb and push the new squashed.sqsh
>adb push squashed.sqsh /system/squashed.sqsh
and reboot
>adb reboot
Done!
Note that this is for gauners Rom. He used squashfs 4.0. Maybe you will need 4.1 for other roms. I don´t know. Not a linux guy
Click to expand...
Click to collapse
thank you very much for the answer
i got it unsquashed by dragging the squashed.sqsh to unsquash.exe
"because when i try opening the unsquash.exe and mksquash.exe i get a cmd with a bunch of lines for like half a second and then it exits before i even do any thing"
then i tried putting it back togeather by draging squashed-root folder to mksquash.exe and it didn't work ??
i also tried squash-tools 4.1 and the same error happened !!
running out of options here
Ehm... This a command line tool. You have to open a cmd window and cd to the folder where you have the unsquash und mksquash files. The execute the commands.
Do you have adb installed and working? This is part of the android sdk. You will need it to push the file after repacking.