CN106775827B - Application program updating method and device and computer equipment - Google Patents

Application program updating method and device and computer equipment Download PDF

Info

Publication number
CN106775827B
CN106775827B CN201611051646.8A CN201611051646A CN106775827B CN 106775827 B CN106775827 B CN 106775827B CN 201611051646 A CN201611051646 A CN 201611051646A CN 106775827 B CN106775827 B CN 106775827B
Authority
CN
China
Prior art keywords
application program
updating
version
installation package
update
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
CN201611051646.8A
Other languages
Chinese (zh)
Other versions
CN106775827A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611051646.8A priority Critical patent/CN106775827B/en
Publication of CN106775827A publication Critical patent/CN106775827A/en
Application granted granted Critical
Publication of CN106775827B publication Critical patent/CN106775827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention provides an application program updating method and device and computer equipment. The application program updating method comprises the following steps: detecting whether an application program in the terminal has an updated version; if the application program has the updated version, acquiring an updated version installation package of the application program; acquiring a first format file in the update version installation package, and generating a corresponding second format file according to the first format file; and acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the second format file. The application program updating method can download the updating version installation package in advance, meanwhile, the first format file is generated into the corresponding second format file, when a user needs to update the application program, the updating version installation package and the second format file are directly used for updating the application program, the updating speed of the application program is improved, a large amount of time of the user is saved, and the user experience degree is improved.

Description

