CN105740023B - The method, apparatus and intelligent mobile terminal that program version retracts - Google Patents

The method, apparatus and intelligent mobile terminal that program version retracts Download PDF

Info

Publication number
CN105740023B
CN105740023B CN201610072375.8A CN201610072375A CN105740023B CN 105740023 B CN105740023 B CN 105740023B CN 201610072375 A CN201610072375 A CN 201610072375A CN 105740023 B CN105740023 B CN 105740023B
Authority
CN
China
Prior art keywords
rollback
installation
version number
program
target
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
CN201610072375.8A
Other languages
Chinese (zh)
Other versions
CN105740023A (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 CN201610072375.8A priority Critical patent/CN105740023B/en
Publication of CN105740023A publication Critical patent/CN105740023A/en
Application granted granted Critical
Publication of CN105740023B publication Critical patent/CN105740023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The method, apparatus and intelligent mobile terminal to retract the invention discloses program version.The method that wherein program version retracts includes: to obtain the target rollback version number of the stored installation procedure to be retracted in the intelligent mobile terminal that response user selectes after the rollback requests for the installation procedure that retracts;The corresponding installation file of target rollback version number is obtained according to target rollback version number, and is installed based on the installation file.Utilize this method, target installation file can be obtained based on the rollback version number saved, thus the version rollback for the installation procedure that user selectes is realized while guaranteeing that memory space occupancy is low, it is easy to operate, it is simple and easy, thus the installation version of application program or additional plug-ins needed for making user more freely select itself.

Description

Method and device for backing program version and intelligent mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of software, in particular to a method and a device for backing a program version and an intelligent mobile terminal.
Background
The intelligent mobile terminal provides great help for life, study and work of people. The existing intelligent mobile terminal integrates multiple functions, can be used as a camera for photographing, can be used as a navigator for navigation, can also be used as a player for watching videos, can be used as a game machine for entertainment and the like, and fully embodies the multifunctionality of the intelligent mobile terminal.
With the continuous development of software technology, technicians can maintain and upgrade the application programs installed on the intelligent mobile or additional plug-ins in the application programs so as to improve the existing functional applications of the application programs and add new functional applications, or enhance the corresponding functions of the additional plug-ins in the application programs, and thus the purpose of improving the user experience of the intelligent mobile terminal is achieved. Therefore, after an update to an application or a plug-in therein, different versions of the same application or plug-in may exist, and generally, the version number corresponding to the updated new version is higher.
However, with frequent update of the application program or the plug-in therein by the technician, some problems also occur, such as after the user updates the application program or the plug-in therein according to the prompt, finding that the updated application program or the updated plug-in changes some usage habits of the user, so that the user prefers to use the previous version, and the user wants to restore the application program or the plug-in to the previous version, but in the present situation, since the user clicks a button for updating the application program or a certain application program plug-in, the corresponding installation file is also covered by the installation program of the new version, and the rollback of the program version cannot be performed. The existing method for backing back the program version usually needs to acquire the patch file upgraded to the new version, but the acquisition process is complex and tedious, and occupies memory space, and the backing back of the program version cannot be well realized.
Disclosure of Invention
The invention aims to provide a method and a device for backing up a program version and an intelligent mobile terminal, so that the version backing-up of an installation program is realized simply and easily while the occupation of a storage space is ensured to be small.
In one aspect, an embodiment of the present invention provides a method for rollback of a program version, including:
after responding to a rollback request of an installation program to be rolled back in an intelligent mobile terminal selected by a user, acquiring a target rollback version number of the stored installation program to be rolled back;
and acquiring an installation file corresponding to the target rollback version number according to the target rollback version number, and installing based on the installation file.
In another aspect, an embodiment of the present invention provides an apparatus for program version rollback, including:
the information acquisition module is used for acquiring a target rollback version number of a stored installation program to be rolled back after responding to a rollback request of the installation program to be rolled back in the intelligent mobile terminal selected by a user;
and the target version installation module is used for acquiring an installation file corresponding to the target rollback version number according to the target rollback version number and installing the installation file.
In another aspect, an embodiment of the present invention further provides an intelligent mobile terminal, where the intelligent mobile terminal integrates the device for program version rollback provided by the present invention.
The embodiment of the invention provides a method and a device for backing a program version and an intelligent mobile terminal, and the method for backing the program version can be summarized as follows: after responding to a rollback request of an installation program to be rolled back in an intelligent mobile terminal selected by a user, acquiring a target rollback version number of the stored installation program to be rolled back, then acquiring an installation file corresponding to the target rollback version number based on the target rollback version number, and installing the acquired installation file. By using the method, the target installation file can be obtained based on the saved rollback version number, so that the version rollback of the installation program selected by the user is realized while the low occupancy rate of the storage space is ensured, the operation is convenient, the method is simple and easy to implement, and the user can more freely select the installation version of the application program or the additional plug-in required by the user.
Drawings
Fig. 1 is a flowchart illustrating a method for rollback of a program version according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for program version rollback according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for program version rollback according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for program version rollback according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a device for program version rollback according to a fifth embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for version rollback of a program according to an embodiment of the present invention, where the method is suitable for version rollback of an installation program in an intelligent mobile terminal, and may be executed by a device for version rollback of a program, where the device may be implemented by software and/or hardware and is generally integrated in an intelligent mobile terminal.
As shown in fig. 1, a method for program version rollback according to an embodiment of the present invention includes the following operations:
step S101, after responding to a rollback request of an installation program to be rolled back in an intelligent mobile terminal selected by a user, obtaining a target rollback version number of the stored installation program to be rolled back.
In this embodiment, the smart mobile terminal may specifically refer to an electronic device such as a mobile phone and a tablet computer, which can support program installation to implement different functional applications. The installation program to be backed off may specifically refer to an application program of a current newer version installed in the intelligent mobile terminal that needs to be backed off, or an additional plug-in that can be independently installed and updated in the application program, and the like. It should be noted that the to-be-rolled-back installers are preferably displayed to the user in the form of a program list based on program names thereof, so that the user can select the installers to be rolled back, and each to-be-rolled-back installer needs to correspond to one roll-back button.
Specifically, the rollback request responding to the installation program to be rolled back in the intelligent mobile terminal selected by the user may be described as follows: and generating a rollback request after detecting that a user triggers a rollback button of the installation program to be rolled back, and responding to the rollback request of the installation program to be rolled back if detecting that the rollback request meets a response condition. Therefore, after the rollback request is responded, the stored target rollback version number of the installation program to be rolled back can be obtained.
In this embodiment, the target rollback version number may specifically be a software version number corresponding to the to-be-rolled-back installer installed in the intelligent mobile terminal before the to-be-rolled-back installer is upgraded to the current newer version.
And S102, acquiring an installation file corresponding to the target rollback version number according to the target rollback version number, and installing based on the installation file.
In this embodiment, after the stored target rollback version number is obtained in step S101, the corresponding installation file of the to-be-rolled-back installer may be obtained according to the target rollback version number, and installation may be performed based on the obtained installation file, thereby implementing a version rollback operation of the to-be-rolled-back installer. It should be noted that, the specific implementation process for obtaining the corresponding installation file based on the target rollback version number may be: and performing networking downloading of the corresponding installation file through the acquired target rollback version number.
Therefore, the method of the embodiment of the invention can realize the rollback of the version of the installation program to be rolled back only by storing the target rollback version number corresponding to the installation program to be rolled back, downloading the installation file based on the acquired target rollback version number after the rollback request is met, and installing the downloaded installation file. Compared with the existing program version rollback method, the method is simple and easy to implement, and the storage space of the intelligent mobile terminal is saved to a great extent.
In this embodiment, a method for program version rollback includes obtaining a target rollback version number of a stored to-be-rolled-back installer after responding to a rollback request of the to-be-rolled-back installer in an intelligent mobile terminal selected by a user, obtaining an installation file corresponding to the target rollback version number based on the target rollback version number, and installing the obtained installation file. By using the method, the target installation file can be obtained based on the saved rollback version number, so that the version rollback of the installation program selected by the user is realized while the low occupancy rate of the storage space is ensured, the operation is convenient, the method is simple and easy to implement, and the user can more freely select the installation version of the application program or the additional plug-in required by the user.
Example two
Fig. 2 is a flowchart illustrating a method for program version rollback according to a second embodiment of the present invention, where the second embodiment of the present invention is optimized according to the above-mentioned embodiment, and in this embodiment, the optimization further includes the steps of: and determining and storing the target rollback version number of the installation program to be rolled back.
Further, the step of obtaining the installation file corresponding to the target rollback version number according to the target rollback version number and installing based on the installation file is specifically optimized as follows: judging whether the target rollback version number is empty, and if so, ending the rollback operation of the installation program to be rolled back; otherwise, the following operations are performed:
uninstalling the installation file corresponding to the current newer version of the installed installation program to be backed; and downloading the installation file of the installation program to be backed off corresponding to the target back-off version number according to the target back-off version number, and installing based on the installation file.
In addition, in the second embodiment, after the step "obtaining the installation file corresponding to the target rollback version number according to the target rollback version number and installing based on the installation file", the optimization includes: and displaying a rollback button of the installation program to be rolled back in an ashing mode, so that the installation program to be rolled back cannot be continuously rolled back.
As shown in fig. 2, a method for program version rollback according to a second embodiment of the present invention specifically includes the following operations:
step S201, determining and storing a target rollback version number of an installation program to be rolled back in the intelligent mobile terminal selected by a user.
In this embodiment, it should be noted that, before performing an operation of acquiring a target rollback version number in response to a rollback request of an installer to be rolled back, a target rollback version number of the installer to be rolled back needs to be determined and stored.
Further, the determining and storing the target rollback version number of the to-be-rollback installer specifically includes:
before the installation program to be rolled back is upgraded to a current newer version, acquiring a software version number corresponding to the installation program to be rolled back, which is installed on the intelligent mobile terminal; and taking the software version number as the target rollback version number and storing the software version number.
In this embodiment, the determining and storing operation of the target rollback version number needs to be performed before the to-be-rolled-back installer is upgraded to the current newer version, and the performed operation may be specifically described as: and acquiring a software version number corresponding to the installation program to be backed-off which is installed on the intelligent mobile terminal at the moment, recording the acquired software version number as a target back-off version number of the installation program to be backed-off, and then storing the acquired target back-off version number. Generally, the storage path and the location of the target rollback version number are not limited, and are preferably stored in a user data folder corresponding to the file to be installed in a rollback mode by default.
Step S202, after responding to the rollback request of the installation program to be rolled back, obtaining a target rollback version number of the stored installation program to be rolled back.
Step S203, judging whether the target rollback version number is empty, if not, executing step S204 to step S207; if yes, go to step S207 directly.
In this embodiment, after step S202, in response to the rollback request of the to-be-rolled-back installer, obtaining the stored target rollback version number of the to-be-rolled-back installer, there is a case where the obtained target rollback version number is empty (that is, there is a case where the currently used to-be-rolled-back installer of a newer version is the lowest version, or there is a case where an error occurs when the to-be-rolled-back installer is obtained and saved before the currently used to-be-rolled-back installer is upgraded to a current newer version, or the like), and therefore, before performing the rollback operation based on the target rollback version number, it is necessary to first determine whether the target rollback version number is empty, and if it is empty, step S207 may be performed; otherwise, the operations of and after step S204 may be performed.
And S204, uninstalling the installation file corresponding to the current newer version of the installed installation program to be rolled back.
In this embodiment, when it is determined that the obtained target rollback version number is not empty, an uninstalling operation may be performed on a current newer version corresponding to an installed to-be-rolled-back installer in the intelligent mobile terminal first (generally, when a software version number of a currently installed program is higher, the installation program of a lower version cannot be directly replaced, because the installation program of the lower version cannot automatically cover the installation program of a current higher version), so as to ensure smooth installation of an installation file of the to-be-rolled-back installer corresponding to the target rollback version number.
And S205, downloading the installation file of the installation program to be backed-off corresponding to the target back-off version number according to the target back-off version number, and installing based on the installation file.
In this embodiment, after the step S204 is performed to unload the current newer version of the installation file corresponding to the installer to be rolled back, the installation file of the installer to be rolled back corresponding to the target rolling back version number may be downloaded through networking to the management server of the installer to be rolled back according to the acquired target rolling back version number, and the installation operation is automatically performed based on the downloaded installation file, so as to implement the version rolling back of the installer to be rolled back.
And step S206, displaying a rollback button of the installation program to be rolled back in an ashing manner, so that the installation program to be rolled back cannot be continuously rolled back.
In this embodiment, after the version of the to-be-rolled-back installer is rolled back based on step S205, the rolling-back button of the to-be-rolled-back installer may be set to be grayed out for display, so as to limit the to-be-rolled-back installer that has performed the rolling-back operation to perform the rolling-back operation again, thereby also avoiding malicious rolling-back of the to-be-rolled-back installer.
And step S207, ending the rollback operation on the installation program to be rolled back.
In this embodiment, when the above operation on the file to be rolled back is completed or the above step meets the end requirement, the operation of step S207 may be performed, and the rolling back operation on the installation program to be rolled back is ended.
In the method for program version rollback provided in the second embodiment of the present invention, an obtaining process of a target rollback version number of an installer to be rolled back is further added to obtain the target rollback version number, and a process of installing a target version based on the target version number is also specified. By using the method, the operation process of program version rollback is perfected, the required target installation file can be obtained based on the saved rollback version number, the version rollback of the installation program selected by a user is realized while the low occupancy rate of the storage space is ensured, the operation is convenient, simple and easy to implement, and the user can more freely select the installation version of the application program or the additional plug-in required by the user.
EXAMPLE III
Fig. 3 is a flowchart illustrating a method for program version rollback according to a third embodiment of the present invention, where the third embodiment of the present invention is optimized based on the foregoing embodiments, and in this embodiment, "responding to a rollback request of an installation program to be rolled back in an intelligent mobile terminal selected by a user" is further embodied as: detecting whether a user triggers a backspacing button of the installation program to be backspacing; if the situation that the user triggers a backspacing button of the installation program to be backspaced is detected, whether a message prompt which cannot be used after the installation program to be backspaced is popped up after the user triggers the backspacing button is detected; if the message prompt is popped up, the rollback request of the installation program to be rolled back is not responded; otherwise, responding to the rollback request of the installation program to be rolled back.
In addition, in this embodiment, before "responding to a rollback request of an installer to be rolled back in an intelligent mobile terminal selected by a user", optimization further includes: judging whether the installation program to be rolled back is forcibly updated when the installation program to be rolled back is updated to a current newer version; if the installation program is forcibly updated, displaying a backspacing button of the installation program to be backspaced in an ashing manner so that a user cannot perform triggering operation on the backspacing button; otherwise, highlighting and displaying a backspacing button of the installation program to be backspacing so as to enable a user to trigger the backspacing button; wherein the forced update comprises: and only updating the installation program to be rolled back to a newer version can the installation program to be rolled back be continuously used.
Further, after the installation file corresponding to the target rollback version number is obtained according to the target rollback version number and is installed based on the installation file, the method further includes: and lightening and displaying an update button of the installation program to be backed up so that the installation program to be backed up can be updated to the current newer version again.
As shown in fig. 3, a method for program version rollback according to an embodiment of the present invention specifically includes the following operations:
in this embodiment, the precondition for the rollback operation of the to-be-rolled-back installer is to respond to a rollback request of the to-be-rolled-back installer in the intelligent mobile terminal selected by the user. In the third embodiment, a specific operation for responding to the rollback request is given, and a button setting operation for determining whether a rollback button can be triggered before responding to the rollback request is given, and the specific process of the operation may be executed in steps S301 to S308.
Step S301, if the installer to be rolled back is detected to be updated to the current newer version, step S302 is executed.
In this embodiment, it is first detected whether the installer to be rolled back has been updated to a current newer version, and if the installer to be rolled back has been updated to a current newer version, the operation of step S302 may be performed.
Step S302, judging whether the updating to the current newer version is forced updating or not, if yes, executing step S303; if not, go to step S304.
Generally, many installation programs installed in the intelligent mobile terminal are forcibly updated, so that normal use of function application corresponding to the installation program can be guaranteed only after the installation program is updated. Accordingly, the forced updating includes: and only when the to-be-rolled-back installation program is updated to the current newer version, the functional application corresponding to the to-be-rolled-back installation program can be continuously used. For such an installer, a program version rollback operation cannot be performed.
In this embodiment, when it is detected that the to-be-rolled-back installer has been updated to a current newer version, it is necessary to determine an update state when the to-be-operated installer is updated. If the update state is the forced update, the operation of step S303 needs to be performed; otherwise, the operation of step S304 may be performed.
And step S303, displaying a rollback button of the installation program to be rolled back in an ashing manner, and then jumping to step S312.
In this embodiment, when it is determined that the update status of the to-be-backed installer is a forced update, it indicates that the user cannot perform a rollback operation on the to-be-backed installer, and therefore, the rollback button of the to-be-backed installer may be set to an ashing display so that the user cannot perform a triggering operation on the rollback button. Therefore, after the rollback button is set to be in the graying-out display, the operation can directly jump to the step S312 to finish the rollback operation of the installation program to be rolled back this time.
Step S304, a backspace button of the installation program to be backspaced is displayed in a brightening mode, and then step S305 is executed.
In this embodiment, when it is determined that the update status of the to-be-rolled-back installer is not a forced update, it indicates that the user can roll back the to-be-rolled-back installer. Therefore, the backspacing button of the installation program to be backspaced can be set to be displayed in a brightening mode, so that a user can trigger the backspacing button. Thus, after the setting of the highlight display of the back button, the operation of step S305 and thereafter can be performed next.
Step S305, detecting whether the user triggers the backspace button of the installation program to be backspace.
In this embodiment, after the back button of the installation program to be backed up is set to be highlighted based on step S304, it needs to be detected whether the user has triggered the back button of the installation program to be backed up. It should be noted that the above operation steps may be taken as necessary decision steps for responding to the rollback request of the to-be-rolled-back installer.
Step S306, if it is detected that the user triggers the rollback button of the installation program to be rolled back, whether a message prompt which cannot be used after the installation program to be rolled back is popped up after the user triggers the rollback button is detected.
In this embodiment, when it is detected that the user triggers the rollback button of the to-be-rolled-back installer, it is further required to detect whether a message prompt that the to-be-rolled-back dark program cannot be normally used after the rollback operation is performed on the to-be-rolled-back dark program is popped up on the screen of the intelligent mobile terminal after the user triggers the rollback button. If the message prompt pops up, it means that the user still cannot perform the rollback operation on the to-be-rolled-back installer, and step S307 needs to be executed; if the message prompt is not popped up, which means that the user can perform a rollback operation on the to-be-rolled-back installer, step S308 may be executed.
Step S307, if the message prompt is popped up, the rollback request of the installation program to be rolled back is not responded, and then the step S312 is skipped.
In this embodiment, after determining that the message prompt that the intelligent mobile terminal cannot be normally used after performing the rollback operation on the to-be-rolled back dark turning program pops up on the screen of the intelligent mobile terminal based on the determination in step S306, the rollback request generated after the user triggers the rollback operation will not be responded, and the process may directly jump to step S312 to end the rollback operation.
Step S308, if the message prompt is not popped up, responding to the rollback request of the installation program to be rolled back, and then executing step S309.
In this embodiment, after the determination of step S306 is that there is no pop-up prompting message, the user may trigger the back-off button and then generate a back-off request accordingly.
Step S309, after responding to the rollback request of the installation program to be rolled back, obtaining the stored target rollback version number of the installation program to be rolled back.
And S310, acquiring an installation file corresponding to the target rollback version number according to the target rollback version number, and installing based on the installation file.
In this embodiment, the operation processes of steps S309 and S310 are not described in detail, and the specific operation process thereof can refer to the related descriptions in the first embodiment and the second embodiment.
Step S311, displaying an update button of the installer to be rolled back in a brightening manner, so that the installer to be rolled back can be updated to the current newer version again.
In this embodiment, after the rollback operation on the to-be-rolled-back installer is implemented based on the above steps, step S311 may be further performed to set an update button of the to-be-rolled-back installer, so that the update button is displayed in a highlighted manner, and thus, the user may perform an operation of upgrading the rolled-back camera plug-in to a newer version again.
And step S312, ending the rollback operation on the installation program to be rolled back.
In this embodiment, when the above operation on the file to be rolled back is completed or the above step meets the end requirement, the operation of step S207 may be performed, and the rolling back operation on the installation program to be rolled back is ended.
The method for program version rollback provided by the third embodiment of the present invention further embodies a response process of a rollback request of an installation program to be rolled back, so as to determine a response time of the rollback request; before responding to a rollback request of an installer to be rolled back, adding a judgment process for judging whether the installer to be rolled back is upgraded to a current newer version and is in a forced updating state, so as to set a display state of a rollback button and limit the triggering operation of the rollback button of the installer to be rolled back by a user; meanwhile, after the target version is installed, the setting operation of the update button of the program to be installed is optimized, so that the update and the upgrade of the program to be installed after the program to be installed returns are guaranteed.
Example four
Fig. 4 is a flowchart illustrating a method for program version rollback according to a fourth embodiment of the present invention. In this embodiment, the to-be-rolled-back installer is specifically a plug-in installed in the camera function of the smart mobile terminal.
As shown in fig. 4, the method for version rollback of a plug-in a camera function according to an embodiment of the present invention specifically includes the following operations:
step S401, before the camera plug-in program selected by the user is upgraded to the current newer version, acquiring the software version number corresponding to the camera plug-in program installed on the intelligent mobile terminal.
For example, when a program version of a current camera plug-in is to be backed down, a software version number corresponding to the camera plug-in installed on the smart mobile terminal at that time is obtained before the camera plug-in is upgraded to the current newer version.
And S402, taking the software version number as a target rollback version number of the camera plug-in program, and storing the software version number.
For example, after acquiring a software version number of an older version corresponding to a camera plug-in installed on an intelligent mobile terminal, the software version number is used as a target rollback version number and is stored, and specifically, the software version number may be preferably stored in a user data folder corresponding to the camera plug-in.
Step S403, after detecting that the camera plug-in has been updated to the current newer version, executing step S404.
For example, after the operations of step S401 and step S402 are performed, it is detected whether the camera plug-in has been updated to the current newer version, and step S404 may be performed after detecting that the camera plug-in has been updated to the current newer version.
Step S404, judging whether the updating to the current newer version is forced updating or not, if yes, executing step S405; if not, go to step S406.
For example, before responding to the rollback operation on the camera plug-in, it is further required to determine whether the camera plug-in is a forced update when updated to a current newer version (the forced update specifically includes that the installer to be rolled back can be continuously used only when the installer to be rolled back is updated to a newer version), and if the camera plug-in is a forced update, step S405 is executed; otherwise, step S406 may be performed.
Step S405, graying out the back button of the camera plug-in, and then, it goes to step S416.
For example, when the camera plug-in is updated to the current newer version as a forced update, it indicates that the rollback operation cannot be performed on the camera plug-in. Specifically, the rollback button of the camera plug-in needs to be set to the grayed-out display, so that the user cannot perform the rollback operation on the rollback button, and at this time, the process may directly jump to step S416 to end the rollback operation of the camera plug-in.
Step S406, a back button of the camera plug-in is highlighted, and then step S407 is executed.
For example, when the camera plug-in is updated to the current newer version and is not a forced update, it indicates that the rollback operation can be performed on the camera plug-in. Specifically, the backspacing button of the camera plug-in program is set to be displayed in a highlighted mode, so that the backspacing button is triggered by a user.
Step S407, detecting whether the user triggers the backspacing button of the camera plug-in program.
For example, after the back button of the camera plug-in is highlighted, it needs to be detected whether the user performs a trigger operation on the back button of the camera plug-in.
Step S408, if it is detected that the user triggers the backspace button of the camera plug-in, detecting whether a message prompt which cannot be used after the backspace of the camera plug-in is popped up after the user triggers the backspace button.
Illustratively, when it is detected that the user triggers the backspacing button of the camera plug-in, it is further detected whether a message prompt that the camera plug-in cannot be normally used after backspacing operation is performed on the camera plug-in is popped up on a screen of the intelligent mobile terminal after the user triggers the backspacing button. If the message prompt pops up, step S409 needs to be executed; if the message prompt is not popped up, step S410 needs to be performed.
Step S409, if the message prompt is popped up, the backspacing request of the camera plug-in program is not responded, and then the step S416 is skipped.
For example, when a message prompt that the camera plug-in cannot be normally used after the rollback operation is performed on the camera plug-in is popped up on the screen of the smart mobile terminal, it indicates that the rollback operation cannot be performed on the camera plug-in, so that the method may directly jump to step S416 to end the rollback operation on the camera plug-in.
Step S410, if the message prompt is not popped up, responding to the rollback request of the camera plug-in, and then executing step S411.
Illustratively, when no message prompt which cannot be normally used after the rollback operation is performed on the camera plug-in is popped up on the screen of the smart mobile terminal, it indicates that the rollback operation can be performed on the camera plug-in, so that a rollback request generated after a user triggers a rollback button of the camera plug-in can be responded, and the operation of step S411 is performed after the rollback request is responded.
Step S411, after responding to the rollback request of the camera plug-in program, acquiring a target rollback version number of the stored camera plug-in program.
Illustratively, after responding to a rollback request generated after a user triggers a rollback button of the camera plug-in, an obtaining operation of a target rollback version number of the camera plug-in may be performed, and as can be known from step S401 and step S402, the target rollback version number is already stored in a setting folder of the smart mobile terminal, and the target rollback version number may now be directly called.
Step S412, judging whether the target rollback version number is empty, if not, executing step S413-step S416; if yes, go to step S416.
Illustratively, when the target rollback version number of the camera plug-in is obtained, there is a case where the stored target rollback version number is null (that is, the currently used camera plug-in of a newer version is the lowest version of software, or an error occurs when the target rollback version number is saved before the camera plug-in is upgraded to a current newer version, etc.). Therefore, the obtained target rollback version number needs to be determined, whether the target rollback version number stored in the target rollback version number is empty is determined, and if the target rollback version number is empty, the step S416 can be directly skipped to finish the rollback operation on the camera plug-in program; otherwise, the operations of and after step S413 may be performed.
And step S413, uninstalling the installation file corresponding to the current newer version of the installed camera plug-in.
For example, when the target rollback version number of the camera plug-in is not empty, an uninstall operation may be performed on the installed file of the plug-in of the current newer version that has been installed, generally, the uninstall operation is an automatic uninstall, and step S414 is performed after the uninstall operation.
And S414, downloading the installation file of the camera plug-in program corresponding to the target rollback version number according to the target rollback version number, and installing based on the installation file.
After the installation file corresponding to the current newer version of the camera plug-in program is unloaded, the management server corresponding to the camera plug-in program can be networked to search the installation file corresponding to the target rollback version number and download the installation file, and then installation operation can be carried out based on the downloaded installation file corresponding to the target rollback version number, so that rollback of the version of the camera plug-in program is achieved.
Step S415, graying out a back button for displaying the camera plug-in and/or brightening an update button for displaying the camera plug-in.
Illustratively, after the rollback of the version of the camera plug-in is realized, the rollback operation can be theoretically finished, but the method is further optimized, namely after the rollback of the version of the program is realized, a rollback button of the camera plug-in is set to be an ashing display, so that the rollback operation of the camera plug-in which is rolled back is limited to be carried out again; meanwhile, an update button of the camera plug-in program can be set to be displayed in a brightening mode, so that a user can perform operation of upgrading the rolled-back camera plug-in program to a newer version again.
And step S416, ending the rollback operation of the camera plug-in program.
For example, when the above operation is completed or the ending requirement is satisfied, the operation of step S416 may be executed, and the rollback operation of the camera plug-in program is ended.
The preferred embodiment of the method for returning the program version provided by the fourth embodiment of the invention provides a specific operation process for returning the camera plug-in program in the intelligent mobile terminal, based on which the operation process of the method for returning the program version can be better understood, and the characteristics of convenient operation, simplicity and easy implementation and low storage space occupancy rate of the returning method are embodied, thereby enabling a user to more freely select the installation version of the application program or the additional plug-in required by the user.
EXAMPLE five
Fig. 5 is a block diagram of a device for program version rollback according to a fifth embodiment of the present invention. The device can be realized by software and/or hardware, is generally integrated in the intelligent mobile terminal, and is generally suitable for the condition of version rollback of an installation program in the intelligent mobile terminal. As shown in fig. 5, the apparatus for program version rollback according to the embodiment of the present invention specifically includes the following structures: an information acquisition module 51 and a target version installation module 52. Wherein,
the information obtaining module 51 is configured to obtain a target rollback version number of a stored installation program to be rolled back after responding to a rollback request of the installation program to be rolled back in an intelligent mobile terminal selected by a user;
and the target version installation module 52 is configured to obtain an installation file corresponding to the target rollback version number according to the target rollback version number, and install the installation file based on the installation file.
In this embodiment, the apparatus first obtains a target rollback version number of a stored installation program to be rolled back after responding to a rollback request of the installation program to be rolled back in an intelligent mobile terminal selected by a user through an information obtaining module 51; then, the target version installation module 52 obtains an installation file corresponding to the target rollback version number based on the obtained target rollback version number, and installs the obtained installation file.
Further, the device also comprises:
and the target version number determining module is used for determining and storing the target rollback version number of the installation program to be rolled back.
On the basis of the above embodiment, the target version number obtaining module may be specifically configured to:
before the installation program to be rolled back is upgraded to a current newer version, acquiring a software version number corresponding to the installation program to be rolled back, which is installed on the intelligent mobile terminal; and taking the software version number as the target rollback version number and storing the software version number.
Further, the device also comprises:
a rollback request response module, configured to detect whether a user performs a trigger operation on a rollback button of the to-be-rolled-back installer; when detecting that a user triggers a backspacing button of the installation program to be backspaced, detecting whether a message prompt which cannot be used after the installation program to be backspaced is popped up after the user triggers the backspacing button; when the message prompt is popped up, not responding to the rollback request of the installation program to be rolled back; otherwise, responding to the rollback request of the installation program to be rolled back.
On the basis of the above embodiment, the apparatus further comprises:
the program updating judging module is used for judging whether the installation program to be backed up is forcibly updated when the installation program to be backed up is updated to a current newer version before responding to a back-up request of the installation program to be backed up in the intelligent mobile terminal selected by a user; if the installation program is forcibly updated, displaying a backspacing button of the installation program to be backspaced in an ashing manner so that a user cannot perform triggering operation on the backspacing button; otherwise, highlighting and displaying a backspacing button of the installation program to be backspacing so as to enable a user to trigger the backspacing button; wherein the forced update comprises: and only updating the installation program to be rolled back to a newer version can the installation program to be rolled back be continuously used.
Further, the target version installation module is specifically configured to:
judging whether the target rollback version number is empty, and if so, ending the rollback operation of the installation program to be rolled back; otherwise, the following operations are performed:
uninstalling the installation file corresponding to the current newer version of the installed installation program to be backed;
and downloading the installation file of the installation program to be backed off corresponding to the target back-off version number according to the target back-off version number, and installing based on the installation file.
On the basis of the above embodiment, the apparatus further comprises:
and the rollback button setting module is used for ashing and displaying the rollback button of the installation program to be rolled back after acquiring the installation file corresponding to the target rollback version number according to the target rollback version number and installing the installation file based on the installation file, so that the installation program to be rolled back cannot be continuously rolled back.
Further, the device also comprises:
and the update button setting module is used for brightening and displaying the update button of the installation program to be rolled back after acquiring the installation file corresponding to the target rolling back version number according to the target rolling back version number and installing the installation file, so that the installation program to be rolled back can be updated to a current newer version again.
In the device for program version rollback provided by the fifth embodiment of the present invention, after the rollback request of the to-be-rolled-back installer is responded by the rollback request response module; acquiring a target rollback version number of the stored installation program to be rolled back through an information acquisition module; and finally, acquiring the installation file corresponding to the target rollback version number through a target version installation module, and installing the acquired installation file. By using the device, the version rollback of the installation program selected by the user is realized while the low occupancy rate of the storage space is ensured, the operation is convenient, simple and easy, and the user can more freely select the installation version of the application program or the additional plug-in required by the user.
Further, a fifth embodiment of the present invention further provides an intelligent mobile terminal, where the intelligent mobile terminal integrates the device for program version rollback provided in the foregoing embodiment, and can implement installation of a functional application for program version rollback.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A method for program version rollback, comprising:
after responding to a rollback request of an installation program to be rolled back in an intelligent mobile terminal selected by a user, acquiring a target rollback version number of the stored installation program to be rolled back;
acquiring an installation file corresponding to the target rollback version number according to the target rollback version number, and installing based on the installation file;
before responding to a rollback request of an installation program to be rolled back in the intelligent mobile terminal selected by the user, the method further comprises the following steps:
judging whether the installation program to be rolled back is forcibly updated when the installation program to be rolled back is updated to a current newer version;
if the installation program is forcibly updated, displaying a backspacing button of the installation program to be backspaced in an ashing manner so that a user cannot perform triggering operation on the backspacing button; otherwise, highlighting and displaying a backspacing button of the installation program to be backspacing so as to enable a user to trigger the backspacing button;
wherein the forced update comprises: and only updating the installation program to be rolled back to a newer version can the installation program to be rolled back be continuously used.
2. The method of claim 1, further comprising:
and determining and storing the target rollback version number of the installation program to be rolled back.
3. The method according to claim 2, wherein the determining and storing the target rollback version number of the to-be-rolled-back installer specifically comprises:
before the installation program to be rolled back is upgraded to a current newer version, acquiring a software version number corresponding to the installation program to be rolled back, which is installed on the intelligent mobile terminal;
and taking the software version number as the target rollback version number and storing the software version number.
4. The method according to claim 1, wherein the responding to the rollback request of the installation program to be rolled back in the intelligent mobile terminal selected by the user comprises:
detecting whether a user triggers a backspacing button of the installation program to be backspacing;
if the situation that the user triggers a backspacing button of the installation program to be backspaced is detected, whether a message prompt which cannot be used after the installation program to be backspaced is popped up after the user triggers the backspacing button is detected;
if the message prompt is popped up, the rollback request of the installation program to be rolled back is not responded; otherwise, responding to the rollback request of the installation program to be rolled back.
5. The method according to claim 1, wherein the obtaining of the installation file corresponding to the target rollback version number according to the target rollback version number and the installation based on the installation file specifically include:
judging whether the target rollback version number is empty, and if so, ending the rollback operation of the installation program to be rolled back;
otherwise, the following operations are performed:
uninstalling the installation file corresponding to the current newer version of the installed installation program to be backed;
and downloading the installation file of the installation program to be backed off corresponding to the target back-off version number according to the target back-off version number, and installing based on the installation file.
6. The method according to any one of claims 1 to 5, wherein after obtaining the installation file corresponding to the target rollback version number according to the target rollback version number and installing the installation file based on the installation file, the method further comprises:
and displaying a rollback button of the installation program to be rolled back in an ashing mode, so that the installation program to be rolled back cannot be continuously rolled back.
7. The method according to any one of claims 1 to 5, wherein after obtaining the installation file corresponding to the target rollback version number according to the target rollback version number and installing the installation file based on the installation file, the method further comprises:
and lightening and displaying an update button of the installation program to be backed up so that the installation program to be backed up can be updated to the current newer version again.
8. An apparatus for program version rollback, comprising:
the information acquisition module is used for acquiring a target rollback version number of a stored installation program to be rolled back after responding to a rollback request of the installation program to be rolled back in the intelligent mobile terminal selected by a user;
the target version installation module is used for acquiring an installation file corresponding to the target rollback version number according to the target rollback version number and installing the installation file;
the program updating judging module is used for judging whether the installation program to be backed up is forcibly updated when the installation program to be backed up is updated to a current newer version before responding to a back-up request of the installation program to be backed up in the intelligent mobile terminal selected by a user; if the installation program is forcibly updated, displaying a backspacing button of the installation program to be backspaced in an ashing manner so that a user cannot perform triggering operation on the backspacing button; otherwise, highlighting and displaying a backspacing button of the installation program to be backspacing so as to enable a user to trigger the backspacing button;
wherein the forced update comprises: and only updating the installation program to be rolled back to a newer version can the installation program to be rolled back be continuously used.
9. The apparatus of claim 8, further comprising:
and the target version number determining module is used for determining and storing the target rollback version number of the installation program to be rolled back.
10. The apparatus of claim 9, wherein the target version number obtaining module is specifically configured to:
before the installation program to be rolled back is upgraded to a current newer version, acquiring a software version number corresponding to the installation program to be rolled back, which is installed on the intelligent mobile terminal;
and taking the software version number as the target rollback version number and storing the software version number.
11. The apparatus of claim 8, further comprising:
a rollback request response module, configured to detect whether a user performs a trigger operation on a rollback button of the to-be-rolled-back installer; when detecting that a user triggers a backspacing button of the installation program to be backspaced, detecting whether a message prompt which cannot be used after the installation program to be backspaced is popped up after the user triggers the backspacing button; when the message prompt is popped up, not responding to the rollback request of the installation program to be rolled back; otherwise, responding to the rollback request of the installation program to be rolled back.
12. The apparatus of claim 8, the target version installation module being specifically configured to:
judging whether the target rollback version number is empty, and if so, ending the rollback operation of the installation program to be rolled back;
otherwise, the following operations are performed:
uninstalling the installation file corresponding to the current newer version of the installed installation program to be backed;
and downloading the installation file of the installation program to be backed off corresponding to the target back-off version number according to the target back-off version number, and installing based on the installation file.
13. The apparatus of any of claims 8-12, further comprising:
and the rollback button setting module is used for ashing and displaying the rollback button of the installation program to be rolled back after acquiring the installation file corresponding to the target rollback version number according to the target rollback version number and installing the installation file based on the installation file, so that the installation program to be rolled back cannot be continuously rolled back.
14. The apparatus of any of claims 8-12, further comprising:
and the update button setting module is used for brightening and displaying the update button of the installation program to be rolled back after acquiring the installation file corresponding to the target rolling back version number according to the target rolling back version number and installing the installation file, so that the installation program to be rolled back can be updated to a current newer version again.
15. An intelligent mobile terminal, characterized in that it integrates means for program version rollback according to any of claims 8-14.
CN201610072375.8A 2016-02-02 2016-02-02 The method, apparatus and intelligent mobile terminal that program version retracts Active CN105740023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610072375.8A CN105740023B (en) 2016-02-02 2016-02-02 The method, apparatus and intelligent mobile terminal that program version retracts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610072375.8A CN105740023B (en) 2016-02-02 2016-02-02 The method, apparatus and intelligent mobile terminal that program version retracts

Publications (2)

Publication Number Publication Date
CN105740023A CN105740023A (en) 2016-07-06
CN105740023B true CN105740023B (en) 2019-05-03

Family

ID=56244750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610072375.8A Active CN105740023B (en) 2016-02-02 2016-02-02 The method, apparatus and intelligent mobile terminal that program version retracts

Country Status (1)

Country Link
CN (1) CN105740023B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955740B (en) * 2016-04-29 2019-12-06 北京奇虎科技有限公司 software management method and device
CN106155746B (en) * 2016-07-13 2019-12-03 珠海豹趣科技有限公司 A kind of installation file processing method and processing device, server
CN108062233A (en) * 2017-12-29 2018-05-22 上海大汉三通无线通信有限公司 A kind of file backing method, system, device and computer readable storage medium
CN110618886A (en) * 2018-06-20 2019-12-27 珠海市魅族科技有限公司 Version rollback method, mobile terminal and computer storage medium
CN111125690B (en) * 2019-11-29 2023-01-06 苏州浪潮智能科技有限公司 Method and device for reinforcing host and storage medium
CN112416400B (en) * 2020-11-23 2022-07-08 珠海格力电器股份有限公司 Program update control method, program update control device, computer device, and storage medium
CN112379897B (en) * 2020-12-01 2024-03-15 北京致远互联软件股份有限公司 Gray release and restrictive method for installing client installation program
CN117056115B (en) * 2023-10-10 2024-03-15 腾讯科技(深圳)有限公司 Application program repairing method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009108277A2 (en) * 2008-02-25 2009-09-03 Rpath, Inc. Methods, systems, and computer program products for taking a snapshot of installed software on a data processing system as part of a software update process
CN101639785A (en) * 2009-09-02 2010-02-03 中兴通讯股份有限公司 Method and device for software updating
CN102195817A (en) * 2011-05-25 2011-09-21 上海华为技术有限公司 Software upgrading method and device and software rollback method and device
CN102567053A (en) * 2011-12-20 2012-07-11 云海创想信息技术(无锡)有限公司 Method and device for downgrading software version
CN103544033A (en) * 2013-09-30 2014-01-29 小米科技有限责任公司 Method, device and associated equipment for rolling back application program
CN104503790A (en) * 2014-12-19 2015-04-08 广东欧珀移动通信有限公司 Application version management method and system and smart terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185071B2 (en) * 2002-12-24 2007-02-27 International Business Machines Corporation Self-healing version and configuration model for an application server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009108277A2 (en) * 2008-02-25 2009-09-03 Rpath, Inc. Methods, systems, and computer program products for taking a snapshot of installed software on a data processing system as part of a software update process
CN101639785A (en) * 2009-09-02 2010-02-03 中兴通讯股份有限公司 Method and device for software updating
CN102195817A (en) * 2011-05-25 2011-09-21 上海华为技术有限公司 Software upgrading method and device and software rollback method and device
CN102567053A (en) * 2011-12-20 2012-07-11 云海创想信息技术(无锡)有限公司 Method and device for downgrading software version
CN103544033A (en) * 2013-09-30 2014-01-29 小米科技有限责任公司 Method, device and associated equipment for rolling back application program
CN104503790A (en) * 2014-12-19 2015-04-08 广东欧珀移动通信有限公司 Application version management method and system and smart terminal

Also Published As

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

Similar Documents

Publication Publication Date Title
CN105740023B (en) The method, apparatus and intelligent mobile terminal that program version retracts
CN107967141B (en) Operating system upgrading method and device and terminal
EP2977902A2 (en) Method and device for saving storage space
US12061892B2 (en) Firmware updating method, and electronic apparatus and storage media for same
CN108804153B (en) Application program preloading method and device, storage medium and terminal
EP2631789A1 (en) Apparatus and method for grouping application program folders in electronic device
US20150333971A1 (en) Method and device for managing processes of application program
KR102163357B1 (en) Application management method and apparatus
US20140179377A1 (en) Mobile electronic device having program notification function and program notification method thereof
CN104317623B (en) The management method of the preset application program of mobile terminal and mobile terminal
JP2010146257A (en) Information processor, program update method, and information processing system
CN107577472B (en) Software installation method and device and computer readable storage medium
EP3327565A1 (en) Method and equipment for running a file
CN108712717B (en) Control method and device based on application store, storage medium and mobile terminal
CN108459868A (en) A kind of software start-up method, device, terminal and storage medium
CN112000424A (en) Application program control method and device, terminal and storage medium
CN109901849B (en) Application program installation method and device, electronic equipment and storage medium
CN113138785A (en) Application program updating method and device
CN105786568A (en) Upgrade content display method and device and intelligent terminal
US11144312B2 (en) Management method for preset third-party applications, intelligent terminal and storage medium
CN115098177B (en) Display card drive switching method and device and readable storage medium
CN116048563B (en) System upgrading method, electronic equipment and storage medium
CN113721936A (en) Application management method, intelligent terminal, device and storage medium
CN114895934A (en) Program management method and device, equipment and storage medium
CN108829418A (en) A kind of processing method and electronic equipment

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant