CN108829423B - System upgrading method, device, equipment and storage medium for Android equipment - Google Patents

System upgrading method, device, equipment and storage medium for Android equipment Download PDF

Info

Publication number
CN108829423B
CN108829423B CN201810687460.4A CN201810687460A CN108829423B CN 108829423 B CN108829423 B CN 108829423B CN 201810687460 A CN201810687460 A CN 201810687460A CN 108829423 B CN108829423 B CN 108829423B
Authority
CN
China
Prior art keywords
android
file
equipment
system upgrading
upgrading
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
CN201810687460.4A
Other languages
Chinese (zh)
Other versions
CN108829423A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810687460.4A priority Critical patent/CN108829423B/en
Publication of CN108829423A publication Critical patent/CN108829423A/en
Application granted granted Critical
Publication of CN108829423B publication Critical patent/CN108829423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the invention discloses a system upgrading method, a system upgrading device, equipment and a storage medium of Android equipment, wherein in the method, through acquiring a system upgrading instruction, USB equipment connected with the Android equipment is determined as storage equipment, and a specified image file in the storage equipment is loaded to display a system upgrading interface; and analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment. The system upgrading instruction is received by the Android device in the starting process, and is triggered by an infrared remote controller matched with the Android device. The configuration freedom degree of the Android equipment in the system upgrading process is improved, the operation convenience is provided, and the system upgrading efficiency is improved.

Description

