Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.78k stars 10.47k forks source link

is support hdc device command ? #4137

Open l376571926 opened 1 year ago

l376571926 commented 1 year ago

adb shell

hdc shell

hdc is openharmony sdk tool like adb

nnnpa31 commented 1 year ago

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

l376571926 commented 1 year ago

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

rom1v commented 1 year ago

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.

l376571926 commented 1 year ago

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"

nnnpa31 commented 1 year ago

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.

westinyang commented 1 year ago

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:

ruperson commented 10 months ago

@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 :(

westinyang commented 10 months ago

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

sheng-di commented 5 months ago

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:

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

westinyang commented 5 months ago

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

Elmagnifico12 commented 3 months ago

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:

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

westinyang commented 3 months ago

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

Refanferhan commented 1 month ago

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

Open source will make it better.

laurancelo commented 1 week ago

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:

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

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