1e41f4b71Sopenharmony_ci# Configuring System Capabilities 2e41f4b71Sopenharmony_ciThe SystemCapability (SysCap) module provides a set of APIs for developers to implement system capabilities. 3e41f4b71Sopenharmony_ci## Configuring System Capabilities for a Component 4e41f4b71Sopenharmony_ciWhen adding a component, you need to enable or disable specific system capabilities for it in the **bundle.json** file in the component directory. 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciThe following is an example: 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci```json 9e41f4b71Sopenharmony_ci "component": { 10e41f4b71Sopenharmony_ci "name": "wifi", 11e41f4b71Sopenharmony_ci "subsystem": "communication", 12e41f4b71Sopenharmony_ci "syscap": [ 13e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.STA = true", 14e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.AP = true", 15e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.P2P = false", 16e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.Core = false", 17e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.HotspotExt" 18e41f4b71Sopenharmony_ci ] 19e41f4b71Sopenharmony_ci ], 20e41f4b71Sopenharmony_ci ... 21e41f4b71Sopenharmony_ci } 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci``` 24e41f4b71Sopenharmony_ciAdd the keyword **syscap** under **component** to configure system capabilities. If no value is assigned for a system capability, the default value **true** will be used. The value **true** means to enable the system capability, and the value **false** means the opposite. 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ciIn this example, Wi-Fi STA, AP, and HotspotExt are enabled, and P2P and Core are disabled. 27e41f4b71Sopenharmony_ci## Configuring System Capabilities for a Product 28e41f4b71Sopenharmony_ciWhen building a product, you may need to enable or disable specific system capabilities for it in **vendor/{company}/{product}/config.json**. If you do not configure system capabilities here, the system capabilities configured for the component will be used. 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ciTo configure system capabilities for a product, add the keyword **syscap** to the product **config.json** file and configure the system capabilities. The system capabilities configured for a product take precedence over the system capabilities configured for a component. If a system capability is set to **false** for the component and to **true** for the product, the system capability is enabled. 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ciThe following is an example: 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci```json 35e41f4b71Sopenharmony_ci{ 36e41f4b71Sopenharmony_ci "subsystem": "communication", 37e41f4b71Sopenharmony_ci "components": [ 38e41f4b71Sopenharmony_ci ... 39e41f4b71Sopenharmony_ci { 40e41f4b71Sopenharmony_ci "component": "wifi", 41e41f4b71Sopenharmony_ci "features": [], 42e41f4b71Sopenharmony_ci "syscap": [ 43e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.AP = false", 44e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.P2P = true", 45e41f4b71Sopenharmony_ci "SystemCapability.Communication.WiFi.HotspotExt = false" 46e41f4b71Sopenharmony_ci ] 47e41f4b71Sopenharmony_ci }, 48e41f4b71Sopenharmony_ci ... 49e41f4b71Sopenharmony_ci``` 50e41f4b71Sopenharmony_ciIn this example, Wi-Fi AP and HotspotExt are disabled and P2P is enabled for the product. Considering the system capability configuration example for the component, STA and P2P are enabled and AP, Core, and HotspotExt are disabled. 51e41f4b71Sopenharmony_ci## Configuration Tips 52e41f4b71Sopenharmony_ciIf a product does not have feature difference, you only need to configure system capabilities for components. If a product has feature difference, you can enable or disable specific system capabilities in the product configuration file. 53