Offline instrumenting in an Android application is a manual way to make an Android application instrumented. After we made the application instrumented with the dedicated jar file and some code changes the application will be always instrumented, even when manually opening it or after closing the reflection.
Offline Instrumenting works only with Android 5.1 and up.
How to instrument Android application offline
In order to do offline instrumentation in Android applications, it is necessary to have the application source code.
Step 1: Open your application project in the Android studio.
Step 2: Copy the instrumentation jar file to the application project and "Add As Library" after right-click. (Contact Support Team for the jar file)
Step 3: Add to the manifest the following lines under the application tag: (the target package should be your package name )
Step 4: Build the APK
Step 5: Install the app non-instrumented (with instrument = false), before launching the app instrumented set the property "android.offline.instrumentation" using the setProperty command
for now offline Instrumentation - should work on STA, Grid