Application program updating method and device and computer equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an application program updating method and apparatus, and a computer device.
Background
With the rapid development of application program technology, the application program supplier updates the upgrade of the application program more and more frequently. In the application program updating method, the mobile terminal prompts a user which application programs can be updated. And if the user selects the application program needing to be updated, the mobile terminal updates the application program according to the new installation package. In the process of installing a new installation package, the mobile terminal needs to convert a specific format file in the new installation package into a preset format file that can be executed by the android system, and the conversion process needs to consume a large amount of time, even occupies 80% of the whole updating time, and seriously affects the updating speed of the whole application program.
Disclosure of Invention
The invention provides an application program updating method and device and computer equipment; the updating efficiency of the application program can be improved.
The invention provides an application program updating method, which comprises the following steps:
detecting whether an application program in the terminal has an updated version;
if the application program has the updated version, acquiring an updated version installation package of the application program;
acquiring a first format file in the update version installation package, and generating a corresponding second format file according to the first format file; and
and acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the second format file.
The present invention also provides an application program updating apparatus, which includes:
the detection module is used for detecting whether the application program in the terminal has an updated version;
the acquisition module is used for acquiring an update version installation package of the application program if the update version exists in the application program;
the generating module is used for acquiring a first format file in the update version installation package and generating a corresponding second format file according to the first format file; and
and the updating module is used for acquiring the updating operation of the terminal user on the application program and updating the application program according to the updating operation, the updating version installation package and the second format file.
The invention further provides a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements any application program updating method in the invention when executing the computer program.
The invention provides an application program updating method and device and computer equipment. The application program updating method detects whether the application program in the terminal has an updating version or not; if the application program has the updated version, acquiring an updated version installation package of the application program; acquiring a first format file in the update version installation package, and generating a corresponding second format file according to the first format file; and acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the second format file. The application program updating method can download the updating version installation package in advance, meanwhile, the first format file is generated into the corresponding second format file, when a user needs to update the application program, the updating version installation package and the second format file are directly used for updating the application program, and the updating speed of the application program is improved.
Drawings
Fig. 1 is a flowchart of an application program updating method according to a preferred embodiment of the present invention.
Fig. 2 is a schematic structural diagram of an application updating apparatus according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a detection module of the application update apparatus in fig. 2.
Fig. 4 is a schematic structural diagram of an acquisition module of the application update apparatus in fig. 2.
Fig. 5 is a schematic structural diagram of a mobile terminal according to a preferred embodiment of the present invention.
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.
The terms "first," "second," and the like in the present disclosure may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first control may be referred to as a second control, and similarly, a second control may be referred to as a first control, without departing from the scope of the present invention. The first control and the second control are both controls, but they are not the same control. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions.
Referring to fig. 1, fig. 1 is a flowchart illustrating an application program updating method according to a preferred embodiment of the invention. The application update method may be applied to electronic devices such as a handheld or laptop device, a mobile phone, a Personal Digital Assistant (PDA), and the like, and is not particularly limited herein.
The method for updating an application program provided by the preferred embodiment includes:
step S101: detecting whether an application program in the terminal has an updated version;
after the application program is installed in the terminal, the terminal can periodically detect whether the application program has an updated version. In a preferred embodiment, the step of detecting whether the application program in the terminal has an updated version includes: sending the version number of the application program to an application program server at intervals of preset time; acquiring a configuration file fed back by an application program server; and judging whether the application program has an updated version according to the configuration file.
Specifically, the terminal sends the version number of the application program to the application program server at intervals of preset time. And after receiving the version number of the application program, the application program server judges whether the application program has an updated version according to the version number. And if the application program server judges that the application program has an updated version, the application program server generates a configuration file with a download link and sends the configuration file to the terminal. After receiving the configuration file, the terminal judges whether the application program has an updated version by judging whether a download link exists in the configuration file, namely: if the configuration file has a download link, the terminal judges that the application program has an updated version; if the configuration file does not have the download link, the terminal judges that the application program does not have the updated version.
It should be noted that the specific way that the terminal determines whether the application program has the updated version according to the configuration file may also be other ways, for example, the configuration file further includes an update instruction or an un-update instruction, and after the terminal determines that the configuration file has the update instruction, it is determined that the application program has the updated version; when the terminal determines that the non-updated instruction exists in the configuration file, it is determined that the application program does not have an updated version, and no specific limitation is made herein.
In addition, the mode that the terminal detects whether the application program has the updated version is an active mode. Of course, in other preferred embodiments, the terminal may detect whether there is an updated version of the application program in a passive manner. For example, when the application program has an updated version, the application server actively sends a prompt message that the application program has the updated version to the terminal, and when the terminal receives the prompt message, the application server determines that the application program has the updated version, which is not specifically limited herein.
Step S102: if the application program has the updated version, acquiring an updated version installation package of the application program;
and when the terminal judges that the application program has the updated version, acquiring an updated version installation package of the application program, and storing the updated version installation package in the terminal.
In a preferred embodiment, when the download link in the configuration file is a download link of an update version installation package of the application program, that is, a download link of the entire package of the application program, the terminal may obtain the update version installation package through the download link in the configuration file, and store the update version installation package in the terminal.
In another preferred embodiment, when the download link in the configuration file is a download link of a differential package of the application program, the step of the terminal acquiring an installation package of an updated version of the application program includes: acquiring a differential package of an application program through a download link carried by a configuration file; acquiring an old version installation package of an application program; and generating an updated version installation package according to the difference package and the old version installation package.
Specifically, the terminal obtains a differential package of the application program through a download link carried by the configuration file, wherein the differential package is obtained by differentiating the updated version installation package and the current version installation package of the application program in the terminal. And after the terminal finishes downloading the differential package, acquiring the old version installation package of the application program from the terminal. And the terminal integrates the differential package and the old version installation package to form an updated version installation package.
Therefore, when the user needs to update the application program, the new version installation package can be directly used for updating the application program, the time for the user to download the new version installation package is saved, the time consumed by updating the application program is shortened, and the updating speed of the application program is increased.
Step S103: acquiring a first format file in the update version installation package, and generating a corresponding second format file according to the first format file;
in the preferred embodiment, the first format file is a Dex format file, and the second format file is an Oat format file. The Dex format file is classes.dex file in the update version installation package; the Oat format file contains the content of the Dex format file and the native machine instructions compiled from the Dex format file. Of course, in other preferred embodiments, the first format file and the second format file may also be other files, and are not limited herein.
After the new version installation package is obtained, the Dex format file in the updated version installation package is obtained, the Dex2oat command is called to generate the corresponding Oat format file from the Dex format file, and the Oat format file is stored in the terminal. Therefore, when the user needs to update the application program, the terminal can directly use the Oat format file generated in advance, the time consumed by the generation of Oat format files by the Dex format files is reduced, and the updating speed of the application program is further improved.
Step S104: and acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the second format file.
When the terminal stores the second format file, that is, the Oat format file, it will send a prompt message to the user to prompt the user that the current application program has an updated version, and ask the user whether the application program needs to be updated. If the user selects to update the application program, the terminal acquires the update operation of the application program selected by the user, and acquires the local saving path of the update version installation package and the local saving path of the Oat format file according to the update operation. And the terminal system loads corresponding update version installation packages and Oat format files according to the two local saving paths and updates the application program according to the update version installation packages and Oat format files.
In a preferred embodiment, updating the application program according to the update operation, the update version installation package, and the second format file specifically includes: uninstalling the old version of the application program according to the updating operation; executing the operation of installing the application program of the new version according to the updated version installation package; judging whether a second format file exists in the terminal; and if the second format file exists in the terminal, copying the second format file to the installation directory of the new version of the application program, and finishing the updating operation of the old version of the application program.
Specifically, when the terminal detects that the user selects the update operation for updating the application program, the old version of the application program is uninstalled according to the update operation, and the local saving path of the update version installation package and the local saving path of the Oat format file are acquired. And the terminal system acquires the updated version installation package according to the local storage path of the updated version installation package and executes the operation of installing the application program of the updated version. When the terminal system needs to use the Oat format file in the process of installing the application program with the updated version, the terminal judges whether the Oat format file exists in the terminal. Specifically, it is determined whether available Oat format files exist in the local save path of the Oat format file, and if Oat format files exist, it is determined that Oat format files exist in the terminal. The terminal copies the Oat format file to the installation directory of the new version of the application program, thereby completing the updating operation of the old version of the application program.
In the application program updating method in the preferred embodiment, whether an updated version exists in the application program in the terminal is detected; if the application program has the updated version, acquiring an updated version installation package of the application program; acquiring a first format file in the update version installation package, and generating a corresponding second format file according to the first format file; and acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the second format file. The application program updating method can download the updating version installation package in advance, meanwhile, the first format file is generated into the corresponding second format file, when a user needs to update the application program, the updating version installation package and the second format file are directly used for updating the application program, the updating speed of the application program is greatly improved, a large amount of time of the user is saved, and the user experience degree is improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an application program updating apparatus according to a preferred embodiment of the present invention. The application updating apparatus 200 can be applied to electronic devices such as handheld or laptop devices, mobile phones, Personal Digital Assistants (PDAs), and the like, and is not limited in particular.
The application updating apparatus 200 in the preferred embodiment includes: the device comprises a detection module 201, an acquisition module 202, a generation module 203 and an update module 204. The detection module 201 is configured to detect whether an application in the terminal has an updated version; the obtaining module 202 is configured to obtain an update version installation package of the application program if the application program has the update version; the generating module 203 is configured to obtain a first format file in the update version installation package, and generate a corresponding second format file according to the first format file; the updating module 204 is configured to obtain an updating operation of the application program by the terminal user, and update the application program according to the updating operation, the updated version installation package, and the second format file.
After the application is installed in the terminal, the detection module 201 in the application updating apparatus 200 periodically detects whether an updated version of the application exists.
In a preferred embodiment, please refer to fig. 3, and fig. 3 is a schematic structural diagram of a detection module of the application program updating apparatus in fig. 2. The detection module 201 includes a sending submodule 2011, a first obtaining submodule 2012 and a judging submodule 2013, where the sending submodule 2011 is configured to send a version number of an application program to the application server at preset time intervals; the first obtaining sub-module 2012 is configured to obtain a configuration file fed back by the application server; the judging submodule 2013 is configured to judge whether the application program has an updated version according to the configuration file.
Specifically, the sending sub-module 2011 sends the version number of the application to the application server at intervals of a preset time. And after receiving the version number of the application program, the application program server judges whether the application program has an updated version according to the current version number. If the application server determines that the application program has an updated version, the application server generates a configuration file with a download link and sends the configuration file to the application updating device 200 of the terminal. After receiving the configuration file, the first obtaining submodule 2012 in the application updating apparatus 200 transfers the configuration file to the determining submodule 2013, and the determining submodule 2013 determines whether the application has an updated version by determining whether a download link exists in the configuration file, that is: if the configuration file has a download link, the determining submodule 2013 determines that the application program has an updated version; if there is no download link in the configuration file, the determining submodule 2013 determines that there is no updated version for the application.
It should be noted that the specific manner of determining, by the determining submodule 2013, whether the application program has the updated version according to the configuration file may also be other manners, for example, the configuration file further includes an update instruction or an un-update instruction, and when the determining submodule 2013 determines that the application program has the updated version after determining that the update instruction exists in the configuration file; when the determining submodule 2013 determines that the configuration file has an un-updated instruction, it is determined that the application program does not have an updated version, which is not limited herein.
When the detection module 201 determines that the application program has an updated version, the detection module 201 sends a first signal to the acquisition module 202, so that the acquisition module 202 acquires an updated version installation package of the application program according to the first signal, and stores the updated version installation package in the terminal.
In a preferred embodiment, when the download link in the configuration file is a download link of an update version installation package of the application program, that is, the update version installation package is a complete package, the obtaining module 202 may obtain the update version installation package through the download link in the configuration file, and store the update version installation package in the terminal.
In another preferred embodiment, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an obtaining module of the application updating apparatus in fig. 2. When the download link in the configuration file is a download link of a differential package of the application program, the obtaining module 202 includes a second obtaining submodule 2021, a third obtaining submodule 2022, and a generating submodule 2023, where the second obtaining submodule 2021 is configured to obtain the differential package of the application program through the download link carried by the configuration file; the third obtaining sub-module 2022 is configured to obtain an old version installation package of the application program; the generating submodule 2023 is configured to generate an updated version installation package according to the differential package and the old version installation package.
Specifically, the second obtaining sub-module 2021 obtains the differential package of the application program through a download link carried by the configuration file, where the differential package is obtained by differentiating the updated version installation package and the current version installation package of the application program in the terminal. After the differential packet is downloaded by the second obtaining sub-module 2021, the differential packet is transmitted to the generating sub-module 2023, and a second signal is sent to the third obtaining sub-module 2022, so that the third obtaining sub-module 2022 obtains the old version installation packet of the application program from the terminal, that is, obtains the current version installation packet of the application program. The third obtaining sub-module 2022 passes the old version installation package to the generating sub-module 2023. The generation sub-module 2023 forms an updated version installation package by integrating the differential package and the old version installation package.
Therefore, when the user needs to update the application program, the new version installation package can be directly used for updating the application program, the time for the user to download the new version installation package is saved, the time consumed by updating the application program is shortened, and the updating speed of the application program is increased.
After the obtaining module 202 obtains the new version installation package, the new version installation package is transmitted to the generating module 203. The generating module 203 acquires the first format file in the update version installation package, and generates a corresponding second format file according to the first format file.
In the preferred embodiment, the first format file is a Dex format file, and the second format file is an Oat format file. The Dex format file is classes.dex file in the update version installation package; the Oat format file contains the content of the Dex format file and the native machine instructions compiled from the Dex format file. Of course, in other preferred embodiments, the first format file and the second format file may also be other files, and are not limited herein.
Specifically, the generating module 203 acquires the Dex format file in the update version installation package, generates a corresponding Oat format file from the Dex format file by calling a Dex2oat command, and saves the Oat format file in the terminal. Therefore, when the user needs to update the application program, the terminal can directly use the Oat format file generated in advance, the time consumed by the generation of Oat format files by the Dex format files is reduced, and the updating speed of the application program is further improved.
When the generating module 203 generates the second format file, that is, the Oat format file, the generating module 203 sends a third signal to a prompting module (not shown in fig. 2), so that the prompting module sends a prompting message according to the third signal to prompt the user that the current application program has an updated version, and asks the user whether the application program needs to be updated. If the user selects to update the application program, the update module 204 obtains an update operation that the user selects to update the application program, and obtains a local saving path of the update version installation package and a local saving path of the Oat format file according to the update operation. The update module 204 loads the corresponding update version installation package and Oat format file according to the two local saving paths, and updates the application program according to the update version installation package and Oat format file.
In a preferred embodiment, the update module 204 is specifically configured to: uninstalling the old version of the application program according to the updating operation; executing the operation of installing the application program of the new version according to the updated version installation package; judging whether a second format file exists in the terminal; and if the second format file exists in the terminal, copying the second format file to the installation directory of the new version of the application program, and finishing the updating operation of the old version of the application program.
Specifically, after the update module 204 obtains the update operation of the application program selected by the user to be updated, the old version of the application program is uninstalled according to the update operation, and a local save path of the update version installation package and a local save path of the Oat-format file are obtained. The update module 204 acquires the update version installation package according to the local saving path of the update version installation package, and executes an operation of installing the application program of the update version. When the update module 204 needs to use the Oat format file during the installation of the updated version of the application program, the update module 204 will determine whether Oat format files exist in the terminal. Specifically, it is determined whether available Oat format files exist in the local save path of the Oat format file, and if Oat format files exist, it is determined that Oat format files exist in the terminal. The update module 204 will copy the Oat-formatted file into the installation directory of the new version of the application program to complete the update operation for the old version of the application program.
The application updating apparatus 200 in the preferred embodiment detects whether an updated version exists in an application in a terminal through a detection module 201; if the application program has the updated version, the obtaining module 202 obtains an updated version installation package of the application program; the generating module 203 acquires a first format file in the update version installation package, and generates a corresponding second format file according to the first format file; the updating module 204 obtains the updating operation of the terminal user on the application program, and updates the application program according to the updating operation, the updating version installation package and the second format file. The application program updating device 200 can download the update version installation package in advance, generate the corresponding second format file from the first format file, and directly update the application program by using the update version installation package and the second format file when the user needs to update the application program, thereby greatly improving the updating speed of the application program, saving a large amount of time of the user, and improving the user experience.
The invention also provides a computer device which can be but is not limited to a mobile terminal. The computer device will be described in detail below using a mobile terminal as an example. Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 300 provided in the preferred embodiment of the present invention may be an electronic device such as a tablet computer, a mobile phone, etc., and is not limited herein.
The mobile terminal 300 may include Radio Frequency (RF) circuitry 301, memory 302 including one or more computer-readable storage media, input module 303, display module 304, sensor 305, audio circuitry 306, Wireless Fidelity (WiFi) module 307, processor 308 including one or more processing cores, and power supply 309. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The rf circuit 301 may be used for receiving and transmitting information, or receiving and transmitting signals during a call, and in particular, receives downlink information of a base station and then sends the received downlink information to one or more processors 308 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the radio frequency circuit 301 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the radio frequency circuit 301 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 302 may be used to store applications and data. The memory 302 stores applications containing executable code. The application programs may constitute various functional modules. The processor 308 executes various functional applications and data processing by running the application programs stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 308 and the input module 303 access to the memory 302.
The input module 303 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, in one particular embodiment, input module 303 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 308, and can receive and execute commands sent by the processor 308. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to touch-sensitive surfaces, input module 303 may include other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a fingerprint recognition module, a trackball, a mouse, a joystick, and the like.
The display module 304 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the mobile terminal, which may be comprised of graphics, text, icons, video, and any combination thereof. The display module 304 may include a display panel. Alternatively, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 308 to determine the type of touch event, and the processor 308 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement the input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement the input and output functions.
The mobile terminal may also include at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
Audio circuitry 306 may provide an audio interface between the user and the mobile terminal through a speaker, microphone. The audio circuit 306 can convert the received audio data into an electric signal, transmit the electric signal to a loudspeaker, and convert the electric signal into a sound signal to be output by the loudspeaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 306 and converted into audio data, which is then processed by the audio data output processor 308, and then transmitted to, for example, another mobile terminal via the radio frequency circuit 301, or the audio data is output to the memory 302 for further processing. The audio circuitry 306 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal.
Wireless fidelity (WiFi) belongs to short-distance wireless transmission technology, and the mobile terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the wireless fidelity module 307, and provides wireless broadband internet access for the user. Although fig. 5 shows the wireless fidelity module 307, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 308 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing an application program stored in the memory 302 and calling data stored in the memory 302, thereby integrally monitoring the mobile terminal. Optionally, processor 308 may include one or more processing cores; in some embodiments, processor 308 may integrate an application processor that handles primarily the operating system, user interface, applications, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 308.
The mobile terminal also includes a power supply 309 (e.g., a battery) that powers the various components. In some embodiments, the power source may be logically coupled to the processor 308 through a power management system, such that the power management system may manage charging, discharging, and power consumption. The power supply 309 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
Although not shown in fig. 5, the mobile terminal may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Specifically, in this embodiment, the processor 308 in the mobile terminal loads the executable code corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 308 runs the application programs stored in the memory 302, thereby implementing various functions: detecting whether an application program in the terminal has an updated version; if the application program has the updated version, acquiring an updated version installation package of the application program; acquiring a first format file in the update version installation package, and generating a corresponding second format file according to the first format file; and acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the second format file.
In a preferred embodiment, when detecting whether the application program in the terminal has an updated version, the processor 308 specifically performs the following steps: sending the version number of the application program to an application program server at intervals of preset time; acquiring a configuration file fed back by the application program server; and judging whether the application program has an updated version according to the configuration file.
In a preferred embodiment, when the processor 308 acquires the updated version installation package of the application program, the following steps are specifically performed: and acquiring an updated version installation package of the application program through a download link carried by the configuration file.
In another preferred embodiment, when the processor 308 acquires the updated version installation package of the application program, the following steps are specifically performed: acquiring a differential package of the application program through a download link carried by the configuration file; acquiring an old version installation package of the application program; and generating the updated version installation package according to the difference package and the old version installation package.
In a preferred embodiment, when the processor 308 updates the application program according to the update operation, the update version installation package, and the second format file, the following steps are specifically performed: uninstalling the old version of the application program according to the update operation; executing the operation of installing the application program of the new version according to the updated version installation package; judging whether the second format file exists in the terminal or not; and if the second format file exists in the terminal, copying the second format file to the installation directory of the application program of the new version, and finishing the updating operation of the application program of the old version.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the application program updating method, and are not described herein again.
The application updating apparatus provided in the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, and the like, and the application updating apparatus and the application updating method in the above embodiments belong to the same concept, and any method provided in the application updating method embodiment may be run on the application updating apparatus, and a specific implementation process thereof is described in the application updating method embodiment, and is not described herein again.
It should be noted that, for the application program updating method of the present invention, it can be understood by those skilled in the art that all or part of the process of implementing the application program updating method of the embodiment of the present invention can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of the terminal, and executed by at least one processor in the terminal, and during the execution process, the process of implementing the embodiment of the application program updating method can be included as the process of implementing the embodiment of the application program updating method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
Each functional module in the embodiments of the present invention may be integrated into one processing module, or each module 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 integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Each apparatus or system described above may perform the method in the corresponding method embodiment.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (8)

