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