Include App Shielding native libraries
  • 24 Dec 2024
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Include App Shielding native libraries

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

The integration process copies the App Shielding native libraries to the appropriate locations inside the APK’s lib folder, by default all architectures supported by the app will be included, but each architecture can be disabled individually to save space by using a command line argument, if necessary. The App Shielding native library has a randomly generated name starting with 'lib' and ending with .so string. For example: libnnnnbahhmhll.so. Each delivered shield version is expected to have different name.

By default, if the above name is used, the following files are added to the APK:

  • lib/armeabi-v7a/libnnnnbahhmhll.so

  • lib/x86/libnnnnbahhmhll.so

  • lib/arm64-v8a/libnnnnbahhmhll.so

  • lib/x86_64/libnnnnbahhmhll.so

Android contains some logic for determining whether or not the application needs to be run in 32-bit mode, or if it can run in native mode (64-bit). An application will be run in 64-bit mode if all of its 64-bit native libraries are present in the lib/ folder. The application is run in 32-bit mode only if it contains 32-bit native libraries for one of the supported architectures in the lib/ directory, but not the relevant 64-bit version.

If only 32-bit mode should be supported, any files in the following directories should be removed:

  • lib/arm64-v8a/

  • lib/x86_64/

The following directories also should not be present in the APK:

  • lib/armeabi/

  • lib/mips/

  • lib/mips64/

The mentioned directories are meant for storing libraries for architectures that are now deprecated and not supported by Google any more. It is impossible to compile libraries for  these  unsupported architectures with the modern versions of Android NDK. Practically it should not be a  problem,  as according to our research:

  • Google Play Store only supports devices that run Android 4.1 and above.

  • All ARM devices that run Android 4.1 or above and support armeabi, also support armeabi-v7a. Even very old devices from 2010.

  • Android MIPS market share is tiny or non-existing already. There are no Android MIPS phones whatsoever. The last Android MIPS tablet was released in 2012 and only for selected markets, like India and China.


Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle