All Products
Search
Document Center

Mobile Platform as a Service:Step 3 Add the configuration file to your project

Last Updated:Feb 06, 2026

This document describes how to manually import a configuration file into your project using the native AAR method.

This procedure has three steps:

  1. Enter configuration information and upload a signed APK.

  2. Download the configuration to your local machine.

  3. Add the configuration file to your project.

Enter configuration information and upload a signed APK

  1. On the application list page, click the application card, such as the mPaaS Demo application created in the previous step, to open the product page.

    0

    • The application name appears in the upper-left corner. You can switch applications here.

    • On the Product Details page, click Android Code Configuration to open the application configuration panel.

  2. In the application configuration panel, click the Download Configuration File link to open the Code Configuration page.

  3. On the Code Configuration page, enter the Package Name, such as com.mpaas.demo, and upload the compiled and signed APK. For more information about how to quickly generate a signed APK, see Generate a signed APK for the console.

    3

Download the configuration to your local machine

On the Code Configuration page, after you enter the information, click Download Configuration to download the mPaaS configuration file.

The configuration file is a compressed package. The package contains a .config file and an encrypted image named yw_1222.jpg.

5

  • If you are a public cloud user, confirm that the value of base64Code in the .config file is not empty. The yw_1222.jpg file is deprecated in the public cloud environment, so you can ignore this file.

    Xnip2022-07-07_16-03-01

  • If you are an Apsara Stack user, you do not need to check the value of base64Code. Instead, you must manually generate an Apsara Stack encrypted image and replace the yw_1222.jpg file that you downloaded from the console. For more information, see Generate an encrypted image (Apsara Stack configuration file).

Add the configuration file to your project

Note

If you use the component-based method (Portal & Bundle), see Introduction to the component-based access procedure.

Prerequisites

To use the native AAR method, you must have a native development project.

Procedure

  1. In Android Studio, open your existing project and click mPaaS > Native AAR Access.

  2. In the access panel that appears, under Import App Configuration, click Start Import.

  3. Select I have downloaded the configuration file (Ant-mpaas-xxxx.config) from the console and am ready to import it into the project, and then click Next.

  4. In the Import mPaaS Configuration File window, select the App Module to import, choose the configuration file, and click Finish.

  5. After a successful import, a confirmation message appears. You have now manually imported the configuration file.