Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide an automatic application initialization method, system and storage medium for a cloud mobile phone, which can solve the problem of too high network occupation when cloud mobile phone applications are updated in batches.
In order to solve the above problem, an embodiment of the present invention provides an automatic application 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 server-side default application installation list interface to acquire application installation list information and application market timing refreshing time configured by the background;
determining the IP address of the cloud mobile phone device according to the IP information of the server-side default application installation list interface;
according to the obtained IP address of the cloud mobile phone device, comparing application program installation list information configured by the program background with applications in the cloud mobile phone device, and judging whether all application programs in the installation list information are installed;
if the cloud mobile phone equipment is judged not to be provided with the application, sending a request for downloading an address so that the cloud mobile phone equipment downloads a corresponding application installation package from a file server in an intranet mode for application installation;
if the cloud mobile phone equipment is judged to be provided with the application, detecting the application version;
when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment downloads a corresponding application installation package from the file server in an intranet mode for application installation;
and 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 includes:
and a plurality of timing tasks are added according to the timing refreshing time of the application market to check and update the application regularly.
Further, the program background also judges whether all the application programs in the installation list information are installed on the cloud mobile phone device through an isppexist method.
Further, the program background also sends a request for downloading an address by calling an addDownTask method, so that the cloud mobile phone device downloads a corresponding application installation package from the file server in an intranet mode and performs application installation.
Further, comparing the application program installation list information configured in the background with the application in the cloud mobile phone device specifically includes:
and traversing the application program installation list information by the program background, comparing the application program installation list information with the applications in the cloud mobile phone equipment one by one 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 automatic application initialization system for a cloud mobile phone, including:
the interface module is used for calling a server-side default application installation list interface by a program background when a user starts to control the cloud mobile phone through a 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 device according to the IP information of the server-side default application installation list interface;
the application installation detection module is used for comparing application installation list information configured by the program background with applications in the cloud mobile phone device according to the obtained IP address of the cloud mobile phone device, and judging whether all the application programs in the installation list information are installed or not; if the cloud mobile phone device is judged not to be installed with the application, sending a request for downloading an address so that the cloud mobile phone device downloads a corresponding application installation package for application installation;
the application version detection module is used for detecting the application version when the cloud mobile phone equipment is judged to be provided with the application; when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment downloads the corresponding application installation package for application installation;
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 application initialization system for the cloud mobile phone further includes:
and the timing updating module is used for regularly checking and updating the application by adding a plurality of timing tasks according to the application market timing refreshing time.
Further, the application installation detection module also judges whether all the application programs in the installation list information are installed in the cloud mobile phone device through an isppeexist method.
Further, the application installation module receives a request for downloading an address by calling an addDownTask 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.
Another embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, a device in which the computer-readable storage medium is located is controlled to execute the above method for automatically initializing an application program for a cloud mobile phone.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an automatic application program initialization method, system and storage medium for 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 server-side default application installation list interface to acquire application installation list information and application market timing refreshing time configured by the background; determining the IP address of the cloud mobile phone device according to the IP information of the server-side default application installation list interface; according to the obtained IP address of the cloud mobile phone device, comparing application program installation list information configured by the program background with applications in the cloud mobile phone device, and judging whether all application programs in the installation list information are installed; if the cloud mobile phone device is judged not to be installed with the application, sending a request for downloading an address so that the cloud mobile phone device downloads a corresponding application installation package for application installation; if the cloud mobile phone equipment is judged to be provided with the application, detecting the application version; when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment downloads the corresponding application installation package for application installation; and repeating the steps until all the application programs in the installation list information are installed. According to the cloud mobile phone application program updating method and device, the version information of the application program is 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 the occupation of the bandwidth of an external network is greatly reduced, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application programs are updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phones at the same time is avoided, the bandwidth is saved, the image quality and the operation smoothness of the cloud mobile phones are improved, and the user experience is.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First, an application scenario that can be provided by the present invention is introduced, such as an application program that automatically initializes a cloud phone.
The 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 for a cloud mobile phone provided in this embodiment at least includes the following steps:
s101, when a user starts to control the cloud mobile phone through a client, a program background calls a server-side default application installation list interface to acquire application installation list information configured by the background and application market timing refreshing time;
for step S101, the cloud mobile phone is released into the device pool through the background, after the user purchases the cloud mobile phone, the system allocates the corresponding cloud mobile phone from the device pool to the user, and after the user takes the cloud mobile phone, when the ios client or the Android client starts to control the cloud mobile phone application, the program background calls the/marker/getgaudownloads of the gameServer service to obtain the application installation list information configured in the background and the application market refresh time refresh at regular time.
S102, determining an IP address of the cloud mobile phone device according to the IP information of the server-side default application installation list interface;
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 device, comparing application program installation list information configured by the program background with applications in the cloud mobile phone device, 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, the program background traverses the obtained list through all the application programs in the application program installation list information configured in the program background obtained in step S101, compares each piece of data with the application in the cloud mobile phone each time, and determines whether the cloud mobile phone device has installed all the default application programs in the list.
S104, if the cloud mobile phone equipment is judged not to be provided with the application, sending an address downloading request to enable the cloud mobile phone equipment to download a corresponding application installation package from a file server in an intranet mode for application installation;
in step S104, when the method ispappexist determines that the application is not installed in the cloud mobile phone, the program calls an addDownTask method, sends a request for downloading an address, and downloads an installation package from the file server in an intranet manner and then installs the application.
S105, if the cloud mobile phone equipment is judged to be provided with the application, detecting the application version;
s106, when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment can download the corresponding application installation package from the file server in an intranet mode for application installation;
for step S105 and step S106, when it is determined by the method ispappexist that the cloud mobile phone has the application installed and the data version is higher than the version of the cloud mobile phone application, it is determined that a high-version application program exists, an adddownltatsk method needs to be called, a request for downloading an address is issued, and the application is installed after an installation package is downloaded from the file server in an intranet manner.
And 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 phone further includes:
and a plurality of timing tasks are added according to the timing refreshing time of the application market to check and update the application regularly.
Specifically, after the steps are completed, the application is periodically checked and updated by adding a timing task with application market timing refresh time refresh, application installation list information configured in a background of the update program is periodically checked, when the version of the old application is updated or a new application needs to be installed, an addDownTask method is automatically called from the background, a request for downloading an address is sent, and the application is installed after an installation package is downloaded from a file server in an intranet mode.
In the prior art, after a user takes a cloud mobile phone, the user installs a required application program from an external network and upgrades a default installation program, so that the application program of the cloud mobile phone is downloaded or updated through the external network, the pressure of external network bandwidth and the construction cost of the external network are increased extremely, the image fluency of the user is reduced, and the use of other users on the network is influenced.
According to the cloud mobile phone application program updating method and device, the version information of the application program can be checked regularly, the resource updating source of the application program is changed, resource downloading is carried out in an intranet mode from a file server, on one hand, occupation of bandwidth of an external network is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that network occupation is too high when cloud mobile phone application programs are updated in batches is solved, the situation that network bandwidth is insufficient when a large number of users use cloud mobile phones at the same time is avoided, the bandwidth is saved, the image quality and the operation smoothness of the cloud mobile phones are improved, and user experience.
In addition, for a cloud mobile phone operator, frequent attention to version updating of a default installation program and market mainstream application programs is not needed, the workload of the operator is reduced, the false death conditions that a cloud mobile phone of a user is slow in network access, control operation is not reactive and the like when a file server is not updated in time are avoided, and the experience feeling of the user in using the cloud mobile phone is effectively improved.
In a preferred embodiment, the program background further determines, by using an ispappexist method, whether the cloud mobile phone device has installed all the application programs in the installation list information.
Specifically, the isppeexist method can automatically query whether all the application programs in the installation list information are installed in the cloud mobile phone device, the Android platform needs to query by setting a pname attribute (package name) of appin, and the iOS platform needs to query by setting an action attribute (Scheme) of appin.
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 device downloads a corresponding application installation package and performs application installation.
In a preferred embodiment, the comparing the application installation list information configured in the background with the application in the cloud mobile phone device specifically includes:
and traversing the application program installation list information by the program background, comparing the application program installation list information with the applications in the cloud mobile phone equipment one by one to obtain the installation conditions of all the applications in the application program installation list information.
As shown in fig. 2, the embodiment further provides an automatic application initialization method for a cloud mobile phone, which includes the following specific steps: firstly, a client calls a server-side default application installation list interface, then IP information of the server-side default application installation list interface and an IP address of cloud mobile phone equipment are obtained, then application programs installed in a virtual machine are compared one by one according to the server-side default application installation list, whether a corresponding high-version application program exists or not is judged, if the corresponding high-version application program exists, an address is requested to be downloaded, and an installation package is downloaded to install the application; if the corresponding high-version application program does not exist, the application installed in the cloud mobile phone device is the application with the latest version, updating and installation are not needed, the next application program is continuously compared until all application programs in the server-side default application installation list are compared, and then automatic initialization of the application program of the cloud mobile phone is completed.
The method for automatically initializing the application program of 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 server-side default application installation list interface to acquire application installation list information and application market timing refreshing time configured by the background; determining the IP address of the cloud mobile phone device according to the IP information of the server-side default application installation list interface; according to the obtained IP address of the cloud mobile phone device, comparing application program installation list information configured by the program background with applications in the cloud mobile phone device, and judging whether all application programs in the installation list information are installed; if the cloud mobile phone device is judged not to be installed with the application, sending a request for downloading an address so that the cloud mobile phone device downloads a corresponding application installation package for application installation; if the cloud mobile phone equipment is judged to be provided with the application, detecting the application version; when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment downloads the corresponding application installation package for application installation; and repeating the steps until all the application programs in the installation list information are installed. According to the cloud mobile phone application program updating method and device, the version information of the application program is 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 the occupation of the bandwidth of an external network is greatly reduced, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application programs are updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phones at the same time is avoided, the bandwidth is saved, the image quality and the operation smoothness of the cloud mobile phones are improved, and the user experience is greatly.
Second embodiment of the invention
Please refer to fig. 3.
As shown in fig. 3, an embodiment of the present invention further provides an automatic application initialization system for a cloud phone, including:
the interface module 100 is used for calling a server-side default application installation list interface by a program background when a user starts to control the cloud mobile phone through a 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 device according to the IP information of the server-side default application installation list interface;
specifically, for the interface module 100, the cloud mobile phone is released into 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 after the user takes the cloud mobile phone, when the ios client or the Android client starts to control the cloud mobile phone application, the program background calls the/mark/getgaudownloads of the gameServer service to acquire application installation list information configured in the background and application market refresh time refresh at regular time. And the server determines the IP address of the cloud mobile phone equipment allocated to the user according to the server-side default application installation list interface.
The application installation detection module 200 is configured to compare application installation list information configured in the program background with applications in the cloud mobile phone device according to the obtained IP address of the cloud mobile phone device, and determine whether all the application programs in the installation list information are installed; if the cloud mobile phone device is judged not to be installed with the application, sending a request for downloading an address so that the cloud mobile phone device downloads a corresponding application installation package for application installation;
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 the application programs in the application program installation list information configured by the program background are passed through the obtained list, and the program background traverses the obtained list, compares each piece of data with the application in the cloud mobile phone each time, and determines whether the cloud mobile phone device has installed all the default application programs in the list. If not, the application installation module 400 downloads the installation package from the file server in an intranet mode and then installs the application.
The application version detection module 300 is configured to perform application version detection when it is determined that the application is installed in the cloud mobile phone device; when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment downloads the corresponding application installation package for application installation;
specifically, for the application version detection module 300, if the cloud mobile phone is judged to have the application installed and the data version is higher than the version of the cloud mobile phone application by the method isppexist, it is judged that a high-version application program exists, an adddownlinktask method needs to be called, a request for downloading an address is sent, and the application is installed after an 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, the application installation module 400 is configured to, when the application installation detection module 200 determines that the cloud mobile phone is not installed with the application through the method isppeexist, 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, call an adddownlontask method, send a request for downloading an address, download an installation package from the file server in an intranet mode, and install the application.
In a preferred implementation, the system for automatically initializing an application program of a cloud mobile phone further includes:
and a timing updating module 500, configured to periodically check and update the application by adding a plurality of timing tasks to the application market timing refreshing time.
Specifically, the timing update module 500 is configured to periodically check the update application through a timing task newly added by the application market timing refresh time refresh, periodically check the application installation list information configured in the background of the update program, automatically call an adddownlattask method from the background when the version of the old application is updated or a new application needs to be installed, send a request for downloading an address, download an installation package from the file server in an intranet mode, and install the application. The cloud mobile phone operator does not need to pay attention to version updating of the default installation program and market mainstream application programs frequently, workload of the operator is reduced, the false death conditions that a cloud mobile phone of a user is slow in network access, control operation is not reactive and the like when a file server is not updated timely are avoided, and experience of the user in using the cloud mobile phone is effectively improved.
In the prior art, after a user takes a cloud mobile phone, the user installs a required application program from an external network and upgrades a default installation program, so that the application program of the cloud mobile phone is downloaded or updated through the external network, the pressure of external network bandwidth and the construction cost of the external network are increased extremely, the image fluency of the user is reduced, and the use of other users on the network is influenced.
According to the cloud mobile phone application program updating method and device, the version information of the application program can be checked regularly, the resource updating source of the application program is changed, resource downloading is carried out in an intranet mode from a file server, on one hand, occupation of bandwidth of an external network is greatly reduced, on the other hand, the downloading speed of the resource is improved, the problem that network occupation is too high when cloud mobile phone application programs are updated in batches is solved, the situation that network bandwidth is insufficient when a large number of users use cloud mobile phones at the same time is avoided, the bandwidth is saved, the image quality and the operation smoothness of the cloud mobile phones are improved, and user experience.
In a preferred implementation, the application installation detection module 300 further determines, by using an isppexist 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 automatic application initialization system for the cloud mobile phone provided by the embodiment comprises: the interface module is used for calling a server-side default application installation list interface by a program background when a user starts to control the cloud mobile phone through a 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 device according to the IP information of the server-side default application installation list interface; the application installation detection module is used for comparing application installation list information configured by the program background with applications in the cloud mobile phone device according to the obtained IP address of the cloud mobile phone device, and judging whether all the application programs in the installation list information are installed or not; if the cloud mobile phone device is judged not to be installed with the application, sending a request for downloading an address so that the cloud mobile phone device downloads a corresponding application installation package for application installation; the application version detection module is used for detecting the application version when the cloud mobile phone equipment is judged to be provided with the application; when the application version is detected to be lower than the version in the installation list information, sending a request for downloading an address so that the cloud mobile phone equipment downloads the corresponding application installation package for application installation; 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 cloud mobile phone application program updating method and device, the version information of the application program is 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 the occupation of the bandwidth of an external network is greatly reduced, the downloading speed of the resource is improved, the problem that the network occupation is too high when the cloud mobile phone application programs are updated in batches is solved, the condition that the network bandwidth is insufficient when a large number of users use the cloud mobile phones at the same time is avoided, the bandwidth is saved, the image quality and the operation smoothness of the cloud mobile phones are improved, and the user experience is greatly.
Another embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the above method for automatically initializing an application program for a cloud mobile phone.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules may be a logical division, and in actual implementation, there may be another division, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on 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 the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is directed to the preferred embodiment of the present invention, and it is understood that various changes and modifications may be made by one skilled in the art without departing from the spirit of the invention, and it is intended that such changes and modifications be considered as within the scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes 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 (RAM), or the like.