# SuperDesk **Repository Path**: qpzeng/hyper-window ## Basic Information - **Project Name**: SuperDesk - **Description**: Super Desk - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2023-02-20 - **Last Updated**: 2025-02-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SuperDesk ## 介绍 待补充 ## 环境配置 见[分支环境搭建.pdf](https://gitee.com/qpzeng/hyper-window/raw/master/分支环境搭建.pdf)(记得替换[manifest.xml](https://gitee.com/qpzeng/hyper-window/blob/master/manifest.xml)和执行预编译命令```build/prebuilts_download.sh --skip-ssl```)。manifest.xml见[manifest.xml](https://gitee.com/qpzeng/hyper-window/blob/master/manifest.xml) 可以使用[update.sh](https://gitee.com/qpzeng/hyper-window/blob/master/update.sh)更新各个远程仓的代码到本地 ``` repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify # 替换manifest.xml repo sync -c repo forall -c 'git lfs pull' build/prebuilts_download.sh --skip-ssl ./update.sh ./build.sh --product-name rk3568 --ccache ``` ## Hyper Window配置 ### 1. 新增配置文件windowscene.config **windowscene.config示例** ``` ENABLED // tag : DISABLED, ENABLED ``` **windowscene.config说明** ``` ENABLED:启用Hyper Window,同时禁用DMS和WMS,所有应用均走Hyper Window的逻辑 DISABLED:默认值,所有应用均不走Hyper Window的逻辑 ``` **使用方式** 在windowscene.config首行设置切换类型后执行push_window_scene_config.bat **push_window_scene_config.bat示例** ``` hdc shell mount -o remount,rw / hdc file send windowscene.config /etc/ hdc shell reboot pause ``` ### 2. Hyper Window生效的前提是启用ArkUI新框架和统一渲染 启用ArkUI新框架见: 启用统一渲染可执行push_uni_config_l.bat(输入1,回车) **push_uni_config_l.bat示例** ``` set flag=%1 if "%flag%"=="" ( set/p flag=0: DISABLED, 1: ENABLED_FOR_ALL, 2: DYNAMIC_SWITCH, 3: reset to default mode ) hdc shell mount -o remount,rw / if "%flag%"=="0" ( hdc shell "echo DISABLED > /etc/unirender.config" ) if "%flag%"=="1" ( hdc shell "echo ENABLED_FOR_ALL > /etc/unirender.config" ) if "%flag%"=="2" ( hdc shell "echo DYNAMIC_SWITCH > /etc/unirender.config" ) if "%flag%"=="3" ( hdc shell "echo > /etc/unirender.config" ) @echo on hdc shell cat /etc/unirender.config hdc shell reboot pause ``` 同时启用三种配置可执行push_windowscene_newpipe_unirender.bat **push_windowscene_newpipe_unirender.bat示例** ``` hdc shell mount -o remount,rw / hdc shell "echo ENABLED > /etc/windowscene.config" hdc shell "echo ENABLED_FOR_ALL > /etc/acenewpipe.config" hdc shell "echo ENABLED_FOR_ALL > /etc/unirender.config" hdc shell reboot pause ``` ### 3. 说明 * Hyper Window生效的情况下,DMS和WMS均禁用,需要启动新Launcher,需要有对应的Launcher安装包 ## Launcher编译安装 ### 环境要求 下载Launcher源码和相应的[DevEco](https://developer.harmonyos.com/cn/develop/deveco-studio#download)及SDK,替换掉原有的SDK(C:\Users\你的用户\AppData\Local\OpenHarmony\Sdk\9\ets) ### 签名 使用[signature.zip](https://gitee.com/qpzeng/hyper-window/blob/master/signature.zip)。也可下载签名文件,链接 ![](figures/hapsigner.png) 将签名文件放在Launcher目录下的signature文件夹里 ![](figures/signature.png) 修改Launcher目录下的build-profile.json5 增加```"signingConfig": "release"```和 ``` "signingConfigs": [ { "name": "release", "material": { "storeFile": "signature/OpenHarmony.p12", "storePassword": "00000016F0E8F3B92AE3F0CF5FF262B443AE0B8F193696636546CE2630B4776D622CB175C9B2", "keyAlias": "OpenHarmony Application Release", "keyPassword": "0000001623E34C5DD946922E245CF7D288B0CFD5C8E6CFA9D19E7B9795834540560B63373C9E", "signAlg": "SHA256withECDSA", "profile": "signature/launcher.p7b", "certpath": "signature/OpenHarmonyApplication.cer", } } ] ``` ![](figures/build-profile.png) ### 编译 执行Build Hap(s)。 ![](figures/build.png) ### 安装 执行[push_launcher.bat](https://gitee.com/qpzeng/hyper-window/blob/master/push_launcher.bat)。注意把目录改成本地的、新Launcher需要启用Hyper Window、ArkUI新框架和统一渲染 **push_launcher.bat示例** ``` copy 你的Launcher目录\product\phone\build\default\outputs\default\phone-launcher-default-signed.hap Launcher.hap copy 你的Launcher目录\feature\settings\build\default\outputs\default\launcher_settings-phone-launcher-default-signed.hap Launcher_Settings.hap hdc shell mount -o remount,rw / hdc shell rm -rf /data/* hdc file send .\Launcher.hap /system/app/com.ohos.launcher/Launcher.hap hdc file send .\Launcher_Settings.hap /system/app/com.ohos.launcher/Launcher_Settings.hap hdc shell reboot pause ``` 一次性启用Hyper Window、ArkUI新框架、统一渲染和安装新Launcher可执行[push_launcher_windowscene_newpipe_unirender.bat](https://gitee.com/qpzeng/hyper-window/blob/master/push_launcher_windowscene_newpipe_unirender.bat) **push_launcher_windowscene_newpipe_unirender.bat示例** ``` copy 你的Launcher目录\product\phone\build\default\outputs\default\phone-launcher-default-signed.hap Launcher.hap copy 你的Launcher目录\feature\settings\build\default\outputs\default\launcher_settings-phone-launcher-default-signed.hap Launcher_Settings.hap hdc shell mount -o remount,rw / hdc shell rm -rf /data/* hdc file send .\Launcher.hap /system/app/com.ohos.launcher/Launcher.hap hdc file send .\Launcher_Settings.hap /system/app/com.ohos.launcher/Launcher_Settings.hap hdc shell "echo ENABLED > /etc/windowscene.config" hdc shell "echo ENABLED_FOR_ALL > /etc/acenewpipe.config" hdc shell "echo ENABLED_FOR_ALL > /etc/unirender.config" hdc shell reboot pause ``` ## 待补充