System upgrading method, device, equipment and storage medium for Android equipment
Technical Field
The present invention relates to a system upgrading technology, and in particular, to a method, an apparatus, a device, and a storage medium for upgrading a system of an Android device.
Background
In the field of Android system research, a system used when the whole equipment is normally started is generally changed into an Android system, and a system used when the whole equipment is subjected to system upgrade (namely, the Android system is upgraded) is changed into a Recovery system. The Android system generally completes system Recovery and upgrade through a Recovery system, wherein the system Recovery and upgrade include factory settings Recovery, OTA upgrade, patch upgrade and firmware upgrade.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art. In the prior art, when a complete device using an Android system is powered on and started, a Recovery key on the complete device needs to be used for system upgrade of the Android device. In order to seek beauty, the whole set of equipment such as the set top box supporting the infrared remote controller removes the Recovery key, and the Android system cannot be upgraded.
In addition, when the Recovery system is used for upgrading, the Recovery system is limited to a Recovery mirror image which is burnt into the whole equipment firstly, and the configurable degree of freedom is low; in the prior art, path files can be generated by scanning all storage devices and then the system is restarted to be upgraded, and configuration parameter files with only system upgrade file paths are generated by the unique identification codes of the storage devices.
Disclosure of Invention
The embodiment of the invention provides a system upgrading method, device, equipment and storage medium for Android equipment, so that the configuration freedom of the Android equipment in the system upgrading process is improved, the convenience of operation is provided, and the system upgrading efficiency is improved.
In a first aspect, an embodiment of the present invention provides a system upgrading method for an Android device, where the method includes:
acquiring a system upgrading instruction, wherein the system upgrading instruction is received by the Android device in a starting process and is triggered by an infrared remote controller matched with the Android device;
determining that the USB equipment connected with the Android equipment is storage equipment, and loading a specified image file in the storage equipment to display a system upgrading interface;
and analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
In a second aspect, an embodiment of the present invention further provides a system upgrading apparatus for Android devices, where the apparatus includes:
the system comprises an upgrading instruction acquisition module, a starting module and a remote control module, wherein the upgrading instruction acquisition module is used for acquiring a system upgrading instruction, the system upgrading instruction is received by the Android device in the starting process, and the system upgrading instruction is triggered by an infrared remote controller matched with the Android device;
the upgrading interface display module is used for determining the USB equipment connected with the Android equipment as storage equipment and loading a specified image file in the storage equipment to display a system upgrading interface;
and the system upgrading file loading module is used for analyzing and loading the corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where when the processor executes the computer program, the system upgrade method for the Android device according to any one of embodiments of the present invention is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the system upgrade method for Android devices according to any embodiment of the present invention.
In the embodiment of the invention, a system upgrading instruction is obtained, the USB device connected with the Android device is determined as a storage device, and a specified image file in the storage device is loaded to display a system upgrading interface; and analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment. The system upgrading instruction is received by the Android device in the starting process, and is triggered by an infrared remote controller matched with the Android device. The configuration freedom degree of the Android equipment in the system upgrading process is improved, the operation convenience is provided, and the system upgrading efficiency is improved.
Drawings
Fig. 1 is a flowchart of a system upgrading method for an Android device according to a first embodiment of the present invention;
fig. 2 is a flowchart of a system upgrading method for an Android device in a second embodiment of the present invention;
fig. 3 is a flowchart of a system upgrading method for an Android device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system upgrading apparatus for Android devices in a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. 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.
The infrared remote control technology is used for remotely controlling a target through the infrared technology, most intelligent equipment is provided with an infrared remote controller matched with the intelligent equipment, and the intelligent equipment is controlled through remotely operating the infrared remote controller. The intelligent device is an Android system, and the intelligent device is called an Android intelligent device, namely an Android device for short. In order to improve the performance of each application program in the Android device and the device performance, the system of the Android device needs to be upgraded. The embodiment of the invention provides a system upgrading method for Android equipment, which is applied to Android equipment supporting an infrared remote controller to upgrade the system of the Android equipment.
Example one
Fig. 1 is a flowchart of a system upgrade method for an Android device according to an embodiment of the present invention, where the method is applicable to a system upgrade situation in an Android device supporting an infrared remote controller, and the method may be executed by a system upgrade apparatus for an Android device according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. Referring to fig. 1, the method may specifically include the following steps:
and S110, acquiring a system upgrading instruction.
Specifically, when a user has a demand for upgrading the Android device, the Android device upgrading method is realized by operating the set keys on the infrared remote controller, wherein the set keys can be keys specially arranged at a fixed position of the infrared remote controller, for example, the keys at the upper right corner are set to be red, and when the keys are clicked, the infrared remote controller can send a system upgrading instruction to the Android device. In addition, the infrared remote controller can also set fixed keys into multiplexing keys, for example, the number key 1 and the power key are pressed simultaneously, and a system upgrading instruction can be sent to the Android device.
The system upgrading instruction is received by the Android device in the starting process, and is triggered by an infrared remote controller matched with the Android device.
For example, the system upgrade process of the Android device generally occurs at the time of starting, that is, the Android device is connected to a power supply for starting. The Android device is exemplified by an Android set-top box, which is a device for connecting a television with an external signal source, and can convert a compressed digital signal into television content and display the television content on the television. The method comprises the steps that a user connects an Android set top box with a power supply to start the machine, the Android set top box receives a system upgrading instruction in the starting process, the system upgrading instruction is triggered through an infrared remote controller, the infrared remote controller is matched with the Android set top box, namely, the system upgrading instruction is triggered through operating corresponding keys on the infrared remote controller.
S120, determining that the USB equipment connected with the Android equipment is storage equipment, and loading a specified image file in the storage equipment to display a system upgrading interface.
Specifically, when it is detected that an external storage device is accessed in the Android device, the device type of the accessed external storage device is acquired, and the device type of the accessed external storage device is determined by matching the device type with a device type list pre-stored in the Android device, and optionally, the device type may be a card-free device, a usb disk mouse, a keyboard, or the like.
And when the USB equipment connected with the Android equipment is determined to be the storage equipment, loading the specified image file in the storage equipment, wherein the specified image file is used for displaying a system upgrading interface. And if the specified image file is successfully loaded, entering a system upgrading interface, and if the specified image file is unsuccessfully loaded, normally starting the Android device.
The image file refers to a series of specific files which are made into a single file according to a certain format so as to be convenient for a user to download and use, can be identified by specific software and can be directly recorded on an optical disc, and can comprise an operating system or a game and the like. Optionally, the image file includes a system upgrade interface related file, and the system upgrade interface is displayed after the image file is loaded, wherein the storage form of the image file is record.
Optionally, it may be determined that the USB device connected to the Android device is a storage device in the following manner, specifically: initializing the Android device hardware and loading a USB device driver; and after detecting that the USB equipment is accessed, determining that the USB equipment is storage equipment.
Specifically, in the Android device, the Android system end bootstrap program initializes Android device hardware by loading a USB Host Controller and a USB Host HUB driver, and then loads a USB device driver. After detecting that the USB Device is accessed, detecting whether the accessed USB Device is a USB Storage Device (USB Mass Storage Device), if so, indicating that the USB Device is a Storage Device. In one particular example, the USB memory device may be a USB flash drive.
And S130, analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
Specifically, when entering a system upgrade interface, whether a specified configuration parameter file and a specified system upgrade file exist in the storage device is automatically determined, where the configuration parameter file may be a file in a parameter. And if the specified configuration parameter file and the corresponding system upgrading file exist in the storage equipment, loading the corresponding system upgrading file according to the specified configuration parameter file. The configuration parameter file corresponds to the system upgrade file, the specified configuration parameter file refers to that the parameter file is a file associated with system upgrade and not a file with other functions, and the other functions may be data storage or picture display.
The configuration parameter file is used for representing the storage position of a system upgrading file, and the system upgrading file is used for upgrading the Android system.
Optionally, loading a system upgrade file according to the configuration parameter file in the storage device includes: determining the storage position of the corresponding system upgrading file according to the specified configuration parameter file in the storage device; and acquiring the system upgrading file at the storage position, analyzing and loading the system upgrading file.
The configuration parameter file is used for representing the position of the system upgrading file, and can also be used for indicating actions and the like which need to be completed by the system upgrading interface, and optionally, the actions include displaying set starting animations and the like. The system upgrading file is used for upgrading and covering system software in the whole Android equipment. For example, the original system in the Android box is Android5.1, and if the system is to be upgraded to Android7.1, the system upgrade file is a file required by the upgrade of Android5.1 to Android 7.1. And acquiring the system upgrade file from the storage position of the system upgrade file determined according to the configuration parameter file, analyzing and loading the system upgrade file to realize system upgrade.
In the embodiment of the invention, a system upgrading instruction is obtained, the USB device connected with the Android device is determined as a storage device, and a specified image file in the storage device is loaded to display a system upgrading interface; and analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment. The system upgrading instruction is received by the Android device in the starting process, and is triggered by an infrared remote controller matched with the Android device. The configuration freedom degree of the Android equipment in the system upgrading process is improved, the operation convenience is provided, and the system upgrading efficiency is improved.
On the basis of the above technical solution, after parsing and loading the corresponding system upgrade file according to the configuration parameter file specified in the storage device, the method further includes: prompting the message of successful upgrade or failed upgrade in the form of voice broadcast or characters; and restarting the Android system after setting time.
After loading the system upgrade file, prompting the information of system upgrade success or upgrade failure to the user in the form of voice broadcast or characters, optionally, while upgrading successfully, broadcasting the system upgrade success by voice, or displaying the system upgrade success in a font of a set style in a system upgrade interface; and when the upgrading fails, the Android device is normally started, and the system upgrading fails is broadcasted in a voice mode, or the system upgrading succeeds is displayed in a font with a set style on a starting animation display page of the Android device. After the corresponding prompt is carried out, the Android device is restarted after a set time, and the set time can be 5 seconds. The user can acquire the progress of system upgrading in time and more intuitively know whether the system normally completes the upgrading process.
Optionally, after parsing and loading the corresponding system upgrade file according to the configuration parameter file specified in the storage device, the method further includes: and clearing the data area and the cache area of the Android system in the Android device.
Specifically, the data area and the cache area of the Android system are cleared, so that the interference of files or data cached in the original system to the upgraded system and data is avoided, and the performance of the upgraded system is improved. In a specific example, the corresponding operation is performed according to the parameters in the configuration parameter file, and the following parameters are provided:
--wipe_data
--wipe_cache
--update_package=/udisk/update.zip
the above example of the configuration parameter file indicates that the system upgrade file is update in the usb disk, and the DATA area and the CACHE area of the Android system in the Android device are cleared after the system upgrade is completed.
In the embodiment of the invention, the Android device is upgraded through the image file, the configuration parameter file and the upgrade file in the external storage device, and the defect that the Android device cannot be upgraded due to the fact that no external upgrade key is arranged in the Android device in the prior art is overcome, or the inconvenience caused by the fact that sharp appliances such as toothpicks need to be found and the system upgrade key on the Android device needs to be pressed for a long time when the Android device is provided with the external upgrade key.
Example two
Fig. 2 is a flowchart of a system upgrade method for an Android device according to a second embodiment of the present invention, where "loading a specified image file in the storage device to display a system upgrade interface" is optimized based on the second embodiment. Referring to fig. 2, the method may specifically include the following steps:
and S210, acquiring a system upgrading instruction.
And S220, determining that the USB equipment connected with the Android equipment is storage equipment.
And S230, loading the specified image file in the storage device into the memory of the Android device.
Specifically, the Android system end bootstrap program loads a specified image file in the Android device from the storage device to a specified position in a memory of the whole Android device, wherein the specified position is used for storing the image file, optionally, the specified position is also used for storing an application program capable of identifying the image file, and the specified image file can be read through the application program.
S240, calculating the checksum of the data area in the memory, wherein the data of the data area corresponds to the specified mirror image file.
And after the specified mirror image file is loaded, carrying out checksum calculation processing on a data area in the data loaded in the memory. The checksum refers to a sum, usually expressed in hexadecimal notation, used in the field of data processing and communication for checking a set of data items at a destination, and is usually used in communication for ensuring the integrity and accuracy of data. The data of the data area corresponds to the specified mirror image file, and the mirror image files stored in different data areas are different, for example, when a plurality of specified mirror image files exist, the mirror image files are respectively stored in different data areas.
And S250, determining that the checksum is the same as the target checksum, and displaying a system upgrading interface.
Specifically, the calculated checksum is compared with a target checksum, and if the checksum is the same as the target checksum, a system upgrade interface is displayed to indicate that the loading of the image file is successful; if the checksum is different from the target checksum, it indicates that the loading of the image file fails, and the Android device is normally started.
The target checksum is a checksum recorded in a header area of the memory, the data area is used for storing user data, and the header area is used for identifying the data area. Specifically, the header area may be an identification area of the data area, and the data area corresponding to the identification may be determined by searching for the identification of the header area. And acquiring user data in the corresponding data area, wherein the user data can be system data or application program data stored by a user.
And S260, analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
In the embodiment of the invention, the specified image file in the storage device is loaded into the memory of the Android device, the checksum of the data area in the memory is calculated, the data of the data area corresponds to the specified image file, the checksum is determined to be the same as the target checksum, and then the system upgrading interface is displayed. Whether the mirror image file is loaded successfully or not is judged, and the configuration parameter file and the system upgrading file are continuously loaded after the mirror image file is determined to be loaded successfully.
EXAMPLE III
Fig. 3 is a flowchart of a system upgrade method for an Android device according to a third embodiment of the present invention, where "obtaining a system upgrade instruction" is optimized based on the foregoing embodiments. Referring to fig. 3, the method may specifically include the following steps:
and S310, obtaining a key code value of key operation of the user, wherein the key is an infrared remote controller key matched with the Android equipment.
When a user has a requirement on upgrading an Android device system, acquiring a key code value of a key of an infrared remote controller matched with the Android device clicked by the user. Wherein, different key symbols on the infrared remote controller correspond to different key code values, and different key code values correspond to different infrared remote control functions. Taking an infrared remote controller matched with an intelligent television as an example, if the key symbol is CH-, and the corresponding key code value is 00-FF-A2-5D, the key has the function of switching the channel of the intelligent television; the key symbol is PLAY/PAUSE, and the corresponding key code value is 00-FF-C2-3D, which indicates that the function of the key is to PLAY/PAUSE the current display picture; the key symbol is the numeric key 5 and the corresponding key code value is 00-FF-38-C7, indicating that the function of the key is to switch to channel 5.
And S320, if the key code value is the set key code value, acquiring a system upgrading instruction corresponding to the key code value.
Specifically, the acquired key code value is identified, and when the key code value is determined to be the set key code value, a system upgrade instruction corresponding to the key code value is acquired. In a specific example, the set key code value is 00-FF-22-DD, and after the user clicks the key set by the infrared remote controller, the key code value acquired by the Android device is also 00-FF-22-DD, which indicates that the system upgrade instruction of the user is acquired.
S330, determining that the USB equipment connected with the Android equipment is storage equipment, and loading a specified image file in the storage equipment to display a system upgrading interface.
And S340, analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
In the embodiment of the invention, by acquiring the key code value of the key operation of the user, wherein the key is an infrared remote controller key matched with the Android equipment, and if the key code value is the set key code value, the system upgrading instruction corresponding to the key code value is acquired. The system upgrading instruction is acquired by operating the keys of the infrared remote controller, in addition, the system upgrading is realized by combining the infrared remote controller with the storage device, the hardware cost is reduced, only the appointed keys with the system upgrading function on the remote controller are needed to be pressed, and the convenience of operation is improved.
Example four
Fig. 4 is a schematic structural diagram of a system upgrading apparatus for Android devices according to a fourth embodiment of the present invention, where the apparatus is suitable for executing a system upgrading method for Android devices according to the fourth embodiment of the present invention. As shown in fig. 4, the apparatus may specifically include:
an upgrade instruction obtaining module 410, configured to obtain a system upgrade instruction, where the system upgrade instruction is received by the Android device during a boot process, and the system upgrade instruction is triggered by an infrared remote controller that is matched with the Android device;
the upgrade interface display module 420 is configured to determine that a USB device connected to the Android device is a storage device, and load a specified image file in the storage device to display a system upgrade interface;
and a system upgrade file loading module 430, configured to parse and load a corresponding system upgrade file according to the configuration parameter file specified in the storage device.
Further, the upgrade interface display module 420 includes a display sub-module, where the display sub-module is specifically configured to:
loading the specified image file in the storage device into the memory of the Android device;
calculating the checksum of a data area in the memory, wherein the data of the data area corresponds to the specified mirror image file;
if the check sum is determined to be the same as the target check sum, displaying a system upgrading interface;
the target checksum is a checksum recorded in a header area of the memory, wherein the data area is used for storing user data, and the header area is used for identifying the data area.
Further, the configuration parameter file is used for representing a storage position of a system upgrading file, and the system upgrading file is used for upgrading an Android system;
correspondingly, the system upgrade file loading module 430 is specifically configured to:
determining the storage position of the corresponding system upgrading file according to the specified configuration parameter file in the storage device;
and acquiring the system upgrading file at the storage position, analyzing and loading the system upgrading file.
Further, the upgrade instruction obtaining module 410 is specifically configured to:
acquiring a key code value of key operation of a user, wherein the key is an infrared remote controller key matched with the Android equipment;
and if the key code value is the set key code value, acquiring a system upgrading instruction corresponding to the key code value.
Further, the upgrade interface display module includes a determination submodule, where the determination submodule is specifically configured to:
initializing the Android device hardware and loading a USB device driver;
and after detecting that the USB equipment is accessed, determining that the USB equipment is storage equipment.
Further, the method also comprises the following steps:
the prompting module is used for prompting the message of successful upgrade or failed upgrade in a voice broadcast or text mode after analyzing and loading the corresponding system upgrade file according to the configuration parameter file appointed in the storage device;
and the system restarting module is used for restarting the Android system after the set time.
Further, the method also comprises the following steps:
and the data clearing module is used for clearing the data area and the cache area of the Android system in the Android device after analyzing and loading the corresponding system upgrade file according to the configuration parameter file specified in the storage device.
The system upgrading device for the Android equipment, provided by the embodiment of the invention, can execute the system upgrading method for the Android equipment, provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the system upgrade method for the Android device provided by the embodiment of the present invention:
that is, the processing unit implements, when executing the program: acquiring a system upgrading instruction, wherein the system upgrading instruction is received by the Android device in a starting process and is triggered by an infrared remote controller matched with the Android device; determining that the USB equipment connected with the Android equipment is storage equipment, and loading a specified image file in the storage equipment to display a system upgrading interface; and analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
EXAMPLE six
The sixth embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored thereon, and when the computer program is executed by a processor, the method for upgrading a system of an Android device provided in all the embodiments of the present invention includes:
that is, the program when executed by the processor implements: acquiring a system upgrading instruction, wherein the system upgrading instruction is received by the Android device in a starting process and is triggered by an infrared remote controller matched with the Android device; determining that the USB equipment connected with the Android equipment is storage equipment, and loading a specified image file in the storage equipment to display a system upgrading interface; and analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
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 (9)

