CN109254797B - Mobile terminal, starting control method thereof and storage medium - Google Patents

Mobile terminal, starting control method thereof and storage medium Download PDF

Info

Publication number
CN109254797B
CN109254797B CN201810930488.6A CN201810930488A CN109254797B CN 109254797 B CN109254797 B CN 109254797B CN 201810930488 A CN201810930488 A CN 201810930488A CN 109254797 B CN109254797 B CN 109254797B
Authority
CN
China
Prior art keywords
mobile terminal
resource
theme
control method
starting
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
CN201810930488.6A
Other languages
Chinese (zh)
Other versions
CN109254797A (en
Inventor
曾鸿坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810930488.6A priority Critical patent/CN109254797B/en
Publication of CN109254797A publication Critical patent/CN109254797A/en
Application granted granted Critical
Publication of CN109254797B publication Critical patent/CN109254797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a mobile terminal, a starting control method thereof and a storage medium, wherein the starting control method comprises the following steps: judging the readability of the bottom layer code of the theme resource to be loaded when the mobile terminal is started; if the bottom code of the subject resource can not be read in by the starting process, the bottom code of the subject resource is repaired; and loading the repaired underlying code of the theme resource to enter a starting process. According to the method for controlling the starting of the mobile terminal, the readability of the bottom layer code of the theme resource to be loaded during starting is judged firstly, and if the bottom layer code cannot be read by the starting process, the bottom layer code of the theme resource is repaired, so that the starting process is ensured to be carried out smoothly; according to the technical scheme, the state that the card always displays the startup picture when the mobile terminal is started can be avoided, and the use experience of a user on the mobile terminal device is improved.

Description

Mobile terminal, starting control method thereof and storage medium
Technical Field
The invention relates to the technical field of startup process control of mobile terminal equipment of an android system, in particular to a mobile terminal, a startup control method thereof and a storage medium.
Background
Mobile terminal devices such as mobile phones and tablet computers are daily necessary tools for people. The mobile terminal device (especially an android operating system) has a section of demonstration of boot animation when booting, and the process is also a process of loading theme resources, however, in the process, a card is often generated in a boot image or a LOGO of a mobile terminal device manufacturer, and the boot program cannot be normally entered, so that a user often needs to restart or even flush the system, and the use experience of the user on the mobile terminal device is greatly influenced.
Disclosure of Invention
In one aspect, an embodiment of the present application provides a power-on control method for a mobile terminal based on an android operating system, where the power-on control method includes:
judging the readability of the bottom layer code of the theme resource to be loaded when the mobile terminal is started;
if the bottom code of the subject resource can not be read in by the starting process, the bottom code of the subject resource is repaired;
and loading the repaired underlying code of the theme resource to enter a starting process.
In another aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a processor and a memory, where the processor is coupled to the memory, and when operating, the processor executes an instruction to implement the power-on control method according to any one of the foregoing embodiments.
An embodiment of the present application further provides a mobile terminal, where the mobile terminal includes:
the judging module is used for judging the readability of the bottom layer code of the theme resource to be loaded when the mobile terminal is started;
the restoration module is used for restoring the bottom code of the subject resource when the judgment module judges that the bottom code of the subject resource cannot be read by the starting-up process;
and the loading module is used for loading the repaired underlying code of the theme resource so as to enter a starting process.
In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the power-on control method according to any one of the foregoing embodiments.
According to the mobile terminal and the starting control method and the storage medium thereof provided by the embodiment of the application, the readability of the bottom code of the theme resource to be loaded during starting is judged firstly, if the bottom code of the theme resource is unreadable, the bottom code of the theme resource is repaired, so that the smooth proceeding of a starting process is ensured; the technical scheme in the embodiment can avoid the situation that the card always displays the startup picture when the mobile terminal is started, and improve the use experience of the user on the mobile terminal equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a power-on control method of a mobile terminal according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another embodiment of a power-on control method of a mobile terminal according to the present application;
fig. 3 is a flowchart illustrating a power-on control method of a mobile terminal according to another embodiment of the present application;
fig. 4 is a flowchart illustrating a power-on control method of a mobile terminal according to still another embodiment of the present application;
fig. 5 is a flowchart illustrating a power-on control method of a mobile terminal according to still another embodiment of the present application;
fig. 6 is a flowchart illustrating a power-on control method of a mobile terminal according to still another embodiment of the present application;
FIG. 7 is a flowchart diagram of one embodiment of a method of repairing underlying code of a subject resource;
FIG. 8 is a block diagram illustrating the structural components of an embodiment of a mobile terminal provided herein;
fig. 9 is a block diagram schematically illustrating the structural components of another embodiment of the mobile terminal provided in the present application;
FIG. 10 is a block diagram illustrating the structural components of yet another embodiment of a mobile terminal provided herein;
fig. 11 is a block diagram illustrating the structural configuration of still another embodiment of the mobile terminal provided in the present application;
FIG. 12 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Likewise, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive step are within the scope of the present invention.
The terms "first", "second" and "third" in the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. All directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As used herein, a "communication terminal" (or simply "terminal") includes, but is not limited to, a device that is configured to receive/transmit communication signals via a wireline connection, such as via a Public Switched Telephone Network (PSTN), a Digital Subscriber Line (DSL), a digital cable, a direct cable connection, and/or another data connection/network, and/or via a wireless interface (e.g., for a cellular network, a Wireless Local Area Network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter, and/or another communication terminal). A communication terminal arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; a Personal Communications System (PCS) terminal that may combine a cellular radiotelephone with data processing, facsimile and data communications capabilities; PDAs that may include radiotelephones, pagers, internet/intranet access, Web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. The mobile phone is a mobile terminal equipped with a cellular communication module.
The following describes a power-on control method of a mobile terminal according to several embodiments.
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart of an embodiment of a power-on control method of a mobile terminal according to the present application, and it should be noted that the embodiment of the present application may be applied to a mobile terminal or a server, where the mobile terminal may be an electronic device based on an android operating system, such as a mobile phone, a tablet computer, and a wearable device, and the server may be a cloud server.
The mobile terminal power-on control method in the embodiment includes, but is not limited to, the following steps:
and step 110, judging the legality of the theme resources to be loaded when the mobile terminal is started.
It should be noted that the theme resources in the embodiment of the present application (the same below) may include a UI screen of the mobile terminal, a preloaded application program, and the like. Specifically, the method comprises the step that the mobile terminal system judges the legality of the data/the me/frame-res subject resource in the bottom layer path.
And step 120, if the theme resource is judged to be illegal, repairing the theme resource.
In step 120, if the subject resource is judged to be illegal, the method for repairing the subject resource may include performing traversal update and upgrade on the version of the subject resource, and the traversal process needs to be performed until the next link requiring reading of the res subject resource and the legal res subject resource version can be read. The method comprises the steps of checking whether nodes and versions of the subject resources are latest one by one, finding data/the me/frame-res subject resources in a bottom layer path by a mobile phone system, redefining the data/the me/frame-res subject resources through bottom layer code reconstruction, and defaulting return values of the data/the me/frame-res subject resources into a readable numerical value of a synthesis method.
The specific code reconstruction is as follows:
Figure BDA0001766482500000051
and step 130, loading the repaired theme resource.
The repaired main body resource is directly used without secondary judgment when other downstream programs need to call the repaired main body resource, and the repaired main body resource is an object which can be used safely due to the redefinition of the system, so that the repaired main body resource can be called smoothly, and further subsequent steps in a starting process can be entered.
According to the mobile terminal startup control method provided by the embodiment, the legitimacy of the theme resource to be loaded during startup is judged firstly, and if the theme resource is illegal, the theme resource is repaired, so that the startup process is ensured to be carried out smoothly; the technical scheme in the embodiment can avoid the situation that the card always displays the startup picture when the mobile terminal is started, and improve the use experience of the user on the mobile terminal equipment.
Example 2
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a power-on control method of a mobile terminal according to another embodiment of the present application, where the power-on control method in the embodiment mainly includes the following steps:
step 210, judging the validity of the theme resources to be loaded when the mobile terminal is started.
In this step, if the theme resource to be loaded when the mobile terminal is powered on is judged to be legal, the step 220 is entered; if the theme resource to be loaded when the mobile terminal is powered on is judged to be illegal, step 230 is entered.
Step 220, directly loading the theme resources and entering a starting process.
In this step, if the theme resource to be loaded when the mobile terminal is started is judged to be legal, and the theme resource is proved to meet the condition of calling the subsequent flow, the theme resource is directly called and loaded and the starting process is started.
Step 230, repairing the subject resource.
Similarly, the method for repairing the subject resource may include performing traversal update and upgrade on the version of the subject resource, where the traversal process needs to be performed until the next link requiring reading of the res subject resource is performed, and the valid res subject resource version may be read. The method comprises the steps of checking whether nodes and versions of the subject resources are latest one by one, finding data/the me/frame-res subject resources in a bottom layer path by a mobile phone system, redefining the data/the me/frame-res subject resources through bottom layer code reconstruction, and defaulting return values of the data/the me/frame-res subject resources into a readable numerical value of a synthesis method. For specific reconfiguration codes, please refer to the related description in the previous embodiment, which is not listed here.
And step 240, loading the repaired theme resource.
After the repaired main resource is used, other downstream programs need to call the repaired main resource, secondary judgment is not needed, and the repaired main resource is directly called and loaded.
And step 250, ending.
According to the mobile terminal startup control method provided by the embodiment, the legitimacy of the theme resource to be loaded during startup is judged firstly, and if the theme resource is illegal, the theme resource is repaired, so that the startup process is ensured to be carried out smoothly; if the theme resource is judged to be legal, directly loading the theme resource and entering a starting process; the technical scheme in the embodiment can avoid the situation that the card always displays the startup picture when the mobile terminal is started, accelerate the startup process and improve the use experience of the user on the mobile terminal equipment.
Example 3
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a power-on control method of a mobile terminal according to another embodiment of the present application, where the power-on control method in the embodiment mainly includes the following steps:
step 310, judging the validity of the theme resources to be loaded when the mobile terminal is started.
Specifically, the method comprises the step that the mobile terminal system judges the legality of the data/the me/frame-res subject resource in the bottom layer path. When the loading of the data/the me/frame-res subject resource in the bottom layer path of the mobile phone is judged to be illegal, the next link can not receive the data/the me/frame-res subject resource because the data/the frame/res subject resource is illegal, so that the next step is continued after the data/the frame/res subject resource is always waited for. However, since the illegal problem is not solved, the follow-up process is always waited for and cannot be continued, and finally the phenomenon that the card is stuck on an animation loading interface is caused. The phenomenon is shown as follows: when the mobile phone is started, the mobile phone is clamped on a Logo interface of a merchant (products produced by the mobile phone merchant generally have starting animations, the animations show the Logo of the merchant) always load Logo characters, and the starting animations are not run out, so that a card screen is formed.
In step 320, if the theme resource is judged to be illegal, the theme resource is repaired.
In this step, if the subject resource is judged to be illegal, the method for repairing the subject resource may include performing traversal update and upgrade on the version of the subject resource, and the traversal process needs to be performed until the next link requiring reading of the res subject resource and the legal res subject resource version can be read. The method comprises the steps of checking whether nodes and versions of the subject resources are latest one by one, finding data/the me/frame-res subject resources in a bottom layer path by a mobile phone system, redefining the data/the me/frame-res subject resources through bottom layer code reconstruction, and defaulting return values of the data/the me/frame-res subject resources into a readable numerical value of a synthesis method. Specific reconstruction codes are likewise not listed here, and reference can be made to the description in connection with embodiment 1.
And step 330, loading the repaired theme resource.
After the repaired main resource is used, other downstream programs need to call the repaired main resource, secondary judgment is not needed, and the repaired main resource is directly called and loaded.
Step 340, starting the Zygote process and entering a starting process.
Zygote is a process, a process that plays an important role in the Android system. The method has the effect of accelerating the starting and running speed of the Android application program.
According to the mobile terminal startup control method provided by the embodiment, the legitimacy of the theme resource to be loaded during startup is judged firstly, and if the theme resource is illegal, the theme resource is repaired, so that the startup process is ensured to be carried out smoothly; the technical scheme in the embodiment can avoid the situation that the card is always in the state of displaying the startup picture when the computer is started; in addition, the starting and running speeds of the starting program can be accelerated by adding the Zygote process.
Example 4
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a power-on control method of a mobile terminal according to another embodiment of the present application, where the power-on control method in the embodiment mainly includes the following steps:
step 410, judging the validity of the theme resources to be loaded when the mobile terminal is started.
In this step, if it is determined that the theme resource to be loaded is legal when the mobile terminal is powered on, step 420 is entered; if the theme resource to be loaded when the mobile terminal is powered on is judged to be illegal, step 430 is performed.
Step 420, directly loading the theme resource and entering a boot process.
In this step, if the theme resource to be loaded when the mobile terminal is started is judged to be legal, and the theme resource is proved to meet the condition of calling the subsequent flow, the theme resource is directly called and loaded and the starting process is started.
Step 430, repairing the subject resource.
Similarly, the method for repairing the subject resource may include performing traversal update and upgrade on the version of the subject resource, where the traversal process needs to be performed until the next link requiring reading of the res subject resource is performed, and the valid res subject resource version may be read. I.e. check the nodes of the subject resource one by one and whether the version is up to date.
Step 440, loading the repaired theme resource.
After the repaired main resource is used, other downstream programs need to call the repaired main resource, secondary judgment is not needed, and the repaired main resource is directly called and loaded.
Step 450, start the Zygote process.
In an Android system, the Zygote process is used for accelerating the starting and running speed of an Android application program.
Step 460, monitoring the loading time of the subject resource.
Since the zygate process is actually in a state of starting and waiting during the loading process of the theme resource, this step can be regarded as a step of monitoring the loading time of the theme resource, which is made for the zygate process.
Step 470, determine whether the loading time exceeds the time threshold.
In this step, the time threshold is generally set by the system according to the operation state of the mobile terminal device, and may be, for example, 2 seconds, 3 seconds, 5 seconds, 10 seconds, and the like, and the specific value is not limited in this embodiment.
If the loading time is judged to exceed the time threshold, the next step is entered, otherwise, the step 460 is returned to continue monitoring and waiting.
Step 480, restart the Zygote process and enter the boot process.
In the process of starting and loading the theme resource, if the time for loading the theme resource is too long (exceeds a time threshold), the system will have a Timeout error, and the presented state is that the zygate process is killed and restarted. If the subsequent program can respond in time, that is, no extra time is consumed for waiting theme response, the zygate process cannot be restarted, and finally the loading of the boot animation can be directly and smoothly finished.
And step 490, ending.
According to the mobile terminal startup control method provided by the embodiment, the legitimacy of the theme resource to be loaded during startup is judged firstly, and if the theme resource is illegal, the theme resource is repaired, so that the startup process is ensured to be carried out smoothly; the technical scheme in the embodiment can avoid the situation that the card is always in the state of displaying the startup picture when the computer is started; in addition, the starting and running speeds of the starting program can be increased by adding the Zygote process, and whether the Zygote process needs to be restarted or not is determined by monitoring the loading time of the subject resource and judging the relation between the loading time and the time threshold; if the subsequent program can respond in time, that is, no extra time is consumed for waiting theme response, the zygate process does not need to be restarted, and the boot animation can be directly loaded and the boot can be smoothly completed.
Example 5
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a further embodiment of a power-on control method of a mobile terminal according to the present application, where the power-on control method in the present embodiment mainly includes the following steps:
step 510, judging the readability of the bottom layer code of the theme resource to be loaded when the mobile terminal is started.
The readability of the bottom code of the theme resource refers to whether the bottom code of the theme resource can be read by the starting-up process.
In step 520, if the underlying code of the subject resource cannot be read by the boot process, the underlying code of the subject resource is repaired.
In this step, the specific manner may be: and traversing and updating the version of the underlying code of the subject resource. Optionally, the traversal update here refers to: and detecting the readability of the bottom code versions of the theme resources one by one until the readable bottom code versions of the theme resources are detected, and taking the versions as the repaired usable versions. Traversal (Traversal) refers to making one and only one access to each node in the tree in sequence along a search route. The operation of the access node depends on the particular application. Traversal is one of the most important operations in the binary tree, and is the basis for performing other operations in the binary tree.
Furthermore, the readability sequence of the bottom code versions of the theme resources detected one by one is that the readability sequence is detected from a low version to a high version one by one, and the mode has at least two advantages, one of which is that an available version can be found quickly; secondly, compared with a mode of starting detection from the highest version, the method can be used without using the underlying code of the theme resource of the highest version under the condition that the theme resource can be loaded, because the higher the version of the underlying code of the theme resource is, the higher the complexity is, the larger the occupied memory is, because the larger the content is loaded, the loading speed of the boot-up is slower, and the reduction of the boot-up time is not facilitated.
Step 530, the repaired underlying code of the theme resource is loaded to enter the boot process.
After the repaired main resource bottom layer code is adopted, other downstream programs do not need to carry out secondary judgment when needing to call the main resource bottom layer code, and the main resource bottom layer code is directly called and loaded.
The mobile terminal startup control method provided by the embodiment can avoid the situation that the card is always in the state of displaying the startup picture when the mobile terminal is started; the use experience of the user on the mobile terminal equipment is improved.
Example 6
Referring to fig. 6, fig. 6 is a schematic flowchart of a power-on control method of a mobile terminal according to still another embodiment of the present application, where the power-on control method in the present embodiment mainly includes the following steps:
step 610, judging the readability of the bottom layer code of the theme resource to be loaded when the mobile terminal is started.
In this step, if the bottom layer code of the theme resource to be loaded is readable when the mobile terminal is started, step 620 is entered; if the bottom layer code of the theme resource to be loaded is determined to be unreadable when the mobile terminal is powered on, step 630 is entered.
Step 620, directly loading the bottom layer code of the subject resource to enter the boot process.
In this step, if the bottom layer code of the theme resource to be loaded is determined to be readable when the mobile terminal is started, which indicates that the bottom layer code of the theme resource meets the condition of the subsequent flow call, the bottom layer code of the theme resource is directly called and the starting process is entered.
Step 630, repair the underlying code of the subject resource.
In this step, please refer to fig. 7 for a specific method for repairing the bottom layer code of the subject resource, where fig. 7 is a flowchart illustrating an embodiment of a method for repairing the bottom layer code of the subject resource, the method may include the following steps:
step 631, detecting the network connection status of the mobile terminal.
In this step, if the mobile terminal is in the WiFi connection state, step 632 is entered; if the mobile terminal is in the connection state of the mobile data network, step 633 is performed; if the mobile terminal is in the network connection state, step 631 is performed again to continue detecting the network connection status of the mobile terminal.
Step 632, connect to a server.
The server referred to herein may be a cloud server or other server storing the subject resource.
And step 633, popping up a prompt inquiry dialog box on the display interface.
The content of the dialog box is to ask the user whether to continue, which may result in a certain data traffic.
In step 634, it is determined whether a continue operation command is received.
In this step, if it is determined that the operation command is received, the process proceeds to step 632 to connect to the server; if the continuous operation instruction is not received, the step returns to step 631, and the network connection status of the mobile terminal is re-detected.
Step 635, the version of the underlying code of the subject resource is updated in a traversal manner.
Optionally, the traversal update here refers to: and detecting the readability of the bottom code versions of the theme resources one by one until the readable bottom code versions of the theme resources are detected, and taking the versions as the repaired usable versions. Furthermore, the readability sequence of the bottom code versions of the theme resources detected one by one is that the readability sequence is detected from a low version to a high version one by one, and the mode has at least two advantages, one of which is that an available version can be found quickly; secondly, compared with a mode of starting detection from the highest version, the method can be used without using the underlying code of the theme resource of the highest version under the condition that the theme resource can be loaded, because the underlying code of the theme resource is higher in version and higher in complexity, the occupied memory is generally larger, and because the larger content is loaded, the starting loading speed is slower, and the starting process is not accelerated.
And step 640, loading the repaired underlying code of the theme resource.
And directly calling and loading other downstream programs when the repaired main resource bottom layer code needs to be called.
Step 650, load boot animation.
The boot animation includes company LOGO and other information.
In step 660, the boot process ends.
According to the mobile terminal startup control method provided by the embodiment, the readability of the bottom code of the theme resource to be loaded during startup is judged firstly, and if the bottom code of the theme resource is not readable, the bottom code of the theme resource is repaired, so that the startup process is ensured to be carried out smoothly; the technical scheme in the embodiment can avoid the situation that the card is always in the state of displaying the startup picture when the computer is started; in addition, in the process of repairing the underlying code of the theme resource, the network state of the mobile terminal is detected, so that the speed of the starting process is ensured, and the condition that the user generates extra data traffic cost due to the use of excessive data traffic is avoided.
Referring to fig. 8, fig. 8 is a schematic block diagram illustrating a structure of an embodiment of a mobile terminal provided in the present application, where the mobile terminal 50 includes a processor 51 and a memory 52. The processor 51 is coupled to a memory 52.
The processor 51 is specifically configured to determine readability of a bottom layer code of the theme resource to be loaded when the mobile terminal is powered on; if the bottom code of the subject resource can not be read in by the starting process, the bottom code of the subject resource is repaired; and loading the repaired underlying code of the theme resource to enter a starting process. . Please refer to the detailed description of the embodiments of the power-on control method in fig. 1-6.
Further, please refer to fig. 9, where fig. 9 is a schematic block diagram illustrating a structural configuration of another embodiment of the mobile terminal provided in the present application, and the mobile terminal in the present embodiment includes a determining module 61, a repairing module 62, and a loading module 63.
Specifically, the judging module 61 is configured to judge the validity of the theme resource to be loaded when the mobile terminal is powered on; the repairing module 62 is configured to repair the theme resource when the judging module judges that the theme resource is illegal; the loading module 63 is used for loading the repaired theme resource. Further, the repairing module 62 is specifically configured to perform traversal update and upgrade on the version of the subject resource. The judging module 61 judges that the theme resource to be loaded is legal when the mobile terminal is started, and the loading module 63 directly loads the theme resource and enters a starting process. The theme resources comprise at least one of a LOGO picture and a boot animation of a mobile terminal manufacturer.
Further, the judging module 61 is further specifically configured to judge readability of a bottom layer code of the theme resource to be loaded when the mobile terminal is powered on; the repairing module 62 is specifically configured to repair the bottom layer code of the subject resource if the bottom layer code of the subject resource cannot be read by the boot process; the loading module 63 is specifically configured to load the repaired underlying code of the theme resource to enter a boot process.
The mobile terminal provided by this embodiment repairs the theme resource by first judging the legitimacy of the theme resource to be loaded when the mobile terminal is started, and if the theme resource is illegal, the mobile terminal ensures that the starting process is smoothly performed; the technical scheme in the embodiment can avoid the situation that the card always displays the startup picture when the mobile terminal is started, and improve the use experience of the user on the mobile terminal equipment.
Referring to fig. 10, fig. 10 is a schematic block diagram illustrating a structural configuration of another embodiment of the mobile terminal provided in the present application, where the mobile terminal in the present embodiment includes a determining module 61, a repairing module 62, a loading module 63, and a starting module 64.
The judging module 61 is used for judging the validity of the theme resources to be loaded when the mobile terminal is started; the repairing module 62 is configured to repair the theme resource when the judging module judges that the theme resource is illegal; the loading module 63 is configured to load the repaired theme resource; the starting module 64 is configured to start a zygate process, so that the mobile terminal enters a boot process. For detailed working processes of each functional module, please refer to the detailed description of the embodiments of the power-on control method in fig. 1-6, which is not further described herein.
The mobile terminal provided by this embodiment repairs the theme resource by first judging the legitimacy of the theme resource to be loaded when the mobile terminal is started, and if the theme resource is illegal, the mobile terminal ensures that the starting process is smoothly performed; the technical scheme in the embodiment can avoid the situation that the card is always in the state of displaying the startup picture when the computer is started; in addition, the starting and running speeds of the starting program can be accelerated by adding the Zygote process.
Continuing to refer to fig. 11, fig. 11 is a schematic block diagram of a structural composition of another embodiment of the mobile terminal provided in the present application, where the mobile terminal in the present embodiment includes a determining module 61, a repairing module 62, a loading module 63, a starting module 64, and a monitoring module 65; for detailed technical features of the determining module 61, the repairing module 62, the loading module 63, and the starting module 64, please refer to the related description of the foregoing embodiments, which is not repeated herein. The monitoring module 65 is configured to monitor the loading time of the theme resource, and determine whether the loading time exceeds a time threshold, if so, the starting module 64 restarts the zygate process.
The mobile terminal provided by this embodiment repairs the theme resource by first judging the legitimacy of the theme resource to be loaded when the mobile terminal is started, and if the theme resource is illegal, the mobile terminal ensures that the starting process is smoothly performed; the technical scheme in the embodiment can avoid the situation that the card is always in the state of displaying the startup picture when the computer is started; in addition, the starting and running speeds of the starting program can be accelerated by adding the Zygote process, and whether the Zygote process needs to be restarted or not is determined by monitoring the loading time of the subject resource and judging the relation between the loading time and the time threshold; if the subsequent program can respond in time, that is, no extra time is consumed for waiting theme response, the zygate process does not need to be restarted, and the boot animation can be directly loaded and the boot can be smoothly completed.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application, where the computer storage medium 90 is used to store a computer program 91, and the computer program 91 is used to implement the power-on control method provided in the embodiments of fig. 1 to 7 when executed by a processor, and the computer storage medium 90 may be used in the above-mentioned mobile terminal or may be used in a server.
The computer program stored in the computer-readable storage medium of this embodiment is similar to the computer program stored in the memory in the embodiment of the electronic device described above, and the method steps implemented when the computer program is executed by the processor are similar, and are not described herein again.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A startup control method of a mobile terminal is characterized by comprising the following steps:
judging the legality of the theme resources to be loaded when the mobile terminal is started;
if the theme resource is illegal, repairing the theme resource; wherein the step of repairing the theme resource specifically includes: traversing and updating the version of the underlying code of the subject resource;
loading the repaired theme resource;
starting a Zygote process;
monitoring the loading time of the theme resource, judging whether the loading time exceeds a time threshold, and if so, restarting the Zygote process;
and entering a starting process.
2. The boot control method according to claim 1, wherein the step of repairing the subject resource specifically comprises: and detecting the network connection state of the mobile terminal, connecting the mobile terminal to the server when the mobile terminal is in WiFi connection, and traversing and updating the version of the underlying code of the theme resource.
3. The power-on control method according to claim 2, wherein in the step of detecting the network connection status of the mobile terminal, when the mobile terminal is connected to the mobile data network, a prompt query dialog box pops up on the display interface, and when a continuous operation instruction is received, the version of the underlying code of the theme resource is updated by traversing the mobile data network connection server.
4. The boot control method according to any one of claims 1 to 3, wherein the step of updating the version of the underlying code of the subject resource in a traversal manner specifically comprises: and detecting the legality of the underlying code versions of the subject resources one by one until the legal underlying code versions of the subject resources are detected, and taking the versions as the repaired usable versions.
5. The power-on control method according to claim 4, wherein the sequence of detecting the legitimacy of the underlying code versions of the subject resource one by one is to detect one by one from a low version to a high version.
6. The power-on control method according to claim 1, wherein in the step of determining the validity of the bottom code of the theme resource to be loaded when the mobile terminal is powered on, if the bottom code of the theme resource is valid, the bottom code of the theme resource is directly loaded and a power-on process is entered.
7. The power-on control method according to claim 1, wherein the power-on process comprises loading a power-on animation.
8. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, the processor being coupled to the memory, the processor in operation executing instructions to implement the power-on control method according to any of claims 1-7.
9. A mobile terminal, characterized in that the mobile terminal comprises:
the judging module is used for judging the legality of the theme resources to be loaded when the mobile terminal is started;
the restoration module is used for restoring the theme resource when the judgment module judges that the theme resource is illegal; the restoration module is specifically configured to perform traversal update on the version of the underlying code of the theme resource;
the loading module is used for loading the repaired theme resource so as to enter a starting-up process;
the starting module is used for starting the Zygote process;
and the monitoring module is used for monitoring the loading time of the theme resource and judging whether the loading time exceeds a time threshold, and if so, the starting module restarts the Zygote process.
10. A computer-readable storage medium having stored thereon a computer program, the program being executable by a processor to implement the power-on control method according to any one of claims 1 to 7.
CN201810930488.6A 2018-08-15 2018-08-15 Mobile terminal, starting control method thereof and storage medium Active CN109254797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810930488.6A CN109254797B (en) 2018-08-15 2018-08-15 Mobile terminal, starting control method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810930488.6A CN109254797B (en) 2018-08-15 2018-08-15 Mobile terminal, starting control method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN109254797A CN109254797A (en) 2019-01-22
CN109254797B true CN109254797B (en) 2022-01-14

Family

ID=65050162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810930488.6A Active CN109254797B (en) 2018-08-15 2018-08-15 Mobile terminal, starting control method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN109254797B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202952B (en) * 2020-10-22 2022-04-22 Tcl通讯(宁波)有限公司 Mobile terminal testing method and device, storage medium and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915598A (en) * 2015-05-29 2015-09-16 南京信息工程大学 Monitoring method and monitoring system for C/S client side
CN105607972A (en) * 2015-12-28 2016-05-25 Tcl集团股份有限公司 Abnormity remedying method and device
CN106293987A (en) * 2016-08-15 2017-01-04 Tcl集团股份有限公司 A kind of method and apparatus repairing starting up of terminal exception
CN106648773A (en) * 2016-12-16 2017-05-10 四川长虹电器股份有限公司 Method for achieving rapid starting based on Android system
CN106874195A (en) * 2017-01-18 2017-06-20 环球智达科技(北京)有限公司 A kind of bug for android applications repairs and continues delivery scheme
CN107025119A (en) * 2017-03-06 2017-08-08 山东大学 A kind of multiple method of Android intelligent terminal system software hot repair

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253306B2 (en) * 2010-02-23 2016-02-02 Avaya Inc. Device skins for user role, context, and function and supporting system mashups
CN102789390A (en) * 2012-08-24 2012-11-21 乐视网信息技术(北京)股份有限公司 Method for realizing startup play of network video of Android system
CN103488495A (en) * 2013-08-13 2014-01-01 广东欧珀移动通信有限公司 Method for accelerating startup by dynamically adjusting startup preloaded resources
CN104978237B (en) * 2014-04-11 2019-03-19 腾讯科技(深圳)有限公司 The method and apparatus for repairing dynamic link library file
CN105117246A (en) * 2015-08-04 2015-12-02 晶晨半导体(上海)有限公司 Method for rapidly booting electronic equipment
CN107657170B (en) * 2016-07-25 2020-12-01 北京计算机技术及应用研究所 Trusted loading starting control system and method supporting intelligent repair
CN106569863B (en) * 2016-11-10 2020-01-17 福州智永信息科技有限公司 Resource and code modularization-based android app resource updating and repairing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915598A (en) * 2015-05-29 2015-09-16 南京信息工程大学 Monitoring method and monitoring system for C/S client side
CN105607972A (en) * 2015-12-28 2016-05-25 Tcl集团股份有限公司 Abnormity remedying method and device
CN106293987A (en) * 2016-08-15 2017-01-04 Tcl集团股份有限公司 A kind of method and apparatus repairing starting up of terminal exception
CN106648773A (en) * 2016-12-16 2017-05-10 四川长虹电器股份有限公司 Method for achieving rapid starting based on Android system
CN106874195A (en) * 2017-01-18 2017-06-20 环球智达科技(北京)有限公司 A kind of bug for android applications repairs and continues delivery scheme
CN107025119A (en) * 2017-03-06 2017-08-08 山东大学 A kind of multiple method of Android intelligent terminal system software hot repair

Also Published As

Publication number Publication date
CN109254797A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN102830984B (en) Method, chip and the communication terminal that firmware updates
US20090288004A1 (en) System, method, apparatus and computer program product for providing a notification of widget availability
CN110825563B (en) System recovery method and device and electronic equipment
CN104320774B (en) Upgrading method, device and equipment
CN101694623A (en) Method for updating handheld device software
US20120210317A1 (en) Method and apparatus for updating data card
KR20130142073A (en) Method and terminal for using mobile memory card to boot up mobile phone operating system
CN115328563B (en) System starting method and electronic equipment
CN109254797B (en) Mobile terminal, starting control method thereof and storage medium
CN112486733B (en) System restoration method, device, terminal and storage medium
CN112394906A (en) Method and equipment for switching application operation
US20170199733A1 (en) Method for terminal to update operating system, terminal and system
CN116700768B (en) Application processing method and related device
US20220334820A1 (en) System and method for intermediate software upgrades for information handling systems
CN108881623B (en) Mobile terminal control method, mobile terminal and storage medium thereof
CN114880003A (en) System upgrading method of intelligent terminal, intelligent terminal and storage medium
CN113721959A (en) Information processing method and device and electronic equipment
CN107621997B (en) Processing method and device
CN113138785A (en) Application program updating method and device
CN114138343A (en) Terminal and terminal starting method
CN111381892A (en) Data processing method, device, equipment and machine readable medium
CN112631639B (en) Patch code adding method, device, equipment and computer readable storage medium
CN116302295B (en) Interface display method
US20060156301A1 (en) Method for recovering from download failure of program and portable terminal employing the method
KR20120030573A (en) A method, apparatus and computer program for loading files during a boot-up process

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
GR01 Patent grant
GR01 Patent grant