gael kaoma
Apr 13, 2018
2:53 pm

installation problem with the AplicationPolicy.installApplication ( )

Hello;

i am trying to install an application with the installApplication API (String apkFilePath, boolean installOnSDCard) from my kiosk application with the Administrator mode enabled unfortunately it does not work here is the message I get on the screen "the security policy prevents installing this application ", I have no exception.

When I try to directly install the application on the device it is still not possible, I had to disable the Administrator mode of my application kiosk to manually install this application.

is there another approach or is there another API that could allow me to do this installation from my kiosk application ??

cordially

Gael

Similar topics

No similar topics found.
Kamil K.Samsung SEAP Moderator
Apr 17, 2018
9:39 am

Hello,

have you tried using addAppPackageNameToWhiteList() API before you try to install application with installApplication API?

Best regards

Comments

Hi Kamil,

Yes, i create an white liste with ApplicationPolicy.addAppPackageNameToWhiteList(String PkgName, true) and i check if the result of this operation and i have "true" in retourn. 

it's after I try to install it.

thank you for your reply

 

gael kaomaApr 18, 2018 at 9:15 am
gael kaoma
Apr 18, 2018
9:42 am

Hi Kamil,

Yes, i create an white liste with ApplicationPolicy.addAppPackageNameToWhiteList(String PkgName, true) and i check if the result of this operation and i have "true" in retourn then i use ApplicationPolicy.setApplicationInstallationEnabled(String pkgName)  to enable the installation of this application package  it's after I try to install it.

thank you for your reply

Kamil K.Samsung SEAP Moderator
Apr 19, 2018
3:11 pm

Is it possible to get information about device you are using? I will try to reproduce it on my test device. Please open Phone application and put *#1234#, then post AP and CSC here.

gael kaoma
Apr 23, 2018
8:15 am

Here is the information about the device

Model: SM-T580

Knox: 2,8

Standard SDK: 5.8

Standard Premium: 2,8

thank you for your reply

Kamil K.Samsung SEAP Moderator
Apr 23, 2018
10:07 am

Please attach more detailed information about device. You can follow below steps

1. Launch the Calculator app.
2. Enter (+30012012732+
3. In the Factory Mode number pad, enter *#1234#.

4. post AP and CSC here

gael kaoma
Apr 24, 2018
7:58 am

AP : T580XXU2BQL1

CSC: T580XEF2BQL1

Kamil K.Samsung SEAP Moderator
Apr 25, 2018
12:56 pm

thank you for provided information. I was not able to reproduce the issue on device with exactly the same binary.

Please check results of below API calls. It will allow to check which application is blocking installation.

getAppPackageNamesAllBlackLists

getAppPackageNamesAllWhiteLists

gael kaoma
Apr 27, 2018
8:54 am

Hi Kamil,

it's good i installed my apk but i put "false" in the sedond parameter of api appPolicy.installApplication().

cordially

Kamil K.Samsung SEAP Moderator
Apr 30, 2018
10:54 am

Oh I see. I'm glad that it is working now.

Please note that there is information in API references saying "Android version 4.0 and above does not support installing applications on SD card."

Best regards