1. An application program update method, comprising:
sending the version number of the application program to an application program server at intervals of preset time; acquiring a configuration file fed back by the application program server; judging whether the application program has an updated version according to whether a download link exists in the configuration file; or sending the version number of the application program to the application program server at intervals of preset time; acquiring a configuration file fed back by the application program server; judging whether the application program has an updated version according to whether an update instruction exists in the configuration file; or judging whether the application program has an updated version according to whether first prompt information is received or not, wherein the first prompt information is sent by an application program server when the application program has the updated version;
if the application program has the updated version, acquiring an updated version installation package of the application program;
acquiring a Dex format file in the update version installation package, and generating a corresponding Oat format file from the Dex format file by calling a Dex2oat command;
sending a second prompt message to the user to prompt the user that the current application program has an updated version, and inquiring whether the user needs to update the application program; and
and if the user selects to update the application program, acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the Oat format file.
2. The method for updating an application program according to claim 1, wherein the obtaining of the installation package of the updated version of the application program comprises:
and acquiring an updated version installation package of the application program through a download link carried by the configuration file.
3. The method for updating an application program according to claim 1, wherein the obtaining of the installation package of the updated version of the application program comprises:
acquiring a differential package of the application program through a download link carried by the configuration file;
acquiring an old version installation package of the application program;
and generating the updated version installation package according to the difference package and the old version installation package.
4. The method for updating an application program according to claim 1, wherein the updating the application program according to the update operation, the update version installation package and the Oat-formatted file comprises:
uninstalling the old version of the application program according to the update operation;
executing the operation of installing the application program of the new version according to the updated version installation package;
judging whether the Oat format file exists in the terminal;
and if the Oat-format file exists in the terminal, copying the Oat-format file to the installation directory of the application program of the new version, and completing the updating operation of the application program of the old version.
5. An application program update apparatus, comprising:
the detection module is used for sending the version number of the application program to the application program server at intervals of preset time; acquiring a configuration file fed back by the application program server; judging whether the application program has an updated version according to whether a download link exists in the configuration file; or sending the version number of the application program to the application program server at intervals of preset time; acquiring a configuration file fed back by the application program server; judging whether the application program has an updated version according to whether an update instruction exists in the configuration file; or judging whether the application program has an updated version according to whether first prompt information is received or not, wherein the first prompt information is sent by an application program server when the application program has the updated version;
the acquisition module is used for acquiring an update version installation package of the application program if the update version exists in the application program;
the generating module is used for acquiring a Dex format file in the update version installation package and generating the Dex format file into a corresponding Oat format file by calling a Dex2oat command; and
the updating module is used for sending second prompt information to the user, prompting the user that the current application program has an updated version, and inquiring whether the user needs to update the application program; and if the user selects to update the application program, acquiring the updating operation of the terminal user on the application program, and updating the application program according to the updating operation, the updating version installation package and the Oat format file.
6. The apparatus according to claim 5, wherein the obtaining module is configured to obtain the updated version installation package of the application program through a download link carried by the configuration file.
7. The application updating apparatus according to claim 5, wherein the obtaining module includes a second obtaining submodule, a third obtaining submodule, and a generating submodule;
the second obtaining submodule is used for obtaining the differential package of the application program through a download link carried by the configuration file;
the third obtaining submodule is used for obtaining an old version installation package of the application program;
and the generation submodule is used for generating the updated version installation package according to the difference package and the old version installation package.
8. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the application program update method of any one of claims 1 to 4.
CN201611051646.8A 2016-11-25 2016-11-25 Application program updating method and device and computer equipment Active CN106775827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611051646.8A CN106775827B (en) 2016-11-25 2016-11-25 Application program updating method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611051646.8A CN106775827B (en) 2016-11-25 2016-11-25 Application program updating method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN106775827A CN106775827A (en) 2017-05-31
CN106775827B true CN106775827B (en) 2020-05-12

