如何替换系统应用hap

westinyang

沙发 发表于 2023-10-30 16:21:37

先备份launcher,如果有问题稍后可替换回去

hdc file recv /system/app/com.ohos.launcher

替换launcher,注意此操作会清空设备上的/data数据目录,已安装的应用、媒体文件等都会清空

hdc shell mount -o remount,rw /
hdc file send phone-launcher-default-signed.hap /system/app/com.ohos.launcher/Launcher.hap
hdc file send launcher_settings-phone-launcher-default-signed.hap /system/app/com.ohos.launcher/Launcher_Settings.hap
hdc shell rm -rf /data/
hdc shell reboot

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部