Using adb and terminal on a mac

Ok, before I say anything I've been reading the other posts about this all morning and most of yesterday. That being said I'm either a complete idiot or am missing something somewhere. Basically I'm really wanting to put these custom boot animations on my phone and do some other things but for some reason I can't seem to make that happen. I was able to root and install 2.1 on it so I'm not understanding why I'm having such issues.

I'm running a mac and don't know if that makes much of a difference. I've dl the sdk. I've gotten the bootanimation.zip. My debug menus are checked. I open terminal and try to run the commands but it keeps saying "command not found". I try to type the devices command to see if the phone is being registered and get the same response.

I really want to learn more about how to do things using terminal, adb, and playing around with other aspects of the phone and this site has been loads of help. That along with looking up stuff outside of here.

Anyway, if somebody could help me out without being too judgemental I would greatly appreciate it a lot. Thanks again everybody

You have to run the commands from the directory they are in and you will need to put a "./" in front of them. The other choice is to add the directory to your terminals PATH variable as instructed here.

ok, ill try that other way, I wasn't really sure about that. What does it mean to "cd" something? I noticed in another thread thats how to start. I put that in and it goes from this c-71-207-180-253:~ Parks1$ to thisc-71-207-180-253:tools Parks1$. Does that mean anything in particular?

alright, as it is the sdk folder is on my desktop. So should I type this ( cd /Users/Username/Desktop\android-sdk-mac_86/tools) instead of what I have been using with all forward slashes or am i misunderstanding? When I use all forward slashes it seems like it changes the directory which is what im assuming it means by saying :tools username$ right? Sorry if I'm not picking up so fast I'm just trying to really get a grasp of this whole concept and what everything means ya know

No, you only need to use \ if you're either on Windows, or there's a space in the folder name, in which the \ needs to go before the space. Otherwise, you use / so it would be "cd /Users/Desktop/android-sdk-mac_86/tools/"

ok, got it, i was just confused cause I saw the backslash in between Mac and HD. So I'm doing that right then I'm guessing? The adb file is in the tools folder, so to run that what do I do? This is where i seem to get hung up because it always says directory not found or invalid command.

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?

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**

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?

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?

Useful Searches

About DroidForums.net

DroidForums.net was founded in 2009 originally dedicated for the Motorola Droid, the first Verizon Android Phone. We have since expanded our community to cover all Android Phones, Android Tablets, and Android Wearables. We discuss various topics including Android Help, Android Device Reviews, Android Apps, Phone Accessories, Android Games and more. Our ultimate goal is to be the Internet's best and largest Android Forum.