Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 9 of 9
  1. Thread Author  Thread Author    #1  

    Default Installing .apk's with Terminal (Mac OSX)

    Upon removing some stock apps with Titanium Backup, my phone restarted itself and now has a no-smoking-sign-circle where my bars/3G symbol used to be. I can't transfer/receive any data.

    Anyone know how to install .apk's straight to the phone using Terminal (I'm on OSX)? I found some solutions that involve App Installer, but I can't connect to the Market to download it.

    It was either Car Dock, Voice Dialer or CityID that did it.

    And yes, after doing some research, I now know to backup every app before uninstalling it, so please spare me the lectures . Just looking for some help. Thanks!
  2. #2  

    Default

    (Don't blame me if you further screw things up by doing this)

    1. Download adb from developer.android.com
    2. cd into the directory you downloaded, and than into the tools directory.
    3. Plug in your phone
    4. Run './adb devices', It should spit out an id and say 'device', if it says 'unkown', try restarting the phone, or otherwise get it to the device.
    5. './adb install app_path.apk', and it should install.

    Good luck.
    Thanked by:
  3. #3  
    Cory Streater's Avatar
    Forums Emeritus

    Posts
    12,995 Posts
    Global Posts
    13,813 Global Posts

    Default

    Are you not able to connect to WiFi either? You could grab app installer that way.
  4. Thread Author  Thread Author    #4  

    Default

    Quote Originally Posted by Leif View Post
    (Don't blame me if you further screw things up by doing this)

    1. Download adb from developer.android.com
    2. cd into the directory you downloaded, and than into the tools directory.
    3. Plug in your phone
    4. Run './adb devices', It should spit out an id and say 'device', if it says 'unkown', try restarting the phone, or otherwise get it to the device.
    5. './adb install app_path.apk', and it should install.

    Good luck.
    This is exactly what I need to do... so thank you for the directions.

    Just need to figure out which .apk I need.

    When I try to launch the dialer, it says "Application is not installed on your phone," so I obviously uninstalled it by accident. Just need to figure out which .apk that is...

    And Cory, WiFi will not turn on. Good thinking though.
  5. Thread Author  Thread Author    #5  

    Default

    My device is connected, but I can't seem to get the pathname down...

    Paul-Luparios-MacBook-Pro:tools paullupario$ ./adb install Users/paullupario/Desktop/vvm.apk
    can't find 'Users/paullupario/Desktop/vvm.apk' to install

    I tried putting the .apk in the tools folder and just doing:

    Paul-Luparios-MacBook-Pro:tools paullupario$ ./adb install Vvm.apk
    can't install 'Vvm.apk' because it's not a file

    I'm pretty new to Mac and am by no means a Terminal guru...
  6. #6  
    Cory Streater's Avatar
    Forums Emeritus

    Posts
    12,995 Posts
    Global Posts
    13,813 Global Posts

    Default

    Have you tried using this tool?
  7. #7  

    Default

    I don't know how the mac file structure works...but if the terminal is using anything remotely related to bash, your first command didn't work because you set it up to be a relative path (as in the system tried to find (your local path)/Users/blah/vvm.apk

    Your second one might work, however, I noticed that you used two different filenames: vvm.apk and Vvm.apk, I 'think' mac systems are case sensitive, so do you have the case correct? (aka, with the app in the same directory try: ./adb install vvm.apk ), good luck.
  8. Thread Author  Thread Author    #8  

    Default

    To Cory: it doesn't seem to be able to find the app (I placed it in the "2-Place-App-Here" folder)

    ls: 2-Place-App-Here: No such file or directory
    Found

    Press enter to continue...


    Pushing to phone...
    Password:
    sudo: ./adb: command not found
    Pushed! You may need to reboot your phone to see the change.



    And to Leif, I tried again typing it case sensitive.. still telling me file not found.

    Are these .apk's supposed to be folders (when viewing them in Finder)? Maybe that's the problem?

    Edit: I finally got it to install. I reinstalled CarDock.. nothing happened. Reinstalled CityID and after I rebooted, got a voicemail and e-mail from a while ago, and I can connect to wireless, but still no 3G/data connection or phone dialer app. I can't remember the last app I uninstalled. I could've sworn it was VoiceDialer or something. Anyone know which .apk is associated with the phone's default dialer? Maybe by running a Task Killer and letting me know what's running?

    Edit2: Figured it out: it was BlurPhone.apk

    Thanks guys!
    Last edited by clockvstrain; 07-28-2010 at 01:20 AM.
  9. #9  

    Default Re: Installing .apk's with Terminal (Mac OSX)

    Cory: Relative nube here, wondering A) How to get a non-rooted phone to web browse or install from an app store via WiFi instead of a mobile data network, especially since I've already shifted my services to another phone (forgot to backup a few things first, like SMS threads and call logs); and B) Not sure I know what App Installer to which you refer.

Posting Permissions