2016-12-08 6 views

답변

1

우리 응용 프로그램은 Knox 환경에서 작동하지 않지만 유사한 문제가 있지만 일부 사용자는 어쨌든 거기에 넣을 것입니다 ... 그래서 비슷한 기능을 찾고 있습니다. 나는 당신을 도울 수있는 다음을 찾았습니다. 안타깝게도 Knox Premium SDK를 포함 할 때만 작동하는 것으로 보입니다. 작동하지 않습니다. https://seap.samsung.com/faq/how-does-app-detect-if-container-was-created

요컨대 두 가지 방법으로 확인할 수 있습니다.

KnoxContainerManager.getContainers() 

또는 매니페스트에 이것을 추가하고 방송 수신기 추가 : 어느 코드에서이 전화를 누군가가 내가 듣고 관심 오전 SDK없이 작동하는 솔루션을 발견하면

<receiver 
     android:name=".receiver.KnoxContainerReceiver" 
     android:exported="true" > 
     <intent-filter> 
      <action android:name="com.samsung.knox.container.creation.status" /> 
     </intent-filter> 
    </receiver> 

public class KnoxContainerReceiver extends BroadcastReceiver{ 
    @Override public void onReceive(Context context, Intent intent){ 
    //do something 
    } 
} 

합니다.