CN110737477B - System starting method and device - Google Patents
System starting method and device Download PDFInfo
- Publication number
- CN110737477B CN110737477B CN201810793485.2A CN201810793485A CN110737477B CN 110737477 B CN110737477 B CN 110737477B CN 201810793485 A CN201810793485 A CN 201810793485A CN 110737477 B CN110737477 B CN 110737477B
- Authority
- CN
- China
- Prior art keywords
- operation mode
- user
- terminal
- oeminfo
- partition file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Abstract
The application discloses a system starting method and a system starting device, wherein the method comprises the following steps: when a terminal receives a system operation mode configuration instruction input by a legal user, writing a system operation mode indicated by the system operation mode configuration instruction into an OEMINFO partition file, wherein the system operation mode is a single system or a double system; when the terminal is restarted, the system bootstrap program of the terminal reads the OEMINFO partition file, and according to the system running mode recorded by the OEMINFO partition file, the kernel is triggered to execute a corresponding system initialization program so as to start the system in the corresponding running mode. The invention can meet the starting requirements of single and double systems of different users and is easy to realize.
Description
Technical Field
The present invention relates to computer application technologies, and in particular, to a method and an apparatus for starting a system.
Background
A common consumer terminal is an operating system, and a terminal in which two operating systems run simultaneously and foreground and background can be switched randomly is called a dual-system terminal. In general, a single system terminal needs to be changed into a dual system terminal, and the upgrade package needs to be downloaded again and upgraded once.
For the same type of hardware terminal, some customers may want to be single systems, and some customers may want to be dual systems. Thus, if a single system or a dual system is issued for different clients, upgrade packages need to be manufactured for different system start modes, and system upgrade needs to be performed, which results in additional labor and resource cost overhead. No corresponding solution has been proposed to this problem.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and an apparatus for system startup, which can meet the single and dual system startup requirements of different users and are easy to implement.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a system startup method, comprising:
when a terminal receives a system operation mode configuration instruction input by a legal user, writing a system operation mode indicated by the system operation mode configuration instruction into an OEMINFO partition file, wherein the system operation mode is a single system or a double system;
when the terminal is restarted, the system bootstrap program of the terminal reads the OEMINFO partition file, and triggers a kernel to execute a corresponding system initialization program according to the system running mode recorded by the OEMINFO partition file so as to start the system with the corresponding running mode.
Preferably, the authentication of the legitimate user includes:
and the terminal judges whether the equipment identification information input by the user is legal or not, if so, the user is determined to be a legal user, and otherwise, the user is determined to be an illegal user.
Preferably, the device identification information is input to the terminal in a two-dimensional code manner, and the device identification information is an international mobile equipment identification code IMEI.
Preferably, the triggering the kernel to execute the corresponding system initialization program includes:
the system bootstrap program sends a system initialization program corresponding to the system operation mode recorded by the OEMINFO partition file to a kernel through a commandline command; and the kernel starts the system in the corresponding operation mode by executing the system initialization program.
A system startup device comprising:
the terminal comprises a configuration module, a configuration module and a configuration module, wherein the configuration module is used for writing a system operation mode indicated by a system operation mode configuration instruction into an OEMINFO partition file when the terminal receives the system operation mode configuration instruction input by a legal user, and the system operation mode is a single system or a double system;
and the starting module is used for reading the OEMINFO partition file by a system bootstrap program of the terminal when the terminal is restarted, and triggering a kernel to execute a corresponding system initialization program according to the system running mode recorded by the OEMINFO partition file so as to start the system in the corresponding running mode.
Preferably, the configuration module is configured to determine whether the device identification information input by the user is legal, and if so, determine that the user is a legal user, otherwise, determine that the user is an illegal user.
Preferably, the device identification information is input to the terminal in a two-dimensional code manner, and the device identification information is an international mobile equipment identification code IMEI.
Preferably, the starting module is configured to execute a commandline command by using the system bootstrap program, and send a system initialization program corresponding to the system running mode recorded by the oeminffo partition file to the kernel; and the kernel starts the system with the corresponding operation mode by executing the system initialization program.
In summary, the system startup method and apparatus provided by the present invention record the system operation mode configured by the user by using the OEMINFO partition file, so that the single and dual system startup requirements of different users can be satisfied without making upgrade packages and performing system upgrade for different system startup modes, and the method and apparatus are easy to implement.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The core idea of the invention is as follows: the method comprises the steps that system operation mode information expected to be adopted by a user is stored in an OEMINFO partition file in advance, so that when the terminal is started, a system bootstrap program triggers a kernel to execute a corresponding system initialization program according to the system operation mode configured in the OEMINFO partition file, and the starting of a corresponding single system or double systems is realized, so that the system starting requirements of different users can be met.
Fig. 1 is a schematic method flow diagram according to an embodiment of the present invention, and as shown in fig. 1, a system startup method implemented by the embodiment mainly includes:
This step is used to store the system operation mode information that the user wishes to adopt in the oeminfno partition file, so that when the terminal is started, the corresponding single/dual system initialization program can be directly executed according to the system operation mode information in the oeminfno partition file.
In order to ensure the security of the system, the OEMINFO partition file is revised only according to the system operation mode configuration instruction of the legal user. Preferably, the following method can be adopted to authenticate the validity of the user:
and the terminal judges whether the equipment identification information input by the user is legal or not, if so, the user is determined to be a legal user, and otherwise, the user is determined to be an illegal user.
Further, the device identification information may be input to the terminal by scanning a two-dimensional code, and the device identification information may specifically be an International Mobile Equipment Identity (IMEI).
In this step, when the terminal is started each time, the system boot program will record the system running mode configured by the user according to the OEMINFO partition file to trigger the kernel to execute the corresponding system initialization program, so as to implement the start of the system in the corresponding running mode. Therefore, the upgrading package is not required to be manufactured according to different system starting modes and the system is upgraded, the single-system starting requirements and the double-system starting requirements of different users can be met, and the method is easy to realize.
Preferably, the following method can be adopted to trigger the kernel to execute the corresponding system initialization program:
the bootstrap program sends a system initialization program corresponding to the system operation mode recorded by the OEMINFO partition file to a kernel through a commandline command; and the kernel starts the system with the corresponding operation mode by executing the system initialization program.
Specifically, for a single system, a single system initialization program corresponding to the system running mode recorded by the oeminffo partition file may be sent to the kernel (i.e., the operating system kernel) by executing commandline, init =/init. For a dual system, a dual system initialization program corresponding to the system operation mode recorded by the oeminffo partition file may be sent to the kernel by executing commandline, init =/initns.
Fig. 2 is a schematic structural diagram of a system startup device corresponding to the method, as shown in fig. 2, the device includes:
the terminal comprises a configuration module, a configuration module and a configuration module, wherein the configuration module is used for writing a system operation mode indicated by a system operation mode configuration instruction into an OEMINFO partition file when the terminal receives the system operation mode configuration instruction input by a legal user, and the system operation mode is a single system or a double system;
and the starting module is used for reading the OEMINFO partition file by a system bootstrap program of the terminal when the terminal is restarted, and triggering a kernel to execute a corresponding system initialization program according to the system running mode recorded by the OEMINFO partition file so as to start the system in the corresponding running mode.
Preferably, the configuration module is configured to determine whether the device identification information input by the user is legal, and if so, determine that the user is a legal user, otherwise, determine that the user is an illegal user.
Preferably, the device identification information is input to the terminal in a two-dimensional code manner, and the device identification information is an international mobile equipment identification code IMEI.
Preferably, the starting module is configured to execute a commandline command by using the system bootstrap program, and send a system initialization program corresponding to the system running mode recorded by the oeminffo partition file to the kernel; and the kernel starts the system in the corresponding operation mode by executing the system initialization program.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A system startup method, comprising:
when a terminal receives a system operation mode configuration instruction input by a legal user, writing a system operation mode indicated by the system operation mode configuration instruction into an OEMINFO partition file, wherein the system operation mode is a single system or a double system;
when the terminal is restarted, the system bootstrap program of the terminal reads the OEMINFO partition file, and triggers a kernel to execute a corresponding system initialization program according to the system running mode recorded by the OEMINFO partition file so as to start the system with the corresponding running mode.
2. The method of claim 1, wherein the authentication of the legitimate user comprises:
and the terminal judges whether the equipment identification information input by the user is legal or not, if so, the user is determined to be a legal user, and otherwise, the user is determined to be an illegal user.
3. The method according to claim 2, wherein the equipment identification information is inputted to the terminal by means of a two-dimensional code, and the equipment identification information is an International Mobile Equipment Identity (IMEI).
4. The method of claim 1, wherein triggering the kernel to execute the corresponding system initialization procedure comprises:
the system bootstrap program sends a system initialization program corresponding to the system operation mode recorded by the OEMINFO partition file to a kernel through a commandline command; and the kernel starts the system with the corresponding operation mode by executing the system initialization program.
5. A system activation device, comprising:
the terminal comprises a configuration module, a configuration module and a configuration module, wherein the configuration module is used for writing a system operation mode indicated by a system operation mode configuration instruction into an OEMINFO partition file when the terminal receives the system operation mode configuration instruction input by a legal user, and the system operation mode is a single system or a double system;
and the starting module is used for reading the OEMINFO partition file by a system bootstrap program of the terminal when the terminal is restarted, and triggering a kernel to execute a corresponding system initialization program according to the system running mode recorded by the OEMINFO partition file so as to start the system in the corresponding running mode.
6. The apparatus of claim 5, wherein the configuration module is configured to determine whether the device identification information input by the user is legal, and if so, determine that the user is a legal user, otherwise, determine that the user is an illegal user.
7. The apparatus of claim 6, wherein the equipment identification information is inputted to the terminal by means of a two-dimensional code, and the equipment identification information is an International Mobile Equipment Identity (IMEI).
8. The apparatus according to claim 5, wherein the starting module is configured to execute a commandline command by using the system boot program, and send a system initialization program corresponding to a system operating mode recorded by the oeminffo partition file to the kernel; and the kernel starts the system in the corresponding operation mode by executing the system initialization program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810793485.2A CN110737477B (en) | 2018-07-18 | 2018-07-18 | System starting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810793485.2A CN110737477B (en) | 2018-07-18 | 2018-07-18 | System starting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110737477A CN110737477A (en) | 2020-01-31 |
CN110737477B true CN110737477B (en) | 2023-01-31 |
Family
ID=69235032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810793485.2A Active CN110737477B (en) | 2018-07-18 | 2018-07-18 | System starting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110737477B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07162509A (en) * | 1993-12-07 | 1995-06-23 | Nec Corp | Program revision method for electronic exchange |
US7219219B1 (en) * | 2004-01-13 | 2007-05-15 | Advanced Micro Devices, Inc. | Hardware initialization method that is independent of boot code architecture |
CN101356501A (en) * | 2005-11-14 | 2009-01-28 | 阿登斯公司 | Method and apparatus for fast boot of an operating system |
CN102486723A (en) * | 2010-12-01 | 2012-06-06 | 研祥智能科技股份有限公司 | Method for realizing ChMC (Chassis Management Controller) and VMC (VPX Manager Controller) on VPX (Versatile Protocol Switch) platform veneer and VPX platform |
CN102830990A (en) * | 2012-07-20 | 2012-12-19 | 大唐移动通信设备有限公司 | Computer system starting method and computer terminal |
CN102867158A (en) * | 2011-07-07 | 2013-01-09 | 联想(北京)有限公司 | Memory switching method, memory switching device and terminal with dual systems |
CN103577210A (en) * | 2012-08-06 | 2014-02-12 | 广州三星通信技术研究有限公司 | System and method for mounting between mobile terminals |
CN104142859A (en) * | 2014-07-31 | 2014-11-12 | 深圳市中兴移动通信有限公司 | Fast switching method and device for double systems and mobile terminal |
CN105320558A (en) * | 2014-06-30 | 2016-02-10 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and start method thereof |
CN107295166A (en) * | 2017-06-09 | 2017-10-24 | 青岛海信移动通信技术股份有限公司 | The startup method and mobile terminal of a kind of dual system mobile terminal |
CN107608743A (en) * | 2017-09-04 | 2018-01-19 | 维沃移动通信有限公司 | A kind of operating system customizing method, server and mobile terminal |
CN107766145A (en) * | 2016-08-18 | 2018-03-06 | 成都鼎桥通信技术有限公司 | EMS memory management process and device under dual system |
CN107786486A (en) * | 2016-08-18 | 2018-03-09 | 成都鼎桥通信技术有限公司 | The Activiation method and device of operating system |
-
2018
- 2018-07-18 CN CN201810793485.2A patent/CN110737477B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07162509A (en) * | 1993-12-07 | 1995-06-23 | Nec Corp | Program revision method for electronic exchange |
US7219219B1 (en) * | 2004-01-13 | 2007-05-15 | Advanced Micro Devices, Inc. | Hardware initialization method that is independent of boot code architecture |
CN101356501A (en) * | 2005-11-14 | 2009-01-28 | 阿登斯公司 | Method and apparatus for fast boot of an operating system |
CN102486723A (en) * | 2010-12-01 | 2012-06-06 | 研祥智能科技股份有限公司 | Method for realizing ChMC (Chassis Management Controller) and VMC (VPX Manager Controller) on VPX (Versatile Protocol Switch) platform veneer and VPX platform |
CN102867158A (en) * | 2011-07-07 | 2013-01-09 | 联想(北京)有限公司 | Memory switching method, memory switching device and terminal with dual systems |
CN102830990A (en) * | 2012-07-20 | 2012-12-19 | 大唐移动通信设备有限公司 | Computer system starting method and computer terminal |
CN103577210A (en) * | 2012-08-06 | 2014-02-12 | 广州三星通信技术研究有限公司 | System and method for mounting between mobile terminals |
CN105320558A (en) * | 2014-06-30 | 2016-02-10 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and start method thereof |
CN104142859A (en) * | 2014-07-31 | 2014-11-12 | 深圳市中兴移动通信有限公司 | Fast switching method and device for double systems and mobile terminal |
CN107766145A (en) * | 2016-08-18 | 2018-03-06 | 成都鼎桥通信技术有限公司 | EMS memory management process and device under dual system |
CN107786486A (en) * | 2016-08-18 | 2018-03-09 | 成都鼎桥通信技术有限公司 | The Activiation method and device of operating system |
CN107295166A (en) * | 2017-06-09 | 2017-10-24 | 青岛海信移动通信技术股份有限公司 | The startup method and mobile terminal of a kind of dual system mobile terminal |
CN107608743A (en) * | 2017-09-04 | 2018-01-19 | 维沃移动通信有限公司 | A kind of operating system customizing method, server and mobile terminal |
Non-Patent Citations (2)
Title |
---|
windows技巧集;淡蓝冰;《https://blog.csdn.net/woxiangfang/article/details/3695581》;20090103;全文 * |
海外版mate9刷机国行android 8.0系统;qq_30852577;《https://blog.csdn.net/qq_30852577/article/details/79189410》;20180128;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110737477A (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI587674B (en) | Methods and apparatus to support globalplatform usage on an embedded uicc | |
KR101296065B1 (en) | Secure subscriber identity module service | |
CN101436233B (en) | Hard disk multi-user partition switch control method, system and computer terminal | |
EP2731381B1 (en) | Method for changing the mobile network operator in an embedded sim on basis of special privilege | |
CN106778248B (en) | Method and device for starting application program Activity | |
CN102419803B (en) | Method, system and device for searching and killing computer virus | |
CN104754552A (en) | Trusted execution environment (TEE) initialization method and equipment | |
CN109462601B (en) | Multi-platform access method and device based on eSIM | |
US10735559B2 (en) | Limited-resource java card device | |
US10009891B2 (en) | Communication method, server and terminal | |
CN101895883B (en) | Smart card supporting authentication arithmetic update and method for updating authentication arithmetic | |
US10409972B2 (en) | Fingerprint recognition method and mobile terminal | |
KR102045662B1 (en) | System and method for managing logical channels for accessing several virtual profiles within a secure element | |
US20160014594A1 (en) | Terminal read with smart card update list | |
CN107908957B (en) | Safe operation management method and system of intelligent terminal | |
CN111338663B (en) | System upgrading method, terminal and storage medium | |
JP6923582B2 (en) | Information processing equipment, information processing methods, and programs | |
CN110737477B (en) | System starting method and device | |
CN106878252B (en) | Method for establishing password-free login relationship, method for clearing account and device thereof | |
KR20180100398A (en) | How to load a subscription into a mobile terminal's built-in security element | |
EP2835737A1 (en) | Data terminal running mode switching method, device, and data terminal | |
CN108260120B (en) | Mobile terminal, embedded SIM card and access method and device thereof | |
CN107872786B (en) | Control method and smart card | |
TW202123663A (en) | Security task processing method and apparatus, electronic device, and storage medium | |
CN108990046B (en) | Connection method of mobile network |
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 |