CN116339765A - Android terminal local OTA system upgrading method, device, equipment and medium - Google Patents
Android terminal local OTA system upgrading method, device, equipment and medium Download PDFInfo
- Publication number
- CN116339765A CN116339765A CN202111592865.8A CN202111592865A CN116339765A CN 116339765 A CN116339765 A CN 116339765A CN 202111592865 A CN202111592865 A CN 202111592865A CN 116339765 A CN116339765 A CN 116339765A
- Authority
- CN
- China
- Prior art keywords
- ota
- upgrade
- upgrading
- android terminal
- command
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000011084 recovery Methods 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Stored Programmes (AREA)
Abstract
According to the method, the device, the equipment and the medium for upgrading the local OTA system of the android terminal, the OTA upgrading button is locally added in the engineering mode, after a user clicks the button, a storage path and a package name of an OTA upgrading package stored in the external storage equipment and an upgrading command are obtained, splicing and writing command files are carried out, and when the terminal equipment is restarted to enter the recovery mode, the command files are operated to start OTA upgrading. When the OTA upgrade is started, in order to ensure the upgrade security, the SN code of the security device Zhuo Zhongduan is determined to be in the white list, and then the OTA upgrade is performed. According to the scheme, the OTA upgrading button is added locally to acquire the external storage path, and whether the SN code of the terminal equipment is in the white list or not is judged, so that local OTA upgrading for the OTA upgrading packet is realized, and meanwhile, the upgrading safety and controllability are ensured.
Description
Technical Field
The invention relates to the field of android terminal system upgrading, in particular to a method, a device, equipment and a medium for upgrading an android Zhuo Zhongduan local over-the-air technology (Over the Air Technology, OTA for short) system.
Background
Along with the continuous development of technology, versions of the android system are continuously changed, and more android terminal devices are used by people, so that people can upgrade the android system in order to experience a better android system.
In the prior art, an upgrade mode of an android system generally adopts an OTA upgrade mode, when an android terminal manufacturer has a new android system, the manufacturer has information of all android terminal devices, an android terminal meeting the requirements is screened out from the information, an OTA upgrade package is produced by a server of the manufacturer and is pushed to the android terminal meeting the requirements, and the android terminal downloads the OTA upgrade package and then carries out system upgrade.
In summary, in the existing OTA system upgrading method, an OTA upgrading packet is pushed and downloaded through a network, and at present, no scheme for performing local OTA upgrading on the OTA upgrading packet is available.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for upgrading an local OTA system of Zhuo Zhongduan, which are used for solving the problem that a scheme for upgrading the local OTA aiming at an OTA upgrading packet is not available in the prior art.
In a first aspect, an embodiment of the present invention provides an android Zhuo Zhongduan local OTA system upgrading method, which is applied to an android terminal, and the method includes:
responding to the operation of a user, entering an engineering mode and locally adding an OTA upgrade button;
after detecting that a user clicks the OTA upgrade button, acquiring a storage path and a package name of an OTA upgrade package in external storage equipment connected externally;
splicing the storage path and the package name of the upgrade command acquired in the engineering mode, and writing the upgrade command into a command file;
and when the android terminal is restarted to a recovery mode, operating a command in the command file, wherein a dloadota field is included in the storage path, and the product serial number SN of the android terminal is in a white list preset in the android terminal, and performing OTA upgrading by adopting the OTA upgrading packet.
In a specific embodiment, when the android terminal is restarted to a recovery mode, a command in the command file is operated, a dloadota field is included in the storage path, and if the SN code of the product serial number of the android terminal is in a white list preset in the android terminal, an OTA upgrade is performed by using the OTA upgrade package, including:
when the android terminal is restarted to a recovery mode, running a command in the command file, and judging whether a dloadota field is contained in the storage path of the OTA upgrade package;
if the storage path contains a dloadota field, acquiring the SN code of the android terminal;
judging whether the SN is in a preset white list in the android terminal;
and if the SN code is in a white list preset in the android terminal, carrying out OTA upgrading by adopting the OTA upgrading packet.
In one embodiment, the method further comprises:
if the storage path does not contain the dloadota field, determining that the OTA upgrade package is a native OTA upgrade package, and upgrading according to the native OTA upgrade package.
In one embodiment, the method further comprises:
and if the SN code is not in the preset white list in the android terminal, exiting the OTA upgrading process.
In one embodiment, the method further comprises:
if the storage path does not contain the dloadota field, deleting the original OTA upgrade package after the OTA upgrade is completed.
In one embodiment, the method further comprises:
and calling an android interface, and restarting the android device to a recovery mode.
In a specific embodiment, in response to a user operation, entering an engineering mode and after locally adding an OTA upgrade button, the method further includes:
displaying the OTA upgrade button on a graphical user interface;
correspondingly, after detecting that the user clicks the OTA upgrade button, the method further includes:
in the engineering mode, generating the upgrade command for upgrading the OTA.
In a second aspect, an embodiment of the present invention provides an apparatus for upgrading an local OTA system of an ampere Zhuo Zhongduan, including:
the first processing module is used for responding to the operation of a user, entering an engineering mode and locally adding an OTA upgrading button;
the acquisition module is used for acquiring a storage path and a package name of an OTA upgrade package in external storage equipment connected externally after detecting that a user clicks the OTA upgrade button;
the second processing module is used for splicing the upgrade command acquired in the engineering mode, the storage path and the package name, and writing a command file;
and the upgrading module is used for running the command in the command file when the android terminal is restarted to a recovery mode, wherein the storage path comprises a dloadota field, and the OTA upgrading packet is adopted to carry out OTA upgrading if the product serial number SN of the android terminal is in a white list preset in the android terminal.
In a third aspect, embodiments of the present invention provide an apparatus Zhuo Zhongduan comprising:
a processor, a memory, an external storage interface;
the memory is used for storing executable instructions of the processor;
wherein the processor is configured to perform the android terminal local OTA system upgrade method of any one of the first aspects via execution of the executable instructions.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the method for upgrading an android terminal local OTA system according to any one of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, where the computer program is used to implement the method for upgrading an android terminal local OTA system according to any one of the first aspect when the computer program is executed by a processor.
According to the method, the device, the equipment and the medium for upgrading the local OTA system of the android terminal, the OTA upgrading button is locally added in the engineering mode, after a user clicks the button, a storage path and a package name of an OTA upgrading package stored in the external storage equipment and an upgrading command are obtained, splicing and writing command files are carried out, and when the terminal equipment is restarted to enter the recovery mode, the command files are operated to start OTA upgrading. When the OTA upgrade is started, in order to ensure the upgrade security, the SN code of the security device Zhuo Zhongduan is determined to be in the white list, and then the OTA upgrade is performed. According to the scheme, the OTA upgrading button is added locally to acquire the external storage path, and whether the SN code of the terminal equipment is in the white list or not is judged, so that local OTA upgrading for the OTA upgrading packet is realized, and meanwhile, the upgrading safety and controllability are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of an android terminal local OTA system upgrading method provided by the invention;
fig. 2 is a schematic flow chart of an embodiment of a method for upgrading a local OTA system of an android terminal;
fig. 3 is a schematic flow chart of a second embodiment of an android terminal local OTA system upgrading method provided by the present invention;
fig. 4 is a schematic flow chart of a third embodiment of an android terminal local OTA system upgrading method provided by the present invention;
fig. 5 is a schematic structural diagram of a first embodiment of an apparatus for upgrading a local OTA system of an android terminal according to the present invention;
fig. 6 is a schematic structural diagram of a second embodiment of an apparatus for upgrading a local OTA system of an android terminal provided by the present invention;
fig. 7 is a schematic structural diagram of an android terminal provided by the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which are made by a person skilled in the art based on the embodiments of the invention in light of the present disclosure, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Along with the continuous development of technology, android system versions are continuously changed, and more android terminal devices are used by people, so that people can upgrade the android system in order to experience a better android system, meanwhile, in the field of enterprise mobile office, certain industry clients have higher requirements on convenience and safety of upgrading operation of the safety customized terminal versions, for example, the terminal is required to provide a local OTA upgrading function, and differential package upgrading is completed under the condition of safety control.
The conventional OTA upgrade mode is generally that when an android terminal manufacturer has a new android system, the manufacturer has information of all android terminal devices, the android terminal meeting the requirements is screened out, an OTA upgrade package is produced by a server of the manufacturer and is pushed to the android terminal meeting the requirements, and the android terminal downloads the OTA upgrade package and then carries out system upgrade. The OTA upgrade is carried out in the mode that an OTA upgrade packet is pushed and downloaded through a network, and a scheme for carrying out local OTA upgrade on the OTA upgrade packet is not available at present.
Aiming at the problem that the prior art does not have a scheme for carrying out local OTA upgrade on an OTA upgrade package, the inventor finds that the OTA upgrade package can be put into an external storage device in the process of researching the local OTA system upgrade of an android terminal, the android terminal comprises a white list, and the external storage device is connected with the android terminal. After entering the engineering mode, the android terminal adds an OTA upgrade button locally, after a user clicks the button, the android terminal acquires a storage path and a package name of an OTA upgrade package, and the OTA upgrade is started when entering the recovery mode by splicing the storage path and the package name with the acquired upgrade command and writing the storage path and the package name into a command file. In order to achieve the effect of safety and controllability of OTA upgrading, when OTA upgrading is started, checking whether the SN of the android device is in a white list, and if so, carrying out OTA upgrading. Based on the inventive concept, the local OTA system upgrading scheme of the android terminal is designed.
Exemplary, fig. 1 is an application scenario schematic diagram of an android terminal local OTA system upgrading method provided by the present invention, and as shown in fig. 1, the application scenario may include: an android terminal 11 and an external storage device 12.
In The application scenario shown in fig. 1, the external storage device 12 is a U disc, and The OTA upgrade package is stored in The external storage device 12 and may be connected to The android terminal 11 through an OTG (On The Go, abbreviated as OTG) manner.
The android terminal 11 can be connected with the external storage device 12 in an OTG mode, and after entering an engineering mode, an OTA upgrade button can be locally added in a newly built interface mode and displayed on a user graphical interface.
It should be noted that, the external storage device 12 may be a usb disk, and is connected to the android terminal 11 by an OTG manner; the secure digital memory card (Secure Digital Memory Card, SD card for short) is connected with the android terminal 11 through the SD card slot of the android terminal 11, and the embodiment of the invention does not limit the external memory device and the connection mode with the android terminal, and can be selected according to actual conditions.
It should be noted that, the android terminal 11 may be a mobile phone of an android system or a tablet computer of an android system, and the embodiment of the invention does not specifically limit the android terminal and may be selected according to actual situations.
The technical scheme of the invention is described in detail through specific embodiments. It should be noted that the following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a flow chart of a first embodiment of an android terminal local OTA system upgrading method, and as shown in fig. 2, the android terminal local OTA system upgrading method specifically includes the following steps:
s201: in response to a user operation, an engineering mode is entered and an OTA upgrade button is added locally.
When a user needs to perform local OTA upgrade, an OTA upgrade package is required to be stored under a dloadota catalog of an external storage device, and then the external storage device is connected with the android terminal device.
In this step, after the external storage device is connected with the android terminal, the user may operate the android terminal to enter an engineering mode of the android terminal, and after entering the engineering mode, an OTA upgrade button is locally added through a newly-built LocalOTAUpgrade interface. After the addition is successful, an OTA upgrade button is displayed on the graphical user interface so that the user can perform clicking operation.
It should be noted that, the manner of entering the engineering mode may be different for different manufacturers, for example: entry occurs by clicking sequentially on the dial interface #6484# and entry occurs by clicking sequentially on the dial interface #2846579 #. The invention does not limit the mode of entering the engineering mode specifically, and can be selected according to actual conditions.
It should be noted that, the OTA upgrade package may be an OTA differential package, that is, only data and supporting upgrade files containing differences between a new system version and an old system version, or an OTA full package, that is, all files containing a new system version.
S202: and after detecting that the user clicks the OTA upgrade button, acquiring a storage path and a package name of an OTA upgrade package in external storage equipment connected externally.
In this step, after an OTA upgrade button is added in the engineering mode, the user may click the button, and after the android terminal detects that the user clicks the OTA upgrade button, an upgrade command for upgrading the OTA is generated, where the command is-update_package=, and further a storage path and a package name of an OTA upgrade package in an external storage device connected externally are obtained, so that the upgrade command, the storage path and the package name are spliced later.
The embodiment of the invention does not specifically limit the storage path, and can be set and acquired according to actual conditions.
S203: and splicing the upgrade command acquired in the engineering mode, the storage path and the package name, and writing the upgrade command into the command file.
In the step, after acquiring a storage path, a package name and an upgrade command of an OTA upgrade package in external storage equipment connected externally, the android terminal splices the storage path, the package name and the upgrade command to form a spliced command and writes the spliced command into a command file/cache/recovery/command.
It should be noted that, the splicing scheme splices according to the modes of the upgrade command, the storage path and the upgrade package name. For example, when the external storage device is a usb disk and the packet name of the OTA upgrade packet is update/zip, the spliced command is-update_packet=/usb/dloadota/update/zip, and when the external storage device is an SD card and the packet name of the OTA upgrade packet is update/zip, the spliced command is-update_packet=/sdcard/dloadota/update/zip.
S204: when the android terminal is restarted to a recovery mode, a command in a command file is operated, a dloadota field is included in a storage path, and an OTA upgrading packet is adopted to carry out OTA upgrading if a product serial number SN of the android terminal is in a white list preset in the android terminal.
In this step, after the terminal device writes the spliced command into the command file, the android device is restarted to a recovery mode by calling the android interface, and at this time, the command in the command file is automatically operated in the recovery mode. And further judging whether the storage path of the OTA upgrade packet contains a dloadota field, if the storage path contains the dloadota field, indicating that the OTA upgrade packet is the upgrade packet which is stored in the external storage device and needs local OTA upgrade, and further acquiring the SN code of the android terminal. And judging whether the SN code is in a preset white list in the android terminal, if so, indicating that the android terminal meets the upgrading requirement and can be upgraded, and adopting an OTA upgrading packet to carry out OTA upgrading. And after the upgrading is finished, the OTA upgrading packet is not deleted.
It should be noted that, the preset white list is stored in the existing system version of the android terminal, and is set in the system version by a worker to determine whether the SN code of the installation Zhuo Zhongduan is in the white list, and the SN code of the android terminal to be upgraded is stored in the white list.
It should be noted that, if multiple local OTA upgrades are required, step S201 in this embodiment may be performed once during each upgrade, or may be performed once during the first upgrade, and an OTA upgrade button is locally added, so that step S201 is not required to be performed when the local OTA upgrade is performed subsequently, and step S202 may be directly performed.
According to the android terminal local OTA system upgrading method, the OTA upgrading button is locally added in the engineering mode, after a user clicks the button, a storage path and a package name of an OTA upgrading package stored in the external storage device are obtained, a write command file is spliced with an upgrading command, the command is executed after the command enters the recovery mode, the fact that a dloadota field is included in the storage path is determined, the product serial number SN of the android terminal is in a white list preset in the android terminal, OTA upgrading is carried out, local OTA upgrading is achieved, and upgrading safety and controllability can be guaranteed.
Fig. 3 is a schematic flow chart of a second embodiment of an android terminal local OTA system upgrading method provided by the present invention, and as shown in fig. 3, the android terminal local OTA system upgrading method specifically includes the following steps:
s301: in response to a user operation, an engineering mode is entered and an OTA upgrade button is added locally.
S302: and after detecting that the user clicks the OTA upgrade button, acquiring a storage path and a package name of an OTA upgrade package in external storage equipment connected externally.
S303: and splicing the upgrade command acquired in the engineering mode, the storage path and the package name, and writing the upgrade command into the command file.
It should be noted that, the steps S301 to S303 are similar to the steps S201 to S203 in the first embodiment, and are not repeated here.
S304: when the android terminal is restarted to the recovery mode, a command in a command file is operated, a dloadota field is included in a storage path, and if the product serial number SN of the android terminal is not in a white list preset in the android terminal, the OTA upgrading process is exited.
In this step, after the terminal device writes the spliced command into the command file, the android device is restarted to a recovery mode by calling the android interface, and at this time, the command in the command file is automatically operated in the recovery mode. And further judging whether the storage path of the OTA upgrade packet contains a dloadota field, if the storage path contains the dloadota field, indicating that the OTA upgrade packet is the upgrade packet which is stored in the external storage device and needs local OTA upgrade, and further acquiring the SN code of the android terminal. And judging whether the SN code is in a preset white list in the android terminal, and if the SN code is not in the preset white list in the android terminal, indicating that the android terminal does not meet the upgrading requirement, exiting the OTA upgrading process.
According to the method for upgrading the local OTA system of the android terminal, in the process of carrying out OTA upgrading, whether the product serial number SN of the android terminal is in the preset white list in the android terminal is judged, and if the product serial number SN is not in the white list, the upgrading process is exited, so that the safety and controllability of upgrading are ensured.
Fig. 4 is a flow chart of a third embodiment of an android terminal local OTA system upgrading method provided by the present invention, and when an OTA upgrade package is a native OTA upgrade package downloaded from a server of a manufacturer of an android terminal to an internal storage of the android terminal, the local OTA upgrade package may also be upgraded by a local OTA upgrade method. As shown in fig. 4, the method for upgrading the local OTA system of the android terminal specifically includes the following steps:
s401: in response to a user operation, an engineering mode is entered and an OTA upgrade button is added locally.
It should be noted that, the step S401 is similar to the step S201 in the first embodiment, and will not be repeated here.
S402: and after detecting that the user clicks the OTA upgrade button, acquiring a storage path and a package name of the original OTA upgrade package.
In this step, because the OTA upgrade package is a native OTA upgrade package stored in the android terminal by being downloaded from a server of a manufacturer of the android terminal, after detecting that the user clicks the OTA upgrade button, the android terminal obtains a storage path and a package name of the native OTA upgrade package, and the storage path of the native upgrade package does not include the dloadota field.
It should be noted that the native OTA upgrade package refers to an OTA upgrade package generated by a server of an android terminal manufacturer, the server may select an android terminal to push the native OTA upgrade package, and the selected android terminal may download the native OTA upgrade package.
S403: and splicing the upgrade command acquired in the engineering mode, the storage path and the package name, and writing the upgrade command into the command file.
It should be noted that, the step S403 is similar to the step S203 in the first embodiment, and will not be repeated here.
S404: and when the android terminal is restarted to the recovery mode, running a command in the command file, determining that the OTA upgrade package is a native OTA upgrade package if a dloadota field is not included in the storage path, and upgrading according to the native OTA upgrade package.
In this step, after the terminal device writes the spliced command into the command file, the android device is restarted to a recovery mode by calling the android interface, and at this time, the command in the command file is automatically operated in the recovery mode. And further judging whether the storage path of the OTA upgrade package contains a dloadota field, if the storage path does not contain the dloadota field, indicating that the OTA upgrade package is a native OTA upgrade package, and upgrading according to the native OTA upgrade package.
It should be noted that, the method of upgrading according to the native OTA upgrade package does not need to determine whether the SN code of the android terminal is in the white list, because the SN code can be downloaded to the native OTA package to indicate that the android terminal is the selected terminal, and upgrade security is ensured.
S405: and deleting the original OTA upgrade package after finishing OTA upgrade.
In this step, after the android terminal completes the OTA upgrade, the original OTA upgrade package is stored in the internal storage, which occupies a memory space and needs to be deleted.
According to the android terminal local OTA system upgrading method, when the OTA upgrading packet is the original OTA upgrading packet, the local OTA upgrading scheme is realized by upgrading the local OTA, and meanwhile upgrading safety is guaranteed and memory space is reduced.
The following are examples of the apparatus of the present invention that may be used to perform the method embodiments of the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method of the present invention.
Fig. 5 is a schematic structural diagram of a first embodiment of an apparatus for upgrading a local OTA system of an android terminal according to the present invention; as shown in fig. 5, the local OTA system upgrading device 50 of the android terminal includes:
a first processing module 51, configured to enter an engineering mode and locally add an OTA upgrade button in response to a user operation;
the obtaining module 52 is configured to obtain a storage path and a packet name of an OTA upgrade packet in an external storage device connected externally after detecting that the user clicks the OTA upgrade button;
the second processing module 53 is configured to splice the upgrade command acquired in the engineering mode, where the storage path and the packet name are spliced, and write a command file;
and the upgrade module 54 is configured to run the command in the command file when the android terminal is restarted to the recovery mode, wherein the storage path includes a dloadota field, and the product serial number SN of the android terminal is in a white list preset in the android terminal, and then perform OTA upgrade by using the OTA upgrade package.
Further, the upgrade module 54 is specifically configured to:
when the android terminal is restarted to a recovery mode, running a command in the command file, and judging whether a dloadota field is contained in the storage path of the OTA upgrade package;
if the storage path contains a dloadota field, acquiring the SN code of the android terminal;
judging whether the SN is in a preset white list in the android terminal;
and if the SN code is in a white list preset in the android terminal, carrying out OTA upgrading by adopting the OTA upgrading packet.
Further, the upgrade module 54 is specifically further configured to determine that the OTA upgrade package is a native OTA upgrade package if the dloadota field is not included in the storage path, and upgrade the OTA upgrade package according to the native OTA upgrade package.
Further, the upgrade module 54 is specifically further configured to exit the OTA upgrade procedure if the SN code is not in the white list preset in the android terminal.
The android terminal local OTA system upgrading device provided in this embodiment is configured to execute the technical scheme in any one of the foregoing method embodiments, and its implementation principle and technical effect are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of a second embodiment of an apparatus for upgrading a local OTA system of an android terminal provided by the present invention; as shown in fig. 6, the local OTA system upgrading device 50 of the android terminal further includes:
and the deleting module 55 is configured to delete the native OTA upgrade package after the OTA upgrade is completed if the dloadota field is not included in the storage path.
And a third processing module 56, configured to invoke the android interface and restart the android device to the recovery mode.
A display module 57 for displaying the OTA upgrade button on a graphical user interface.
A generating module 58, configured to generate, in the engineering mode, the upgrade command for upgrading the OTA.
The android terminal local OTA system upgrading device provided in this embodiment is configured to execute the technical scheme in any one of the foregoing method embodiments, and its implementation principle and technical effect are similar, and are not described herein again.
Fig. 7 is a schematic structural diagram of an android terminal provided by the invention. As shown in fig. 7, the android terminal 70 includes:
a processor 71, a memory 72, and an external storage interface 73;
the memory 72 is for storing executable instructions of the processor 71;
wherein the processor 71 is configured to perform the technical solution of any of the method embodiments described above via execution of the executable instructions.
Alternatively, the memory 72 may be separate or integrated with the processor 71.
Optionally, when the memory 72 is a device independent from the processor 71, the android terminal 70 may further include:
and a bus for connecting the devices.
The android terminal is used for executing the technical scheme in any of the method embodiments, and the implementation principle and the technical effect are similar, and are not repeated here.
The embodiment of the invention also provides a readable storage medium, on which a computer program is stored, which when executed by a processor implements the technical solution provided in any of the foregoing embodiments.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program is used for realizing the technical scheme provided by any one of the method embodiments when being executed by a processor.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features can be replaced equivalently; such modifications and substitutions do not depart from the spirit of the invention.
Claims (11)
1. An upgrade method of an android Zhuo Zhongduan local OTA system is characterized by being applied to an android terminal, and comprises the following steps:
responding to the operation of a user, entering an engineering mode and locally adding an OTA upgrade button;
after detecting that a user clicks the OTA upgrade button, acquiring a storage path and a package name of an OTA upgrade package in external storage equipment connected externally;
splicing the storage path and the package name of the upgrade command acquired in the engineering mode, and writing the upgrade command into a command file;
and when the android terminal is restarted to a recovery mode, operating a command in the command file, wherein a dloadota field is included in the storage path, and the product serial number SN of the android terminal is in a white list preset in the android terminal, and performing OTA upgrading by adopting the OTA upgrading packet.
2. The method of claim 1, wherein when the android terminal is restarted to a recovery mode, running a command in the command file, wherein a dloadota field is included in the storage path, and a product serial number SN code of the android terminal is in a white list preset in the android terminal, performing OTA upgrade by using the OTA upgrade package, including:
when the android terminal is restarted to a recovery mode, running a command in the command file, and judging whether a dloadota field is contained in the storage path of the OTA upgrade package;
if the storage path contains a dloadota field, acquiring the SN code of the android terminal;
judging whether the SN is in a preset white list in the android terminal;
and if the SN code is in a white list preset in the android terminal, carrying out OTA upgrading by adopting the OTA upgrading packet.
3. The method according to claim 2, wherein the method further comprises:
if the storage path does not contain the dloadota field, determining that the OTA upgrade package is a native OTA upgrade package, and upgrading according to the native OTA upgrade package.
4. The method according to claim 2, wherein the method further comprises:
and if the SN code is not in the preset white list in the android terminal, exiting the OTA upgrading process.
5. The method according to any one of claims 1 to 4, further comprising:
if the storage path does not contain the dloadota field, deleting the original OTA upgrade package after the OTA upgrade is completed.
6. The method according to any one of claims 1 to 4, further comprising:
and calling an android interface, and restarting the android device to a recovery mode.
7. The method according to any one of claims 1 to 4, wherein in response to a user operation, entering an engineering mode and after locally adding an OTA upgrade button, the method further comprises:
displaying the OTA upgrade button on a graphical user interface;
correspondingly, after detecting that the user clicks the OTA upgrade button, the method further includes:
in the engineering mode, generating the upgrade command for upgrading the OTA.
8. An apparatus for upgrading a local OTA system of an ampere Zhuo Zhongduan, comprising:
the first processing module is used for responding to the operation of a user, entering an engineering mode and locally adding an OTA upgrading button;
the acquisition module is used for acquiring a storage path and a package name of an OTA upgrade package in external storage equipment connected externally after detecting that a user clicks the OTA upgrade button;
the second processing module is used for splicing the upgrade command acquired in the engineering mode, the storage path and the package name, and writing a command file;
and the upgrading module is used for running the command in the command file when the android terminal is restarted to a recovery mode, wherein the storage path comprises a dloadota field, and the OTA upgrading packet is adopted to carry out OTA upgrading if the product serial number SN of the android terminal is in a white list preset in the android terminal.
9. An apparatus Zhuo Zhongduan, comprising:
a processor, a memory, an external storage interface;
the memory is used for storing executable instructions of the processor;
wherein the processor is configured to perform the android terminal local OTA system upgrade method of any one of claims 1 to 7 via execution of the executable instructions.
10. A readable storage medium having stored thereon a computer program, which when executed by a processor implements the android terminal local OTA system upgrade method of any one of claims 1 to 7.
11. A computer program product comprising a computer program for implementing the android terminal local OTA system upgrade method of any one of claims 1 to 7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111592865.8A CN116339765A (en) | 2021-12-23 | 2021-12-23 | Android terminal local OTA system upgrading method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111592865.8A CN116339765A (en) | 2021-12-23 | 2021-12-23 | Android terminal local OTA system upgrading method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116339765A true CN116339765A (en) | 2023-06-27 |
Family
ID=86890131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111592865.8A Pending CN116339765A (en) | 2021-12-23 | 2021-12-23 | Android terminal local OTA system upgrading method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116339765A (en) |
-
2021
- 2021-12-23 CN CN202111592865.8A patent/CN116339765A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221860B (en) | Configuration file processing method, device, terminal and medium | |
CN107506221B (en) | Application program upgrading method, device and equipment | |
CN110096424B (en) | Test processing method and device, electronic equipment and storage medium | |
CN105867947A (en) | Data processing method and device after upgrades of preset applications | |
CN107220074B (en) | Method and device for accessing and upgrading supporting layer software function | |
CN112882734B (en) | Upgrading method and device, computer equipment and medium | |
CN110750280B (en) | Android platform-based application upgrading method and system and storage medium | |
CN115516419A (en) | Application installation method, device and equipment and computer readable storage medium | |
CN110968331A (en) | Method and device for running application program | |
CN115202686A (en) | Virtualization system upgrading method and device, electronic equipment and storage medium | |
CN111538523A (en) | Differential upgrading method, device and storage medium | |
CN105867962A (en) | System upgrading method and device | |
CN111400091B (en) | Factory setting restoration method, factory setting restoration device and mobile terminal | |
CN111782236A (en) | System software upgrading method and device, storage medium and all-in-one machine equipment | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN114780019A (en) | Electronic device management method and device, electronic device and storage medium | |
CN112181467B (en) | Method and device for upgrading memory firmware of terminal, terminal and storage medium | |
CN113867768A (en) | Operating system processing method and device, electronic equipment and storage medium | |
CN116339765A (en) | Android terminal local OTA system upgrading method, device, equipment and medium | |
CN110764809A (en) | OTA APN upgrading method, device, equipment and medium | |
CN114296764A (en) | System upgrading method and device, storage medium and electronic equipment | |
US20140137092A1 (en) | Information processing apparatus, information processing system, non-transitory computer-readable storage medium having stored therein information processing program, and information processing method | |
CN116069366A (en) | Client application program updating method and device, storage medium and electronic equipment | |
CN112379943A (en) | Plug-in application method and device of Electron application program and storage medium | |
CN112882733A (en) | Application updating method and device, electronic equipment and storage medium |
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 |