CN110716762B - Method for operating system to enter homepage quickly - Google Patents

Method for operating system to enter homepage quickly Download PDF

Info

Publication number
CN110716762B
CN110716762B CN201910828838.2A CN201910828838A CN110716762B CN 110716762 B CN110716762 B CN 110716762B CN 201910828838 A CN201910828838 A CN 201910828838A CN 110716762 B CN110716762 B CN 110716762B
Authority
CN
China
Prior art keywords
operating system
homepage
network
time
program
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
CN201910828838.2A
Other languages
Chinese (zh)
Other versions
CN110716762A (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.)
Jingchen Semiconductor Shenzhen Co ltd
Original Assignee
Jingchen Semiconductor Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingchen Semiconductor Shenzhen Co ltd filed Critical Jingchen Semiconductor Shenzhen Co ltd
Priority to CN201910828838.2A priority Critical patent/CN110716762B/en
Publication of CN110716762A publication Critical patent/CN110716762A/en
Application granted granted Critical
Publication of CN110716762B publication Critical patent/CN110716762B/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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The invention provides a method for an operating system to quickly enter a homepage, wherein the operating system comprises a program started by starting up, and the program is used for opening the homepage, and the method comprises the following steps: step S1, setting a first time according to a preset time for opening a homepage by a program; step S2, starting a process of connecting a network according to the first time delay; step S3, judging whether the difference value between the first current time when the program finishes opening the homepage and the second current time when the network is started exceeds a preset threshold value; if yes, setting a first time according to the difference value, and then returning to the step S2; step S4, restarting the operating system, so that the operating system starts the network when the program finishes entering the homepage. The invention has the beneficial effects that: the network is started while the program is finished entering the homepage, so that consumption of CPU resources is reduced, the network can be normally used after the program is finished entering the homepage, and the experience of a user is improved.

Description