Family

ID=58910580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611051646.8A Active CN106775827B (en) 2016-11-25 2016-11-25 Application program updating method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN106775827B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357613B (en) * 2017-06-28 2020-09-04 广州酷狗计算机科技有限公司 Application updating method and device and computer readable storage medium
CN107509187B (en) * 2017-08-31 2020-09-22 维沃移动通信有限公司 Application program installation method, mobile terminal and server
CN109062593B (en) * 2018-07-20 2022-10-21 Oppo(重庆)智能科技有限公司 Application processing method and device, electronic equipment and computer readable storage medium
CN109413186B (en) * 2018-10-31 2021-07-30 Oppo广东移动通信有限公司 Application program updating method, terminal, server and system
CN111221538A (en) * 2018-11-23 2020-06-02 珠海金山办公软件有限公司 Program installation method, system, terminal and storage medium
CN109743456B (en) * 2018-12-29 2021-03-12 Oppo广东移动通信有限公司 Data transmission method and related device
CN110109685A (en) * 2019-04-23 2019-08-09 维沃移动通信有限公司 Production method, device and the mobile terminal of the update, installation kit applied fastly

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699410A (en) * 2013-12-20 2014-04-02 北京奇虎科技有限公司 Method and device for updating application programs
CN105138382A (en) * 2015-09-24 2015-12-09 广东欧珀移动通信有限公司 Method for upgrading Android system and terminal
CN105893080A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application management method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160274887A1 (en) * 2015-03-19 2016-09-22 Zynga Inc. Modifying client device game applications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699410A (en) * 2013-12-20 2014-04-02 北京奇虎科技有限公司 Method and device for updating application programs
CN105138382A (en) * 2015-09-24 2015-12-09 广东欧珀移动通信有限公司 Method for upgrading Android system and terminal
CN105893080A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application management method and device

Also Published As

Publication number Publication date
CN106775827A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106775827B (en) Application program updating method and device and computer equipment
CN106775828B (en) Application program installation method and device and computer equipment
CN106502703B (en) Function calling method and device
CN109857403B (en) Page updating method and device, page processing method and device
US20170025105A1 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN106713608B (en) Application function state modification method and device and terminal
CN107171740B (en) Radio frequency interference processing method, device, storage medium and terminal
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107967153B (en) Application program management method and mobile terminal
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN106095423B (en) Method, terminal and server for providing browsing service
US9928134B2 (en) Method and apparatus for repairing dynamic link library file
CN105528220B (en) Method and device for loading dynamic shared object
CN106933626B (en) Application association method and device
CN106445594B (en) System application installation method and device and terminal equipment
CN107122204B (en) Application unloading state detection method and device
CN106817370B (en) Method and device for transmitting network data
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
US10057740B2 (en) Methods and devices for processing mobile terminal resource
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN106982177B (en) Upgrade control method, device and terminal
CN106293783B (en) Installation package cleaning method and equipment
CN105278967B (en) System updating method, device and system of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant