For overseas developers: HarmonyOS is Huawei's operating system, and its latest generation (HarmonyOS NEXT, often called "pure HarmonyOS" or 纯血鸿蒙) no longer runs Android APKs, so apps need native builds and assets. Developers who've made iOS and Android icons often ask the first time they make a HarmonyOS icon: can I just tweak my iOS 1024 icon? Do I draw the rounded corners myself?
HarmonyOS (especially the native HarmonyOS NEXT versions) recommends layered icons: split the icon into a foreground layer and a background layer, and the system applies a uniform shape mask and visual effects in different contexts. This is similar in spirit to Android's Adaptive Icons, but not quite the same as iOS's "one image, the system clips the corners".
| Aspect | iOS | Android adaptive icons | HarmonyOS layered icons |
|---|---|---|---|
| Source file structure | Single image (or layered via Icon Composer) | Foreground + background | Foreground + background |
| Shape mask | Applied uniformly by the system | Decided by the manufacturer's system | Applied uniformly by the system |
| Draw rounded corners yourself? | No | No | No |
| Padding around the subject | Needed | Safe area needed | Safe area needed |
This article is hands-on; for exact sizes and ratios, go by the latest design guidelines on Huawei's developer site and DevEco Studio's prompts.
Layering has three main benefits:
If you provide only a single, already-rounded icon with shadows, then after the system mask is applied you'll easily get problems like "rounded corners inside rounded corners" or "white borders around the edges".
Generally prepare both the foreground and background layers on a 1024×1024 px square canvas and export as PNG. This covers high-resolution devices and makes scaling to other sizes easy.
A common check: shrink the foreground layer to actual home-screen icon size (a few dozen pixels), overlay a rounded-rectangle mask, and see whether the subject is intact and neither too big nor too small.
In a HarmonyOS project created with DevEco Studio, layered icons are usually organized like this:
resources/base/media/ directory, e.g. foreground.png and background.png;layered_image.json:{
"layered-image": {
"background": "$media:background",
"foreground": "$media:foreground"
}
}
module.json5, point the entry ability's (EntryAbility) icon to $media:layered_image;app.json5 accordingly if needed.Details may vary between SDK versions and templates, so use the default configuration generated when you create a new project as a reference, then swap in your own images.
These are often confused:
| Icon type | Use | How to prepare |
|---|---|---|
| In-app icon (layered) | Shown on the home screen and elsewhere after install | Foreground + background, packaged into the app |
| Store listing icon | AppGallery details page and search results | Uploaded separately in the AppGallery Connect console |
The store listing icon usually needs to be a complete square PNG; follow the upload page prompts in AppGallery Connect for exact pixel size and file size. We recommend compositing the layered icon's foreground and background and exporting that, so the icon in the store matches the one on the home screen and users don't "lose the icon after downloading".
Based on common feedback in the developer community, icon problems mostly fall into these categories:
If you already have an iOS or Android icon, migrate in this order:
layered_image.json references are correct and module.json5 points to the right resourceThe key to HarmonyOS icons is "thinking in layers": the background provides the color, the foreground carries the message, and the shape is left to the system. As long as the source files are split correctly, the subject has enough safe area, and the store icon matches the in-app icon, most icon-related review problems can be avoided in advance.