1# Pasteboard Subsystem Changelog 2 3Compared with earlier versions, OpenHarmony 5.0.0.18 has the following API changes in its pasteboard subsystem: 4 5## cl.pasteboard.1 Change of the Permission for Accessing getData() 6 7Added a permission required for accessing the **getData()** API. 8 9**Access Level** 10 11Public API 12 13**Reason for Change** 14 15To use a custom component to access the pasteboard in the background, the application must request ohos.permission.READ_PASTEBOARD. 16 17**Change Impact** 18 19The change is not compatible with earlier versions. You are advised to use new APIs. 20 21Before change: The ohos.permission.READ_PASTEBOARD permission is not verified when services access pasteboard data. 22 23After change: Without ohos.permission.READ_PASTEBOARD, services are intercepted when accessing pasteboard data using insecure components. 24 25**Start API Level** 26 279 28 29**Change Since** 30 31OpenHarmony SDK 5.0.0.18 32 33**Key API/Component Changes** 34 35SetAppShareOptions()/pasteboard_service 36 37**Adaptation Guide** 38 39Declare ohos.permission.READ_PASTEBOARD in **module.json5** as required. The sample code is as follows: 40```ts 41"requestPermissions": [ 42 { 43 "name": "ohos.permission.READ_PASTEBOARD" 44 } 45] 46``` 47