From: Hyotaek Shim Date: Mon, 22 Mar 2021 07:19:07 +0000 (+0900) Subject: [ACR-1626] Add usb.host privilege X-Git-Tag: submit/tizen/20210419.112652^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba2ac462c44782676ac5976f037f2b6bb56a926d;p=platform%2Fcore%2Fapi%2Fusb-host.git [ACR-1626] Add usb.host privilege Change-Id: I4eb9a45c8e34449810352e7a716ea95a593aa743 Signed-off-by: Hyotaek Shim --- diff --git a/doc/usb_host_doc.h b/doc/usb_host_doc.h index 765291c..02100ea 100644 --- a/doc/usb_host_doc.h +++ b/doc/usb_host_doc.h @@ -26,9 +26,11 @@ * \#include * * @section CAPI_USB_HOST_MODULE_OVERVIEW Overview - * USB host API provides direct access to USB devices. Before using it, become - * familiar with USB protocol specification. - * Note, that this API is created for *host* mode USB, i.e. communication with + * USB host API provides direct access to USB devices. + * Applications with user confirmation can get access to external USB devices, + * which include card readers, NFC readers, printers, and QR code readers. + * Before using it, become familiar with USB protocol specification. + * Note that this API is created for *host* mode USB, i.e. communication with * connected devices.\n * * Before using any of usb_host API functions you must initialize API context. diff --git a/include/usb_host.h b/include/usb_host.h index 12704d3..a529f92 100644 --- a/include/usb_host.h +++ b/include/usb_host.h @@ -322,6 +322,8 @@ int usb_host_unref_device(usb_host_device_h dev); * @details This function opens a device, which allows performing operations on it * (including transfer operations and strings introspection). * @since_tizen 3.0 + * @remarks An application having platform privilege level can use this api without user confirmation + * by declaring %http://tizen.org/privilege/usb.host, which has been added since 6.5. * @param[in] dev Device to open * @return 0 on success, otherwise a negative error value * @retval #USB_HOST_ERROR_NONE Successful @@ -355,6 +357,8 @@ int usb_host_device_close(usb_host_device_h dev); * idProduct. If two or more devices have same vendor and product id only * first will be opened. * @since_tizen 3.0 + * @remarks An application having platform privilege level can use this api without user confirmation + * by declaring %http://tizen.org/privilege/usb.host, which has been added since 6.5. * @param[in] ctx Context * @param[in] vendor_id idVendor of connected device * @param[in] product_id idProduct of connected device