1e41f4b71Sopenharmony_ci# Application Access Control Subsystem Changelog 2e41f4b71Sopenharmony_ci## cl.access_token.1 Change of the Value Returned by getPermissionUsedRecord 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci**Change Impact** 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciBefore the change, the permission access record returned by [getPermissionUsedRecord](../../../application-dev/reference/apis/js-apis-privacyManager.md#privacymanagergetpermissionusedrecord) includes the foreground and background status, access timestamp, and access duration. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ciAfter the change, the permission access record also includes **lockScreenStatus**, which is optional. 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ciFor details, see [UsedRecordDetail](../../../application-dev/reference/apis/js-apis-privacyManager.md#usedrecorddetail). 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci**Adaptation Guide** 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ciFor details, see [getPermissionUsedRecord](../../../application-dev/reference/apis/js-apis-privacyManager.md#privacymanagergetpermissionusedrecord). 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ciFor example, call **getPermissionUsedRecord** to obtain information about the permission usage and parse **lockScreenStatus**. 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ciSample code: 19e41f4b71Sopenharmony_ci```ts 20e41f4b71Sopenharmony_ciimport privacyManager from '@ohos.privacyManager'; 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_citry { 23e41f4b71Sopenharmony_ci privacyManager.getPermissionUsedRecord({ 24e41f4b71Sopenharmony_ci flag:1 25e41f4b71Sopenharmony_ci }, (err, data) => { 26e41f4b71Sopenharmony_ci try { 27e41f4b71Sopenharmony_ci let record = data.bundleRecords[0].permissionRecords[0]; 28e41f4b71Sopenharmony_ci let access = record.accessRecords; 29e41f4b71Sopenharmony_ci let reject = record.rejectRecords; 30e41f4b71Sopenharmony_ci for (let i = 0; i < access.length; i++) { 31e41f4b71Sopenharmony_ci let detail = access[i]; 32e41f4b71Sopenharmony_ci console.log(`access record detail lockscreen status: ` + detail.lockScreenStatus); 33e41f4b71Sopenharmony_ci } 34e41f4b71Sopenharmony_ci for (let i = 0; i < reject.length; i++) { 35e41f4b71Sopenharmony_ci let detail = reject[i]; 36e41f4b71Sopenharmony_ci console.log(`reject record detail lockscreen status: ` + detail.lockScreenStatus); 37e41f4b71Sopenharmony_ci } 38e41f4b71Sopenharmony_ci } catch(err) { 39e41f4b71Sopenharmony_ci console.log(`catch err->${JSON.stringify(err)}`); 40e41f4b71Sopenharmony_ci } 41e41f4b71Sopenharmony_ci }) 42e41f4b71Sopenharmony_ci} catch(err) { 43e41f4b71Sopenharmony_ci console.log(`catch err->${JSON.stringify(err)}`); 44e41f4b71Sopenharmony_ci} 45e41f4b71Sopenharmony_ci``` 46