Skip to main content

Install apk file on your phone through adb command .

While I was trying to download an android app on my mobile phone, I was getting a error ( 498) . Tried looking for the solution but couldn't get the resolution of my problem. That's when I tweaked around and downloaded the app on phone through adb install command from my mac book . 
Steps - 

(Follow steps 1, 2 if Android SDK is not already installed on your system. )

1. Download the Android Software Development Kit (SDK) from the Android SDK Download Site.
2. Once downloaded, find a safe installation location on your machine and simply extract the zipped files to this directory.
For example,
• on Mac or Linux, install in $HOME/
• on Windows, install in C:/
Make note of the full path to and directory name of this directory where the SDK files are unpacked on your system.
 3.  If you are currently in the platform-tools directory, just call
./adb --help

The dot is your current directory, and this tells Bash to use adb from there.
Otherwise, you can add platform-tools to your PATH. by placing this command in your ~/.profile or ~/.bash_profile, then re-starting the Terminal. 
export PATH=/Users/espireinfolabs/Desktop/soft/android-sdk-mac_x86/platform-tools: $PATH

4.  Download the application (APK) file to a folder of your choice on your computer
5.  Connect the phone to the computer through the USB cable.
6.  Enable installation of non market applications on your phone: 

a. On your phone, open the Applications menu (i.e., the tab in the bottom center of the phone’s home screen) and click on the Settings application, then select Applications from the Settings menu.


b. Make sure that the first selection, Unknown Sources, is checked so that you can install an APK file from a location other than the Android Market. A warning message about the phone being vulnerable to attack will be displayed. Select OK to continue if you trust the APK file you are about to download. You can change this setting back after the current installation is complete.

7. Download the app on your computer . ( http://www.whatsapp.com/android/ )

8. Turn on “USB debugging” on your phone: open the Applications menu and select Development, then enable USB debugging 
9 . In the command/terminal window, enter the following command:
 adb install

C:\>adb install C:\Desktop\BrailleBuddies.apk
2513 KB/s (14175084 bytes in 5.506s)
pkg: /data/local/tmp/BrailleBuddies.apk
Success
C:\>
Voilla !!! And you are done you can acess the app on your android mobile phone !
 


Comments

Popular posts from this blog

Backslash on mac

I had been struggling to type back slash ( \) character on mac japanese keyboard as they don't have it printed on the keyboard, and I was doing copy paste all the time from google when i needed to type it until recently a tip came to my rescue , shortcut to backslash on mac japanese keyboard. Alt + ¥  Hope it helps others. 

How to Enter Split View on MAC

Enter Split  View Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side. Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side.