Using adb and terminal on a mac
This is a discussion on Using adb and terminal on a mac within the Droid Hacks forums, part of the Droid Hacking category; I had to play around with these commands on my Mac as well. The following two commands work for me, assuming the sdk folder is ...
-
This works for me
I had to play around with these commands on my Mac as well. The following two commands work for me, assuming the sdk folder is sitting right on the first level of your mac hd and bootanimation.zip is sitting in the tools folder with adb. If not, just alter the paths.
Keep in mind you can drag and drop into Terminal to make things easy. For instance, the first time I ran this i typed "cd " then dragged the Tools folder over, it inserts the path, especially useful when buried deep (like your desktop).
cd /android-sdk-mac_86/tools
/android-sdk-mac_86/tools/adb push bootanimation.zip /data/local
**also, the big difference I noticed from other posted directions was that in the 2nd command I had to give the path to adb, even though I had changed directory in the previous command. Wouldn't work otherwise. Perhaps a Mac terminal expert can comment on why**
Last edited by kaotik0c; 12-29-2009 at 01:11 PM.
-
Did you try running it as "./adb push bootanimation.zip /data/local" as has been mentioned previously.
-

Originally Posted by
Dandroid247
awesome, i will definitely try that when i get home from work tonight. Is there anything else I should keep an eye out for in particular or other advice? What happens if adb isn't in there or nothing shows up at all?
If adb isn't in there, you're not in the right directory.
-
alright, woohoo, it worked. I think it was the whole ./ as opposed to just / that made the difference. I used ls, terminal gave me the file list, put in the push bootanimation command and got a message saying that daemon not running. starting it now, next line says daemon started successfully. so basically do i have to type in ./adb before every command? And just so im understanding, although I'm guessing, when I change directories into the tools folder, does typing ./adb signify to use that exec file to run the command? I mean as opposed to say typing in ./apkbuilder to run a command? I hope that makes sense.
-
oh, and while I'm thinking about it, is there anyway to make sure that the command worked before i actually eject the phone and try it out? I guess what I mean is will terminal give me some sort of confirmation?
-
well ill be damned, it worked. hahahaha, you guys have no idea how happy this makes me. not really that I got it done but more so that I understand a little better. This just made my week. Thanks so much you guys for all the help. And I hope that you all won't mind me asking more in the future.
-
ok I got this working on my mac and have been able to not only root my droid but also instal 2.1 and wifi tether. If anyone needs any help let me know. I know at first I was a little confused on how to get the commands going but now I feel I understand it somewhat, atleast enough to follow write-ups...
-
Please Help
Thanks for the post guys...I know it's an old one but it was very helpful. I've been reading through everything and I still can't seem to get this to work. This is whats happening:
I keep getting an error in Terminal saying that the file or directory cannot be found. I am putting in cd/Users/name/Desktop/android-sdk-mac_86/tools and nothing is happening. Am I typing in something wrong?
Any help would be greatly appreciated! Thanks in advance.
-
Sorry for the 4 month late reply, but in the newer SDK, adb has moved from tools to platform-tools. Hope this solves your problem.
-
Perfect reply! Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By yogijen in forum Droid Applications
Replies: 7
Last Post: 03-05-2012, 02:33 AM
-
By Bear in NM in forum Droid Hacks
Replies: 8
Last Post: 12-28-2009, 07:38 AM
-
By Flowah in forum Droid Hacks
Replies: 8
Last Post: 12-15-2009, 02:47 AM
Search tags for this page
adb command not found
,
adb command not found mac
,
adb droid mac
,
adb not found mac
,
adb terminal
,
adb: command not found
,
how to run adb mac
,
how to run adb on mac
,
mac adb command not found
,
run adb mac
,
run adb on mac
,
running adb on mac
,
use adb on mac
,
using adb mac
,
using adb on mac
Click on a term to search our site for related topics.