1e41f4b71Sopenharmony_ci# Common Event Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.ces.1 Event Enum Change of ohos.commonEvent
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Change Impact**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciFor applications developed based on earlier versions, the following common events of the **.ohos.commonEvent** module must be adapted.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci| Common Event                         |
10e41f4b71Sopenharmony_ci| ----------------------------------- |
11e41f4b71Sopenharmony_ci| COMMON_EVENT_PACKAGE_CACHE_CLEARED  |
12e41f4b71Sopenharmony_ci| COMMON_EVENT_USB_STATE              |
13e41f4b71Sopenharmony_ci| COMMON_EVENT_USB_PORT_CHANGED       |
14e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_REMOVED         |
15e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_UNMOUNTED       |
16e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_MOUNTED         |
17e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_BAD_REMOVAL     |
18e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_EJECT           |
19e41f4b71Sopenharmony_ci| COMMON_EVENT_SLOT_CHANGE            |
20e41f4b71Sopenharmony_ci| COMMON_EVENT_SPN_INFO_CHANGED       |
21e41f4b71Sopenharmony_ci| COMMON_EVENT_QUICK_FIX_APPLY_RESULT |
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**Key API/Component Changes**
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciReplace the common events in **ohos.commonEvent** with those in **ohos.commonEventManager**.
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci| Common Event in ohos.commonEvent | Common Event in ohos.commonEventManager |
28e41f4b71Sopenharmony_ci| ----------------------------------- | ----------------------------------- |
29e41f4b71Sopenharmony_ci| COMMON_EVENT_PACKAGE_CACHE_CLEARED  | COMMON_EVENT_PACKAGE_CACHE_CLEARED  |
30e41f4b71Sopenharmony_ci| COMMON_EVENT_USB_STATE              | COMMON_EVENT_USB_STATE              |
31e41f4b71Sopenharmony_ci| COMMON_EVENT_USB_PORT_CHANGED       | COMMON_EVENT_USB_PORT_CHANGED       |
32e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_REMOVED         | COMMON_EVENT_VOLUME_REMOVED         |
33e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_UNMOUNTED       | COMMON_EVENT_VOLUME_UNMOUNTED       |
34e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_MOUNTED         | COMMON_EVENT_VOLUME_MOUNTED         |
35e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_BAD_REMOVAL     | COMMON_EVENT_VOLUME_BAD_REMOVAL     |
36e41f4b71Sopenharmony_ci| COMMON_EVENT_VOLUME_EJECT           | COMMON_EVENT_VOLUME_EJECT           |
37e41f4b71Sopenharmony_ci| COMMON_EVENT_SLOT_CHANGE            | COMMON_EVENT_SLOT_CHANGE            |
38e41f4b71Sopenharmony_ci| COMMON_EVENT_SPN_INFO_CHANGED       | COMMON_EVENT_SPN_INFO_CHANGED       |
39e41f4b71Sopenharmony_ci| COMMON_EVENT_QUICK_FIX_APPLY_RESULT | COMMON_EVENT_QUICK_FIX_APPLY_RESULT |
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**Adaptation Guide**
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciReplace the events in **ohos.commonEvent** with those in **ohos.commonEventManager**.
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ciBefore change:
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci```typescript
48e41f4b71Sopenharmony_ciimport commonEvent from '@ohos.commonEvent';
49e41f4b71Sopenharmony_cilet event: string = commonEvent.Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED;
50e41f4b71Sopenharmony_ci```
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ciAfter change:
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci```typescript
55e41f4b71Sopenharmony_ciimport commonEventManager from '@ohos.commonEventManager';
56e41f4b71Sopenharmony_cilet event: string = commonEventManager.Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED;
57e41f4b71Sopenharmony_ci```
58