How do install a apk from adb command line?

Search This thread

galaxy s4 nutjob

Senior Member
Mar 7, 2014
653
103
Niagara Falls
what kind of app??

System app is just copy to your system/app folder.
and set permition to 644 (rw-r--r--)
Adb push *.apk /system/app just

Normal apk is
Adb install *.apk

that's all.

I can explain more if you tell me about what kind app and your system(window or linux)

Sent from my SHW-M250S using XDA App

I'm trying to install an SMS tracker can that be installed as an app that can't be removed?
 

saintalfonso

Member
Oct 18, 2017
6
0
Paderborn
Needed "reset-wifi" option

On my FireTV stick, using the "reset-wifi" option was necessary:
Code:
 am start -n tk.elevenk.proxysetter/.MainActivity -e host 192.168.1.20 -e port 3128 -e reset-wifi true -e ssid <SSID> -e key <SECRET>
I tried without "reset-wifi" first, no luck.

Moreover, success with installed apps varies. In particular, Kodi needs its own Proxy settings, and even with those, not all Kodi plugins work.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    It's: adb install /path/to/app.apk

    Check this out:

    http://developer.android.com/guide/developing/tools/adb.html#commandsummary

    It has all the commands and syntax
    12
    what kind of app??

    System app is just copy to your system/app folder.
    and set permition to 644 (rw-r--r--)
    Adb push *.apk /system/app

    Normal apk is
    Adb install *.apk

    that's all.

    I can explain more if you tell me about what kind app and your system(window or linux)

    Sent from my SHW-M250S using XDA App
    9
    SOLVED

    How do install a *.apk from adb command line?

    First I tried to cp the *.apk from /sdcard/backups/apps to /system/app (after rw mounting the file system of course)

    I did successfully move it to /system/app but the *apk was not "installed"

    then I rm it and tried:

    install /sdcard/backups/appa/<package>.apk /system/app

    and it copied the *apk to /system/app but still was not "installed"

    I also tried:

    install /system/app/<package>*apk but got the error dialog:

    Code:
    BusyBox v1.19.0.git.adrynalyne (2010-12-21 22:03:30 MST) multi-call binary.
    
    Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST
    
    Copy files and set attributes
    
    Options:
    	-c	Just copy (default)
    	-d	Create directories
    	-D	Create leading target directories
    	-s	Strip symbol table
    	-p	Preserve date
    	-o USER	Set ownership
    	-g GRP	Set group ownership
    	-m MODE	Set permissions

    My goal is to figure out how to use adb command line and also I want to install an app as if it were a pre-installed app. For example pre-installed apps don't show up as a removable app and stay installed after a factory reset.
    6
    $ adb install *.apk

    It will appear "Success" when finish.

    or you can cp the apk to sdcard using file transfer or "adb push".
    than click to run in your android device's file manager, it will start the installation.

    ---------- Post added at 04:48 AM ---------- Previous post was at 04:44 AM ----------

    ok, I got it. You were using "adb shell".
    Don't go into the adb shell, just in your cmd(windows) or terminal(linux).
    place your apk in your host PC, not android device, type "adb install *.apk ".
    5
    I got it! Thanks Everyone!

    The main problem is that for what ever reason apk's that are in the /system/app folder cannot contain spaces.

    I renamed the apk from "AK Notepad.apk" to "AK_Notepad" while the file was on my Desktop and then:

    adb push <path/to/file.apk> /system/app
    chmod 644 /system/app/AK_Notepad.apk
    and then a "reboot"

    (of course you have to make the file system writable first)

    If you don't get rid of the spaces in the file name, it will only copy the file instead of copy and install.