Root method and device, terminal equipment, readable storage medium and chip
By using specified applications to start timed and server query methods in terminal devices, the operating system is automatically updated, which solves the problems of low efficiency and high cost of flashing in the packaging box, and achieves efficient flashing without unpacking and hardware transformation.
Patent Information
- Application Number
- CN202410102992.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-24
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, the brushing method of terminal equipment that is still in packaging box plastic seals is inefficient and costly. Removing the packaging brush increases the packaging cost, while not removing the packaging brush increases the hardware cost.
By specifying the application to start the terminal device regularly and query the system update task through the server, the operating system updates from the first version to the second version will be automatically performed to avoid boxing and hardware transformation.
It realizes the operating system that efficiently updates terminal equipment in the packaging box, reducing the packaging and hardware modification costs.
Smart Images

Figure CN120371332A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of system updates, and in particular, to a flashing method, device, terminal device, readable storage medium, and chip. Background Art
[0002] In the related art, for a terminal device still in the plastic package of the packaging box, if there is a problem with the current system ROM version of the terminal device or an update is required, the industry generally uses two methods for flashing, namely, unpacking and flashing, and flashing without unpacking; among them, unpacking and then flashing and repackaging will increase the packaging cost of the production of the terminal device, and the flashing process requires a computer to operate a small number of devices, and the flashing efficiency is relatively low. Flashing without unpacking usually requires modifying the NFC module of the terminal device, which will increase the hardware cost of the production of the terminal device. To sum up, it is an urgent technical problem to provide a flashing method with higher flashing efficiency and lower cost for a terminal device still in the plastic package of the packaging box. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a flashing method, device, terminal device, readable storage medium, and chip.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a flashing method, including:
[0005] Starting the terminal device located in the packaging box at regular time intervals through a specified application;
[0006] After the terminal device is started, querying a system update task through a server;
[0007] When it is determined that there is a system update task, executing the system update task to update the operating system of the terminal device from a first system version to a second system version.
[0008] Optionally, the querying a system update task through a server after the terminal device is started includes:
[0009] After the terminal device is started, obtaining the device status of the terminal device through a specified application, where the device status includes: power status and / or the status of whether the terminal device is abnormal;
[0010] When the device status meets a preset status condition, switching the terminal device to a flashing mode;
[0011] In the flashing mode, querying in the server whether there is the system update task;
[0012] When there is the system update task in the server, obtain the system update task.
[0013] Optionally, after the terminal device is started, querying for a system update task through a server includes:
[0014] After the terminal device is started, connect to the factory network through the specified application based on the HttpURLConnection connection factory;
[0015] After connecting to the factory network, access the server through the factory network to query for a system update task in the server.
[0016] Optionally, when it is determined that there is a system update task, executing the system update task to update the operating system of the terminal device from a first system version to a second system version includes:
[0017] When it is determined that there is a system update task, obtain a flash package corresponding to the system update task from the server;
[0018] Update the operating system of the terminal device from the first system version to the second system version through the flash package.
[0019] Optionally, the method further includes:
[0020] When the operating system of the terminal device is successfully updated from the first system version to the second system version, clear the operating system update record in the terminal device through the specified application;
[0021] Turn off the terminal device through the specified application.
[0022] Optionally, the method further includes:
[0023] When the operating system of the terminal device fails to be updated from the first system version to the second system version, send an operating system update failure message to the server through the specified application;
[0024] Turn off the terminal device through the specified application.
[0025] Optionally, the method further includes:
[0026] In the case where the device state does not meet the preset state condition, send the device state of the terminal device to the server through the specified application;
[0027] Turn off the terminal device through the specified application.
[0028] Optionally, the method further includes:
[0029] When the device status does not meet the preset status condition, or when the operating system of the terminal device fails to be updated from the first system version to the second system version, a prompt message is sent to the server through the specified application, and the prompt message is used to instruct the server to output a reminder message that the terminal device needs to be unpacked and upgraded.
[0030] Optionally, the method further includes:
[0031] When there is no such system update task, the terminal device is shut down through the specified application.
[0032] Optionally, the specified application is the Air Brushing Front-end APP.
[0033] According to a second aspect of the embodiments of the present disclosure, a flashing device is provided, including:
[0034] A startup module, configured to regularly start a terminal device located in a packaging box at a set time interval through a specified application;
[0035] A query module, configured to query a system update task through a server after the terminal device is started;
[0036] A control module, configured to execute the system update task to update the operating system of the terminal device from a first system version to a second system version when it is determined that there is a system update task.
[0037] According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, including:
[0038] A processor;
[0039] A memory for storing processor-executable instructions;
[0040] Wherein, the processor is configured to: execute the executable instructions to implement the steps of the flashing method according to any one of the first aspects of the present disclosure.
[0041] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the flashing method provided in the first aspect of the present disclosure are implemented.
[0042] According to a fifth aspect of the embodiments of the present disclosure, a chip is provided, including a processor and an interface; the processor is used to read instructions to execute the steps of the flashing method according to any one of the first aspects above.
[0043] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0044] In the above technical solution, the application program is specified to start the terminal device located in the packaging box at regular time intervals; after the terminal device is started, the server is used to query the system update task; when it is determined that there is a system update task, the system update task is executed to update the operating system of the terminal device from the first system version to the second system version. In the above technical solution, there is no need to unpack the terminal device in the packaging box and there is no need to modify the hardware of the terminal device, and the flashing of the terminal device can be realized, so that the packaging cost caused by repackaging after unpacking can be reduced, and the production cost generated by hardware modification can be reduced.
[0045] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings
[0046] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0047] Figure 1 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0048] Figure 2 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0049] Figure 3 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0050] Figure 4 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0051] Figure 5 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0052] Figure 6 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0053] Figure 7 It is a flowchart of a flashing method shown according to an exemplary embodiment.
[0054] Figure 8 It is a block diagram of a flashing device 800 shown according to an exemplary embodiment.
[0055] Figure 9 It is a block diagram of a flashing device 900 shown according to an exemplary embodiment.
[0056] Figure 10 It is a block diagram of a flashing device 1000 shown according to an exemplary embodiment. Detailed implementation
[0057] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0058] It should be noted that all actions of obtaining signals, information, or data in the present disclosure are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where it is located and obtaining the authorization given by the owner of the corresponding device.
[0059] Figure 1 It is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 1 shown, including the following steps:
[0060] In step S11, the terminal device located in the packaging box is periodically started at a set time interval through a specified application.
[0061] Exemplarily, the terminal devices described in the present disclosure are all terminal devices located in the manufacturer's factory or warehouse and already produced and packaged in the packaging box. The terminal device can be a mobile phone, computer, smart wearable device (such as a smart watch, bracelet, etc.), smart TV, digital broadcast terminal, game terminal, tablet device, etc. located in the packaging box. The present disclosure does not limit the type of the terminal device. In the terminal device, a specified application for flashing is installed. The application can be used to periodically start or shut down the terminal device at a set time interval. The set time interval can be set by the terminal device manufacturer in the specified application. For example, it can be started at 10:00 every day, or it can be started at 12:00 on Wednesday every week. The present disclosure does not limit the set time interval and start time.
[0062] In step S12, after the terminal device is started, the system update task is queried through the server.
[0063] Exemplarily, during the production process of the terminal device, an operating system is written into the ROM (Read-Only Memory) of the terminal device. However, the ROM version of the operating system of the terminal device is not fixed. During the production process or during use, the ROM version of the operating system of the terminal device often needs to be updated or replaced (i.e., flashed). During the factory production stage, the terminal device can obtain a flashing task by connecting to the factory flashing server to update or replace the ROM version of the operating system of the terminal device. It is worth mentioning that the terminal device described in this disclosure can be located in the manufacturer's factory or warehouse. Therefore, a wireless access point for the terminal device to connect to the network (such as a wireless router providing a WiFi network) can be set in this factory or warehouse. The access information of this wireless access point (such as the account and password of the WiFi network) is pre-stored in each terminal device, so that the terminal device can automatically connect to this wireless access point based on this access information after powering on, and thus can access the network to access the server. The terminal device can access the server to obtain the flashing task by connecting to the wireless local area network where the server is located through the wireless access point, or the terminal device can also access the server to obtain the flashing task by connecting to the Internet through the wireless access point.
[0064] In step S13, when it is determined that there is a system update task, execute this system update task to update the operating system of the terminal device from the first system version to the second system version.
[0065] Exemplarily, when the terminal device obtains a system update task from the factory flashing server, by executing this system update task, the operating system of the terminal device can be updated from the first system version to the second system version, or the first system version can be replaced with the second system version. Among them, the second system version can be the system version after the first system version is updated, or it can be a system version of a different system type from the first system version. This system update task can be a task for updating the operating system of the terminal device, or it can be a task for updating a certain component or application in the terminal device.
[0066] Optionally, when there is no such system update task, turn off the terminal device through this specified application.
[0067] Exemplarily, when the terminal device does not obtain the system update task from the factory flashing server, the terminal device can be turned off through a specified application. Among them, the time to turn off the terminal device can be when this specified application receives a failure to obtain the system update task, or it can be when a failure to obtain the system update task occurs within a specified time range; among them, during the process of a failure to obtain the system update task within the specified time range, the terminal device can obtain the system update task from the factory flashing server multiple times.
[0068] Optionally, the specified application can be the front-end APP for air flashing.
[0069] Exemplarily, the front-end APP (Application) generally refers to the front-end interface part of the application running on the terminal device. It is the interface for users to interact with the application, providing user interface elements, layouts, styles, and interaction functions. The front-end APP can communicate with the back-end server, send requests to obtain data, or submit the operation results of users to the back-end for processing. It can exchange data with the back-end through network protocols to achieve data transmission and synchronization. In addition, the front-end APP needs to be adapted to different terminal device platforms, such as iOS and Android, etc. Air flashing is different from traditional flashing through wired connection. It means that the terminal device connects to the server through Bluetooth, WiFi, or other communication methods, and then downloads the flashing (ROM) package in the server through Bluetooth or WiFi for flashing. Among them, the flashing package contains the data of the updated operating system. In summary, the front-end APP for air flashing can be a flashing APP customized by the manufacturer, with the functions of periodically turning on or off the terminal device, and obtaining and executing the system update task from the factory flashing server. It can be understood that the front-end APP for air flashing can be an independent application, or a component or device in the operating system of the terminal device, and the present disclosure does not limit this.
[0070] In the above technical solution, the terminal device located in the packaging box is periodically started by the specified application according to the set time interval; after the terminal device is started, the system update task is queried through the server; when it is determined that there is a system update task, the system update task is executed to update the operating system of the terminal device from the first system version to the second system version. In the above technical solution, there is no need to unpack the terminal device in the packaging box and there is no need to transform the hardware of the terminal device, which can realize the flashing of the terminal device, thereby reducing the packaging cost caused by repackaging after unpacking and reducing the production cost generated by hardware transformation.
[0071] Figure 2 is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 2 shown, step S12 includes the following steps:
[0072] In step S121, after the terminal device is started, the device status of the terminal device is obtained through the specified application, and the device status includes: the power status and / or the status of whether the terminal device is abnormal.
[0073] Exemplarily, when the terminal device is in the process of operating system update, it takes a long time and consumes a large amount of power. Therefore, to ensure that the operating system update of the terminal device does not interrupt, for example, during the update process, the battery runs out and the terminal device shuts down; the hardware of the terminal device is abnormal and the operation update fails, etc. Therefore, before obtaining the update task, the device status of the terminal device is obtained, and the device status includes but is not limited to the power status, hardware status, software status, etc.
[0074] In step S122, when the device status meets the preset status condition, the terminal device is switched to the flashing mode.
[0075] Exemplarily, when the device status of the terminal device meets the preset conditions, the terminal device can be switched to the flashing mode. The flashing mode is a mode set by the terminal device manufacturer for the terminal device. Generally, it refers to a special mode that the terminal device enters, which is different from the normal usage mode and has some special functions and effects. For example, it can include the following aspects: The flashing mode provides a secure flashing environment and can be used to flash the firmware of the device. When the device has problems or needs to update the firmware, the flashing mode can be used to install a new firmware version, repair system errors or restore the device to the factory state. The flashing mode can be used to solve the system failures of the device. When the device cannot start normally or encounters software problems, the flashing mode can provide some repair options, such as clearing the cache, formatting the data partition or resetting the device settings, to solve problems such as system crashes or freezes. The flashing mode can be used for the security and recovery of the device and can be used to back up and restore important data on the device to prevent data loss. In addition, the flashing mode can also be used to install or uninstall the root certificate, security patches or other security-related operations of the device to enhance the security of the device. In addition, the flashing mode can also have cleaning and optimization options to improve the performance and stability of the device.
[0076] In step S123, in the flashing mode, it is queried in the server whether there is such a system update task.
[0077] In step S124, when there is such a system update task in the server, the system update task is obtained.
[0078] Exemplarily, after the terminal device enters the flashing mode, it can access the factory flashing server through the specified application to obtain the system update task from the factory flashing server. In addition, in another possible implementation, the terminal device may not enter the flashing mode, that is, step S122 is not required. When the device state of the terminal device meets the preset conditions, it can access the factory flashing server through the specified application to obtain the system update task from the factory flashing server. In another possible implementation, the terminal device can first query the system update task from the server. When the system update task exists, the terminal device is then made to enter the flashing mode. Or, in another possible implementation, the terminal device can first access and obtain the system update task through the specified application. The system update task may include at least one piece of information such as the time consumption, power consumption, and size of the flashing package for this system update, and determine whether the device state of the terminal device can support the completion of the system update task according to the at least one piece of information. For example, if the system update task obtained by the specified application requires 30% power consumption and the remaining power of the terminal device is 25%, it can be determined that the remaining power of the terminal device is not sufficient to support the completion of this system update task. Therefore, this system update task is not executed. In summary, when the terminal device executes the system update task, it can either not enter the flashing mode or enter the flashing mode. In the case of entering the flashing mode, it can enter the flashing mode before obtaining the system update task or enter the flashing mode after obtaining the system update task. The above possible embodiments all fall within the protection scope of the present disclosure.
[0079] Figure 3 is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 3 shown, after step S121, the method further includes the following steps:
[0080] In step S125, when the device state does not meet the preset state conditions, the device state of the terminal device is sent to the server through the specified application.
[0081] In step S126, the terminal device is turned off through the specified application.
[0082] Exemplarily, when the device state of the terminal device does not meet the preset state conditions, if the system update task is executed, the system update may be interrupted or failed due to the device state. For example, when the remaining battery power of the terminal device is 5%, the specified application may require at least 30% of the battery power to execute the system update task. In this case, if the system update task is executed, the system update task cannot be completed. Therefore, when the device state of the terminal device does not meet the preset conditions, the specified application can send the device state of the terminal device and / or a prompt message indicating that the operating system of the terminal device has not been updated to the server. The prompt message can be used to instruct the server to output a reminder message that the terminal device needs to be upgraded by unpacking, so that the staff can update the first operating system of the terminal device to the second operating system in a timely manner. After the device state and / or the prompt message are sent to the server, the terminal device can be turned off through the specified application. In addition, it can be understood that the time to turn off the terminal device can be after the device state and / or the prompt message are sent to the server, or it can be a scheduled shutdown time set for the specified application.
[0083] Figure 4 is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 4 shown, step S12 includes the following steps:
[0084] In step S127, after the terminal device is started, the specified application connects to the factory network based on HttpURLConnection.
[0085] Exemplarily, HttpURLConnection is a class in Java for making HTTP network connections. It provides a simple and flexible way to communicate with a remote server, supports various HTTP request methods (such as GET, POST, etc.) and interactions with the server (such as reading responses, sending request parameters, etc.). Through HttpURLConnection, a connection to a web server can be established, an HTTP request can be sent, and then the response returned by the server can be obtained.
[0086] In step S128, after connecting to the factory network, access the server through the factory network to query for system update tasks in the server.
[0087] Exemplarily, after the terminal device connects to a specific factory network through HttpURLConnection, it can send a system update task query instruction to the factory flashing server through the factory network. The factory flashing server can search for system update tasks according to the system task update query instruction and send the query result to the specified application.
[0088] Figure 5 is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 5 shown, step S13 includes the following steps:
[0089] In step S131, when it is determined that there is a system update task, obtain a flashing package corresponding to the system update task from the server.
[0090] Exemplarily, when the specified application obtains a system update task, it can obtain a data packet corresponding to the system update task from the server. For example, the system update task may include the storage location of the flashing package in the server. When the specified application obtains the storage location, it can download the flashing package at the storage location of the server. In addition, it can be understood that when the flashing package is a compressed file package, the specified application can decompress the flashing package.
[0091] In step S132, update the operating system of the terminal device from the first system version to the second system version through the flashing package.
[0092] Exemplarily, when the terminal device obtains the flashing package, it can update the operating system of the terminal device from the first system version to the second system version according to the flashing package.
[0093] Figure 6 is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 6 shown, the method further includes the following steps:
[0094] In step S14, when the update of the operating system of the terminal device from the first system version to the second system version is successful, clear the operating system update record in the terminal device through the specified application.
[0095] In step S15, turn off the terminal device through the specified application.
[0096] Exemplarily, when the update of the operating system of the terminal device from the first system version to the second system version is successful, relevant operating system update records may be generated in the terminal device. Since the terminal device has not been sold yet, in order to ensure the user experience after selling it to users, the specified application can be used to clear the operating system update records in the terminal device. When the deletion of the operating system update record is completed, the terminal device can be turned off through the specified application.
[0097] Figure 7 is a flowchart of a flashing method shown according to an exemplary embodiment, as Figure 7 shown, the method further includes the following steps:
[0098] In step S16, when the operating system of the terminal device fails to be updated from the first system version to the second system version, an operating system update failure message is sent to the server through the specified application.
[0099] In step S17, the terminal device is shut down through the specified application.
[0100] Optionally, when the device status does not meet the preset status conditions, or when the operating system of the terminal device fails to be updated from the first system version to the second system version, a prompt message is sent to the server through the specified application, and the prompt message is used to instruct the server to output a reminder message that the terminal device needs to be unboxed and upgraded.
[0101] Exemplarily, the operating system of the terminal device may fail to be updated from the first system version to the second system version. When the operating system update of the terminal device fails, the specified application can send an operating system update failure message to the server. The operating system update failure message may include the identifier of the terminal device, the reason for the failure, etc. The failure message can be used to instruct the server to output a reminder message that the terminal device needs to be unboxed and upgraded, so that the staff can update the first operating system of the terminal device to the second operating system in time. After the reminder message is successfully sent, the terminal device can be shut down through the specified application.
[0102] In the above technical solution, the terminal device located in the packaging box is started regularly at a set time interval through the specified application; after the terminal device is started, the system update task is queried through the server; when it is determined that there is a system update task, the system update task is executed to update the operating system of the terminal device from the first system version to the second system version. In the above technical solution, there is no need to unbox the terminal device in the packaging box and there is no need to transform the hardware of the terminal device, and the flashing of the terminal device can be realized, so that the packaging cost caused by repackaging after unboxing can be reduced, and the production cost generated by hardware transformation can be reduced.
[0103] Figure 8 It is a block diagram of a flashing device 800 shown according to an exemplary embodiment. Refer to Figure 8 The device 800 includes: a start module 810, a query module 820, and a control module 830.
[0104] The start module 810 is configured to regularly start the terminal device located in the packaging box at a set time interval through the specified application;
[0105] The query module 820 is configured to query the system update task through the server after the terminal device is started;
[0106] The control module 830 is configured to execute the system update task to update the operating system of the terminal device from the first system version to the second system version when it is determined that there is a system update task.
[0107] Optionally, the query module 820 includes: a first acquisition sub-module, a judgment sub-module, a first query sub-module, and a second acquisition sub-module;
[0108] The first acquisition sub-module is configured to, after the terminal device is started, acquire the device status of the terminal device through a specified application, where the device status includes: the power status and / or the status of whether the terminal device is abnormal;
[0109] The judgment sub-module is configured to switch the terminal device to the flashing mode when the device status meets a preset status condition;
[0110] The first query sub-module is configured to query whether there is the system update task in the server in the flashing mode;
[0111] The second acquisition sub-module is configured to acquire the system update task when there is the system update task in the server.
[0112] Optionally, the query module 820 includes: a network connection sub-module and a second query sub-module;
[0113] The network connection sub-module is configured to, after the terminal device is started, connect to the factory network through the specified application based on the HttpURLConnection connection factory;
[0114] The second query sub-module is configured to, after connecting to the factory network, access the server through the factory network to query the system update task in the server.
[0115] Optionally, the control module 830 includes: a third acquisition sub-module and a system update sub-module;
[0116] The third acquisition sub-module is configured to acquire a flashing package corresponding to the system update task from the server when it is determined that there is a system update task;
[0117] The system update sub-module is configured to update the operating system of the terminal device from the first system version to the second system version through the flashing package.
[0118] Optionally, the control module 830 is further configured to:
[0119] When the operating system of the terminal device is successfully updated from the first system version to the second system version, clear the operating system update record in the terminal device through the specified application;
[0120] Turn off the terminal device through the specified application.
[0121] Optionally, the control module 830 is further configured to:
[0122] When the operating system of the terminal device fails to be updated from the first system version to the second system version, send an operating system update failure message to the server through the specified application;
[0123] Turn off the terminal device through the specified application.
[0124] Optionally, the judgment sub-module is further configured to:
[0125] When the device status does not meet the preset status condition, send the device status of the terminal device to the server through the specified application;
[0126] Turn off the terminal device through the specified application.
[0127] Optionally, the judgment sub-module is further configured to:
[0128] When the device status does not meet the preset status condition, or when the operating system of the terminal device fails to be updated from the first system version to the second system version, send a prompt message to the server through the specified application, and the prompt message is used to instruct the server to output a reminder message that the terminal device needs to be unpacked and upgraded.
[0129] Optionally, the control module 830 is further configured to turn off the terminal device through the specified application when there is no such system update task.
[0130] Optionally, the specified application is the Air Flash Front-end APP.
[0131] In the above technical solution, the terminal device located in the packaging box is started regularly at a set time interval through the specified application; after the terminal device is started, the system update task is queried through the server; when it is determined that there is a system update task, the system update task is executed to update the operating system of the terminal device from the first system version to the second system version. In the above technical solution, there is no need to unpack the terminal device in the packaging box and there is no need to transform the hardware of the terminal device, which can realize the flashing of the terminal device, thereby reducing the packaging cost caused by repackaging after unpacking and reducing the production cost generated by hardware transformation.
[0132] Regarding the device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
[0133] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the flashing method provided by the present disclosure are implemented.
[0134] Figure 9 It is a block diagram of a flashing device 900 shown according to an exemplary embodiment. For example, the device 900 may be the above terminal device, such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0135] Referring to Figure 9 , the device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output interface 912, a sensor component 914, and a communication component 916.
[0136] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0137] The memory 904 is configured to store various types of data to support the operation of the device 900. Examples of these data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0138] The power supply component 906 provides power to various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0139] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0140] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
[0141] The input / output interface 912 provides an interface between the processing component 902 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0142] The sensor component 914 includes one or more sensors for providing a status assessment of various aspects of the device 900. For example, the sensor component 914 can detect the on / off state of the device 900, the relative positioning of components, such as the display and the keypad of the device 900. The sensor component 914 can also detect a change in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor component 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0143] The communication component 916 is configured to facilitate communication, in a wired or wireless manner, between the device 900 and other devices. The device 900 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra-Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0144] In an exemplary embodiment, the device 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 904 including instructions, is also provided, and the above instructions can be executed by a processor 920 of the device 900 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0146] In addition to being an independent electronic device, the above device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip. The integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), etc. The above integrated circuit or chip can be used to execute executable instructions (or code) to implement the above flashing method. The executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, the above flashing method is implemented. Or, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution to implement the above flashing method.
[0147] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above flashing method when executed by the programmable device.
[0148] Figure 10 is a block diagram of a flashing device 1000 shown according to an exemplary embodiment. For example, the device 1000 can be provided as a server. Referring to Figure 10 , the device 1000 includes a processing component 1022, which further includes one or more processors, and memory resources represented by a memory 1032 for storing instructions executable by the processing component 1022, such as application programs. The application programs stored in the memory 1032 can include one or more modules each corresponding to a set of instructions. In addition, the processing component 1022 is configured to execute instructions to perform the above flashing method.
[0149] The apparatus 1000 may further include a power supply component 1026 configured to perform power management of the apparatus 1000, a wired or wireless network interface 1050 configured to connect the apparatus 1000 to a network, and an input / output interface 1058. The apparatus 1000 may operate based on an operating system stored in the memory 1032.
[0150] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the disclosure herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure following the general principles thereof and including such departures from the present disclosure as come within known or customary practice in the art to which the present disclosure pertains and which are not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
[0151] It should be understood that the present disclosure is not limited to the exact construction described above and shown in the drawings, and various modifications and changes may be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A flashing method, characterized in that, including: timing to start a terminal device located in a packaging box by a specified application at set time intervals; after the terminal device is started, querying for system update tasks through a server; when it is determined that there are system update tasks, executing the system update tasks to update the operating system of the terminal device from a first system version to a second system version.
2. The method according to claim 1, wherein The querying for system update tasks through a server after the terminal device is started includes: after the terminal device is started, obtaining the device status of the terminal device through a specified application, where the device status includes: power status and / or the status of whether the terminal device is abnormal; when the device status meets a preset status condition, switching the terminal device to a flashing mode; in the flashing mode, querying in the server whether there are the system update tasks; when there are the system update tasks in the server, obtaining the system update tasks.
3. The method according to claim 1, characterized in that, The querying for system update tasks through a server after the terminal device is started includes: after the terminal device is started, connecting to a factory network through the specified application based on HttpURLConnection; after connecting to the factory network, accessing the server through the factory network to query for system update tasks in the server.
4. The method according to claim 1, characterized in that, The executing the system update tasks to update the operating system of the terminal device from a first system version to a second system version when it is determined that there are system update tasks includes: when it is determined that there are system update tasks, obtaining a flashing package corresponding to the system update tasks from the server; updating the operating system of the terminal device from a first system version to a second system version through the flashing package.
5. The method according to claim 1, characterized in that, The method further includes: when the operating system of the terminal device is successfully updated from the first system version to the second system version, clearing the operating system update record in the terminal device through the specified application; turning off the terminal device through the specified application.
6. The method according to claim 1, characterized in that, The method further includes: when the operating system of the terminal device fails to be updated from the first system version to the second system version, sending an operating system update failure message to the server through the specified application; turning off the terminal device through the specified application.
7. The method according to claim 2, wherein The method further includes: when the device status does not meet the preset status condition, sending the device status of the terminal device to the server through the specified application; turning off the terminal device through the specified application.
8. The method according to claim 2, wherein The method further includes: when the device status does not meet the preset status condition, or when the operating system of the terminal device fails to be updated from the first system version to the second system version, sending a prompt message to the server through the specified application, where the prompt message is used to instruct the server to output a reminder message that the terminal device needs to be upgraded by unpacking.
9. The method according to claim 1, wherein The method further includes: when there are no system update tasks, turning off the terminal device through the specified application.
10. The method according to any one of claims 1-9, characterized in that, The specified application is the front-end APP of the air brushing machine.
11. A flashing device, characterized in that, It includes: A startup module configured to regularly start a terminal device located in a packaging box at set time intervals through the specified application; A query module configured to query system update tasks through a server after the terminal device is started; A control module configured to, when it is determined that there is a system update task, execute the system update task to update the operating system of the terminal device from a first system version to a second system version.
12. A terminal device, characterized in that, It includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to: execute the executable instructions to implement the steps of the method described in any one of claims 1 to 10.
13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the steps of the method described in any one of claims 1 to 10 are implemented.
14. A chip, characterized in that, It includes a processor and an interface; the processor is used to read instructions to execute the method described in any one of claims 1 to 10.