$ hdc shell aa force-stop com.duowan.kiwi
$ hdc uninstall com.duowan.kiwi in 661 ms
$ hdc shell mkdir data/local/tmp/aa470ec43c554299ab2338267b7ce413
$ hdc file send /harmonyos/harmonyos_copy/entry/build/default/outputs/default/entry-default-signed.hap "data/local/tmp/aa470ec43c554299ab2338267b7ce413" in 9 s 511 ms
$ hdc shell bm install -p data/local/tmp/aa470ec43c554299ab2338267b7ce413 in 1 s 587 ms
$ hdc shell rm -rf data/local/tmp/aa470ec43c554299ab2338267b7ce413
$ hdc shell aa start -a EntryAbility -b com.duowan.kiwi in 97 ms
每次点击IDE的运行都会删除已经安装的,重新安装,这是为什么
勾选Run-\>Edit Configurations-\>Installation options-\>Keep Application Data后,IDE重新安装会保留应用/服务缓存数据。此会采用覆盖安装的方式
参考链接:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-run-debug-configurations-0000001760344518-V5\#section531811771410