No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Deploying APPs

Deploying APPs

The APP deployment involves downloading, installing, updating, and uninstalling third-party APPs. To download, install, and update third-party APPs, you must remotely access the APP server for automatic operations. To uninstall third-party APPs, you can use the remote APP server for automatic uninstallation or manually perform the uninstallation operation on the Android OS.

APP Type

Table 14-1 describes the types of APPs on a router.

Table 14-1  APP type

APP Type

Source

Supported Operations

System APP

Installed on a router before the router is delivered.

Update and uninstallation are not supported.

Third-party APP

Downloaded from third-party channels such as the APP server and website.

Download, installation, update, and uninstallation are supported.

Preparation

Deploy an APP server

Deploy an APP server before remotely downloading, installing, updating, or uninstalling third-party APPs.

As shown in Figure 14-5, a router functions as a STA to access a remote APP server through a WLAN network.

Figure 14-5  Networking diagram for installing and deploying an APP server

Edit the APP detection file

Edit the APP detection file on the APP server and set APP information. The format of the APP detection file is as follows:

<?xml version="1.0" encoding="utf-8"?>
<list>
<apk>
<name>com.busap.busapbackground</name>
<version>1.0</version>
<target>ARMaster</target>
<status>install</status>
<url>http://192.168.1.1/appmanager/apk/BusapBackground.apk</url>
<startinfo>com.busap.busapbackground,com.busap.busapbackground.MainActivity</startinfo>
</apk>
</list>
Table 14-2  Description of fields in the APP detection file

Field

Description

<list></list>

Indicates that the APP detection file is in the list format.

<apk></apk>

Indicates that APP information is to be configured.

NOTE:

To perform operations on multiple APPs, add this field in the APP detection file.

<name></name>

Specifies the APP software package name.

<version></version>

Specifies the APP version number.

NOTE:

This field must be set to the same as the version of the APP to be installed, uninstalled, or updated. Otherwise, the router repeatedly installs, uninstalls, or upgrades this APP.

<target></target>

Specifies the model of the Android OS to which the APP belongs.

<status></status>

Specifies the type of the operation on the APP. The value can be:

  • install: When the status is install, the router checks whether the APP to be installed has been installed. If not, the router installs the APP. If so, the router compares whether the version of the installed APP is the same as that of the APP to be installed. If the versions are different, the router installs the APP. If the versions are the same, the router stops the installation.
  • uninstall: The router uninstalls the APP and does not detect the version number.

<url></url>

Specifies the URL from which the APP is downloaded.

<startinfo></startinfo>

Specifies information about automatic APP startup when the router starts. The format is <startinfo>package name, path name and type name of the main activity to start</startinfo>. To enable the APP to automatically start when the router starts, configure this field.

Set the directory for storing the APP

Store the APP in the specified directory on the APP server, which must be consistent with the directory specified by the <url></url> field in the APP detection file. In this example, the APP is stored in the /appmanager/apk directory of the root directory on the APP server.

Precautions

  • If the router powers off or the network is disconnected during the remote APP download, the download process is interrupted. After the router is powered on or the network connection is recovered, the router redownloads the APP and overwrites the downloaded content.
  • Before deploying an APP, ensure that the router has a reachable route to the APP server.
  • Before deploying the APP, log in to the Android OS of the router. For the login procedure, see Logging In to and Operating the Android OS.

Processes of Remotely Downloading, Installing, Upgrading, and Uninstalling Third-Party APPs

The processes of remotely downloading, installing, upgrading, and uninstalling a third-party APP are described as follows.

  1. Configure the URL of the APP detection file.

    1. Log in to the Android OS, open AppManager, and enter the URL specified by the <url></url> field in the APP detection file on the top address bar.

      You need to enter the URL only once, which will always stay on AppManager. If the Automatic Detection of Upgrade is enabled after the router starts, the router automatically starts this APP, and reads the APP detection file periodically or immediately when accessing the WLAN network. Based on the APP list defined in the APP detection file, the router can download, install, upgrade, and uninstall APPs.

      By default, the Automatic Detection of Upgrade is enabled.

    2. (Optional) Click ADD. The router starts detecting APPs.
      NOTE:

      Perform this step when you want to immediately download, install, upgrade, or uninstall third-party APPs.

  2. Download, install, upgrade, and uninstall a third-party APP.
    • Download and installation

      The router reads the APP detection file. When detecting that an APP with the operation type of install does not exist, the router automatically downloads the APP from the APP server and installs the APP in the internal storage.

    • Upgrade and installation

      The router reads the APP detection file. When detecting that an APP with the operation type of install has a different version from the local APP version, the router automatically downloads the APP of the latest version from the APP server and installs the APP in the internal storage.

    • Uninstallation

      The router reads the APP detection file. When detecting that an APP with the operation type of uninstall exists, the router automatically uninstalls the APP from the internal storage.

  3. After the preceding operations are complete, search for the installed APP by choosing All Applications > Installed Applications, and check whether the router operates the APP according to the configuration in the APP detection file.

Manually Uninstalling Third-Party APPs

In addition to uninstalling third-party APPs using the APP detection file, you can manually uninstall a third-party APP.

  1. Log in to the Android OS, open AppManager, and click the third-party APP to be uninstalled.
  2. Click Uninstall. In the displayed dialog box, click OK.
  3. Choose All Applications > Installed Applications to check whether the APP is successfully uninstalled.
Translation
Download
Updated: 2019-08-08

Document ID: EDOC1100034066

Views: 84106

Downloads: 472

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next