installing manually apk files

Discussion in 'Alternatives to iOS and iOS Devices' started by zoran, Jun 8, 2014.

  1. zoran macrumors 68030

    Joined:
    Jun 30, 2005
    #1
    Im trying to install apk files to an Android phone, manually using a mac without having internet connection or a google account. I have downloaded the apk files to the sd card but i have no idea whats next to do! :confused:
     
  2. Stooby Mcdoobie macrumors 6502a

    Stooby Mcdoobie

    Joined:
    Jun 26, 2012
    #2
    Well, I was going to suggest using a file browser but you probably don't have one if you aren't logged into a Google account on that device.

    Only other way I can think of is to use ADB via terminal.

    Code:
    $ adb install [path to file]
     
  3. Lloydbm41 macrumors 68040

    Lloydbm41

    Joined:
    Oct 17, 2013
    Location:
    Central California
    #3
    Does Mac require the adb drivers in order to recognize devices?

    >adb devices

    ?? If it does, I doubt the Mac will see the device, even when plugged in. I don't use a Mac for my Android stuff, so not sure.
     
  4. Stooby Mcdoobie macrumors 6502a

    Stooby Mcdoobie

    Joined:
    Jun 26, 2012
    #4
    Yes, you'll either need the SDK platform tools (ADB, fastboot, etc) in the same directory you're executing the command in, or they will need to be added to $PATH.

    I use a Mac for all of my Android stuff.

    [​IMG]
     
  5. zoran thread starter macrumors 68030

    Joined:
    Jun 30, 2005
    #5
    can you help me more here cause i got no clue what you are saying, nor do i know where i can get those files from, or if they are inside the sd card! :eek:
     
  6. Lloydbm41 macrumors 68040

    Lloydbm41

    Joined:
    Oct 17, 2013
    Location:
    Central California
    #6
    Okay, it is identical to WIndows. DL SDK platform tools, command prompt, then fastboot and adb commands. I always use this for my Nexus devices. So simple to plug in and fastboot oem unlock - fastboot reboot >flash-all.bat
     
  7. Stooby Mcdoobie, Jun 8, 2014
    Last edited: Jun 8, 2014

    Stooby Mcdoobie macrumors 6502a

    Stooby Mcdoobie

    Joined:
    Jun 26, 2012
    #7
    The files come from the Android SDK (software development kit), though you can download just the fastboot and ADB binaries here instead of having to download the whole SDK -- which is quite large.

    After you download that, extract to your desktop. Open up a terminal window and type in these commands:

    Code:
    $ cd desktop/platform-tools
    $ sudo mv adb fastboot /usr/bin
    The second command will ask you for your password. The purpose of these commands is to move the ADB and fastboot binaries to a place where you can execute them from any directory; the directory I chose was /usr/bin as it is already in $PATH. Otherwise you'd have to be inside the platform-tools directory to execute any ADB commands.

    Next you will want to make sure ADB debugging is enabled on your phone. Go to settings -> about phone -> tap "Build number" until it says that developer options are enabled. Then back out to the main settings menu again and you should see Developer options. Go here and check the USB debugging box.

    [​IMG] [​IMG]

    Now plug in your phone and go to the terminal window and type in this command:

    Code:
    $ adb devices
    Output should be similar to this

    [​IMG]

    And you will get a message like this on your phone.

    [​IMG]

    Check the box and click OK.

    Run the command in terminal again and you should get an output like I posted in my previous post to Llyodbm, with unathorized changing to device.

    If you see that, ADB has been set up correctly and you can run the install command. Make sure the apk is on your desktop and run this in terminal:

    Code:
    $ cd desktop
    $ adb install nameofapk.apk
    Replacing 'nameofapk' with the actual name of the file.

    I'm sure some of this will need more clarification, so let me know if you get stuck and I'll try to help simplify as best I can.
     
  8. Lloydbm41 macrumors 68040

    Lloydbm41

    Joined:
    Oct 17, 2013
    Location:
    Central California
    #8
    You need to go here first and download this: http://developer.android.com/sdk/index.html
    or follow the directions above.

    OR

    Get a Google account. Use WiFi and make your life simple by simply downloading what you want from the Play Store.
     
  9. Stooby Mcdoobie macrumors 6502a

    Stooby Mcdoobie

    Joined:
    Jun 26, 2012
    #9
    Essentially, yes. It definitely saves time if you can be bothered to set it up.
     
  10. Vegastouch macrumors 603

    Vegastouch

    Joined:
    Jul 12, 2008
    Location:
    Las Vegas, NV
    #10
    I dont know what kind APK files your trying to install. What i mean is , is it from a webiste that a link is posted for it or what? If you can do it with your phone, it is much easier.
    Go to where the file is w/ your phone and download it. Open it and click to install it. Some browsers work better for this. Opera is one of them.
     
  11. zoran thread starter macrumors 68030

    Joined:
    Jun 30, 2005
    #11
    Im facing an issue and the only way to solve it is to run some apps without the google account active. So i reset the sd card and now i must first install a file manager app and then install the other apps i need to, in order to face the issue!
     
  12. andy2141 macrumors 6502

    Joined:
    May 29, 2010
    Location:
    UK
    #12
    Could you not also use Airdroid to do this over local wifi?

    Still have to get Airdroid installed first mind.
     
  13. sentinelsx macrumors 68010

    Joined:
    Feb 28, 2011
    #13
    Some built in file managers on android phones can install apk files directly. Check if this is the case.
     
  14. Dontazemebro macrumors 68020

    Dontazemebro

    Joined:
    Jul 23, 2010
    Location:
    I dunno, somewhere in West Texas
  15. Sincci macrumors regular

    Joined:
    Aug 17, 2011
    Location:
    Finland
    #15
    Pretty much any file manager (for example the default one that comes with every phone) can install your .apk files as long as they are either in your internal storage or the sd card. No need to use ADB for this. You'll just need to enable the "Unknown sources" option from Settings/Security menu.
     

Share This Page