Open l376571926 opened 1 year ago
Short answer: No. HarmonyOS is Android and still works with adb. Why not?
Short answer: No. HarmonyOS is Android and still works with adb. Why not?
OpenHarmony develop board is not supporte adb command but use hdc command communication with PC
I don't know hdc
, but if it behaves exactly like adb (for example hdc devices
with the same output), then you can just set the environment variable ADB=hdc
and run scrcpy as usual.
I don't know
hdc
, but if it behaves exactly like adb (for examplehdc devices
with the same output), then you can just set the environment variableADB=hdc
and run scrcpy as usual.
a littlebit different,for display device connected to PC,adb use "adb devices",hdc use "hdc list target",but shell is same as adb ,use adb ,command like"adb shell",use hdc command like "hdc shell"
Oh! I misunderstood, you meant OpenHarmony and not HarmonyOS. as far as I know, OpenHarmony can't run Android apps and the Scrcpy server relies on the Android SDK. so even if the hdc command is supported, it still doesn't make much sense. I personally recommend you to refer to the scrcpy implementation (refer to Develop.md) to implement your own server that can be used for OpenHarmony.
I developed a screening tool called OHScrcpy to support Openharmony (3.2+). It's just that the name is similar to Android Scrcpy, and the development technology and implementation methods are completely different. Temporarily close the source but provide software installation packs for free.
Video demonstration:
Software download:
@westinyang dear westinyang, how to download your tool outside of China? Both links in your article lead to cloud storages which allow download only after registration. At the same time it's impossible to register there without chinese phone number :(
@ruperson All right, I uploaded another copy to Google Drive, I hope it can help you, download link: https://drive.google.com/drive/folders/1cVjr_pZO99C0Al20g7tV6CYrAsx63c5U?usp=drive_link
Also, I'm curious, what model of OpenHarmony device are you using now?
I developed a screening tool called OHScrcpy to support Openharmony (3.2+). It's just that the name is similar to Android Scrcpy, and the development technology and implementation methods are completely different. Temporarily close the source but provide software installation packs for free.
Video demonstration:
- OHScrcpy 1.0 beta1: https://www.bilibili.com/video/BV1xz4y1q7S1
- OHScrcpy 1.0 beta2: https://www.bilibili.com/video/BV1W14y1o75Y
- In the future...
Software download:
It seems that only Windows version is available, is there a MacOS version?
@sheng-di Because it is a beta version, we are not considering developing a multi-platform version yet.
I developed a screening tool called OHScrcpy to support Openharmony (3.2+). It's just that the name is similar to Android Scrcpy, and the development technology and implementation methods are completely different. Temporarily close the source but provide software installation packs for free.
Video demonstration:
- OHScrcpy 1.0 beta1: https://www.bilibili.com/video/BV1xz4y1q7S1
- OHScrcpy 1.0 beta2: https://www.bilibili.com/video/BV1W14y1o75Y
- In the future...
Software download:
大佬未来有支持macOS的计划吗
@Elmagnifico12 暂时没有开发其他平台的计划,因为目前所开发的软件还处于实验性的阶段
@sheng-di Because it is a beta version, we are not considering developing a multi-platform version yet.
Open source will make it better.
I developed a screening tool called OHScrcpy to support Openharmony (3.2+). It's just that the name is similar to Android Scrcpy, and the development technology and implementation methods are completely different. Temporarily close the source but provide software installation packs for free. Video demonstration:
- OHScrcpy 1.0 beta1: https://www.bilibili.com/video/BV1xz4y1q7S1
- OHScrcpy 1.0 beta2: https://www.bilibili.com/video/BV1W14y1o75Y
- In the future...
Software download:
It seems that only Windows version is available, is there a MacOS version?
adb shell
hdc shell
hdc is openharmony sdk tool like adb