Updating Phones using SSH Commands

To upgrade firmware:
1. Download the required firmware version to sdcard/update_image.zip.

For example, use the following:

SCP <file name> admin@<DeviceIP>:/sdcard/update_image.zip
2. Update the firmware using the following:
setprop ctl.start local_update
3. Track progress using the following:
logcat | grep  update_engine_client_android
To upgrade the Android Package Kit (APK):
1. Download the required APK to sdcard/teams.apk

For example use the following:

SCP <file name> admin@<DeviceIP>>:/sdcard/teams.apk
2. Update the APK using the following:
pm install -r -g /sdcard/<filename>
3. Delete the old APK using the following:
pm uninstall com.microsoft.skype.teams.ipphone

If the new APK is older than the existing one, delete the existing APK before installing the new one.

To collect logs:
1. Collect logs using the following:
param_tool scp command/bugreport 1
2. Wait until the logs are created (see in /sdcard/logs/bugreports/ that there is a .gz file)
3. Get the logs from the "/sdcard/logs/bugreports/" folder.

For example, use the following:

SCP admin@<DeviceIP>:/sdcard/logs/bugreports/<log file name> C:\<destination Directory>
To install the Client Certificate:
1. Download certificates to /sdcard/devcert/
2. Install the certificate using the following:
setprop ctl.start sdcard_certs_install.