scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

is support hdc device command ?

Open l376571926 opened this issue 2 years ago • 13 comments

adb shell

hdc shell

hdc is openharmony sdk tool like adb

l376571926 avatar Jul 04 '23 02:07 l376571926

Short answer: No. HarmonyOS is Android and still works with adb. Why not?

nnnpa31 avatar Jul 04 '23 09:07 nnnpa31

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

l376571926 avatar Jul 04 '23 14:07 l376571926

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.

rom1v avatar Jul 04 '23 14:07 rom1v

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.

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"

l376571926 avatar Jul 04 '23 16:07 l376571926

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.

nnnpa31 avatar Jul 05 '23 01:07 nnnpa31

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:

  • https://www.bilibili.com/read/cv24125018

westinyang avatar Jul 05 '23 08:07 westinyang

@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 avatar Oct 30 '23 19:10 ruperson

@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?

westinyang avatar Oct 31 '23 01:10 westinyang

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:

  • https://www.bilibili.com/read/cv24125018

It seems that only Windows version is available, is there a MacOS version?

sheng-di avatar Apr 09 '24 08:04 sheng-di

@sheng-di Because it is a beta version, we are not considering developing a multi-platform version yet.

westinyang avatar Apr 09 '24 11:04 westinyang

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:

  • https://www.bilibili.com/read/cv24125018

大佬未来有支持macOS的计划吗

Elmagnifico12 avatar May 22 '24 09:05 Elmagnifico12

@Elmagnifico12 暂时没有开发其他平台的计划,因为目前所开发的软件还处于实验性的阶段

westinyang avatar May 22 '24 09:05 westinyang

@sheng-di Because it is a beta version, we are not considering developing a multi-platform version yet.

Open source will make it better.

Refanferhan avatar Aug 14 '24 05:08 Refanferhan

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:

  • https://www.bilibili.com/read/cv24125018

It seems that only Windows version is available, is there a MacOS version?

https://www.virustotal.com/gui/file/b7753d4554054c5a54f68f411e4659ada6efab9e7ffde24258bcea1a63144dbb/behavior

laurancelo avatar Sep 03 '24 08:09 laurancelo