HongMeng developer website: developer.harmonyos.com/cn/home

HongMeng application documents: developer.harmonyos.com/cn/docs/doc…

HongMeng API documentation: developer.harmonyos.com/cn/docs/doc…

The real Hongmeng SDK API is in ohos.jar, which can be viewed in conjunction with the Hongmeng API documentation.

The development languages include Java, C/C++ and JS for different development scenarios. The development experience of Java is basically the same as that of Android, and Android developers can enter it seamlessly.

Dex and entry_signed_entry. Apk. The entry_signed_entry. Apk is a shell that is currently used to call the classes.dex in the root path.

In the classes.dex root path, the upper application code that builds the GUI is basically separated from the AndroidAPI, but clearly mimics Android:

About rendering engine, the official website can only find information that 3D engine supports OpenGL and Vulkan, while 2D engine does not have any information, maybe it is Skia, after all, there is no mature good engine in China, we lack too much.

AIDL is a copy of IDL, the interface design is similar, the underlying does not know is also written copy, or directly reuse Android mechanism.

JNI should support it in theory, but there is no documentation to describe it.

Some of jetpack’s stuff, like LiveData and Databinding, has been copied, and threading has introduced rXJava-like scheduler mechanisms.

There is no lofty thing, domestic in the field of operating system with foreign technology generation is too big, just a novice in the brush experience value stage, first imitate done, and then think lofty things.

For now, I see a bright spot that might be an advantage, namely the ability of hypervirtual terminals to integrate across devices:

According to the documentation, this capability allows pages A and B of an application to run separately on different devices as if they were running on the same device. The ability to drag and drop A page from device A to device B and continue to use it. Well, if that’s the case, it’s pretty cool.

It is also advantageous to carry out a complete system design by ourselves. For example, the hot update capability can be supported if you want to:

In general, according to the current data, Hongmeng is a copy of An Android, difficult localization, it is not realistic to surpass Android in three or five years, the domestic operating system in this aspect is almost equal to blank, can start from a copy, is the best result. Hope that domestic cattle force, but also to consider the law of the development of things, without enough accumulation, is unable to suddenly born a severe operating system, Rome is not built in a day. At least in this stage, the complete copy of a system, according to their own understanding to rewrite, is already a good start, the system layer source code can not see, it is not clear after the system core will be what, but at least now, it took the first step, should be encouraged and support.

If you want to experience it, you can download Huawei Dev Eco Studio from the official website and directly create the Java version of the project:

Huawei Dev Eco Studio was changed by IdeaA, which is the same as Android Studio. The way of use is believed to be understood by Android developers.

At present, applications developed by Hongmeng can only run on Hongmeng machine. If there is no Hongmeng machine on hand and the simulator cannot be used, huawei remote machine can only be used. Login huawei developer account through Tools -> DevEco Login, and then use HVD Manager to create a remote machine for debugging and use.

Successful connection to remote Hongmeng TV equipment:

Successfully run our Demo prepared by Hongmeng SDK:

In addition, the service connected by Huawei’s HVD Manager is still a small water pipe. Last night, I downloaded the 30M plug-in after more than 100 times.

At first, the speed was more than 10 kilobytes, until after 12 o ‘clock, maybe less people download, until more than 100 kilobytes.

When you see this error:

Don’t panic, it’s not the ladder problem, it’s useless to hang the external network, but it will be slower, check the network connection is also domestic service, guess it is too small bandwidth pipe at the present stage, did not expect so many developers rush in.

Don’t be discouraged if you can’t debug and run in this case.

Although it has been cut with Android through the upper application API of SDK, it is possible that hap’s packaging system is borrowed from Android and packaged with Gradle, so our command line is still valid:

windows:

gradlew.bat assembleRelease 
Copy the code

Mac/linux:

./gradlew assembleRelease
Copy the code

The same can be played hap packet, at this time unpack can be applied to analyze hongmeng.