All Products
Search
Document Center

Mobile Platform as a Service:HarmonyOS application security hardening

Last Updated:Jun 30, 2026

This guide walks you through using HarmonyOS App Security Hardening to quickly harden your app and obtain the secured package.

Prerequisites

Before you begin, make sure you have:

  • An unhardened HAP or App file that is 1 GB or smaller.

  • An active mobile security hardening service subscription, or an account in the seven-day free trial period.

Harden an application

  1. Log on to the mPaaS console and select the target application.

  2. In the navigation pane on the left, choose Security > Mobile Security Armor > Harmony application security reinforcement to open the Harmony application security reinforcement page.

  3. Click Create Security Hardening to open the Upload applications to be hardened page.

  4. Click Upload Application and upload the HAP or App file.

  5. After the upload succeeds, you are redirected to the Confirm security hardening information page. Review the application and hardening details.

  6. (Optional) In the Select So files to protect section, select the SO files to protect.

  7. Click Confirm Hardening.

  8. Return to the Application Security Hardening page. A new card for the task appears. Track hardening progress on the card:

    • Reinforcing: The task is in progress.

    • Reinforced: The task is complete.

    • Failed: The task failed.

  9. When the card status shows Reinforced, click Download to get the hardened package (the hardened HAP or App file).

Note

The hardened package is not signed. Re-sign the downloaded package before publishing it to the application marketplace.

What's next

After hardening, verify that key components function correctly. If the application behaves abnormally after hardening, submit a ticket or join the DingTalk group for support (group number: 145930007362).