Phương thức
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thông qua Thư viện đại lý Android phổ biến, lớp SamsungResellerServiceFactory
sử dụng Chương trình triển khai Knox (KDP) để quản lý các thiết bị Samsung, trong khi lớp GoogleResellerServiceFactory
sử dụng quy trình thiết lập tự động để quản lý các thiết bị Android khác. Trang này liệt kê các phương thức có sẵn cho từng lớp nhà máy:
phương thức này được hỗ trợ
phương thức này không được hỗ trợ
Phương thức |
Mô tả |
KDP (Chương trình thông báo lỗ hổng) |
Thiết lập tự động |
claimDevice |
Yêu cầu đồng bộ để xác nhận quyền sở hữu một thiết bị cho một khách hàng được chỉ định. |
|
|
claimDevicesAsync |
Yêu cầu không đồng bộ yêu cầu tối đa 100.000 thiết bị cho một hoặc nhiều khách hàng. |
|
|
createCustomer |
Tạo đối tượng Company để nhận dạng duy nhất một công ty (khách hàng). |
|
|
findDevicesByDeviceIdentifier |
Liệt kê các thiết bị có giá trị nhận dạng thiết bị nhất định. |
|
|
findDevicesByOwner |
Danh sách các thiết bị do khách hàng chỉ định hoặc các khách hàng khác xác nhận quyền sở hữu. |
|
|
getOperation |
Truy xuất trạng thái của thao tác không đồng bộ bằng cách sử dụng operationId . |
|
|
listCustomers |
Danh sách khách hàng liên kết với đại lý. |
|
|
listOperations |
Danh sách toán tử có loại toán tử và/hoặc trạng thái hoạt động. |
|
|
unclaimDevice |
Yêu cầu đồng bộ để huỷ xác nhận quyền sở hữu đối với một thiết bị cho một khách hàng được chỉ định. |
|
|
unclaimDevicesAsync |
Yêu cầu không đồng bộ để xác nhận quyền sở hữu đối với tối đa 100.000 thiết bị của một hoặc nhiều khách hàng. |
|
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSamsungResellerServiceFactory\u003c/code\u003e class uses the Knox Deployment Program (KDP) to manage Samsung devices.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleResellerServiceFactory\u003c/code\u003e class uses zero-touch enrollment to manage other Android devices.\u003c/p\u003e\n"],["\u003cp\u003eThe Common Android Reseller Library offers methods such as \u003ccode\u003eclaimDevice\u003c/code\u003e, \u003ccode\u003eunclaimDevice\u003c/code\u003e, and \u003ccode\u003ecreateCustomer\u003c/code\u003e for device management.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003eclaimDevicesAsync\u003c/code\u003e and \u003ccode\u003eunclaimDevicesAsync\u003c/code\u003e provide asynchronous options for managing large numbers of devices.\u003c/p\u003e\n"],["\u003cp\u003eThe library allows resellers to manage customers through methods like \u003ccode\u003ecreateCustomer\u003c/code\u003e and \u003ccode\u003elistCustomers\u003c/code\u003e, and track operation status using \u003ccode\u003egetOperation\u003c/code\u003e and \u003ccode\u003elistOperations\u003c/code\u003e.\u003c/p\u003e\n"]]],["The Common Android Reseller Library uses `SamsungResellerServiceFactory` for Knox Deployment Program (KDP) Samsung devices and `GoogleResellerServiceFactory` for zero-touch enrollment of other Android devices. Key actions include: claiming and unclaiming devices (individually or in bulk), creating customer objects, listing devices by identifier or owner, and retrieving operation statuses. Resellers can also list customers and operations, filtering by type or state. Supported methods differ between KDP and zero-touch.\n"],null,["# Methods\n\nThrough the Common Android Reseller Library, the [`SamsungResellerServiceFactory`](/zero-touch/reseller-library/reference/factory-classes#samsungresellerservicefactory) class uses [Knox Deployment Program](https://www.samsungknox.com/en/knox-deployment-program)\n(KDP) to manage Samsung devices, while the [`GoogleResellerServiceFactory`](/zero-touch/reseller-library/reference/factory-classes#googleresellerservicefactory) class uses zero-touch enrollment to manage\n[other Android devices](/zero-touch/resources/manufacturer-names). This page\nlists methods available to each factory class:\n\nthe method is supported \n\nthe method isn't supported\n\n| Method | Description | KDP | Zero-touch |\n|-----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|-----|------------|\n| [`claimDevice`](/zero-touch/reseller-library/reference/methods/claimdevice) | Synchronous request to claim one device for a specified customer. | | |\n| [`claimDevicesAsync`](/zero-touch/reseller-library/reference/methods/claimdevicesasync) | Asynchronous request to claim up to 100,000 devices for one or more customers. | | |\n| [`createCustomer`](/zero-touch/reseller-library/reference/methods/createcustomer) | Creates a [`Company`](/zero-touch/reseller-library/reference/objects#company) object to uniquely identify a company (customer). | | |\n| [`findDevicesByDeviceIdentifier`](/zero-touch/reseller-library/reference/methods/finddevicesbydeviceidentifier) | List devices with given device identifier. | | |\n| [`findDevicesByOwner`](/zero-touch/reseller-library/reference/methods/finddevicesbyowner) | List of devices claimed by the specified customer or customers. | | |\n| [`getOperation`](/zero-touch/reseller-library/reference/methods/getoperation) | Retrieves the status of an asynchronous operation using its `operationId`. | | |\n| [`listCustomers`](/zero-touch/reseller-library/reference/methods/listcustomers) | List of customers associated with the reseller. | | |\n| [`listOperations`](/zero-touch/reseller-library/reference/methods/listoperations) | List of operations with a specified operation type and/or operation state. | | |\n| [`unclaimDevice`](/zero-touch/reseller-library/reference/methods/unclaimdevice) | Synchronous request to unclaim a single device for a specified customer. | | |\n| [`unclaimDevicesAsync`](/zero-touch/reseller-library/reference/methods/unclaimdevicesasync) | Asynchronous request to unclaim up to 100,000 devices for one or more customers. | | |"]]