CustomDeviceUI 云解决方案提供商CustomDeviceUI CSP

CustomDeviceUI 配置服务提供程序允许 OEM 实现其自定义前台应用程序,以及运行 IoT 核心版 IoT 设备的后台任务。The CustomDeviceUI configuration service provider allows OEMs to implement their custom foreground application, as well as the background tasks to run on an IoT device running IoT Core. 每个设备仅支持一个前台应用程序。Only one foreground application is supported per device. 支持多个后台任务。Multiple background tasks are supported. 下面显示了开放移动联盟 (OMA) 设备管理 (DM) 和 OMA 客户端预配使用的树格式的 CustomDeviceUI 配置服务提供商。The following shows the CustomDeviceUI configuration service provider in tree format as used by both the Open Mobile Alliance (OMA) Device Management (DM) and OMA Client Provisioning.

备注

此配置服务提供程序仅适用于 Windows 10 IoT 核心 (IoT 核心) 。This configuration service provider only applies to Windows 10 IoT Core (IoT Core).

./Vendor/MSFT
CustomDeviceUI
----StartupAppID
----BackgroundTasksToLaunch
--------BackgroundTaskPackageName

./Vendor/MSFT/CustomDeviceUI./Vendor/MSFT/CustomDeviceUI
CustomDeviceUI 配置服务提供程序的根节点。The root node for the CustomDeviceUI configuration service provider. 支持的操作是 Get。The supported operation is Get.

StartupAppIDStartupAppID
AppID 字符串值是在启动期间启动的默认 appid/AUMID。AppID string value is the default appid/AUMID to launch during startup. 支持的操作是 Get 和 Replace。The supported operations are Get and Replace.

BackgroundTasksToLaunchBackgroundTasksToLaunch
需要在设备启动时启动的后台任务的程序包名称列表。List of package names of background tasks that need to be launched on device startup. 支持的操作是 Get。The supported operation is Get.

BackgroundTasksToLaunch/ BackgroundTaskPackageNameBackgroundTasksToLaunch/BackgroundTaskPackageName
程序包 需要在后台启动的应用的完整名称。Package Full Name of the App that needs be launched in the background. 这可以包含没有入口点、单个入口点或多个入口点。This can contain no entry points, a single entry point, or multiple entry points. 支持的操作包括添加、删除、获取和替换。The supported operations are Add, Delete, Get, and Replace.

SyncML 示例SyncML examples

设置 StartupAppIDSet StartupAppID

<SyncML xmlns="SYNCML:SYNCML1.2">
  <SyncBody>      
        <Replace>
          <CmdID>1</CmdID>
          <Item>
            <Target>
              <LocURI>./Vendor/MSFT/CustomDeviceUI/StartupAppID</LocURI>
            </Target>       
             <Meta>
                <Format xmlns="syncml:metinf">chr</Format>
            </Meta>
            <Data>DefaultApp_cw5n1h2txyewy!App</Data>
        </Item>
        </Replace>        
     <Final/>
  </SyncBody>
</SyncML>

获取所有后台任务Get all background tasks

<SyncML xmlns="SYNCML:SYNCML1.2">
  <SyncBody>      
        <Get>
          <CmdID>1</CmdID>
          <Item>
            <Target>
                <LocURI>./Vendor/MSFT/CustomDeviceUI/BackgroundTaskstoLaunch?list=Struct</LocURI>
            </Target>
          </Item>
        </Get>        
     <Final/>
  </SyncBody>
</SyncML>

添加后台任务Add background task

<SyncML xmlns="SYNCML:SYNCML1.2">
  <SyncBody>      
        <Add>
          <CmdID>1</CmdID>
          <Item>
            <Target>
              <LocURI>./Vendor/MSFT/CustomDeviceUI/BackgroundTaskstoLaunch/BackgroundService1_1.3.0.1_neutral__8wekyb3d8bbwe</LocURI>
            </Target>
            <Meta>
                <Format xmlns="syncml:metinf">chr</Format>
            </Meta>
            <Data>0</Data>
          </Item>
        </Add>        
     <Final/>
  </SyncBody>
</SyncML>