Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for setting and processing a touch screen when a mobile terminal leaves a factory, aiming at the above defects in the prior art. The method for setting the touch screen when the mobile terminal leaves the factory is provided, and aims to enable mobile terminal manufacturers to use the same touch screen to adapt to a plurality of mobile terminal projects, so that convenience is provided for the mobile terminal manufacturers to produce, and meanwhile, a large amount of cost is saved.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a touch screen setting processing method for a mobile terminal when leaving a factory includes:
A. setting an address in a memory of the mobile terminal in advance for storing the factory state of the mobile terminal; setting the factory state as a first mark when the mobile terminal is finished being refreshed;
B. when the mobile terminal is started, reading the factory state from a memory address, judging whether the factory state is a first mark or not, if so, entering the step C, otherwise, normally starting;
C. acquiring touch screen firmware stored in the mobile terminal, and updating the touch screen firmware into a touch screen; and setting the factory state as a second mark after the updating is finished.
The touch screen setting processing method of the mobile terminal when leaving a factory is disclosed, wherein the first mark is 1, and the second mark is 0.
The method for setting and processing the touch screen when the mobile terminal leaves the factory comprises two values of 0 and 1, when the factory state is 1, the touch screen firmware is required to be forcibly updated specifically for the mobile terminal, and otherwise, the factory state is 0.
The touch screen setting processing method of the mobile terminal when leaving the factory is adopted, wherein the memory is a power-down memory which is not easy to lose.
The touch screen setting processing method of the mobile terminal when leaving a factory comprises the steps that the power-down nonvolatile memory comprises an EMMC and an F L ASH.
The method for setting and processing the touch screen when the mobile terminal leaves the factory comprises the following steps: and judging whether the factory state is 1, and if not, executing a starting process in the prior art.
The method for setting and processing the touch screen when the mobile terminal leaves the factory comprises the following steps: and if a plurality of touch screen firmware are stored in the mobile terminal, acquiring one of the touch screen firmware with the latest version and updating the latest version into the touch screen.
The method for setting and processing the touch screen when the mobile terminal leaves the factory comprises the following steps after the step C:
the factory state can receive the operation manual setting 1 of a user, and when the touch screen of the mobile terminal has a problem, forced touch screen firmware updating is performed at the next startup by manually setting the factory state to 1.
A touch screen setting processing system of a mobile terminal when leaving a factory comprises:
the system comprises a presetting module, a judging module and a judging module, wherein the presetting module is used for presetting an address in a memory of the mobile terminal in advance for storing the factory state of the mobile terminal; setting the factory state as a first mark when the mobile terminal is finished being refreshed;
the reading judgment module is used for reading the factory leaving state from the memory address when the mobile terminal is started, judging whether the factory leaving state is a first mark or not, and if not, normally starting the mobile terminal;
the updating module is used for controlling and acquiring touch screen firmware stored in the mobile terminal and updating the touch screen firmware into the touch screen; and setting the factory state as a second mark after the updating is finished.
The touch screen setting processing system of the mobile terminal when leaving a factory is described, wherein the first mark is 1, and the second mark is 0; the factory state comprises two values of 0, 1, a first mark 1 and a second mark 0, when the factory state is 1, the touch screen firmware is required to be forcibly updated particularly for the mobile terminal, and otherwise, the factory state is 0;
the reading judgment module is further configured to: judging whether the factory state is 1 or not, and if not, executing a starting process in the prior art;
the update module is further to: if a plurality of touch screen firmware are stored in the mobile terminal, acquiring the latest version of the touch screen firmware and updating the latest version of the touch screen firmware to the touch screen;
the system further comprises:
and the receiving module is used for receiving the manual operation 1 of the user in the factory state, and when the touch screen of the mobile terminal has a problem, the factory state is manually set to 1, so that forced updating of the firmware of the touch screen is performed at the next startup.
The method and the system for setting and processing the touch screen of the mobile terminal when leaving the factory are provided by the invention, an address is set in a memory of the mobile terminal in advance for storing the factory state of the mobile terminal; when the mobile terminal is finished being refreshed, setting the factory state to 1; when the mobile terminal is started, reading the factory state from the memory address, judging whether the factory state is 1, if so, acquiring touch screen firmware stored in the mobile terminal, and updating the touch screen firmware into the touch screen; and after the updating is finished, setting the factory state to 0. The mobile terminal manufacturer can use the same touch screen to adapt to a plurality of mobile terminal projects, convenience is provided for the mobile terminal manufacturer, and meanwhile a large amount of cost is saved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart of a preferred embodiment of a method for processing a touch screen setting when a mobile terminal leaves a factory, where as shown in fig. 1, the method for processing the touch screen setting when the mobile terminal leaves the factory includes the following steps:
step S100, an address is preset in a memory of the mobile terminal for storing the factory state of the mobile terminal; and when the mobile terminal is finished being refreshed, setting the factory state as a first mark.
In the invention, the first mark is 1, and the second mark is 0. For example, an address is preset in a memory of the mobile terminal for saving the factory state of the mobile terminal; and when the mobile terminal is finished being refreshed, setting the factory state to 1.
In the embodiment of the invention, an address needs to be set in advance in a memory of the mobile terminal for storing a factory state of the mobile terminal, wherein the factory state includes two values of 0 and 1, when the factory state is 1, the touch screen firmware needs to be forcibly updated specifically for the mobile terminal, and otherwise, the factory state is 0.
In this embodiment, the memory is a memory that is not easily lost when power is down, such as an EMMC, an F L ASH, and the like.
Step S200, when the mobile terminal is started, the factory leaving state is read from a memory address, whether the factory leaving state is a first mark or not is judged, if yes, the step 300 is carried out, and otherwise, the mobile terminal is started normally. For example, in the embodiment of the present invention, when the mobile terminal is powered on, the factory state is read from the memory address, whether the factory state is 1 is determined, and if not, a power-on process in the prior art is executed; if so, the process proceeds to step S300.
Step S300, touch screen firmware stored in the mobile terminal is obtained and updated to the touch screen; and setting the factory state as a second mark after the updating is finished. For example, a touch screen firmware stored in the mobile terminal is obtained and updated to the touch screen; and after the updating is finished, setting the factory state to 0.
In this step, touch screen firmware stored in the mobile terminal is obtained, and if a plurality of touch screen firmware stored in the mobile terminal exist, the latest version of the plurality of touch screen firmware is obtained and updated to the touch screen.
In a further embodiment, the method further comprises: the factory state can be manually set to be 1 by a professional, and when the touch screen of the mobile terminal has a problem, the factory state can be manually set to be 1, so that forced touch screen firmware updating is performed at the next startup.
Referring to fig. 2, fig. 2 is a flowchart of a second preferred embodiment of a touch screen setting processing method of a mobile terminal when the mobile terminal leaves a factory, where the method includes the following steps:
s1, presetting an address in the memory of the mobile terminal for saving the factory state of the mobile terminal; when the mobile terminal is finished being refreshed, setting the factory state to 1;
the method for setting the touch screen when the mobile terminal leaves the factory comprises two values of 0 and 1, when the factory state is 1, the touch screen firmware is required to be forcibly updated by the mobile terminal, and otherwise, the factory state is 0.
The touch screen setting method of the mobile terminal when leaving the factory is characterized in that the memory is a memory which is not easy to lose due to power failure, such as EMMC, F L ASH and the like.
S2, when the mobile terminal is started, reading the factory state from the memory address, and judging whether the factory state is 1, if so, entering the step C, otherwise, normally starting;
the method for setting the touch screen when the mobile terminal leaves the factory comprises the steps of judging whether the factory state is 1 or not, and if not, executing a starting-up process in the prior art. The boot process in the prior art includes: when the mobile terminal is started, if the touch screen firmware file is found in the designated storage space, the version of the firmware file is obtained and compared with the version of the touch screen firmware in use, and if the version of the firmware file is new, the firmware is updated.
S3, acquiring touch screen firmware stored in the mobile terminal and updating the touch screen firmware into the touch screen; and after the updating is finished, setting the factory state to 0.
The touch screen setting method when the mobile terminal leaves a factory comprises the steps that if a plurality of touch screen firmware stored in the mobile terminal exist, the latest version of the touch screen firmware is obtained and updated into the touch screen.
The method for setting the touch screen when the mobile terminal leaves the factory further comprises the following steps: the factory state can be manually set to be 1 by a professional, and when the touch screen of the mobile terminal has a problem, the factory state can be manually set to be 1, so that forced touch screen firmware updating is performed at the next startup.
Therefore, the invention provides a method for setting a touch screen when a mobile terminal leaves a factory, and aims to enable mobile terminal manufacturers to use the same touch screen to adapt to a plurality of mobile terminal projects, thereby providing convenience for the mobile terminal manufacturers and saving a large amount of cost.
Based on the above method embodiment, the present invention further provides a system for processing touch screen settings when a mobile terminal leaves a factory, as shown in fig. 3, where the system includes:
a presetting module 210, configured to set an address in a memory of the mobile terminal in advance for storing a factory state of the mobile terminal; setting the factory state as a first mark when the mobile terminal is finished being refreshed; as described above.
The reading judgment module 220 is configured to read the factory status from the memory address when the mobile terminal is powered on, judge whether the factory status is a first flag, and normally power on if the factory status is not the first flag; as described above.
An updating module 230, configured to control to obtain a touch screen firmware stored in the mobile terminal, and update the touch screen firmware; and setting the factory state as a second mark after the updating is finished, specifically as described above.
The touch screen setting processing system of the mobile terminal when leaving a factory is described, wherein the first mark is 1, and the second mark is 0; the factory state includes two values, namely 0 and 1, a first flag 1 and a second flag 0, when the factory state is 1, the touch screen firmware is required to be forcibly updated particularly for the mobile terminal, and otherwise, the factory state is 0, specifically as described above.
The reading judgment module is further configured to: and judging whether the factory state is 1, and if not, executing the starting process in the prior art, specifically as described above.
The update module is further to: if there are a plurality of touch screen firmware stored in the mobile terminal, obtaining the latest version of the plurality of touch screen firmware and updating the latest version of the plurality of touch screen firmware to the touch screen, which is specifically described above.
The system further comprises:
and the receiving module is used for receiving the manual operation 1 of the user in the factory state, and when the touch screen of the mobile terminal has a problem, the factory state is manually set to 1, so that forced updating of the firmware of the touch screen is performed at the next startup time, specifically as described above.
In summary, according to the method and system for processing the touch screen setting when the mobile terminal leaves the factory, an address is set in advance in the memory of the mobile terminal to store the factory state of the mobile terminal; when the mobile terminal is finished being refreshed, setting the factory state to 1; when the mobile terminal is started, reading the factory state from the memory address, judging whether the factory state is 1, if so, acquiring touch screen firmware stored in the mobile terminal, and updating the touch screen firmware into the touch screen; and after the updating is finished, setting the factory state to 0. The mobile terminal manufacturer can use the same touch screen to adapt to a plurality of mobile terminal projects, convenience is provided for the mobile terminal manufacturer, and meanwhile a large amount of cost is saved.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.