1. A system upgrading method for Android equipment is characterized by comprising the following steps:
acquiring a system upgrading instruction, wherein the system upgrading instruction is received by the Android device in a starting process and is triggered by an infrared remote controller matched with the Android device;
determining that the USB equipment connected with the Android equipment is storage equipment, and loading a specified image file in the storage equipment to display a system upgrading interface;
analyzing and loading a corresponding system upgrade file according to the configuration parameter file specified in the storage device, specifically comprising: determining the storage position of the corresponding system upgrading file according to the specified configuration parameter file in the storage device;
acquiring the system upgrading file at the storage position, analyzing and loading the system upgrading file;
the configuration parameter file is used for representing the storage position of a system upgrading file, and the system upgrading file is used for upgrading the Android system.
2. The method of claim 1, wherein loading the specified image file in the storage device to expose a system upgrade interface comprises:
loading the specified image file in the storage device into the memory of the Android device;
calculating the checksum of a data area in the memory, wherein the data of the data area corresponds to the specified mirror image file;
if the check sum is determined to be the same as the target check sum, displaying a system upgrading interface;
the target checksum is a checksum recorded in a header area of the memory, wherein the data area is used for storing user data, and the header area is used for identifying the data area.
3. The method of claim 1, wherein obtaining system upgrade instructions comprises:
acquiring a key code value of key operation of a user, wherein the key is an infrared remote controller key matched with the Android equipment;
and if the key code value is the set key code value, acquiring a system upgrading instruction corresponding to the key code value.
4. The method according to claim 1, wherein the determining that the USB device connected to the Android device is a storage device comprises:
initializing the Android device hardware and loading a USB device driver;
and after detecting that the USB equipment is accessed, determining that the USB equipment is storage equipment.
5. The method of claim 1, wherein after parsing and loading the corresponding system upgrade file according to the configuration parameter file specified in the storage device, further comprising:
prompting the message of successful upgrade or failed upgrade in the form of voice broadcast or characters;
and restarting the Android system after setting time.
6. The method according to any one of claims 1 to 5, wherein after parsing and loading the corresponding system upgrade file according to the configuration parameter file specified in the storage device, the method further comprises:
and clearing the data area and the cache area of the Android system in the Android device.
7. The system upgrading device of the Android equipment is characterized by comprising the following components:
the system comprises an upgrading instruction acquisition module, a starting module and a remote control module, wherein the upgrading instruction acquisition module is used for acquiring a system upgrading instruction, the system upgrading instruction is received by the Android device in the starting process, and the system upgrading instruction is triggered by an infrared remote controller matched with the Android device;
the upgrading interface display module is used for determining the USB equipment connected with the Android equipment as storage equipment and loading a specified image file in the storage equipment to display a system upgrading interface;
the system upgrading file loading module is used for analyzing and loading a corresponding system upgrading file according to the configuration parameter file appointed in the storage equipment;
the system upgrade file loading module is specifically configured to: determining the storage position of the corresponding system upgrading file according to the specified configuration parameter file in the storage device; acquiring the system upgrading file at the storage position, analyzing and loading the system upgrading file;
the configuration parameter file is used for representing the storage position of a system upgrading file, and the system upgrading file is used for upgrading the Android system.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-6 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201810687460.4A 2018-06-28 2018-06-28 System upgrading method, device, equipment and storage medium for Android equipment Active CN108829423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810687460.4A CN108829423B (en) 2018-06-28 2018-06-28 System upgrading method, device, equipment and storage medium for Android equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810687460.4A CN108829423B (en) 2018-06-28 2018-06-28 System upgrading method, device, equipment and storage medium for Android equipment

