Install apk in execute root command

Post your questions and help other users.

Moderator: Martin

Post Reply
badmotherfucker
Posts: 2
Joined: 10 Jan 2014 15:34

Install apk in execute root command

Post by badmotherfucker » 10 Jan 2014 15:41

Hi,
I'm trying to install aplication using command pm install app.apk in execute root command but the app is not installed. My goal is to install app like it can be done in android terminal using pm install command. I tried other method like

START ACTIVITY:
Action : android.intent.action.VIEW

but it show dialog with installation confirmation. So is there any way to install app automaticaly?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Install apk in execute root command

Post by Martin » 10 Jan 2014 17:05

Hi,

Is there anything in the log (menu->Manage->Log, ensure to clear the log-filter when the title of the log reads (filtered))?
Please also try to use the full path to the APK like pm install /storage/emulated/0/app.apk.
What Android version and device are you using?

Regards,
Martin

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Install apk in execute root command

Post by MURTUMA » 10 Jan 2014 17:10

I'm not sure if it's possible with automagic´s own actions, but both ROM Tool Box and Android Tuner includes a shortcuts to terminal emulator. Copy the command you want to execute to clipboard or use some other method and paste it to command line. You may have to use control ui action in automagic, I'm not sure because I've never done anything like this.

badmotherfucker
Posts: 2
Joined: 10 Jan 2014 15:34

Re: Install apk in execute root command

Post by badmotherfucker » 11 Jan 2014 10:45

Thanks guys for help. I checked log and it showed error Segmentation fault so I updated SU binaries and it solved problem, pm install work well now.

Post Reply