We have moved to a new Sailfish OS Forum. Please start new discussions there.

How to install Android-apps incl. permission confirmation dialogs by CLI? [deleted]

asked 2018-08-06 16:08:03 +0300

Picanha gravatar image

updated 2018-08-07 04:15:12 +0300

It is pretty easy to install Android-apps (*.apk-files) via command-line interface by:

apkd-install appname.apk

However, using this command I always have to confirm the requested app permissions awkward by hand. Is there any option to auto-accept those permission confirmation dialogs directly inside apkd-install command?

I am dreaming about something like...

apkd-install --accept-all appname.apk

... or similar. Is something like this available?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted

answered 2018-08-06 22:51:21 +0300

coderus gravatar image
cp appname.apk /opt/aliendalvik/data/app/
edit flag offensive delete publish link more


/opt/aliendalvik/data/app yields 'no such file or directory'

I think you mean;

cp appname.apk /opt/alien/data/app

Edited - this does indeed work. I was trying with an APK that was already installed and so was still seeing dialog asking for my input. Having tried with an APK app that is not already installed, it installed without any dialog at all ~ kudos!

Edz ( 2018-08-06 23:26:52 +0300 )edit

So simply copying the apk-file with the mentioned command prevents the occurrence of any permission confirmation dialogs indeed?

How is that possible? :-) I mean: apkd-install does the same job, or am I wrong? :-)

Picanha ( 2018-08-07 04:06:56 +0300 )edit

@Picanha ~ I guess it is because the act of copying (cp) is only placing the entire app contents into the one folder and not to multiples of folders like an RPM would. I don't pretend to fully understand the whys and wherefores of this kind of move, but as usual, @coderus is the man for this kind of knowledge! ;)

Edz ( 2018-08-07 18:01:47 +0300 )edit

@coderus, how can we do this on new aliendalvik? This path don't exist /opt/alien/data/app

carmeloferso ( 2019-07-22 23:05:54 +0300 )edit

@carmeloferso apkd-isntall on new aliendalvik doesnt ask for permissions

coderus ( 2019-07-23 12:45:37 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2018-08-06 16:08:03 +0300

Seen: 318 times

Last updated: Aug 07 '18