Publications (2)

Publication Number Publication Date
CN108829423A CN108829423A (en) 2018-11-16
CN108829423B true CN108829423B (en) 2022-04-15

Family

ID=64133526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810687460.4A Active CN108829423B (en) 2018-06-28 2018-06-28 System upgrading method, device, equipment and storage medium for Android equipment

Country Status (1)

Country Link
CN (1) CN108829423B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069270A (en) * 2019-04-24 2019-07-30 珠海格力电器股份有限公司 Air-conditioning method for updating program, device, air-conditioning and system
CN111124455B (en) * 2019-12-26 2023-08-04 上海派能能源科技股份有限公司 Battery management system upgrading method, device, server and storage medium
CN111290773B (en) * 2020-03-12 2024-01-19 深圳Tcl新技术有限公司 System upgrade method, device and readable storage medium
CN111897526B (en) * 2020-07-16 2024-02-13 重庆长安汽车股份有限公司 Workpiece feature remote control detection method based on polymorks
CN112083963B (en) * 2020-09-04 2024-04-16 深圳市视美泰技术股份有限公司 System function configuration method based on external storage medium and related equipment
CN113642008B (en) * 2021-10-14 2021-12-28 飞天诚信科技股份有限公司 Method and device for realizing replacement of startup picture of intelligent POS equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802083A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Set top box updating method based on Android system and set top box
WO2014134989A2 (en) * 2013-11-07 2014-09-12 中兴通讯股份有限公司 Android terminal and upgrade method therefor
CN104572078A (en) * 2014-12-16 2015-04-29 深圳市同洲电子股份有限公司 Realization method and system of Bluetooth function under Android recovery mode
CN105744365A (en) * 2016-02-01 2016-07-06 烽火通信科技股份有限公司 Upgrading method of intelligent set-top box based on Android system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802083A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Set top box updating method based on Android system and set top box
WO2014134989A2 (en) * 2013-11-07 2014-09-12 中兴通讯股份有限公司 Android terminal and upgrade method therefor
CN104572078A (en) * 2014-12-16 2015-04-29 深圳市同洲电子股份有限公司 Realization method and system of Bluetooth function under Android recovery mode
CN105744365A (en) * 2016-02-01 2016-07-06 烽火通信科技股份有限公司 Upgrading method of intelligent set-top box based on Android system

