Ask / Submit
0

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
1

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

Comments

/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
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

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

Seen: 232 times

Last updated: Aug 07