Grigori Mikayelyan
Jun 05, 2017
12:42 pm

Whitelist the app for BatteryOptimization in smart manager application.

Hi there,

I want to make my app white list for BatteryOptimization in smart manager application. I noticed that some application i.e. "WhatsApp", "Messenger" , "Viber" "imo" etc white listed bydefault.

When ever we install these application bydefault these application's "Power saving" is turned off in "smart manager application". How can do the same with my application i.e. bydefault it's "Power saving" should be turned off in "smart manager application" ?

please see these screenshot
https://www.dropbox.com/s/k2be2lobx624082/device-2017-06-05-175704.png?dl=0
https://www.dropbox.com/s/6ozfrohi21iktit/device-2017-06-05-175736.png?dl=0

 

Please help me to resolve this.

Thanks in advance.

Samuel Veloso
Jun 05, 2017
5:32 pm

Hi Grigori,

It's possible to do this with the ApplicationPolicy.addPackageToBatteryOptimizationWhiteList() API from the Standard SDK.

Note that you can only call the API on Android N devices as you need at least Standard SDK version 5.7 on your device (can be found in Settings -> About device -> Knox version).

Please let me know if you have any further questions.

Best regards,

Samuel

Comments

Hi Samuel,

Can you please clarify how to white-list the app that does not contain the Samsung SDK and is distributed via GooglePlayStore  ?

Thank you,

-Igor

 

Igor KatsmanOct 04, 2017 at 1:11 pm

Hi Igor,

There should be no restriction for whitelisting apps from the play store. All you need is the package name(s) of the app and and pass them into this API on any app that runs the Knox SDK.

 

Thanks,

Sam

Samuel GoldwaxOct 04, 2017 at 4:10 pm
2
Igor Katsman
Oct 04, 2017
4:57 pm

Thank you Sam for your fast reply!

May be I am confused, but my understanding is that embedding the "Knox SDK" into the Android app means forcing end-user to accept additional non-standard permissions during the app installation (which is OK for the case of the corp users and not appropriate for just random users that download the app from the google-play-store).

Can you please help to clarify this ?

Thank you!

-Igor 

Samuel Goldwax
Oct 04, 2017
8:35 pm

Hi Igor,

It is true that activating the Knox SDK does require the user to consent to additional permission (as outlined in the admin pop-up before activating device admin for an app). However applications with device admin and Knox SDKs can effect other apps and system functions, wihout the need for effected apps to also be running Knox. For example: if I wanted to disable the Youtube app through an application running Knox, Youtube's app doesn't need to have Knox in order for the Knox application to disable it. Similarly for battery optimization APIs, the apps you add to the optimization whitelist don't need to be running Knox to be effected by one running Knox and adding them to the list. 

Summary: only the application actually calling Knox APIs needs to be running Knox and be device admin for those APIs to effect any other application.

 

Thanks,
Sam

Igor Katsman
Oct 04, 2017
8:50 pm

Thank you Sam!

We have one app with very large number of actve users. Our app does not use the Knox SDK. recently, the Smart Mgr app (by Samsung), prevents our app from running in the background (which is its main mode of operation). What will be your suggestion to avoid the Smart Mgr app (by Samsung) to affect our app? Note: we can't force current users to accept Knox T&Cs, thus ambedding the Knox SDK seems like not a real option for our case. Thanks! 

Comments

I don't know of a way to programmatically whitelist battery optimization or blacklist force quitting package without using the Knox SDK, other than manually adding the app to the "Unmonitered apps" section.

 

- Sam

Samuel GoldwaxOct 04, 2017 at 9:26 pm
Prasanth Vanamlo
Oct 12, 2017
9:28 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Sep 04, 2018 11:02 pm

Igor Katsman
Oct 12, 2017
9:40 pm

Hi Prasanth, just to clarify: if the "Standard SDK" is integrated into an app (distributed via GooglePlay), will this "Standard SDK" require the end-user to accept any addition permission or T&C upon the first run of the app after installation?

Comments

If your Knox application is running on the device, then yes the user will have to accept a prompt for the application to be a device admin, granting it the permissions needed by the Knox APIs you call. 

Samuel GoldwaxOct 12, 2017 at 9:51 pm
Shannon Lewis
Mar 10, 2018
1:54 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Mar 19, 2018 4:39 pm

nikolas kirrom
Apr 21, 2018
11:18 am

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jul 06, 2018 5:37 pm

Cathy burns
Jul 06, 2018
5:31 am

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jun 24, 2019 4:12 pm

brenda john
Jul 11, 2018
7:43 am

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jun 24, 2019 4:12 pm

Frankq Dotman
Sep 02, 2018
8:54 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Sep 04, 2018 11:01 pm

Jack Richard
Nov 20, 2018
2:11 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jun 24, 2019 4:12 pm

Sarah Vargas
Dec 27, 2018
6:57 am

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jun 24, 2019 4:12 pm

Terry Shaw
Jun 22, 2019
6:55 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jun 24, 2019 4:13 pm

Adam Benjamin
Jun 24, 2019
3:47 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jun 24, 2019 4:13 pm