Also Published As

Publication number Publication date
CN108829423A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108829423B (en) System upgrading method, device, equipment and storage medium for Android equipment
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN108460301B (en) Performance testing device and method of code scanning module
CN110825456B (en) Loading time calculation method, loading time calculation device, computer equipment and storage medium
CN110928559B (en) Data burning method and device, electronic equipment and storage medium
CN110780789B (en) Game application starting method and device, storage medium and electronic device
CN106951248B (en) Method and device for adding codes, readable storage medium and computing equipment
CN111097168B (en) Display control method and device in game live broadcast, storage medium and electronic equipment
US8799433B2 (en) Method and apparatus for upgrading software of digital broadcasting receiver
CN112040312A (en) Split-screen rendering method, device, equipment and storage medium
CN112738539A (en) Live broadcast room switching method and device, computer readable storage medium and electronic equipment
CN111601154B (en) Video processing method and related equipment
CN108874441B (en) Board card configuration method, device, server and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN114449327A (en) Video clip sharing method and device, electronic equipment and readable storage medium
WO2017219872A1 (en) Set top box upgrading and channel changing methods and systems
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
CN110198481B (en) Program updating method and device, electronic equipment and storage medium
CN111787188B (en) Video playing method and device, terminal equipment and storage medium
CN113411627B (en) Data pushing method and device, readable storage medium and electronic equipment
CN110716753B (en) Cloud host initialization method and device, storage medium and electronic equipment
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN109788302B (en) Medium information delivery method, device, equipment and storage medium
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
KR100481511B1 (en) Set Top Box and controlling method thereof

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
TA01 Transfer of patent application right

Effective date of registration: 20200331

Address after: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant after: Guangzhou Shiyuan Electronic Technology Company Limited

Address before: 510530, No. four, 6, Po Po Road, Yun Po Industrial Zone, Whampoa District, Guangzhou, Guangdong

Applicant before: Guangzhou Shiyuan Electronic Technology Company Limited

Applicant before: SHENZHEN KAISHI ELECTRONIC TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant