/
Creating a demo app for a demo server

Creating a demo app for a demo server

Step 1: Adjust the sormas-app.properties

  1. Open the the apk file from the SORMAS release with a zip editor (e.g. 7zip).

  2. Extract sormas-app.properties and open the the file for editing.

  3. Set server.url.default to the URL of your SORMAS server's ReST interface.

  4. Set user.name.default and user.password.default to the demo user (needs to be an informant or officer).

  5. Overwrite the sormas-app.properties in the apk with your changed version.

Step 2: Sign the changed apk file

Since the apk file has been changed it needs to be signed again.\ Important: When you change and sign the apk file it is no longer compatible with the original apk file for automatic app update! If you still want to make this work you always have to sign new versions using the same keystore and put the changed apk-file into your SORMAS server for automatic app update.\

  1. Create a keystore using keytool: keytool -genkey -v -keystore my-demo-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias

    Note: keytool is located in the bin/ directory in your JDK. To locate your JDK from Android Studio, select File > Project Structure, and then click SDK Location and you will see the JDK location.

  2. Download uber-apk-signer: https://github.com/patrickfav/uber-apk-signer/releases.

    Note: this is the convenient way to do it. You can also get an Android SDK and follow the instructions given here

  3. Sign the apk file: java -jar uber-apk-signer.jar --ks my-demo-key.jks -ksAlias my-alias --allowResign --apks sormas-version-demo.apk

    See also: https://github.com/patrickfav/uber-apk-signer#command-line-interface

Related content

Development Environment Setup
Development Environment Setup
More like this
Installation Guide (SORMAS Mobile App)
Installation Guide (SORMAS Mobile App)
More like this
Customizing the Name and Icon of the Android App
Customizing the Name and Icon of the Android App
More like this
Project Structure
Project Structure
More like this
SORMAS Server installation (Linux)
SORMAS Server installation (Linux)
More like this
Configuring a Server for Campaign Management
Configuring a Server for Campaign Management
More like this