George Mabley
Jan 24, 2019
2:22 am

Personal Home Activity

We would like to send a User back to the device side from the container.  We had this working on Lollipop, Marshmellow, and Nougat. However, we are running into issues on Oreo devices. We call applicationPolicy.startApp( "com.samsung.android.knox.containeragent" , null );  

Unfortunately, this only opens KNOX Settings.  I need to find the Activity name for Personal Home.  Any help is appreciated! 

Note 8 

KNOX 3.1

Mikayla N.Samsung SEAP Moderator
Jan 24, 2019
10:19 pm

Hi George,

Try running the following code to open the Launcher on your device. I just confirmed that it works when running from inside a container:

Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);

 

Best,

Mikayla

George Mabley
Jan 25, 2019
12:37 am

This does not help with my issue.  If I run this portion of code while the user is in the container, it brings the user to the container side launcher.  I wanted to bring the user back to the personal side of the device if the user was inside the container.   

George Mabley
Jan 25, 2019
3:04 am

I found what I needed:

applicationPolicy.startApp( "com.samsung.android.knox.containeragent", "com.samsung.android.knox.containeragent.switcher.SwitchToPersonalIcon" );