MULTIDEX ANDROID APP INSTRUMENTATION FOR CODE COVERAGE MEASUREMENT

A method to instrument a multidex Android application for code coverage measurement is described. The method considers structure and DEX limitations of a multidex Android application opposed to the previous single-DEX solution. The method introduces additional steps to bypass the DEX limitations in...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Pilgun, Aleksandr
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:A method to instrument a multidex Android application for code coverage measurement is described. The method considers structure and DEX limitations of a multidex Android application opposed to the previous single-DEX solution. The method introduces additional steps to bypass the DEX limitations in smali representation of Android app bytecode. The method creates one supplementary smali class per DEX for probe arrays allocation. The method creates additional smali classes directory for supplementary classes. The method counts smali classes fields in newly created classes and rearranges those having the overflow due to DEX limitations. The method counts code entities in the newly created smali_classes directory and creates additional smali directories when the method number overflows. The method bypasses DEX method length limitation when reading generated class fields by reflecting the fields while correcting the array order with regards to their naming convention. An embodiment of the method allows to generate a code coverage report in a multidex format considering probes execution information obtained from testing of a multidex Android application.