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; 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 ...

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20

Thread: Using adb and terminal on a mac

  1. Droid
    Dandroid247's Avatar
    Member #
    7709
    Join Date
    Nov 2009
    Posts
    86
    Phone
    Droid
    #1

    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
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Master Droid
    mammlouk's Avatar
    Member #
    15042
    Join Date
    Dec 2009
    Posts
    316
    Phone
    Motorola Droid
    #2
    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.
  4. Droid
    Dandroid247's Avatar
    Member #
    7709
    Join Date
    Nov 2009
    Posts
    86
    Phone
    Droid
    #3
    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?
  5. Master Droid
    Berzerker's Avatar
    Member #
    18177
    Join Date
    Dec 2009
    Posts
    331
    Liked
    1 times
    Twitter
    @berzerker7
    Phone
    Motorola Droid Bionic
    #4
    Yes, it will display the current directory you're in before the $ sign. ~ means your home directory, or /Macintosh HD/Users/username/

    cd = change directory

    You have to change directory into the directory that adb is stored in, in order for Terminal to find the adb executable. Say you have adb in /Macintosh HD/Users/username/Android/tools/adb

    You need to use "cd /Macintosh\ HD/Users/username/Android/tools/"

    Then you will be able to use adb.
  6. Droid
    Dandroid247's Avatar
    Member #
    7709
    Join Date
    Nov 2009
    Posts
    86
    Phone
    Droid
    #5
    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
  7. Master Droid
    Berzerker's Avatar
    Member #
    18177
    Join Date
    Dec 2009
    Posts
    331
    Liked
    1 times
    Twitter
    @berzerker7
    Phone
    Motorola Droid Bionic
    #6
    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/"
  8. Droid
    Dandroid247's Avatar
    Member #
    7709
    Join Date
    Nov 2009
    Posts
    86
    Phone
    Droid
    #7
    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.
  9. Droid
    Dandroid247's Avatar
    Member #
    7709
    Join Date
    Nov 2009
    Posts
    86
    Phone
    Droid
    #8
    thanx for taking the time to explain all this stuff to me too btw. just in case i forget to say so later
  10. Master Droid
    Berzerker's Avatar
    Member #
    18177
    Join Date
    Dec 2009
    Posts
    331
    Liked
    1 times
    Twitter
    @berzerker7
    Phone
    Motorola Droid Bionic
    #9
    Once you're in the directory "tools" you can run "ls" to list the files in there, if you see adb, you can run ./adb shell or ./adb install, etc. (you need the ./)
  11. Droid
    Dandroid247's Avatar
    Member #
    7709
    Join Date
    Nov 2009
    Posts
    86
    Phone
    Droid
    #10
    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?

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Credit Card Processing/Virtual Terminal
    By yogijen in forum Droid Applications
    Replies: 6
    Last Post: 01-13-2010, 08:52 PM
  2. Question on Terminal apps PC etc
    By Bear in NM in forum Droid Hacks
    Replies: 8
    Last Post: 12-28-2009, 08:38 AM
  3. PC Terminal emulator, GUI?
    By Flowah in forum Droid Hacks
    Replies: 8
    Last Post: 12-15-2009, 03:47 AM

Search tags for this page

adb command not found

,

adb command not found mac

,
adb droid mac
,
adb mac terminal
,
adb not found mac
,
adb push mac
,

adb terminal

,
adb terminal mac
,

adb: command not found

,
adb: command not found mac
,
droid adb mac
,
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.