Add debug symbols from Android Studio

To help you to identify expensive parts of your application, add debug symbols to show function names in the Functions and Call Paths views in Streamline. This task explains how to add debug symbols from Android Studio.

Before you begin

Ensure your application is debuggable.

Procedure

  1. Set the active build variant in Android Studio, click Build Variants, then choose Debug to include debug symbols in the APK.

  2. Click Build. Android Studio generates build artifacts in the project-name/module-name/build/outputs/apk/debug directory.

  3. Unzip the app-debug.apk file.

  4. Locate the .so files, which contain the debug symbols.

  5. Add the relevant files for your target architecture. For example, if your target architecture is arm64-v8a and the unzipped APK contains:

    lib/arm64-v8a/libdemo.so
    
    lib/x86/libdemo.so
    
    lib/x86_64/libdemo.so
    
    lib/armeabi-v7a/libdemo.so
    

    instruct Streamline to use lib/arm64-v8a/libdemo.so

Next steps

You can now add the debug symbols file when you analyze a capture of your application in Streamline. See Select images and libraries for profiling in the Arm Streamline User Guide.