jhnclvr
jhnclvr

Reputation: 9507

Install APK from SD card no file browser Android phone

I need to install an APK on a phone with no built in file browser, and no connection (wifi/mobile). The LG Optimus M has no built in file browser... Not sure why, but it is making things very difficult. I was thinking if I could put an app in a special place on an SD card, or auto-run an APK install.

ADB is also not an option due to usb driver issues. I know this is pretty limited...

EDIT: I got down voted because you didn't read? There is no wifi/mobile connection available. Downloading a file manager etc. from market not an option.

Upvotes: 6

Views: 17568

Answers (4)

Matthew Read
Matthew Read

Reputation: 1879

If you have a terminal emulator app on the device, you can put MyApp.apk on the SD card and run this, which should open the package installer:

am start -a "android.intent.action.VIEW" -d "file:///mnt/sdcard/external_sd/MyApp.apk" -t "application/vnd.android.package-archive"

You might need to change that path depending on your device — see How can I determine storage directory from ADB?

You will also need to enable the Unknown Sources option in the device settings.

Upvotes: 0

Ferrybig
Ferrybig

Reputation: 18834

  1. Enable usb debugging

  2. Install the drivers and android sdk

  3. Connect the phone through usb to your computer

  4. Call the following program from the command prompt: adb install application.apk

  5. Adb will now install your application

According to the about of just running adb, you can use the following command line arguments:

adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
    - push this package file to the device and install it
                ('-l' means forward-lock the app)
                ('-r' means reinstall the app, keeping its data)
                ('-s' means install on SD card instead of internal storage)
                ('--algo', '--key', and '--iv' mean the file is encrypted already)

Upvotes: 5

ghostbust555
ghostbust555

Reputation: 2049

Why not download astro file manager? it works great. Other than that I would host the apk on a server and download it from the phone.

Upvotes: -2

slayton
slayton

Reputation: 20319

Why not download one of the MANY file browsers in the market? May I suggest my favorite which is Astro File Manager

Upvotes: 0

Related Questions