Creating an Application Clone
Application clone allows multiple instances of the same application to be installed on one device, enabling simultaneous login and independent operation for multiple accounts. When users log in with two different accounts to a social media or a game application simultaneously, they do not have to switch accounts, reducing frequent logins.
After an application is cloned, multiple applications with the same icon are displayed on the home screen. An application with a lower corner mark is a cloned application.
Relationship between the main application and the cloned application:
- These two applications share the same program. For example, when the main application is updated, the cloned one is synchronously updated, including icon, label, and new features.
- Both applications are independent of each other in terms of feature enabling, related configurations, and data.
- When the main application is uninstalled, all cloned applications will also be uninstalled. However, uninstalling a cloned application does not affect the main application.
The following figure shows the effect of cloned applications.

Constraints
The input method application cannot create an application clone.
How to Develop
-
Configure the application clone.
Configure the multiAppMode field in the AppScope/application.json5 configuration file in the project. The code snippet is as follows:
{ "app": { // ... "multiAppMode": { "multiAppModeType": "appClone", "maxCount": 2 } } } -
Clone an application.
-
Build and package the configured project and install it on the device.

-
Choose Settings > System > App Clone, and tap Create.


-
Return to the home screen and check whether the application is cloned.

The three cloned applications in the figure are independent of each other in terms of process, running, data, and notification.
-