1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package devicelockcontroller; 20 21option java_package = "com.android.devicelockcontroller.proto"; 22option java_multiple_files = true; 23 24// The different states a device that did a check-in with the Device Lock 25// server can be in. 26enum DeviceCheckinStatus { 27 DEVICE_CHECKIN_STATUS_UNSPECIFIED = 0; 28 // The device is not ready for provisioning. 29 DEVICE_CHECKIN_STATUS_PROVISION_NOT_READY = 1; 30 // The device is ready for provisioning. 31 DEVICE_CHECKIN_STATUS_PROVISION_READY = 2; 32 // The device completed the locking program. 33 DEVICE_CHECKIN_STATUS_COMPLETE = 3; 34 // The device did not get enrolled within the registration window. 35 DEVICE_CHECKIN_STATUS_PROVISION_NOT_REQUIRED = 4; 36 // The device is in a country where Device Lock is not approved. 37 DEVICE_CHECKIN_STATUS_GEOLOCATION_UNAVAILABLE = 5; 38 // Device identifiers provided by the client that are not registered 39 // on the Device Lock portal. The client provides a list of device identifiers 40 // and if one of them is found that is registered on the Device Lock portal, 41 // then the rest of the device identifiers are set to this check-in status. 42 DEVICE_CHECKIN_STATUS_TO_BE_PURGE = 6; 43} 44 45// The different provisioning methods the Device Lock Android client can 46// provision the device. 47enum DeviceProvisionType { 48 DEVICE_PROVISION_TYPE_UNSPECIFIED = 0; 49 // The device provision should be after the SUW. 50 DEVICE_PROVISION_TYPE_DEFERRED = 1; 51 // The device provision should be during the SUW. 52 DEVICE_PROVISION_TYPE_MANDATORY = 2; 53} 54 55message DeviceCheckinInfo {} 56