CN105744511B - Android system adaptation module dynamic updating method, client and server - Google Patents

Android system adaptation module dynamic updating method, client and server Download PDF

Info

Publication number
CN105744511B
CN105744511B CN201410765818.2A CN201410765818A CN105744511B CN 105744511 B CN105744511 B CN 105744511B CN 201410765818 A CN201410765818 A CN 201410765818A CN 105744511 B CN105744511 B CN 105744511B
Authority
CN
China
Prior art keywords
adaptation
package
plug
module
latest version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410765818.2A
Other languages
Chinese (zh)
Other versions
CN105744511A (en
Inventor
魏巍
丁锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201410765818.2A priority Critical patent/CN105744511B/en
Publication of CN105744511A publication Critical patent/CN105744511A/en
Application granted granted Critical
Publication of CN105744511B publication Critical patent/CN105744511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a dynamic updating method of an android system adaptation module, a client and a server. The method comprises the following steps: the multi-card adapting client sends an adapting module updating request comprising the adapting type information of the current home mobile phone to the server; receiving an adaptation plug-in package or a download address of the adaptation plug-in package sent by a server according to the adaptation type information; and after receiving or downloading the adaptation plug-in package, installing the adaptation plug-in package. The method comprises the steps that an adaptation module updating request containing current attributive mobile phone adaptation type information is sent to a server through a multi-card adaptation client, the server sends a latest adaptation plug-in package matched with the adaptation type information or a download address of the latest adaptation plug-in package to the multi-card adaptation client according to the adaptation type information, the multi-card adaptation client acquires the adaptation plug-in package and then installs the adaptation plug-in package to complete updating of an adaptation module, and the adaptation module can be updated in time without upgrading the version of the multi-card adaptation client.

Description

Android system adaptation module dynamic updating method, client and server
Technical Field
The invention relates to the technical field of mobile communication, in particular to a dynamic updating method of an android system adaptation module, a client and a server.
Background
With the popularization of mobile phones, users often have multiple SIM cards (Subscriber Identity modules), and accordingly, in order to facilitate users to use multiple SIM cards on one mobile phone, a one-phone-multiple-card mobile phone with various dual cards, dual standby, three cards, three standby, and the like also has come to be. For a Mobile phone based on an Android (Android) System, since the source code of the Android System only supports a single SIM card and the network formats of operators supporting the SIM cards are different, for example, some SIM cards are supported by WCDMA (wideband code division Multiple Access) and some SIM cards are supported by GSM (Global System for Mobile Communication), in order to implement a one-machine multi-card function, the Android source code is extended, a multi-card adaptation client is installed in the Mobile phone for adaptation, and related modules customized according to a framework layer of the Android System are called, so that the Android System can support functions of Communication, short messages, internet Access and the like of SIM cards in a plurality of different network formats. Related modules customized according to the Android system frame layer, such as a telephone adaptation module and a short message adaptation module, are collectively called adaptation modules.
At present, the main adaptation strategies of a multi-card adaptation client in an Android mobile phone comprise: (1) according to the adaptation of a specific model, namely acquiring a model identifier of the mobile phone model, and calling a specific adaptation module of the model through a Java reflection mechanism; (2) and (3) adapting according to a specific CPU platform, namely acquiring the CPU model of the mobile phone, calling a specific adaptation module of the CPU platform through a Java reflection mechanism, and adopting a uniform adaptation mode for all models with the same CPU model. Correspondingly, the current adaptation modules mainly comprise an adaptation module customized according to a specific model and an adaptation module customized according to a CPU platform of the mobile phone.
However, in the process of implementing the present invention, the inventor finds that, because the customization of the adaptation modules is not unified, the adaptation modules customized by various mobile phone manufacturers are very different, which causes a compatibility problem when a plurality of application software which needs to use the adaptation modules calls the adaptation modules, so that a mobile phone user usually needs to update the adaptation modules to expand the adaptation range and improve the compatibility of the adaptation modules; on the other hand, if the unadapted Android mobile phone is required to be adapted, or after the system of the adapted mobile phone is reinstalled or the firmware of the mobile phone system is upgraded, the adaptation module also needs to be updated in time so as to realize the function of one-machine multi-card. However, at present, updating the adapter module must be performed along with updating of the multi-card adapter client in the mobile phone, that is, the whole multi-card adapter client program must be downloaded and updated to complete updating of the adapter module, if a compatibility problem occurs in the adapter module in the mobile phone of a user during the update iteration of the multi-card adapter client version, or a mobile phone manufacturer issues a new model, or an already-adapted model upgrades the firmware version of a mobile phone system, the user cannot update the adapter module in time, and the adapter module must be actively upgraded after the new multi-card adapter client version is issued, so that the functions of one mobile phone and multiple cards cannot be used within a period of time.
Disclosure of Invention
In order to solve the problem that the adaptation module of the Android system in one-machine multi-card type cannot be dynamically updated in the related art, the application provides a dynamic updating method of the adaptation module of the Android system, a client and a server.
According to a first aspect of an embodiment of the present application, a method for dynamically updating an android system adaptation module is provided, including:
the multi-card adapting client sends an adapting module updating request comprising the adapting type information of the current home mobile phone to the server;
receiving an adaptation plug-in package or a download address of the adaptation plug-in package sent by a server according to the adaptation type information;
and after receiving or downloading the adaptation plug-in package, installing the adaptation plug-in package.
Optionally, in the dynamic update method for the android system adapter module, the multi-card adapter client regularly obtains the latest adapter plug-in package information of the server, and sends an adapter module update request to the server when it is determined that the adapter plug-in package is updated according to the latest adapter plug-in package information.
Optionally, in the dynamic update method for the android system adaptation module, when the multi-card adaptation client detects that the system version of the current home mobile phone changes, an adaptation module update request including adaptation type information of the current home mobile phone is sent to the server.
Optionally, in the method for dynamically updating an android system adaptation module, after receiving or downloading the adaptation plug-in package and before installing the adaptation plug-in package, the method further includes:
the client checks the adaptation plug-in package according to the adaptation type information, wherein the check comprises the following steps:
judging the adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
and judging whether the adaptation type information is matched with the adaptation type of the adaptation plug-in package, and if so, checking to pass.
According to a second aspect of the embodiment of the present application, there is provided another method for dynamically updating an android system adaptation module, including:
the multi-card adapting client sends client identification information and adapting type information of the current attributive mobile phone to the server;
the server records the client identification information and the corresponding adaptation type information of the current home mobile phone;
when the adaptation plug-in package matched with the adaptation type information is updated, the server sends the adaptation plug-in package or a download address of the adaptation plug-in package to a corresponding multi-card adaptation client according to the client identification information;
and after the multi-card adapting client receives or downloads the adapting plug-in package, installing the adapting plug-in package.
According to a third aspect of the embodiments of the present application, there is provided a multi-card adapter client, including:
the first sending module is used for sending an adaptation module updating request comprising the adaptation type information of the current home mobile phone to the server;
the adaptive plug-in package acquisition module is used for receiving an adaptive plug-in package sent by the server according to the adaptation type information or downloading the adaptive plug-in package according to a download address of the adaptive plug-in package sent by the server;
and the installation module is used for installing the adapter plug-in package.
Optionally, the multi-card adapter client further includes:
the update information acquisition module is used for acquiring the latest adapting plug-in package information of the server at regular time;
a first judging module for judging whether there is updating of the adapting plug-in package according to the latest adapting plug-in package information,
the first sending module is used for sending an adaptation module updating request to the server when the adaptation plug-in package is updated.
Optionally, the multi-card adapter client further includes:
a system detection module for detecting whether the system version of the current attributive mobile phone changes,
the first sending module is used for sending an adaptation module updating request comprising adaptation type information of the current attribution mobile phone to the server when detecting that the system version of the current attribution mobile phone changes.
Optionally, the multi-card adapter client further includes:
and the second sending module is used for sending the client identification information and the current attribution mobile phone adaptation type information to the server.
Optionally, the multi-card adapter client further includes:
a checking module, configured to check the adaptation plug-in package according to the adaptation type information, where the checking module includes:
the second judging module is used for judging the adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
and the third judging module is used for judging whether the adaptation type information is matched with the adaptation type of the adaptation plug-in package, and if the adaptation type information is matched with the adaptation type of the adaptation plug-in package, the verification is passed.
According to a fourth aspect of embodiments of the present application, there is provided a server, including:
the first receiving module is used for receiving an adaptation module updating request which is sent by the multi-card adaptation client and comprises the adaptation type information of the current attribution mobile phone;
and the adaptive plug-in package feedback module is used for sending the adaptive plug-in package or the download address of the adaptive plug-in package to the client according to the adaptation type information.
Optionally, the adaptation plug-in package feedback module includes:
the selection submodule is used for selecting a corresponding adaptation plug-in package according to the adaptation type information;
and the sending submodule is used for sending the adaptation plug-in package, or generating a download address according to the adaptation plug-in package, and sending the download address to a client.
According to a fifth aspect of embodiments of the present application, there is provided another server, including:
the second receiving module is used for receiving the client identification information and the current attribution mobile phone adaptation type information sent by the multi-card adaptation client;
the recording module is used for recording the client identification information and the corresponding adaptation type information;
the updating judgment module is used for judging whether the adaptive plug-in package matched with the adaptive type information is updated or not;
and the adaptive plug-in package feedback module is used for sending the adaptive plug-in package or the download address of the adaptive plug-in package to the corresponding client according to the client identification information when the adaptive plug-in package matched with the adaptation type information in the server is updated.
The technical scheme provided by the embodiment of the application can have the following beneficial effects: the method comprises the steps that an adaptation module updating request containing current attributive mobile phone adaptation type information is sent to a server through a multi-card adaptation client, the server sends a latest adaptation plug-in package matched with the adaptation type information or a download address of the latest adaptation plug-in package to the multi-card adaptation client according to the adaptation type information, and after the multi-card adaptation client obtains the adaptation plug-in package, the adaptation plug-in package is installed, so that the adaptation module can be updated. Therefore, the latest adapter module can be used without upgrading the multi-card adapter client version, and the adapter module can be updated in time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a method for dynamically updating an android system adaptation module according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for dynamically updating an android system adaptation module according to another exemplary embodiment of the present application.
Fig. 3 is a flowchart illustrating another method for dynamically updating an android system adaptation module according to an exemplary embodiment of the present application.
Fig. 4 is a block diagram illustrating a multi-card-adapting client according to an exemplary embodiment of the present application.
Fig. 5 is a block diagram of a multi-card-adapting client according to another exemplary embodiment of the present application.
Fig. 6 is a block diagram of a multi-card-adapting client according to yet another exemplary embodiment of the present application.
Fig. 7 is a block diagram of a server according to an exemplary embodiment of the present application.
Fig. 8 is a block diagram of another server according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but it will be appreciated by those skilled in the art that the present application may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the embodiments.
Fig. 1 is a schematic flowchart of a method for dynamically updating an android system adaptation module according to an exemplary embodiment of the present application, and as shown in fig. 1, the method includes:
step S101, the multi-card adapting client sends an adapting module updating request comprising the adapting type information of the current home mobile phone to a server;
step S102, receiving an adaptation plug-in package or a download address of the adaptation plug-in package sent by a server according to the adaptation type information;
step S103, after receiving or downloading the adaptation plug-in package, installing the adaptation plug-in package.
The adaptation type information comprises a model identification code or CPU model information of a mobile phone currently affiliated to the multi-card adaptation client, or the model identification code and the CPU model information. The multi-card adapting client can automatically send an adapting module updating request to the server at a background timing, wherein the adapting module updating request comprises the adapting type information, and a user can also actively send the adapting module updating request to the server through the multi-card adapting client when in need. After receiving the update request of the adaptation module, the server queries whether an adaptation plug-in package of a corresponding latest version exists in a database according to adaptation type information in the update request of the adaptation module, for example, a multi-card adaptation client sends a model identification code of a mobile phone to the server, after receiving the model identification code, the server queries whether an adaptation plug-in package corresponding to the model identification code exists in the database, and if the adaptation plug-in package of a corresponding version exists, queries the latest version of the adaptation plug-in package, sends the adaptation plug-in package of the latest version to the multi-card adaptation client, or generates a download address of the adaptation plug-in package, and sends the download address to the multi-card adaptation client. If the server does not inquire the adaptation plug-in package corresponding to the adaptation type information in the database, error prompt information can be returned to the multi-card adaptation client, or information that the corresponding adaptation plug-in package does not exist is returned.
The database is used for storing adaptation plug-in packages corresponding to different adaptation type information, such as adaptation plug-in packages corresponding to different model identification codes and adaptation plug-in packages corresponding to different CPU models, and the database can only store the latest version of the adaptation plug-in package. The database may be located in a server, that is, a server interacting with the multi-card adapter client, or may be located in another server. The adaptation plug-in package is used for updating the adaptation module, the updating comprises expansion and adjustment based on the original program, and when the adaptation module is not configured in the mobile phone, the adaptation plug-in package can be used for installing the adaptation module. After the adaptation plug-in package is installed, when a multi-card adaptation client or other mobile phone application software calls the adaptation module, a DexClassLoader loader provided by an Android system is used, a DEX (type of an executable file on an Android platform) file can be read from the JAR package, the DEX file can be dynamically loaded during program operation, and the class and the interface in the DEX file are accessed in a Java reflection mode, so that dynamic calling and dynamic program operation are realized. The adaptation plug-in package can also be prepared in the same way as the conventional plug-in package. The adaptation module is updated by using the plug-in package, so that the updating process is simpler, and the adaptation module is more suitable for dynamic calling.
And after the multi-card adaptation client receives the adaptation plug-in package sent by the server or downloads the adaptation plug-in package according to the download address sent by the server, the adaptation plug-in package is installed to finish updating the adaptation module.
Fig. 2 is a schematic flowchart of a method for dynamically updating an android system adaptation module according to another exemplary embodiment of the present application, and as shown in fig. 2, the method includes:
step S201, the multi-card adapting client side acquires the latest adapting plug-in package information of the server at regular time;
step S202, when the updating of the adaptation plug-in package is judged to exist according to the latest adaptation plug-in package information, an adaptation module updating request is sent to a server.
The multi-card adapting client requests the latest adapting plug-in package information of the server from the server at a certain time in the background and receives the latest adapting plug-in package information returned by the server. The latest adaptation plug-in package information can be information of all adaptation plug-in packages with the latest version in the server, after the client receives the latest adaptation plug-in package information, whether the adaptation plug-in package update exists is judged, and when the judgment result shows that the adaptation plug-in package update exists, an update request is sent to the server. When the latest version change of the adapter plug-in package is described in the latest adapter plug-in package information, the multi-card adapter client can send an adapter module update request to the server when any adapter plug-in package update exists, namely any adapter plug-in package update exists. The multi-card adapting client can also judge that the adapting plug-in package matched with the adapting type information of the local machine is updated according to the latest adapting plug-in package information, for example, when the current version number of the adapting module of the local machine is lower than the version number of the adapting module identified in the corresponding adapting plug-in package, an adapting module updating request is sent to the server, and the later can avoid sending unnecessary adapting module updating requests, thereby saving system processing resources and network resources. The multi-card adapting client can also send adapting type information of the multi-card adapting client and latest adapting plug-in package information of a request server to the server at the same time, the server can return the latest information of the adapting plug-in package corresponding to the adapting type information to the multi-card adapting client according to the adapting type information sent by the multi-card adapting client, and when the multi-card adapting client judges that the adapting plug-in package corresponding to the adapting type information of the set is updated according to the latest information of the adapting plug-in package returned by the server, an adapting module updating request is sent to the server, and the later can also avoid sending unnecessary updating requests.
In a possible implementation manner, the multi-card adapter client may further send an adapter module update request to the server when detecting that the system version of the current home mobile phone changes, where the adapter module update request includes the current home mobile phone adaptation type information, and may also send the adapter module update request to the server through the multi-card adapter client after the user makes a phone call or upgrades the mobile phone system firmware. When a user reloads the mobile phone system or updates the firmware of the mobile phone system, the system version of the mobile phone may change, in this case, the adaptation module needs to be updated to adapt to the new mobile phone system, and when the multi-card adaptation client detects that the system version of the current mobile phone to which the multi-card adaptation client belongs changes, the multi-card adaptation client sends an adaptation module update request to the server, so that the adaptation module can be updated in time.
And after receiving the adaptation module updating request, the server sends an adaptation plug-in package or a downloading address of the adaptation plug-in package to the client according to the adaptation type information.
Step S203, receiving an adaptation plug-in package or a download address of the adaptation plug-in package sent by the server according to the update request and the adaptation type information.
Step S204, receiving or downloading the adapter plug-in package;
step S205, checking the adaptation plug-in package according to the adaptation type information.
And S206, if the verification is passed, installing the adapter plug-in package.
After the multi-card adapter client receives or downloads the adapter plug-in package and before the adapter plug-in package is installed, the method also comprises the step of verifying the adapter plug-in package, and the method is used for checking whether the adapter plug-in package is matched with the adaptation type information of the computer or not so as to ensure the correctness of the obtained adapter plug-in package and ensure that an adapter module of the computer can be correctly updated or installed. The multi-card adapting client checking the adapting plug-in package according to the adapting type information may include the following steps:
(1) judging the adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
(2) and judging whether the adaptation type information is matched with the adaptation type of the adaptation plug-in package, and if so, checking to pass.
The multi-card adapting client analyzes the configuration file of the adapting plug-in package and judges the adapting type of the adapting plug-in package according to the configuration file information, for example, the adapting type of the adapting plug-in package is adapted according to the model, and the adapted model is the charm family MX; and then judging whether the adaptation type of the adaptation plug-in package is matched with the adaptation type information of the computer, if so, checking to pass, installing the adaptation plug-in package, updating the adaptation module, if not, checking not to pass, not installing the adaptation plug-in package, for example, the model of the computer is charm MX3, and the model of the adaptation plug-in package is charm MX, failing to match, checking not to pass, and abandoning the installation of the adaptation plug-in package. When the verification fails, verification failure information can be simultaneously prompted to the user.
Wherein, in order to ensure the security of the adaptation plug-in package and prevent the adaptation plug-in package from being tampered, a signature can be added into the adaptation plug-in package, and after the multi-card adaptation client receives the adaptation plug-in package, the signature of the adaptation plug-in package is verified before the adaptation plug-in package is verified according to the adaptation type information, including: acquiring a signature of the adaptation plug-in package; and comparing the signature with a signature which is added in advance in a configuration file of the multi-card adaptive client; if the two signatures are equal, the signature in the adaptation plug-in package is a legal signature, and the signature passes the verification. After the signature verification is passed, the multi-card adapting client side verifies the adapting plug-in package according to the adapting type information, judges whether the adapting type information is matched with the adapting type of the adapting plug-in package, if the signature verification is not passed, abandons the adapting plug-in package received this time, and downloads the adapting plug-in package again.
Fig. 3 is a flowchart illustrating another method for dynamically updating an android system adaptation module according to an exemplary embodiment of the present application, where as shown in fig. 3, the method includes:
step S301, the multi-card adapting client sends client identification information and adapting type information of the current attributive mobile phone to the server.
The client identification information can be a unique code set for the multi-card adaptive client after installation, and the unique code can distinguish the multi-card adaptive clients installed in different mobile phones. The client identification information can also be a mobile phone identification code, and the multi-card adaptive clients installed in different mobile phones are distinguished through the mobile phone identification code to which the multi-card adaptive client belongs.
Step S302, the server records the client identification information and the corresponding adaptation type information of the current home mobile phone.
After receiving the client identification information and the adaptation type information of the current attribution mobile phone, the server records the client identification information and the adaptation type information of the current attribution mobile phone, wherein the client identification information corresponds to the adaptation type information.
Step S303, when the adaptation plug-in package matched with the adaptation type information is updated, the server sends the adaptation plug-in package or the download address of the adaptation plug-in package to the corresponding multi-card adaptation client according to the client identification information.
The server can periodically or periodically scan the updating condition of the adaptation plug-in package in the database, when the adaptation plug-in package in the database is updated, the pre-recorded adaptation type information matched with the updated adaptation plug-in package is inquired, and when the pre-recorded adaptation type information matched with the updated adaptation plug-in package is present, the adaptation plug-in package is sent to the corresponding multi-card adaptation client according to the client identification information corresponding to the adaptation type information, or the download address of the adaptation plug-in package is generated, and the download address is sent to the corresponding multi-card adaptation client. The server may also scan the recorded adaptation type information at regular time or periodically, query an adaptation plug-in package matched with the adaptation type information in the database, and for each adaptation type information, if the adaptation plug-in package matched with the adaptation type information exists and the adaptation plug-in package is updated, for example, the version of the adaptation plug-in package compared with the historical record is the latest version, find the client identification information corresponding to the adaptation type information according to the adaptation type information matched with the updated adaptation plug-in package, send the updated adaptation plug-in package to the multi-card adaptation client corresponding to the client identification information, or generate a download address of the adaptation plug-in package according to the updated adaptation plug-in package, and send the download address to the multi-card adaptation client corresponding to the client identification information.
Step S304, the multi-card adapting client receives the adapting plug-in package or the download address of the adapting plug-in package sent by the server according to the updating request and the adapting type information.
Step S305, the multi-card adapting client receives or downloads the adapting plug-in package.
Step S306, checking the adaptation plug-in package according to the adaptation type information.
Step S307, if the verification is passed, the multi-card adapting client side installs the adapting plug-in package.
In step S304 to step S307, refer to step S203 to step S206. The dashed lines in fig. 3 represent the sending and receiving relationship between the multi-card adapter client and the server.
Through the above description of the method embodiments, those skilled in the art can clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solutions of the present application, which essentially or partially contribute to the prior art, may be embodied in the form of software products and stored in a storage medium, and include instructions for causing an intelligent device to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media that can store data and program codes, such as Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
Fig. 4 is a block diagram illustrating a multi-card-adapting client according to an exemplary embodiment of the present application. As shown in fig. 4, the multi-card-adapting client includes:
the first sending module U401 is used for sending an adaptation module updating request including adaptation type information of the current home mobile phone to the server;
an adaptation plug-in package obtaining module U402 connected with U401 and used for receiving the adaptation plug-in package sent by the server according to the adaptation type information or downloading the adaptation plug-in package according to the download address of the adaptation plug-in package sent by the server;
and the installation module U403 is connected with the U402 and is used for installing the adapter plug-in package.
When the server sends an adaptation plug-in package, the adaptation plug-in package obtaining module U402 is configured to receive the adaptation plug-in package, and when the server sends a download address of the adaptation plug-in package, the adaptation plug-in package obtaining module U402 may include:
the download address receiving module is used for receiving the download address of the adaptive plug-in package sent by the server;
and the downloading module is used for downloading the adaptive plug-in package according to the downloading address.
Wherein, the multi-card adapting client may further include:
and the second sending module is used for sending the client identification information and the current attribution mobile phone adaptation type information to the server.
Fig. 5 is a block diagram of a multi-card-adapting client according to another exemplary embodiment of the present application. As shown in fig. 5, the multi-card-adapting client includes:
and the update information acquisition module U501 is configured to acquire the latest adapting plug-in package information of the server at regular time.
And the first judgment module U502 is connected to U501, and is configured to judge whether there is an update of the adaptation plug-in package according to the latest adaptation plug-in package information.
And the first sending module U503 is connected to the U502, and is configured to send an adaptation module update request including the adaptation type information of the current home mobile phone to the server.
And the adaptation plug-in package acquisition module U504 is connected with the U503 and used for receiving the adaptation plug-in package sent by the server according to the adaptation type information or downloading the adaptation plug-in package according to the download address of the adaptation plug-in package sent by the server.
And the checking module U505 is connected with the U504 and used for checking the adaptation plug-in package according to the adaptation type information.
Wherein, the check module U505 includes:
the second judging module U5051 is used for judging the adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
a third judging module U5052, connected to U5051, is configured to judge whether the adaptation type information matches the adaptation type of the adaptation plug-in package, and if so, the check is passed, and if not, the check is not passed.
And the installation module U506 is connected with the U505 and is used for installing the adapter plug-in package when the verification is passed.
Fig. 6 is a block diagram of a multi-card-adapting client according to yet another exemplary embodiment of the present application. As shown in fig. 6, the multi-card-adapting client includes:
the system detection module U601 is used for detecting whether the system version of the current attributive mobile phone changes;
and the first sending module U602, connected to U601, is configured to send an adaptation module update request including adaptation type information of the current home mobile phone to the server when detecting that the system version of the current home mobile phone changes.
An adaptation plug-in package obtaining module U603 connected to U602, configured to receive an adaptation plug-in package sent by the server according to the adaptation type information, or download the adaptation plug-in package according to a download address of the adaptation plug-in package sent by the server;
and the checking module U604 is connected with the U603 and is used for checking the adaptation plug-in package according to the adaptation type information.
Wherein, the check module U604 includes:
a second judging module U6041, configured to judge an adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
a third determining module U6042, configured to determine whether the adaptation type information matches the adaptation type of the adaptation plug-in package, and if the adaptation type information matches the adaptation type of the adaptation plug-in package, the verification is passed, and if the adaptation type information does not match the adaptation type of the adaptation plug-in package, the verification is not passed.
And the installation module U605 is connected with the U604 and used for installing the adapter plug-in package when the verification is passed.
Fig. 7 is a block diagram of a server according to an exemplary embodiment of the present application. As shown in fig. 7, the server includes:
the first receiving module U701 is used for receiving an adaptation module updating request which is sent by a multi-card adaptation client and comprises current attribution mobile phone adaptation type information;
and the adaptive plug-in package feedback module U702 is connected with the U701 and is used for sending the adaptive plug-in package or the download address of the adaptive plug-in package to the client according to the adaptation type information.
Wherein, the adaptation plug-in package feedback module may include:
the selection submodule is used for selecting a corresponding adaptation plug-in package according to the adaptation type information;
and the sending submodule is used for sending the adaptation plug-in package, or generating a download address according to the adaptation plug-in package, and sending the download address to a client.
Fig. 8 is a block diagram of another server according to an exemplary embodiment of the present application. As shown in fig. 8, the server includes:
the second receiving module U801 is used for receiving client identification information and current attribution mobile phone adaptation type information sent by the multi-card adaptation client;
the recording module U802 is connected with the U801 and is used for recording the client identification information and the corresponding adaptation type information;
an update determining module U803, connected to U802, for determining whether an adaptation plug-in package matched with the adaptation type information is updated;
and an adaptation plug-in package feedback module U804 connected to U803, configured to send the adaptation plug-in package or a download address of the adaptation plug-in package to a corresponding client according to the client identification information when the adaptation plug-in package matching the adaptation type information in the server is updated.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, or device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, apparatus, or device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, apparatus or device that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A dynamic updating method for an android system adaptation module is characterized by comprising the following steps:
the multi-card adapting client sends a plug-in package obtaining request to the server, wherein the plug-in package obtaining request is used for obtaining all latest adapting plug-in package information stored in the server;
when the multi-card adaptation client judges that the adaptation plug-in package matched with the adaptation type information of the current home mobile phone is updated according to all the latest adaptation plug-in package information, the multi-card adaptation client sends an adaptation module updating request comprising the adaptation type information of the current home mobile phone to the server; the server is used for inquiring corresponding adaptation plug-in packages according to different adaptation type information, wherein the adaptation type information comprises a model identification code and CPU model information of the current attributive mobile phone; the adaptation plug-in package inquired according to the different adaptation type information is the latest version of the adaptation plug-in package matched according to the model identification code of the current attributive mobile phone and the CPU model information;
receiving the adaptation plug-in package of the latest version or the download address of the adaptation plug-in package of the latest version sent by the server according to the adaptation type information;
after receiving or downloading the adaptation plug-in package of the latest version, updating the adaptation module needing to be updated or installing the adaptation plug-in package of the latest version according to the adaptation plug-in package of the latest version; wherein the content of the first and second substances,
before updating the adaptation module needing to be updated according to the adaptation plugin package of the latest version or installing the adaptation plugin package of the latest version, the method further comprises the step of checking the adaptation plugin package of the latest version for checking whether the adaptation plugin package of the latest version is matched with the adaptation type information of the local computer: and acquiring the signature of the adaptation plug-in package of the latest version and the signature in the configuration file of the multi-card adaptation client, acquiring the adaptation machine type of the adaptation plug-in package of the latest version after the two signatures are verified to be consistent, matching the adaptation machine type of the adaptation plug-in package of the latest version with the machine type identification code of the adapter, and executing the step of updating the adaptation module to be updated or installing the adaptation plug-in package of the latest version according to the adaptation plug-in package of the latest version when the two signatures are matched to be consistent.
2. The android system adaptation module dynamic update method of claim 1, in which:
and the multi-card adapting client acquires the latest adapting plug-in package information of the server at regular time, and sends an adapting module updating request to the server when judging that the adapting plug-in package is updated according to the latest adapting plug-in package information.
3. The android system adaptation module dynamic update method of claim 1, in which:
when the multi-card adaptation client detects that the system version of the current attribution mobile phone changes, an adaptation module updating request comprising the adaptation type information of the current attribution mobile phone is sent to the server.
4. The android system adaptation module dynamic updating method of any one of claims 1 to 3, wherein after receiving or downloading the adaptation plug-in package, before installing the adaptation plug-in package, further comprising:
the client checks the adaptation plug-in package according to the adaptation type information, wherein the check comprises the following steps:
judging the adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
and judging whether the adaptation type information is matched with the adaptation type of the adaptation plug-in package, and if so, checking to pass.
5. A dynamic updating method for an android system adaptation module is characterized by comprising the following steps:
the multi-card adapting client sends a plug-in package obtaining request to the server, wherein the plug-in package obtaining request is used for obtaining all latest adapting plug-in package information stored in the server;
when the multi-card adaptation client judges that the adaptation plug-in package matched with the adaptation type information of the current attribution mobile phone is updated according to all the latest adaptation plug-in package information, the multi-card adaptation client sends client identification information and the adaptation type information of the current attribution mobile phone to the server; the server is used for inquiring corresponding adaptation plug-in packages according to different adaptation type information, wherein the adaptation type information comprises a model identification code and CPU model information of the current attributive mobile phone; the adaptation plug-in package inquired according to the different adaptation type information is the latest version of the adaptation plug-in package matched according to the model identification code of the current attributive mobile phone and the CPU model information;
the server records the client identification information and the corresponding adaptation type information of the current home mobile phone;
when the adaptation plug-in package matched with the adaptation type information is updated, the server sends the latest version of the adaptation plug-in package or a download address of the latest version of the adaptation plug-in package to a corresponding multi-card adaptation client according to the client identification information;
after receiving or downloading the adapter plug-in package of the latest version, the multi-card adapter client updates the adapter module to be updated or installs the adapter plug-in package of the latest version according to the adapter plug-in package of the latest version; wherein the content of the first and second substances,
before updating the adaptation module needing to be updated according to the adaptation plugin package of the latest version or installing the adaptation plugin package of the latest version, the method further comprises the step of checking the adaptation plugin package of the latest version for checking whether the adaptation plugin package of the latest version is matched with the adaptation type information of the local computer: and acquiring the signature of the adaptation plug-in package of the latest version and the signature in the configuration file of the multi-card adaptation client, acquiring the adaptation machine type of the adaptation plug-in package of the latest version after the two signatures are verified to be consistent, matching the adaptation machine type of the adaptation plug-in package of the latest version with the machine type identification code of the adapter, and executing the step of updating the adaptation module to be updated or installing the adaptation plug-in package of the latest version according to the adaptation plug-in package of the latest version when the two signatures are matched to be consistent.
6. A multi-card-adapting client, comprising:
the first sending module is used for sending a plug-in package obtaining request to the server, wherein the plug-in package obtaining request is used for obtaining all latest adapting plug-in package information stored in the server;
when judging that the adaptation plug-in package matched with the adaptation type information of the current home mobile phone is updated according to all the latest adaptation plug-in package information, the multi-card adaptation client sends an adaptation module updating request comprising the adaptation type information of the current home mobile phone to the server; the server is used for inquiring corresponding adaptation plug-in packages according to different adaptation type information, wherein the adaptation type information comprises a model identification code and CPU model information of the current attributive mobile phone; the adaptation plug-in package inquired according to the different adaptation type information is the latest version of the adaptation plug-in package matched according to the model identification code of the current attributive mobile phone and the CPU model information;
the adaptation plug-in package acquisition module is used for receiving the adaptation plug-in package of the latest version sent by the server according to the adaptation type information or downloading the adaptation plug-in package of the latest version according to the download address of the adaptation plug-in package of the latest version sent by the server;
the installation module is used for updating the adaptation module needing to be updated according to the adaptation plug-in package of the latest version or installing the adaptation plug-in package of the latest version; wherein the content of the first and second substances,
further comprising: a checking module, configured to update the adaptation module to be updated according to the adaptation plugin package of the latest version or check the adaptation plugin package, and check whether the adaptation module to be updated is updated according to the adaptation plugin package of the latest version or the adaptation plugin package is matched with adaptation type information of the local computer, where the checking module includes: and acquiring the signature of the adaptation plug-in package of the latest version and the signature in the configuration file of the multi-card adaptation client, acquiring the adaptation machine type of the adaptation plug-in package of the latest version after the two signatures are verified to be consistent, matching the adaptation machine type of the adaptation plug-in package of the latest version with the machine type identification code of the adapter, and executing the step of updating the adaptation module to be updated or installing the adaptation plug-in package of the latest version according to the adaptation plug-in package of the latest version when the two signatures are matched to be consistent.
7. The multi-card-adapting client of claim 6, further comprising:
the update information acquisition module is used for acquiring the latest adapting plug-in package information of the server at regular time;
a first judging module for judging whether there is updating of the adapting plug-in package according to the latest adapting plug-in package information,
the first sending module is used for sending an adaptation module updating request to the server when the adaptation plug-in package is updated.
8. The multi-card-adapting client of claim 6, further comprising:
a system detection module for detecting whether the system version of the current attributive mobile phone changes,
the first sending module is used for sending an adaptation module updating request comprising adaptation type information of the current attribution mobile phone to the server when detecting that the system version of the current attribution mobile phone changes.
9. The multi-card-adapting client of claim 6, further comprising:
and the second sending module is used for sending the client identification information and the current attribution mobile phone adaptation type information to the server.
10. The multi-card-adapting client according to any one of claims 6 to 9, further comprising:
a checking module, configured to check the adaptation plug-in package according to the adaptation type information, where the checking module includes:
the second judging module is used for judging the adaptation type of the adaptation plug-in package according to the configuration file of the adaptation plug-in package;
and the third judging module is used for judging whether the adaptation type information is matched with the adaptation type of the adaptation plug-in package, and if the adaptation type information is matched with the adaptation type of the adaptation plug-in package, the verification is passed.
11. A server, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a plug-in package obtaining request sent by a multi-card adapting client, and the plug-in package obtaining request is used for obtaining all latest adapting plug-in package information stored in a server;
when judging that the adaptation plug-in package matched with the adaptation type information of the current home mobile phone is updated according to all the latest adaptation plug-in package information, the multi-card adaptation client receives an adaptation module updating request which is sent by the multi-card adaptation client and comprises the adaptation type information of the current home mobile phone; the server is used for inquiring corresponding adaptation plug-in packages according to different adaptation type information, wherein the adaptation type information comprises a model identification code and CPU model information of the current attributive mobile phone; the adaptation plug-in package inquired according to the different adaptation type information is the latest version of the adaptation plug-in package matched according to the model identification code of the current attributive mobile phone and the CPU model information;
the adaptation plug-in package feedback module is used for sending the latest version of the adaptation plug-in package or the download address of the latest version of the adaptation plug-in package to the client according to the adaptation type information, so that after the multi-card adaptation client receives or downloads the latest version of the adaptation plug-in package, the latest version of the adaptation plug-in package is checked, whether the latest version of the adaptation plug-in package is matched with the adaptation type information of the multi-card adaptation client is checked, and the adaptation module needing to be updated is updated or the latest version of the adaptation plug-in package is installed according to the latest version of the adaptation plug-in package; the checking process comprises the steps of obtaining the signature of the adaptation plug-in package of the latest version and the signature in the configuration file of the multi-card adaptation client, obtaining the adaptation machine type of the adaptation plug-in package of the latest version after the two signatures are checked to be consistent, matching the adaptation machine type of the adaptation plug-in package of the latest version with the machine type identification code of the adaptation plug-in package of the latest version, and updating the adaptation module needing to be updated or installing the adaptation plug-in package of the latest version according to the adaptation plug-in package of the latest version when the two signatures are matched to be consistent.
12. The server of claim 11, wherein the adaptation plug-in package feedback module comprises:
the selection submodule is used for selecting a corresponding adaptation plug-in package according to the adaptation type information;
and the sending submodule is used for sending the adaptation plug-in package, or generating a download address according to the adaptation plug-in package, and sending the download address to a client.
13. A server, comprising:
the second receiving module is used for receiving a plug-in package obtaining request sent by the multi-card adapting client, wherein the plug-in package obtaining request is used for obtaining all latest adapting plug-in package information stored in the server;
when judging that the adaptation plug-in package matched with the current attribution mobile phone adaptation type information is updated according to all the latest adaptation plug-in package information, the multi-card adaptation client receives client identification information and the current attribution mobile phone adaptation type information sent by the multi-card adaptation client; the server is used for inquiring corresponding adaptation plug-in packages according to different adaptation type information, wherein the adaptation type information comprises a model identification code and CPU model information of the current attributive mobile phone; the adaptation plug-in package inquired according to the different adaptation type information is the latest version of the adaptation plug-in package matched according to the model identification code of the current attributive mobile phone and the CPU model information;
the recording module is used for recording the client identification information and the corresponding adaptation type information;
the updating judgment module is used for judging whether the adaptive plug-in package matched with the adaptive type information is updated or not;
an adaptation plug-in package feedback module, configured to send, when an adaptation plug-in package matched with the adaptation type information in a server is updated, a download address of the latest version of the adaptation plug-in package or the latest version of the adaptation plug-in package to a corresponding client according to the client identification information, so that after a multi-card adaptation client receives or downloads the latest version of the adaptation plug-in package, the latest version of the adaptation plug-in package is checked, so as to check whether the latest version of the adaptation plug-in package matches with the adaptation type information of the local computer, and update an adaptation module to be updated according to the latest version of the adaptation plug-in package or install the latest version of the adaptation plug-in package; the checking process comprises the steps of obtaining the signature of the adaptation plug-in package of the latest version and the signature in the configuration file of the multi-card adaptation client, obtaining the adaptation machine type of the adaptation plug-in package of the latest version after the two signatures are checked to be consistent, matching the adaptation machine type of the adaptation plug-in package of the latest version with the machine type identification code of the adaptation plug-in package of the latest version, and updating the adaptation module needing to be updated or installing the adaptation plug-in package of the latest version according to the adaptation plug-in package of the latest version when the two signatures are matched to be consistent.
CN201410765818.2A 2014-12-11 2014-12-11 Android system adaptation module dynamic updating method, client and server Active CN105744511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410765818.2A CN105744511B (en) 2014-12-11 2014-12-11 Android system adaptation module dynamic updating method, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410765818.2A CN105744511B (en) 2014-12-11 2014-12-11 Android system adaptation module dynamic updating method, client and server

Publications (2)

Publication Number Publication Date
CN105744511A CN105744511A (en) 2016-07-06
CN105744511B true CN105744511B (en) 2021-05-04

Family

ID=56241319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410765818.2A Active CN105744511B (en) 2014-12-11 2014-12-11 Android system adaptation module dynamic updating method, client and server

Country Status (1)

Country Link
CN (1) CN105744511B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484470A (en) * 2016-09-29 2017-03-08 努比亚技术有限公司 The processing method of application program installation kit, device and server
CN106775734B (en) * 2016-12-23 2021-02-23 北京数字天域科技有限责任公司 Andriod system engineering method and device
CN109308189A (en) * 2018-09-27 2019-02-05 珠海市君天电子科技有限公司 A kind of configuration file update method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081653A (en) * 2010-12-31 2011-06-01 杭州华三通信技术有限公司 Equipment service management method and device based on drive
CN102348004A (en) * 2010-08-04 2012-02-08 中国移动通信有限公司 Configuration method of service assembly, system and equipment thereof
CN103595867A (en) * 2013-11-14 2014-02-19 北京奇虎科技有限公司 Application program implementation method and device based on multi-card recognition
CN103605551A (en) * 2013-11-28 2014-02-26 金蝶软件(中国)有限公司 Plugin updating method, system and relevant equipment based on IOS program
CN104111827A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Application matching method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523507A (en) * 2011-12-29 2012-06-27 深圳市酷开网络科技有限公司 Method and device for applying external equipment based on intelligent television system
CN102830992B (en) * 2012-07-31 2015-11-25 北京奇虎科技有限公司 Plug-in loading method and system
CN102789389B (en) * 2012-08-01 2015-10-14 深圳市茁壮网络股份有限公司 Method, plug-in unit detecting device that a kind of plug-in version detects and upgrades

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348004A (en) * 2010-08-04 2012-02-08 中国移动通信有限公司 Configuration method of service assembly, system and equipment thereof
CN102081653A (en) * 2010-12-31 2011-06-01 杭州华三通信技术有限公司 Equipment service management method and device based on drive
CN104111827A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Application matching method and device
CN103595867A (en) * 2013-11-14 2014-02-19 北京奇虎科技有限公司 Application program implementation method and device based on multi-card recognition
CN103605551A (en) * 2013-11-28 2014-02-26 金蝶软件(中国)有限公司 Plugin updating method, system and relevant equipment based on IOS program

Also Published As

Publication number Publication date
CN105744511A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US10979292B2 (en) Adaptive deployment of applications for mobile devices
CN108111331B (en) Method, device, storage medium, processor and system for acquiring update data packet
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN104866336B (en) Silent in-vehicle software update
CN107015870B (en) Method and device for realizing communication between web page and local application and electronic equipment
CN104079673A (en) Method, device and system for preventing DNS hijack during application download
CN102982258A (en) System for conducting original-edition check to mobile application program
CN106886436B (en) Android system upgrading method and device
JP2013017204A (en) Apparatus and methods for network identification of open market wireless devices
CN102612023A (en) Mobile terminal and application updating method and server thereof
CN107797818A (en) Application program updating method and device
CN105744511B (en) Android system adaptation module dynamic updating method, client and server
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
WO2018103217A1 (en) Method for upgrading application, and server and user equipment
US11272336B2 (en) System, method, and computer program for transferring subscriber identity module (SIM) information for SIM card or eSIM activation
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
WO2016041499A1 (en) Application downloading method and mobile terminal
CN106708494B (en) JAR upgrading method and device
CN110597662A (en) Backup data automatic verification method and device, user equipment and storage medium
CN110493644B (en) Television application upgrading method, television terminal and server
CN107479923A (en) Application program updating method, apparatus and display terminal
CN109032646B (en) Method, device and system for updating application
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN112105001B (en) Method, system, device and storage medium for automatically installing operator APP
CN103186727A (en) Communication terminal software management system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant