Image Injection on iOS and Android Devices

Users can inject images to Kobiton mobile devices to simulate mobile device camera capturing. When the simulated image is injected, the device will interpret the image as captured by the device camera. This is useful for testing applications that feature reading barcodes or scanning documents without a physical mobile device in hand. 

The maximum image file size is 5MB and the image format can be JPG, JPEG, or PNG.

If image injection is not enabled on your system, please contact us for more information.  

To test a simulated image:

  1. On the Kobiton portal, launch an iOS or Android device.  
  2. Click Install Apps to install the application to test.
  3. On the Install Apps modal, enable the toggle Instrument application for camera injection. Then click Install to install the app to upload on the device.
    Screen_Shot_2021-11-30_at_3.21.42_PM__1_.png
  4. Launch the instrumented app. Navigate to the Image Injection on the left-side toolbar menu and import your images. Click Inject to use that image for the camera. You can import multiple images at a time.
    InjectImageStep__1_.gif

  5. To change your current injected image, click Reset Camera & choose another image, then click Inject to use it for the camera. Your Camera will use your injected image until you click Reset Camera to release it. ReplaceInjectionStep.gif
  6. To delete images in your gallery, you can delete them one by one by selecting the image and then clicking Clear Image. To delete all images, simply click Clear Image.
    ezgif.com-gif-maker__2_.gif
  7. When going to Session Details, we will have a popup along with every step with an injected image.
    InjectedPopup__1_.gif
  8. This pop-up also indicates the life cycle of an injected image in a session. The camera will keep using the injected image until there’s a Reset Camera step. Life-Cycle.gif

Limitations for Image Injection on Android: 

  • Images cannot be injected into several Android applications.

  • App instrumentation is not working on a few Android applications, especially those applications that are obfuscated with DexGuard. Make sure to upload and use a non-obfuscated app.

 

Was this article helpful?
0 out of 0 found this helpful