Re-signing the Android application

This feature is on-demand support

Resigning applications is the first step in the process of installing them for testing purposes.

Important:
Android automation is only supported on Windows.

Every application that runs under the Android system has been digitally signed with a certificate that is unique to the application’s developer. However, TestArchitect cannot properly interface with any application unless it is re-signed with a certificate that has been configured to allow for testing by TestArchitect. (You may use TestArchitect Client’s own certificate, or your own, as long as it has been configured correctly). This must take place before the application is installed on any target device.

Remember:
You must start TestArchitect Client with administrative rights in order to re-sign (only for the first re-signing) and install applications for testing on the Android mobile device. (Note that, at subsequent sessions, there is no need to run TestArchitect Client as an administrator.) To launch TestArchitect Client with administrative rights:

  • In Windows, locate TestArchitect Client in the Start menu, right-click it, and click Run as administrator.
  • In Linux, to run TestArchitect Client as root, do the following:
    1. Open the terminal.
    2. Switch to root by typing the command su -.
    3. Enter the root password.
    4. Change the current directory to the following location: /usr/local/logigear/testarchitect/workstation.
    5. Use the command ./TAClient.sh to start TestArchitect Client.

To re-sign your application, follow these steps:

  1. Open the Android Instrumentation Tool dialog box.

  2. In the dialog box, click Install more.

    Note:
    The Install more button is enabled only if at least one device is running and is recognized by the Android Instrumentation Tool dialog box.

    The Manage Application Under Test dialog box appears.

  3. To re-sign a new .apk application file, click the Re-sign more button.

    Tip:
    By default, TestArchitect re-signs an Android application with a LogiGear signature. You may alternatively select to re-sign the application with your self-signed signatures (refer to Configuring customized signatures for details). If you encounter issues while re-signing, refer to Troubleshooting custom signatures.

  4. Navigate to and select the .apk application file, and then click Open.

  5. A dialog box appears confirming that the AUT application has been re-signed successfully. Click OK.

    • In the Manage Application Under Test dialog box, the re-signed package is added to the list of available applications.

    • The .apk file is copied to a local folder on the host PC, renamed (with the package name appended to the original .apk file name), and re-signed with the TestArchitect or your self-signed certificate.

      Note:
      The local folder containing the copied .apk file acts as a repository for re-signed applications, and each of these applications may eventually be installed into any number of devices, physical or virtual, without the necessity of re-signing each time. To quickly access the host PC directory containing the re-signed .apk, click the Show Folder button.

What you see in the Manage Application Under Test dialog box are:

  • A drop-down list of currently-available physical and virtual Android devices.

    Tip:
    Multiple devices may be concurrently selected from this list.

  • A list of Android application package files (.apk files) that have been re-signed.

    Note:
    The applications list is unaffected by which devices from the drop-down list are currently selected. This is not a list of applications installed in the selected device(s), it is a list of re-signed applications residing on the host PC, ready for installation onto the devices.

Related information

Installing the Android command line tool


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400