Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,137 Members 50,355 Now Online
XDA Developers Android and Mobile Development Forum

How do I install apk from Terminal Emulator from my Android Phone running JellyBean ?

Tip us?
 
hsotnas
Old
(Last edited by hsotnas; 24th July 2012 at 02:13 PM.) Reason: url update
#1  
Member - OP
Thanks Meter 35
Posts: 31
Join Date: Apr 2012
Question How do I install apk from Terminal Emulator from my Android Phone running JellyBean ?

Hello,

Here is the short story.

I have Samsung Galaxy ACE which is rooted.

Till y'day I was using CM9 Beta 8 ICS 4.0.4 and it was working well.

I installed CM10 JB for Galaxy Ace alpha1 from "hxxp://maclaw.pl/?page_id=180#comment-3642"

Now the problem is, JB doesn't have File Manager installed and I need to install TB to revert my backups.

Due to some unknown reason I am not able to access internet on my device either through GPRS or 3G connection.

I am desperately looking for a way to access my SDCARD wherein I have all my apk's which I can install however, without File Manager I am not sure how to install an apk.

I did some google search and came across topics about installing apk using Android SDK etc.. however I would not want to work on SDK as I feel its bit tedious job for me.

I also tried Android Injector however that didnt work even if I have enabled USB debugging Mode for adb + apps.

Now, I am hoping that, I can use the Terminal Emulator which is preinstalledo n my phone to install apk present on my sdcard.

However, I am not sure how to do that, It would be really appreciated if anyone can suggest the steps to install apk present on my sdcard from Terminal Emulator available on my phone.

Here are some of the screen captures

http://imageshack.us/photo/my-images...072418240.png/

http://imageshack.us/photo/my-images...072418234.png/

http://imageshack.us/photo/my-images...072418230.png/

Thanks
The Following 3 Users Say Thank You to hsotnas For This Useful Post: [ Click to Expand ]
 
hsotnas
Old
#2  
Member - OP
Thanks Meter 35
Posts: 31
Join Date: Apr 2012
Never mind...

I managed to install Astro File Manager apk from Terminal Emulator.

For those who are interested, here is what I had done.

Previously, I wasn't able to browse sdcard contents from TE,

I rebooted my phone once, fired up TE again

~Android$ su

Allow root access for TE

~Android# cd sdcard

~Android# ls ( Contents of SD card are listed ) I had copied astrofm.apk on root of SDCARD

~Android# pm install astrofm.apk

Success !

Thanks

P.S. This thread can be closed.
The Following 31 Users Say Thank You to hsotnas For This Useful Post: [ Click to Expand ]
 
rakionowner
Old
#3  
rakionowner's Avatar
Member
Thanks Meter 17
Posts: 92
Join Date: Mar 2010
Location: Malaysia
Default @@

Quote:
Originally Posted by hsotnas View Post
Never mind...

I managed to install Astro File Manager apk from Terminal Emulator.

For those who are interested, here is what I had done.

Previously, I wasn't able to browse sdcard contents from TE,

I rebooted my phone once, fired up TE again

~Android$ su

Allow root access for TE

~Android# cd sdcard

~Android# ls ( Contents of SD card are listed ) I had copied astrofm.apk on root of SDCARD

~Android# pm install astrofm.apk

Success !

Thanks

P.S. This thread can be closed.
Awesome guide !!!! , thanks bro !!
The Following 3 Users Say Thank You to rakionowner For This Useful Post: [ Click to Expand ]
 
rocky_09
Old
#4  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Sep 2012
Thank you for the guide
 
simin_
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Mar 2013
it works. thank you
 
arbro1407
Old
#6  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Apr 2013
Location: Yogyakarta
works, thanks
 
DannyShane
Old
#7  
Junior Member
Thanks Meter 0
Posts: 27
Join Date: Sep 2012
Location: League City
Quote:
Originally Posted by hsotnas View Post
Never mind...

I managed to install Astro File Manager apk from Terminal Emulator.

For those who are interested, here is what I had done.

Previously, I wasn't able to browse sdcard contents from TE,

I rebooted my phone once, fired up TE again

~Android$ su

