All Products
Search
Document Center

Mobile Platform as a Service:QPS limit

Last Updated:Jun 07, 2023

Security hardening has the following requirements for hardened APK/AAB. Please read the following instructions before use to obtain a better experience.

  • Please confirm that the content of onCreate of Provider can be executed multiple times. If you have logic in onCreate, make sure it can be executed twice or more. For example, if you initialize a singleton in onCreate of a provider, you need to check whether the instance has been initialized.

  • The x86 and mips architectures are not supported. If any architecture is configured, remove it and repackage it for reinforcement.

  • Currently, minSdkVersion cannot be set to 24 or later. We recommend that you set minSdkVersion to below 23. If minSdkVersion is less than 23, security hardening compresses the nativeLibraries in the APK by default. If you want to set minSdkVersion to 23, you can use one of the following methods:

    • Add android:extractNativeLibs="true" to application this node property.

    • Re-package the hardened APK or AAB and specify whether to compress the package based on your own rules.

    Important

    If you want to reinforce the Assets file in the application, make sure that the minSdkVersion is greater than or equal to 21, that is, the Android version is no less than 5.0.

  • If there is integration to Arouter in the project, please use the Gradle plug-in to automatically load the routing table.

    apply plugin: 'com.alibaba.arouter'//It needs to be configured in the build.gradle of the app module of the project
    
    buildscript {
     repositories {
     mavenCentral()
     }
    
     dependencies {
     classpath "com.alibaba:arouter-register:?"
     }
    }

    The routing table is automatically loaded (power by AutoRegister) through the registration plug-in provided by ARouter, and the loading is performed by scanning dex by default. Automatic registration through the Gradle plug-in can shorten the initialization time and solve the problem of initialization failure caused by application hardening that cannot directly access the dex file.

    Important
    • This plugin must be used with API version 1.3.0 or later.

    • For more information, please refer to the ARouter instruction manual.