Method for operating system to enter homepage quickly
Technical Field
The invention relates to the technical field of computers, in particular to a method for an operating system to quickly enter a homepage.
Background
The starting flow of the android system in the prior art is as follows: bootloader, kernel, init (Init is a user-level process started by Kernel), zygate (zygate is created by Init by parsing a file), systemServer (system service) and APP (application), wherein the SystemServer startup phase sequentially includes a system boot service, a core service and other services, so that when an operating system enters the SystemServer startup phase, the above services are started, thereby increasing the startup time of the operating system. In the prior art, the start-up program needs to be started when the intelligent device is started, however, the intelligent device usually starts to connect with the network before the start-up program enters the homepage, so that the operating system executes other processes through the network before the start-up program enters the homepage, thereby increasing other processes started in the process from the start-up to the start-up of the intelligent device entering the homepage, further consuming CPU resources of the intelligent device, affecting the speed of entering the homepage when the intelligent device is started, and reducing the user experience.
Disclosure of Invention
In view of the above-mentioned problems in the prior art, a method for enabling an operating system to quickly enter a homepage is provided, which aims to reduce consumption of CPU resources and improve user experience.
The specific technical scheme is as follows:
a method for an operating system to quickly enter a homepage, wherein the operating system comprises a program started by a power-on, the program is used for opening the homepage, and the method comprises the following steps:
step S1, setting a first time according to a preset time for opening a homepage by a program;
step S2, starting a process of connecting a network according to the first time delay;
step S3, judging whether the difference value between the first current time when the program finishes opening the homepage and the second current time when the network is started exceeds a preset threshold value;
if yes, setting a first time according to the difference value, and then returning to the step S2;
step S4, restarting the operating system, so that the operating system starts the network when the program finishes entering the homepage.
Preferably, the operating system is an Android system.
Preferably, the method for the operating system to quickly enter the homepage, wherein step S2 specifically includes the following steps:
step S21, starting an operating system, and acquiring a second time when the operating system is about to be connected with a network;
step S22, calculating to obtain offset time between the first time and the second time;
step S23, starting the process of connecting the network according to the offset time delay.
Preferably, the operating system is a method for entering a homepage quickly, wherein in step S21, the operating system acquires a second time when the network is to be connected in a system service start-up phase.
Preferably, the method for the operating system to quickly enter the homepage includes the steps of connecting a network to a wired network; and/or
When the wired network is connected, the operating system completes the system service starting stage according to the first strategy.
Preferably, the method for the operating system to quickly enter the homepage, wherein connecting the network comprises connecting a wireless network; and/or
When the wireless network is connected, the operating system completes the system service starting stage according to the second strategy.
Preferably, the method for the operating system to quickly enter the homepage includes, when the operating system is an Android system, sequentially: and starting an Ethernet service in the Android system, and calling an Ethernet service module method and an Ethernet factor method.
Preferably, the method for the operating system to quickly enter the homepage includes, when the operating system is an Android system, sequentially: and starting a WifiService service in the Android system, and calling a WifiServiceIII method and a checkAndStartWifi method.
Preferably, the operating system quickly enters the homepage, wherein when the operating system connects the wired network, the operating system calls a startNetwork method in the Android system to connect the wired network in step S2.
Preferably, the operating system is a method for quickly entering a homepage, wherein when the operating system is connected to the wireless network, the operating system calls a setWifiEnabled method in the Android system in step S2 to connect to the wireless network.
The technical scheme has the following advantages or beneficial effects: the method and the device realize the process of starting the network connection before the program enters the homepage, and connect the network and start the network when the program finishes entering the homepage, thereby avoiding the automatic starting of multiple processes caused by the starting of the network before the program enters the homepage, further reducing the consumption of CPU resources, realizing normal use of the network after the program finishes entering the homepage, and improving the experience of users.
Drawings
Embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The drawings, however, are for illustration and description only and are not intended as a definition of the limits of the invention.
FIG. 1 is a flow chart of an embodiment of a method for an operating system to quickly enter a home page according to the present invention;
FIG. 2 is a flowchart of step S2 of a method embodiment of the present invention for an operating system to quickly enter a homepage.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
The invention includes a method for operating system to enter homepage quickly, wherein the operating system includes a program started by startup, the program is used for opening homepage, as shown in fig. 1, the method includes the following steps:
step S1, setting a first time according to a preset time for opening a homepage by a program;
step S2, starting a process of connecting a network according to the first time delay;
step S3, judging whether the difference value between the first current time when the program finishes opening the homepage and the second current time when the network is started exceeds a preset threshold value;
if yes, setting a first time according to the difference value, and then returning to the step S2;
step S4, restarting the operating system, so that the operating system starts the network when the program finishes entering the homepage.
In the above embodiment, by setting the first time, the process of connecting to the network is started at the first time, and by adjusting the preset time to set the first time to delay the start of the process of connecting to the network, then by judging whether the first current time of opening the homepage by the program is equal to the second current time of starting to the network, then when the first current time and the second current time are unequal, the first time is continuously adjusted according to the difference between the first current time and the second current time, so that the operating system starts to the network while the program completes entering the homepage, then the operating system can be restarted, and the first time does not need to be continuously adjusted after the operating system is restarted. Therefore, the process of starting the network connection before the program enters the homepage is realized (wherein the process of starting the network connection is delayed according to the first time), then the program is connected with the network and started at the same time of entering the homepage, further, the automatic starting of multiple processes caused by the starting of the network before the program enters the homepage is avoided, the consumption of CPU resources is reduced, the network can be normally used after the program enters the homepage, and the experience of a user can be improved.
Further, as a preferred embodiment, the first time may be a system attribute time, so an operator may set the system attribute time in an attribute file of the operating system according to a preset time when the program opens the homepage, so as to enable the operating system to start the network while the program completes entering the homepage. Therefore, the attribute time of the system is only required to be directly regulated in the attribute file, other files or programs of an operating system are not required to be changed, too many processes are not required to be changed, and the number of processes automatically started during network starting is not required to be reduced, so that the processes automatically started during network starting are effectively prevented from occupying CPU resources, and the speed of entering a homepage under the networking condition is improved.
Further, in the above embodiment, the operating system may include a program that starts up with a boot, wherein a preset time for the program to open the homepage is known.
Further, as a preferred embodiment, the preset threshold may be preferably 0s, and the operator may also adjust according to the actual requirement.
Further, in the above-described embodiment, the connection network includes a connection wired network and a connection wireless network.
Wherein the operating system may connect the wired network and the wireless network, but when the connection of the wired network of the operating system is prioritized over the connection of the wireless network, the wired network is connected at this time; when the connection wireless network of the operating system takes precedence over the connection wired network, the connection is a wireless network at this time.
Further, in the above embodiment, the operating system is an Android system.
Further, in the above embodiment, as shown in fig. 2, step S2 specifically includes the following steps:
step S21, starting an operating system, and acquiring a second time when the operating system is about to be connected with a network;
step S22, calculating to obtain offset time between the first time and the second time;
step S23, starting the process of connecting the network according to the offset time delay.
In the above embodiment, after the operating system is started, the operating system will automatically connect to the network, so that the operating system directly obtains the second time when the operating system is about to automatically connect to the network, and the operating system can delay the process of starting the network according to the offset time between the first time and the second time, thereby avoiding the unnecessary process caused by starting the network after the operating system automatically connects to the network, further avoiding consuming a lot of CPU resources, and reducing the time for the program to enter the homepage.
Further, as a preferred embodiment, the first time may be a system attribute time in an attribute file of the operating system, and the second time may be a system start time acquired when the operating system is about to automatically connect to the network, where the operating system directly delays a process of connecting to the network according to a difference between the system attribute time and the system start time in the attribute file; namely, the process connected with the network is originally started at the system starting time, but the operating system directly delays the process connected with the network by the difference value at the system attribute time, so that an operator only needs to adjust the system attribute time in the attribute file, and does not need to change other processes of the operating system, and the other processes can be the program for starting the process connected with the network.
Further, in the above embodiment, in step S21, the operating system acquires the second time when the network is to be connected in the system service start-up phase (SystemServer).
Further, in the above embodiment, when the wired network is connected, the operating system completes the system service initiation phase according to the first policy.
Further, in the above embodiment, when the wireless network is connected, the operating system completes the system service initiation phase according to the second policy.
Further, in the above embodiment, when the operating system is an Android system, the first policy sequentially includes: starting an Ethernet service in the Android system, and calling an Ethernet service module method and an Ethernet network factor method; or (b)
When the operating system is an Android system, the second policy sequentially includes: and starting a WifiService service in the Android system, and calling a WifiServiceIII method and a checkAndStartWifi method.
In the prior art, when a wired network is connected, an Android operating system calls an Ethernet service method to start a process of connecting the wired network.
In the prior art, when a wired network is connected, an Android operating system calls a WifiService method to start a process of connecting a wireless network;
it should be noted that the first time is after completing the ethernet factory method or the checkAndStartWifi method.
Further, in the above embodiment, the first time is less than or equal to the preset time.
The difference between the first time and the preset time is within a certain range, and the certain range may be set to 5 seconds, for example, the preset time is known to be 30 seconds, and then the first time may be within 30-25 seconds.
Further, in the above embodiment, when the wired network is connected, the operating system connects the wired network according to the first method in step S2; or (b)
When the wireless network is connected, the operating system connects the wireless network according to the second method in step S2.
Further, in the above embodiment, when the operating system is an Android system, the first method is a startNetwork service in the Android system; or (b)
When the operating system is an Android system, the second method is a setWifiEnable service in the Android system.
Further, as a specific embodiment, taking the first time as the system attribute time in the attribute file, taking the second time as the system start time acquired when the operating system is about to automatically connect to the network as an example;
firstly, an operator sets system attribute time in an attribute file according to preset time of opening a homepage by a known program;
then, the intelligent device provided with the operating system is electrified to start the operating system, and the system starting time is acquired when the operating system is about to be connected with a network;
secondly, calculating offset time between system attribute time and system starting time;
then, the operating system starts a process for connecting the network according to the offset time delay;
then, judging whether the difference between the first current time when the program finishes opening the homepage and the second current time when the network is started exceeds a preset threshold value;
if the difference exceeds a preset threshold, setting system attribute time according to the difference between the first current time and the second current time until the first current time and the second current time are equal;
finally, the operating system is restarted, so that the operating system starts the network while the program is finished entering the homepage.
In the above embodiment, the offset time is calculated by the following formula:
when the network is a wired network, t4=t1-T2;
when the network is a wireless network, t4=t1-T3;
wherein T1 is used to represent a first time, i.e., a system attribute time;
t2 is used for indicating the acquired system start time when the wired network is connected;
t3 is used for indicating the acquired system starting time when the wireless network is connected;
t4 is used to represent the offset time.
Further, the operating system as a preferred embodiment can be applied to a smart device, wherein the smart device can be a smart television or a smart phone.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, and it will be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for an operating system to quickly enter a homepage, wherein the operating system includes a program that is booted up, the program being used to open the homepage, the method comprising the steps of:
step S1, setting a first time according to a preset time for opening a homepage by the program;
step S2, starting a process of connecting a network according to the first time delay;
step S3, judging whether the difference value between the first current time when the program finishes opening the homepage and the second current time when the network is started exceeds a preset threshold value;
if yes, setting the first time according to the difference value, and then returning to the step S2;
and S4, restarting the operating system, so that the operating system starts a network when the program finishes entering a homepage.
2. The method for the operating system to quickly enter the homepage according to claim 1, wherein the operating system is an Android system.
3. The method for the operating system to quickly enter the homepage according to claim 1, wherein said step S2 comprises the following steps:
step S21, starting the operating system, and acquiring a second time when the operating system is about to be connected with a network;
step S22, calculating to obtain the offset time between the first time and the second time;
step S23, starting a network connection process according to the offset time delay;
the second time is a system start time acquired when the operating system is about to automatically connect to a network.
4. A method for an operating system to quickly enter a home page as claimed in claim 3,
in the step S21, the operating system acquires the second time when the network is to be connected in the system service start-up phase.
5. The method for the operating system to quickly enter the homepage of claim 4,
the connection network comprises a connection wired network; and/or
And when the wired network is connected, the operating system completes the system service starting stage according to a first strategy.
6. The method for the operating system to quickly enter the homepage of claim 5,
the connection network comprises a connection wireless network; and/or
And when the wireless network is connected, the operating system completes the system service starting stage according to a second strategy.
7. The method for the operating system to quickly enter the homepage of claim 5,
when the operating system is an Android system, the first policy sequentially includes: and starting an Ethernet service in the Android system, and calling an Ethernet service module method and an Ethernet factor method.
8. The method for the operating system to quickly enter the homepage of claim 6,
when the operating system is an Android system, the second policy sequentially includes: and starting a WifiService service in the Android system, and calling a WifiServiceIII method and a checkAndStartWifi method.
9. The method for the operating system to quickly enter the homepage of claim 5,
when the wired network is connected, the operating system calls a startNetwork method in the Android system in step S2 to connect the wired network.
10. The method for the operating system to quickly enter the homepage of claim 6,
when the wireless network is connected, the operating system calls a setWifiEnable method in the Android system in step S2 to connect the wireless network.
CN201910828838.2A 2019-09-03 2019-09-03 Method for operating system to enter homepage quickly Active CN110716762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910828838.2A CN110716762B (en) 2019-09-03 2019-09-03 Method for operating system to enter homepage quickly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910828838.2A CN110716762B (en) 2019-09-03 2019-09-03 Method for operating system to enter homepage quickly

Publications (2)

Publication Number Publication Date
CN110716762A CN110716762A (en) 2020-01-21
CN110716762B true CN110716762B (en) 2023-05-26

Family

ID=69209607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910828838.2A Active CN110716762B (en) 2019-09-03 2019-09-03 Method for operating system to enter homepage quickly

Country Status (1)

Country Link
CN (1) CN110716762B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298524A (en) * 2010-06-28 2011-12-28 鸿富锦精密工业(深圳)有限公司 Driver loading method
CN102298532A (en) * 2011-09-15 2011-12-28 奇智软件(北京)有限公司 Startup-item-based management method and device
EP2461631A2 (en) * 2010-12-01 2012-06-06 Deutsche Telekom AG System support for accessing and switching among multiple wireless interfaces on mobile devices
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN104252365A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Quick start method of Android operating system
CN104598254A (en) * 2015-02-17 2015-05-06 福州瑞芯微电子有限公司 Method and device for rapidly powering on Android system
CN105159728A (en) * 2015-09-25 2015-12-16 青岛海信宽带多媒体技术有限公司 Method and device for obtaining NTP time information based on android system
CN107391126A (en) * 2017-07-05 2017-11-24 努比亚技术有限公司 A kind of method, terminal and computer-readable recording medium for lifting starting up speed
CN108958807A (en) * 2017-05-17 2018-12-07 华为技术有限公司 A kind of terminal system starting method and terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298524A (en) * 2010-06-28 2011-12-28 鸿富锦精密工业(深圳)有限公司 Driver loading method
EP2461631A2 (en) * 2010-12-01 2012-06-06 Deutsche Telekom AG System support for accessing and switching among multiple wireless interfaces on mobile devices
CN102298532A (en) * 2011-09-15 2011-12-28 奇智软件(北京)有限公司 Startup-item-based management method and device
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN104252365A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Quick start method of Android operating system
CN104598254A (en) * 2015-02-17 2015-05-06 福州瑞芯微电子有限公司 Method and device for rapidly powering on Android system
CN105159728A (en) * 2015-09-25 2015-12-16 青岛海信宽带多媒体技术有限公司 Method and device for obtaining NTP time information based on android system
CN108958807A (en) * 2017-05-17 2018-12-07 华为技术有限公司 A kind of terminal system starting method and terminal
CN107391126A (en) * 2017-07-05 2017-11-24 努比亚技术有限公司 A kind of method, terminal and computer-readable recording medium for lifting starting up speed

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Android WifiService的启动流程分析;李炼;《https://blog.csdn.net/lilian0118/article/details/21964423》;20140324;全文 *
SystemServer概述;追梦的Leo;《https://www.cnblogs.com/krislight1105/p/10156748.html》;20181221;全文 *

Also Published As

Publication number Publication date
CN110716762A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
RU2349951C2 (en) Processing of starting event
US8347296B2 (en) Priority control apparatus and priority control method
CN110855536B (en) Operation control method and device, household appliance and storage medium
WO2014180359A1 (en) File download method and device
CN106899649B (en) Task request processing method and device and user equipment
WO2016192188A1 (en) Method and terminal for adjusting cpu operation parameter
WO2015051723A1 (en) Method and device for downloading data
CN108224683B (en) Data synchronization method, user equipment and computer readable storage medium
WO2018090457A1 (en) Booting method, booting device and android intelligent apparatus
US20090253430A1 (en) Base Station Controller and Method for Restricting Access
CN110716762B (en) Method for operating system to enter homepage quickly
CN112910748A (en) Network distribution method, device, computer equipment and storage medium
US10869230B2 (en) Access control method and apparatus for service in broadband cluster system, and cluster terminal
CN112650541A (en) Application program starting acceleration method, system, equipment and storage medium
CN114679735A (en) Parameter adjusting method and device, electronic equipment and storage medium
CN110286954B (en) Application program starting method and device and storage medium
WO2020107198A1 (en) Operation apparatus maintenance method and device, storage medium, and program product
CN108121545B (en) Application program uninstalling feedback method and device
CN107666704B (en) A kind of method and user equipment of reboot time calibration TA timer
WO2017000803A1 (en) Method for implementing application and service controller
WO2020228033A1 (en) Sdk plug-in loading method and apparatus, and mobile terminal and storage medium
WO2013167061A2 (en) Method, device, system and user equipment for updating applications
CN106648743B (en) Terminal initialization method and device
CN107094160A (en) The method and system that a kind of data are downloaded
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus

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