Allow root access for TE

~Android# cd sdcard

~Android# ls ( Contents of SD card are listed ) I had copied astrofm.apk on root of SDCARD

~Android# pm install astrofm.apk

Success !

Thanks

P.S. This thread can be closed.
I very much appreciate the quick tutorial!

However, with that being said, I am having an issue trying to install my .apk onto my Motorola Xoom (Rooted running CM10.1) through the use of Terminal Emulator. I first tried installing the .apk from my File Manager and just clicking on the icon, and clicking Install, like one would think one should be able to do. When that method failed, multiple times(kept saying "insufficient storage, please delete files through app manager") which by the way, I know for a fact I have 15.8GB of storage left on my Xoom, so this should not be the issue. I then decided to try and install through Terminal Emulator. Now one would think it would be about the same as using adb commands on a Computer, which it somewhat is I guess you could say. So I go to T.E. and type the commands to get Super User access, then cd sdcard to go into the directory, then cd download because this is where my file is located, then I type pm install ****.apk.

I get a line of command that says: a) pkg: ****.apk and then b) Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE], and then the command line just goes back to my download folder directory.

I've had this issue before on my Galaxy S3, but can't remember how I ended up resolving the issue. Think I did a factory data reset/wipe, which I don't want to have to do to my Xoom. So any assistance would be much appreciated. I do understand that your device was a Galaxy ACE, but I wouldn't think it would matter as to what the device is, since it is the same install method/command for any Android device essentially. Hope someone can help out. If not, I may have to post in another Device Thread (Motorola Stingray Xoom I would assume).

Many thanks in advance, and I will click the Thank You, if any responses come through.
 
Ryomurai
Old
#8  
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Jun 2013
Really appreciate for the guide man

Sent from my LG-P700 using xda app-developers app
 
zylstrajs
Old
#9  
Junior Member
Thanks Meter 5
Posts: 23
Join Date: Jun 2013
Thanks for the reply... short, to the point, and it works.
 
hsotnas
Old
#10  
Member - OP
Thanks Meter 35
Posts: 31
Join Date: Apr 2012
Quote:
Originally Posted by DannyShane View Post
I very much appreciate the quick tutorial!

However, with that being said, I am having an issue trying to install my .apk onto my Motorola Xoom (Rooted running CM10.1) through the use of Terminal Emulator. I first tried installing the .apk from my File Manager and just clicking on the icon, and clicking Install, like one would think one should be able to do. When that method failed, multiple times(kept saying "insufficient storage, please delete files through app manager") which by the way, I know for a fact I have 15.8GB of storage left on my Xoom, so this should not be the issue. I then decided to try and install through Terminal Emulator. Now one would think it would be about the same as using adb commands on a Computer, which it somewhat is I guess you could say. So I go to T.E. and type the commands to get Super User access, then cd sdcard to go into the directory, then cd download because this is where my file is located, then I type pm install ****.apk.

I get a line of command that says: a) pkg: ****.apk and then b) Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE], and then the command line just goes back to my download folder directory.

I've had this issue before on my Galaxy S3, but can't remember how I ended up resolving the issue. Think I did a factory data reset/wipe, which I don't want to have to do to my Xoom. So any assistance would be much appreciated. I do understand that your device was a Galaxy ACE, but I wouldn't think it would matter as to what the device is, since it is the same install method/command for any Android device essentially. Hope someone can help out. If not, I may have to post in another Device Thread (Motorola Stingray Xoom I would assume).

Many thanks in advance, and I will click the Thank You, if any responses come through.
Hi DannyShane,

Not sure if this is still relevant and you are around here, since it's been a very long time and I stopped using Android

I am not an Android geek but here are my 2 cents...

You need to keep .apk file on the root of the SD CARD instead of a folder. IIRC, I had the same exact error which you had mentioned, I was trying to install .apk which was placed in a folder and it didnt work., then I had to move the .apk file to root and it worked flawlessly.

Extremely sorry for the very late response though. I use my secondary e-mail for this forum and missed replies on this thread.

@ All others who have replied, I am glad that, my little finding helped you guys.

Cheers

The Following User Says Thank You to hsotnas For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes