Disclosure of Invention
The embodiment of the invention aims to solve the technical problem of excessively high network occupation during batch updating of cloud mobile phone application.
In order to solve the above problems, an embodiment of the present invention provides an application program automatic initialization method for a cloud mobile phone, which at least includes the following steps:
when a user starts to control the cloud mobile phone through a client, a program background calls a default application installation list interface of a server to acquire application installation list information configured in the background and application market timing refreshing time;
determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server;
according to the obtained IP address of the cloud mobile phone equipment, comparing the application program installation list information configured by the program background with the application in the cloud mobile phone equipment, and judging whether all application programs in the installation list information are installed;
if the cloud mobile phone equipment is judged to not install the application, a request of downloading an address is sent, so that the cloud mobile phone equipment downloads a corresponding application installation package from a file server in an intranet mode to install the application;
if the cloud mobile phone equipment is judged to have installed the application, detecting an application version;
when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package from a file server in an intranet mode to install the application;
repeating the steps until all the application programs in the installation list information are installed.
Further, the method for automatically initializing the application program of the cloud mobile phone further comprises the following steps:
and adding a plurality of timing tasks to the timing refreshing time of the application market to check and update the application at regular time.
Further, the program background also judges whether the cloud mobile phone equipment has installed all application programs in the installation list information through an isAppExist method.
Further, the program background also sends out a request for downloading an address by calling an addDown task method, so that the cloud mobile phone equipment downloads a corresponding application installation package from the file server in an intranet mode and installs the application.
Further, the comparison between the application program installation list information configured by the background and the application in the cloud mobile phone device is specifically:
and traversing the application program installation list information by a program background, and comparing the application program installation list information with the application in the cloud mobile phone device piece by piece to obtain the installation conditions of all the applications in the application program installation list information.
An embodiment of the present invention further provides an application program automatic initialization system for a cloud mobile phone, including:
the interface module is used for calling a default application installation list interface of the server by a program background when a user starts to control the cloud mobile phone through the client, and acquiring application installation list information configured by the background and application market timing refreshing time; determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server;
the application installation detection module is used for judging whether all application programs in the installation list information are installed or not by comparing the application program installation list information configured by the program background with the application in the cloud mobile phone equipment according to the obtained IP address of the cloud mobile phone equipment; if the cloud mobile phone equipment is judged to not install the application, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application;
the application version detection module is used for detecting the application version when the cloud mobile phone equipment is judged to have installed the application; when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application;
and the application installation module is used for receiving the request of the download address, and downloading the corresponding application installation package from the file server to the cloud mobile phone equipment in an intranet mode for application installation.
Further, the automatic initialization system for the application program of the cloud mobile phone further comprises:
and the timing updating module is used for checking and updating the application at regular time by adding a plurality of timing tasks according to the application market timing refreshing time.
Further, the application installation detection module also judges whether the cloud mobile phone equipment has installed all application programs in the installation list information through an isAppExist method.
Further, the application installation module receives a request of downloading an address by calling an addDown task method, and downloads a corresponding application installation package from the file server to the cloud mobile phone device in an intranet mode for application installation.
The invention also provides a computer readable storage medium, which comprises a stored computer program, wherein the equipment where the computer readable storage medium is located is controlled to execute the automatic initialization method of the application program for the cloud mobile phone when the computer program runs.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an automatic initialization method, a system and a storage medium for an application program of a cloud mobile phone, wherein the method comprises the following steps: when a user starts to control the cloud mobile phone through a client, a program background calls a default application installation list interface of a server to acquire application installation list information configured in the background and application market timing refreshing time; determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server; according to the obtained IP address of the cloud mobile phone equipment, comparing the application program installation list information configured by the program background with the application in the cloud mobile phone equipment, and judging whether all application programs in the installation list information are installed; if the cloud mobile phone equipment is judged to not install the application, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application; if the cloud mobile phone equipment is judged to have installed the application, detecting an application version; when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application; repeating the steps until all the application programs in the installation list information are installed. According to the method, the application program version information is checked regularly, the resource updating sources of the application program are changed, and the resource is downloaded from the file server in an intranet mode, so that on one hand, the occupation of the external network bandwidth is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application program is updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phone in the same period is avoided, the bandwidth is saved, the image quality and the operating smoothness of the cloud mobile phone are improved, and the user experience is greatly improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
First, an application scenario, such as an application program for automatically initializing a cloud mobile phone, which can be provided by the present invention is described.
First embodiment of the present invention:
please refer to fig. 1-2.
As shown in fig. 1, the method for automatically initializing an application program of a cloud mobile phone provided in this embodiment at least includes the following steps:
s101, when a user starts to control a cloud mobile phone through a client, a program background calls a default application installation list interface of a server to acquire application installation list information configured in the background and application market timing refreshing time;
for step S101, firstly, the cloud mobile phone is released to the device pool through the background, after the user purchases the cloud mobile phone, the system allocates the corresponding cloud mobile phone to the user from the device pool, and when the user takes the cloud mobile phone and starts to control the cloud mobile phone application at the ios client or the Android client, the program background calls the/mark/getGameDown load of the game server service to obtain the application program installation list information configured in the background and the application market timing refreshing time refreshTime.
S102, determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server;
for step S102, the server determines the IP address of the cloud mobile phone device allocated to the user according to the server-side default application installation list interface.
S103, according to the obtained IP address of the cloud mobile phone equipment, comparing the application program installation list information configured by the program background with the application in the cloud mobile phone equipment, and judging whether all application programs in the installation list information are installed;
for step S103, according to the IP address information of the cloud mobile phone device of the user obtained in step S102, all the application programs in the application program installation list information configured by the program background obtained in step S101 are traversed by the program background, each time each piece of data is compared with the application in the cloud mobile phone, and whether the cloud mobile phone device has installed all the default application programs in the list is judged.
S104, if the cloud mobile phone equipment is judged to not install the application, a request of downloading an address is sent, so that the cloud mobile phone equipment downloads a corresponding application installation package from a file server in an intranet mode to install the application;
for step S104, when the cloud mobile phone does not install the application through the method isAppExist, the program invokes the addDownTask method, sends a request for downloading an address, downloads an installation package from the file server in an intranet manner, and installs the application.
S105, if the cloud mobile phone equipment is judged to have installed the application, detecting an application version;
s106, when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package from a file server in an intranet mode to install the application;
for step S105 and step S106, when it is determined by the method isAppExist that the cloud mobile phone has a version for installing the application and that the data version is higher than the version of the cloud mobile phone application, it is determined that there is a high-version application program, an addDownTask method needs to be called, a request for downloading an address is sent, and after the application is installed after the installation package is downloaded from the file server in an intranet manner.
S107, repeating the steps until all the application programs in the installation list information are installed.
In a preferred embodiment, the method for automatically initializing an application program of a cloud mobile phone further includes:
and adding a plurality of timing tasks to the timing refreshing time of the application market to check and update the application at regular time.
Specifically, after the steps are finished, the update application is also checked at regular time by applying the task when the market timing refresh time is newly increased, the application program installation list information configured by the background of the update program is checked at regular time, when the version update of the old application is found or the new application needs to be installed, the addDown task method is automatically called from the background, a request for downloading an address is sent, and the application is installed after the download installation package is downloaded from the file server in an intranet mode.
In the prior art, after a user takes a cloud mobile phone, the user installs the application program required by the user and upgrades the default installed program from an external network, so that the application program of the cloud mobile phone is downloaded or updated through the external network, the pressure of the external network bandwidth and the construction cost of the external network are extremely increased, the picture smoothness of the user is reduced, and the use of the network by other users is influenced.
According to the embodiment, the application program version information can be checked regularly, the resource updating source of the application program is changed, and the resource is downloaded from the file server in an intranet mode, so that on one hand, the occupation of the external network bandwidth is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application program is updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phone in the same period is avoided, the bandwidth is saved, the image quality and the operating smoothness of the cloud mobile phone are improved, and the user experience is greatly improved.
In addition, for the cloud mobile phone operator, frequent attention is not required to update the version of the default installation program and the main stream application program of the market, so that the workload of the operator is reduced, the situations of slow access of the cloud mobile phone to the network, no response of control operation and the like caused by the fact that a file server is not updated in time are avoided, and the experience of the user in using the cloud mobile phone is effectively improved.
In a preferred embodiment, the program background further determines whether the cloud mobile phone device has installed all the application programs in the installation list information through an isAppExist method.
Specifically, the isapplexist method can automatically query whether the cloud mobile phone device has installed all application programs in the installation list information, the Android platform needs to query by setting the pname attribute (package name) of the appInf, and the iOS platform needs to query by setting the action attribute (schema) of the appInf.
In a preferred embodiment, the program background further sends a request for downloading an address by calling an addDownTask method, so that the cloud mobile phone equipment downloads a corresponding application installation package and installs the application.
In a preferred embodiment, the comparison between the application installation list information configured by the background and the application in the cloud mobile phone device is specifically:
and traversing the application program installation list information by a program background, and comparing the application program installation list information with the application in the cloud mobile phone device piece by piece to obtain the installation conditions of all the applications in the application program installation list information.
As shown in fig. 2, the embodiment also provides an automatic initialization method for an application program of a cloud mobile phone, which specifically includes the following steps: firstly, a client calls a default application installation list interface of a server, then acquires IP information of the default application installation list interface of the server and an IP address of cloud mobile phone equipment, compares installed application programs in a virtual machine one by one according to the default application installation list of the server, judges whether corresponding high-version application programs exist, and requests a download address if the corresponding high-version application programs exist, and downloads an installation package to install the application; if the corresponding high-version application program does not exist, the application installed in the cloud mobile phone equipment is the latest version application, update installation is not needed, next application program is continuously compared until comparison of all application programs in a default application installation list of a server is completed, and automatic initialization of the application programs of the cloud mobile phone is completed.
The application program automatic initialization method for the cloud mobile phone provided by the embodiment comprises the following steps: when a user starts to control the cloud mobile phone through a client, a program background calls a default application installation list interface of a server to acquire application installation list information configured in the background and application market timing refreshing time; determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server; according to the obtained IP address of the cloud mobile phone equipment, comparing the application program installation list information configured by the program background with the application in the cloud mobile phone equipment, and judging whether all application programs in the installation list information are installed; if the cloud mobile phone equipment is judged to not install the application, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application; if the cloud mobile phone equipment is judged to have installed the application, detecting an application version; when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application; repeating the steps until all the application programs in the installation list information are installed. According to the method, the version information of the application program is checked regularly, the source of updating the application program resource is changed, and the resource is downloaded from the file server in an intranet mode, so that on one hand, the occupation of the external network bandwidth is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application program is updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phone in the same period is avoided, the bandwidth is saved, the image quality and the operating smoothness of the cloud mobile phone are improved, and the user experience is greatly improved.
Second embodiment of the invention
Please refer to fig. 3.
As shown in fig. 3, an embodiment of the present invention further provides an application program automatic initialization system for a cloud mobile phone, including:
the interface module 100 is configured to, when a user starts to control the cloud mobile phone through the client, call a server default application installation list interface by a program background, and obtain application installation list information configured by the background and application market timing refreshing time; determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server;
specifically, for the interface module 100, firstly, the cloud mobile phone is released to the device pool through the background, after the user purchases the cloud mobile phone, the system distributes the corresponding cloud mobile phone to the user from the device pool, and after the user takes the cloud mobile phone, when the ios client or the Android client application starts to control the cloud mobile phone application, the program background calls the/mark/getGameDown load of the game server service to acquire application program installation list information configured in the background and application market timing refreshing time refreshTime. And the server determines the IP address of the cloud mobile phone equipment allocated to the user according to the default application installation list interface of the server.
The application installation detection module 200 is configured to determine whether all application programs in the installation list information have been installed by comparing the application program installation list information configured by the program background with the application in the cloud mobile phone device according to the obtained IP address of the cloud mobile phone device; if the cloud mobile phone equipment is judged to not install the application, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application;
specifically, for the application installation detection module 200, according to the IP address information of the cloud mobile phone device of the user obtained by the interface module 100, all application programs in the application program installation list information configured by the program background traverse the obtained list, and each time each data is compared with the application in the cloud mobile phone, it is determined whether all default application programs in the list have been installed in the cloud mobile phone device. If not, the application is installed after the application installation module 400 downloads the installation package from the file server in an intranet manner.
The application version detection module 300 is configured to perform application version detection when it is determined that the cloud mobile phone device has installed the application; when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application;
specifically, for the application version detection module 300, if the cloud mobile phone has the application installed and the data version is higher than the version of the cloud mobile phone application through the method isAppExist, it is determined that a high-version application program exists, an addDownTask method needs to be called, a request for downloading an address is sent, and after the application is installed after a download installation package is downloaded from a file server in an intranet mode.
The application installation module 400 is configured to receive a request for downloading an address, and download a corresponding application installation package from the file server to the cloud mobile phone device in an intranet manner for application installation.
Specifically, for the application installation module 400, when the application installation detection module 200 determines that the cloud mobile phone does not install the application through the method isAppExist, or when the application version detection module 300 determines that the application is installed and the data version is higher than the version of the cloud mobile phone application, the addDownTask method is called, a request for downloading an address is sent, and the application is installed after the download installation package is downloaded from the file server in an intranet manner.
In a preferred implementation, the application program automatic initialization system for a cloud mobile phone further includes:
and the timing updating module 500 is used for periodically updating the application by adding a plurality of timing tasks to the timing refreshing time of the application market.
Specifically, for the timing update module 500, the timing update module is configured to periodically check the update application by applying the task when the market regularly refreshes the time refresh, periodically check the application installation list information configured by the update program background, automatically call the addDownTask method from the background when the version update of the old application is found or when the new application needs to be installed, send a request of downloading an address, and install the application after downloading an installation package from a file server in an intranet manner. The cloud mobile phone operator does not need to pay close attention to version updating of the default installation program and market mainstream application programs frequently, workload of the operator is reduced, the situations that a user cloud mobile phone accesses a network slowly and control operation is unresponsive and the like are caused when a file server is not updated in time are avoided, and experience of using the cloud mobile phone by the user is effectively improved.
In the prior art, after a user takes a cloud mobile phone, the user installs the application program required by the user and upgrades the default installed program from an external network, so that the application program of the cloud mobile phone is downloaded or updated through the external network, the pressure of the external network bandwidth and the construction cost of the external network are extremely increased, the picture smoothness of the user is reduced, and the use of the network by other users is influenced.
According to the embodiment, the application program version information can be checked regularly, the resource updating source of the application program is changed, and the resource is downloaded from the file server in an intranet mode, so that on one hand, the occupation of the external network bandwidth is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application program is updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phone in the same period is avoided, the bandwidth is saved, the image quality and the operating smoothness of the cloud mobile phone are improved, and the user experience is greatly improved.
In a preferred implementation, the application installation detection module 300 further determines, by using an isapexist method, whether the cloud mobile phone device has installed all the application programs in the installation list information.
In a preferred implementation, the application installation module 400 further receives a request for downloading an address by calling an addDownTask method, and downloads a corresponding application installation package to the cloud mobile phone device for application installation.
The application program automatic initialization system for the cloud mobile phone provided by the embodiment comprises the following components: the interface module is used for calling a default application installation list interface of the server by a program background when a user starts to control the cloud mobile phone through the client, and acquiring application installation list information configured by the background and application market timing refreshing time; determining the IP address of the cloud mobile phone equipment according to the IP information of the default application installation list interface of the server; the application installation detection module is used for judging whether all application programs in the installation list information are installed or not by comparing the application program installation list information configured by the program background with the application in the cloud mobile phone equipment according to the obtained IP address of the cloud mobile phone equipment; if the cloud mobile phone equipment is judged to not install the application, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application; the application version detection module is used for detecting the application version when the cloud mobile phone equipment is judged to have installed the application; when the application version is detected to be lower than the version in the installation list information, a request of a downloading address is sent out, so that the cloud mobile phone equipment downloads a corresponding application installation package to install the application; and the application installation module is used for receiving the request of the download address, and downloading the corresponding application installation package to the cloud mobile phone equipment for application installation. According to the method, the version information of the application program is checked regularly, the source of updating the application program resource is changed, and the resource is downloaded from the file server in an intranet mode, so that on one hand, the occupation of the external network bandwidth is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application program is updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phone in the same period is avoided, the bandwidth is saved, the image quality and the operating smoothness of the cloud mobile phone are improved, and the user experience is greatly improved.
The invention also provides a computer readable storage medium, which comprises a stored computer program, wherein the equipment where the computer readable storage medium is located is controlled to execute the automatic initialization method of the application program for the cloud mobile phone when the computer program runs.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the modules may be divided into a logic function, and there may be other division manners in actual implementation, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
While the foregoing is directed to the preferred embodiments of the present invention, it should be noted that modifications and variations could be made by those skilled in the art without departing from the principles of the present invention, and such modifications and variations are to be regarded as being within the scope of the invention.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.