Android L Platform 용 Android Manage 프로필 https://github.com/googlesamples/android-BasicManagedProfile에 대한 실험이 있습니다. Nexus 7에 Android L이 성공적으로 설치되었으며 기본 관리 프로필의 샘플 애플리케이션이 성공적으로 컴파일되어 기기에서 실행되었습니다.Android L 프로필 관리
샘플 앱은 프로비저닝을 시작하려는 의도를 올바르게 보냅니다.
Intent intent = new Intent(ACTION_PROVISION_MANAGED_PROFILE);
intent.putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME,
activity.getApplicationContext().getPackageName());
intent.putExtra(EXTRA_PROVISIONING_DEFAULT_MANAGED_PROFILE_NAME,
"Sample Managed Profile");
intent.putExtra(EXTRA_DEVICE_ADMIN, BasicDeviceAdminReceiver.getComponentName(activity));
if (intent.resolveActivity(activity.getPackageManager()) != null) {
startActivity(intent);
activity.finish();
} else {
Toast.makeText(activity, "Device provisioning is not enabled. Stopping.",
Toast.LENGTH_SHORT).show();
}
프로비져닝 작업이 표시되고 장치를 암호화하기 위해 다시 시작해야하는 메시지가 표시됩니다. 장치를 다시 시작하면 "계속 프로비저닝"알림이 표시됩니다. 알림을 클릭하면 프로비져닝 작업이 장치를 몇 번이고 다시 시작하도록 요청합니다.
이미 에뮬레이터에서 시도한 것과 같은 동작을합니다.
아무에게도 단서가 있습니까?
예, Android L 미리보기에서 테스트 중이 었으며 Lollipop 릴리스에서 정상적으로 작동합니다. – zoom