CN112379941A - Linux kernel-based dual-system setting item management system and management method thereof - Google Patents

Linux kernel-based dual-system setting item management system and management method thereof Download PDF

Info

Publication number
CN112379941A
CN112379941A CN202011273355.XA CN202011273355A CN112379941A CN 112379941 A CN112379941 A CN 112379941A CN 202011273355 A CN202011273355 A CN 202011273355A CN 112379941 A CN112379941 A CN 112379941A
Authority
CN
China
Prior art keywords
operating system
setting
setting item
application
service
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.)
Granted
Application number
CN202011273355.XA
Other languages
Chinese (zh)
Other versions
CN112379941B (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.)
Wuhan Bluestar Technology Co Ltd
Original Assignee
Wuhan Bluestar Technology 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 Wuhan Bluestar Technology Co Ltd filed Critical Wuhan Bluestar Technology Co Ltd
Priority to CN202011273355.XA priority Critical patent/CN112379941B/en
Publication of CN112379941A publication Critical patent/CN112379941A/en
Application granted granted Critical
Publication of CN112379941B publication Critical patent/CN112379941B/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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a Linux kernel-based dual-system setting item management system and a management method thereof, wherein the management system comprises a first operating system based on a Linux kernel and a second operating system which is installed in the first operating system in a software package mode through a Linux software package manager; the first operating system and the second operating system are respectively provided with a respective setting item database and a corresponding setting item system call; the first operating system comprises a setting application, and the second operating system does not comprise the setting application; and the first operating system and the second operating system operate respective setting item databases through the setting application in the first operating system. Only one setting application exists, and the two operating systems carry out system setting through the unified setting application. The unified setting application can improve the use experience of a user and reduce the space occupation of the setting application to the operating system.

Description

Linux kernel-based dual-system setting item management system and management method thereof
Technical Field
The invention relates to the technical field of computer information, in particular to a dual-system setting item management system based on a Linux kernel and a management method thereof.
Background
A dual-system product developed based on a Linux kernel generally requires two sets of setting applications to set specific setting items in two systems, respectively. The setting application refers to a specific application program with an interface for setting system configuration items. For example, for android, a setting application refers to "setting", specifically to a system-level application program called com. The method is an application program with an interface of a foreground, and the specific setting operation is finished by calling a system setting interface or setting a database.
However, there are often duplicate operations on the same setting item in both operating systems, such as a setting operation on a system time. The user switches the setting application between the two operating systems, and the tedious operation also causes very poor user experience. And in order to manage the respective system setting items, the two systems need to have respective system setting applications, which is a waste of system resources.
Disclosure of Invention
The invention provides a unified management system and a method for setting items in double systems aiming at the technical problems in the prior art, and the setting items in the double systems are managed in a unified way in the same setting application.
The technical scheme for solving the technical problems is as follows:
in one aspect, the present invention provides a Linux kernel-based dual system setting item management system, including:
the system comprises a first operating system based on a Linux kernel and a second operating system which is installed in the first operating system in a software package mode through a Linux software package manager;
the first operating system and the second operating system are complete operating systems, and complete process scheduling, interprocess communication management and window management service are realized;
the first operating system and the second operating system are respectively provided with a respective setting item database and a corresponding setting item system call;
the first operating system comprises a setting application, and the second operating system does not comprise the setting application;
and the first operating system and the second operating system operate respective setting item databases through the setting application in the first operating system.
Furthermore, the setting application has setting item pages of two operating systems, and when the setting application operates the setting item database of the second operating system, the setting application adopts remote call to notify the system service of the second system, and the setting application is realized by the system service of the second system.
Furthermore, the first operating system and the second operating system both include a system service module, where the system service module of the first operating system is used to identify a request of a first operating system application program for setting an application, or identify a request of a second operating system application program for setting an application, which is intercepted and forwarded by a system service of the second operating system, and call a corresponding setting item page according to the request; the system service module of the second operating system is used for monitoring and rejecting a direct operation request of an application program of the second operating system to the setting application, and the operation request is forwarded to the system service of the first operating system.
On the other hand, the invention provides a Linux kernel-based dual-system setting item management method, which is realized based on the management system of the first aspect, and comprises the following steps:
the system service of the first operating system responds to a setting item operation request initiated by a user through the first operating system or a setting item operation request forwarded by the second operating system through the system service, and informs the first operating system of starting a setting application;
the setting application calls setting pages corresponding to different operating systems according to different initiating processes of the operation request and is used for receiving the setting operation of the user;
after the setting operation of the user is completed, the setting application modifies the setting item of the first operating system and synchronously updates the corresponding setting item database according to the setting operation result, or notifies the system service of the first operating system to forward the operation result to the system service of the second operating system, and the setting item of the second operating system is modified and synchronously updated the corresponding setting item database.
Further, when the user initiates a setting item operation request through the first operating system, the system service judges the affiliation of the target setting item and the operating system, and selects different management modes according to the affiliation of the target setting item and the operating system.
Further, when a user initiates a setting item operation request through the second operating system, the system service of the second operating system intercepts the request for starting the setting application, rejects the direct operation of the second operating system on the setting item, forwards the operation request to the system service of the first operating system, and the system service of the first operating system judges the affiliated relationship between the target setting item and the operating system and selects different management modes according to the affiliated relationship between the target setting item and the operating system.
Further, selecting different management modes according to the affiliated relationship between the target setting item and the operating system includes:
when the target setting item is a setting item specific to the first operating system, the setting application directly operates a setting item database of the first system and calls a related system interface to complete setting;
when the target setting item is a setting item specific to the second operating system, the setting page receives the setting operation of a user, when the setting application is set by the user, the system service of the first operating system is informed to forward the setting content to the system service in the second operating system, the system service of the second system calls a setting item database to update the setting item data, and calls a system interface in the second operating system according to the change content of the setting item to generate a specific setting result, or directly calls the system interface of the second operating system without passing through the setting item database to generate the specific setting result;
when the target setting item is a setting item shared by the two systems, the setting application completes updating of the setting item database and calling of a system setting interface in the first operating system, and simultaneously informs the system service of the second operating system of completing updating of the setting item database of the second operating system and calling of the system setting interface through forwarding of the system service of the first operating system, so that the setting operation is completed.
Further, when a user initiates a setting item operation request through the second operating system, the operation request includes specific setting intention parameters, the setting application automatically jumps to a specific corresponding setting item page to receive the setting operation of the user, and when the user completes the setting, the setting application directly operates the setting item database of the first system and calls a related system interface to complete the setting.
Furthermore, after the user completes the setting item operation request initiated by the second operating system, the first operating system exits the setting application and automatically switches back to the second operating system.
The invention has the beneficial effects that: only one setting application exists, and the two operating systems carry out system setting through the unified setting application. The unified setting application can improve the use experience of a user and reduce the occupation of the setting application to the disk space of the operating system.
Drawings
Fig. 1 is a schematic structural diagram of a system according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a dual system setting item management system based on a Linux kernel, including:
the system comprises a first operating system based on a Linux kernel and a second operating system which is installed in the first operating system in a software package mode through a Linux software package manager;
the first operating system and the second operating system are complete operating systems, and complete process scheduling, interprocess communication management and window management service are realized;
the first operating system and the second operating system are respectively provided with a respective setting item database and a corresponding setting item system call;
the first operating system comprises a setting application, and the second operating system does not comprise the setting application;
and the first operating system and the second operating system operate respective setting item databases through the setting application in the first operating system.
The Linux kernel-based dual system in this embodiment refers to a Linux system and an Android system based on a Linux kernel, and in the dual system, the Linux system includes a setting application, and the Android system is modified to remove the setting application. Therefore, the Linux system serves as a first operating system, and the Android system serves as a second operating system. Since the Android system is developed based on Linux, the Android system can be installed in the Linux system in the form of a software package through a software package manager of the Linux system. At the moment, the Linux system and the Android system share a Linux kernel, and desktop operation is responded through a driver in the Linux kernel.
The setting application is provided with a Linux system and a setting item page of an Android system, and is realized by remotely calling a system service informing the Android system when operating a setting item database of the Android system.
The system service module of the Linux system is used for identifying a request of an application program of the Linux system for setting application or identifying a request of the application program of the Android system for setting application intercepted and forwarded by system service of the Android system, and calling a corresponding setting item page according to the request; the system service module of the Android system is used for monitoring and rejecting a direct operation request of an application program of the Android system for setting application, and the operation request is forwarded to the system service of the Linux system.
The following explains a dual system setting item management method when wifi setting is called in a dual system by taking a dual system wifi setting as an example. In this embodiment, the setting application is set in the Linux system, so the Linux system corresponds to the first system.
The Android application system is installed in a terminal Linux system through package management or other modes;
the application program which runs in the Android environment and can call up a Wifi setting page of the native Android system;
the application program tries to open a WIFI connection setting page by calling an Android system API;
the AMS system service in the Android application system monitors the call, cuts off the starting process of the setting item page of the native Android system, and recognizes that the Android application program specifically wants to call a WIFI connection setting page;
the AMS module runs in an Android environment, is connected to system services running in the Linux system through a local Socket or other means after being modified, informs the Linux system to start Linux setting application, and transmits a specific to-be-called WIFI setting page as a parameter to the Linux setting application;
after the Linux side setting application is started, displaying a WIFI setting page according to the transmitted parameters;
after a user completes specific WIFI setting on a WIFI setting page, the Linux setting application writes related setting items into a database for storage, calls a Linux system interface, connects a specific WIFI network, informs a Linux system of system service, and sends WIFI information to the Android system of system service;
the Android system service updates the WIFI connection state of the Android network service according to the WIFI connection information returned by the Linux system service;
the Android network service informs each application needing network connection in the Android system of the change of the network state;
and the user quits the setting application, and the system is automatically switched to the Android system.
When WIFI is directly set from the Linux system:
a user directly starts the setting application of the Linux system and finds a WIFI setting page;
after the user finishes WIFI setting, the Linux setting application writes related setting items into a database for storage, calls a Linux system interface, connects a specific WIFI network and simultaneously sends WIFI information to an Android system service through the Linux system service;
the Android system service updates the WIFI connection state of the Android network service according to the WIFI connection information returned by the Linux setting service;
and the Android network service informs the Android system of each application needing network connection of the change of the network state.
According to the embodiment of the invention, the Linux and Android dual systems are subjected to setting item management through the same setting application by sharing the same setting application, so that the user operation experience is improved, and the occupation of the disk space of the system is reduced.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A dual system setting item management system based on a Linux kernel is characterized by comprising:
the system comprises a first operating system based on a Linux kernel and a second operating system which is installed in the first operating system in a software package mode through a Linux software package manager;
the first operating system and the second operating system are complete operating systems, and complete process scheduling, interprocess communication management and window management service are realized;
the first operating system and the second operating system are respectively provided with a respective setting item database and a corresponding setting item system call;
the first operating system comprises a setting application, and the second operating system does not comprise the setting application;
and the first operating system and the second operating system operate respective setting item databases through the setting application in the first operating system.
2. The management system according to claim 1, wherein the setup application has two setup item pages of the operating system, and the setup application is implemented by a system service of the second system by using a remote call to notify the system service of the second system when operating the setup item database of the second operating system.
3. The management system according to claim 2, wherein the first operating system and the second operating system each include a system service module, and the system service module of the first operating system is configured to identify a request of a first operating system application program for setting an application, or identify a request of a second operating system application program for setting an application, which is intercepted and forwarded by a system service of the second operating system, and invoke a corresponding setup item page according to the request; the system service module of the second operating system is used for monitoring and rejecting a direct operation request of an application program of the second operating system to the setting application, and the operation request is forwarded to the system service of the first operating system.
4. A Linux kernel-based dual system setting item management method, which is implemented based on the management system of claim 1, comprising the steps of:
the system service of the first operating system responds to a setting item operation request initiated by a user through the first operating system or a setting item operation request forwarded by the second operating system through the system service, and informs the first operating system of starting a setting application;
the setting application calls setting pages corresponding to different operating systems according to different initiating processes of the operation request and is used for receiving the setting operation of the user;
after the setting operation of the user is completed, the setting application modifies the setting item of the first operating system and synchronously updates the corresponding setting item database according to the setting operation result, or notifies the system service of the first operating system to forward the operation result to the system service of the second operating system, and the setting item of the second operating system is modified and synchronously updated the corresponding setting item database.
5. The management method according to claim 4, wherein when the user initiates the setting item operation request through the first operating system, the system service determines the affiliation between the target setting item and the operating system, and selects different management modes according to the affiliation between the target setting item and the operating system.
6. The management method according to claim 5, wherein when the user initiates the setting item operation request through the second operating system, the system service of the second operating system intercepts the request for starting the setting application, and rejects the direct operation of the second operating system on the setting item, and forwards the operation request to the system service of the first operating system, and the system service of the first operating system determines the affiliation relationship between the target setting item and the operating system, and selects different management modes according to the affiliation relationship between the target setting item and the operating system.
7. The management method according to claim 6, wherein selecting different management modes according to the affiliation between the target setting item and the operating system includes:
when the target setting item is a setting item specific to the first operating system, the setting application directly operates a setting item database of the first system and calls a related system interface to complete setting;
when the target setting item is a setting item specific to the second operating system, the setting page receives the setting operation of a user, when the setting application is set by the user, the system service of the first operating system is informed to forward the setting content to the system service in the second operating system, the system service of the second system calls a setting item database to update the setting item data, and calls a system interface in the second operating system according to the change content of the setting item to generate a specific setting result, or directly calls the system interface of the second operating system without passing through the setting item database to generate the specific setting result;
when the target setting item is a setting item shared by the two systems, the setting application completes updating of the setting item database and calling of a system setting interface in the first operating system, and simultaneously informs the system service of the second operating system of completing updating of the setting item database of the second operating system and calling of the system setting interface through forwarding of the system service of the first operating system, so that the setting operation is completed.
8. The management method according to claim 7, wherein when a user initiates a setting item operation request through the second operating system, the operation request includes a specific setting intention parameter, the setting application automatically jumps to a specific corresponding setting item page to receive a setting operation of the user, and when the user completes the setting, the setting application directly operates the setting item database of the first system and invokes a related system interface to complete the setting.
9. The management method according to claim 8, wherein after the user completes the setting item operation request initiated by the second operating system, the first operating system exits the setting application and automatically switches back to the second operating system.
CN202011273355.XA 2020-11-13 2020-11-13 Dual-system setting item management system based on Linux kernel and management method thereof Active CN112379941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011273355.XA CN112379941B (en) 2020-11-13 2020-11-13 Dual-system setting item management system based on Linux kernel and management method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011273355.XA CN112379941B (en) 2020-11-13 2020-11-13 Dual-system setting item management system based on Linux kernel and management method thereof

Publications (2)

Publication Number Publication Date
CN112379941A true CN112379941A (en) 2021-02-19
CN112379941B CN112379941B (en) 2023-05-09

Family

ID=74582517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011273355.XA Active CN112379941B (en) 2020-11-13 2020-11-13 Dual-system setting item management system based on Linux kernel and management method thereof

Country Status (1)

Country Link
CN (1) CN112379941B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655798A (en) * 2008-08-18 2010-02-24 联想(北京)有限公司 Method for deployment and operation of application in computer and virtual machine environments
CN102857537A (en) * 2011-07-01 2013-01-02 中国移动通信集团辽宁有限公司 Remote call method, device and system
CN103262025A (en) * 2010-10-01 2013-08-21 Flex Electronics ID Co.,Ltd. Cross-environment communication using application space API
CN103262057A (en) * 2010-10-01 2013-08-21 Flex Electronics ID Co.,Ltd. Cross-environment communication framework
CN104268017A (en) * 2014-09-19 2015-01-07 福建升腾资讯有限公司 Method for simultaneously running Android/Linux operating systems
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
US20170192979A1 (en) * 2015-12-30 2017-07-06 Alibaba Group Holding Limited Methods and apparatuses for accessing cloud storage service by using traditional file system interface
CN111625293A (en) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 Terminal dual system based on linux kernel and hardware access management method thereof
US20200341827A1 (en) * 2019-04-23 2020-10-29 Apple Inc. System call interception for file providers

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655798A (en) * 2008-08-18 2010-02-24 联想(北京)有限公司 Method for deployment and operation of application in computer and virtual machine environments
CN103262025A (en) * 2010-10-01 2013-08-21 Flex Electronics ID Co.,Ltd. Cross-environment communication using application space API
CN103262057A (en) * 2010-10-01 2013-08-21 Flex Electronics ID Co.,Ltd. Cross-environment communication framework
CN102857537A (en) * 2011-07-01 2013-01-02 中国移动通信集团辽宁有限公司 Remote call method, device and system
CN104268017A (en) * 2014-09-19 2015-01-07 福建升腾资讯有限公司 Method for simultaneously running Android/Linux operating systems
US20170192979A1 (en) * 2015-12-30 2017-07-06 Alibaba Group Holding Limited Methods and apparatuses for accessing cloud storage service by using traditional file system interface
CN106020942A (en) * 2016-05-05 2016-10-12 四川安嵌科技有限公司 Multi-system based WiFi device reuse method and device
US20200341827A1 (en) * 2019-04-23 2020-10-29 Apple Inc. System call interception for file providers
CN111625293A (en) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 Terminal dual system based on linux kernel and hardware access management method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙超群: "基于安全容器的Android虚拟化技术研究与实现" *

Also Published As

Publication number Publication date
CN112379941B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN109542964B (en) Data calling method and data calling system
CN110912980B (en) Order state synchronization method, system and storage medium
CN112506617B (en) Mirror image updating method and device for side car containers in Kubernetes cluster
WO2017036332A1 (en) Distributed system-based gated launch method, client end and platform
WO2021088641A1 (en) Data transmission method, data processing method, data reception method and device, and storage medium
CN110888615A (en) Multi-input equipment interaction method, device and medium for double-screen different display of Android system
CN101403981A (en) Management method and system for mobile phone application program running state
CN103188098B (en) A kind of disaster tolerance switching method, system and device
EP3598301A1 (en) Cloud management platform, virtual machine management method, system thereof
US11223522B1 (en) Context-based intelligent re-initiation of microservices
CN102098233B (en) Method and system for controlling communication window in instant messenger
CN114138500B (en) Resource scheduling system and method
CN110012054B (en) Service processing method and system based on alliance link network
CN111294293A (en) Network isolation method and device based on user mode protocol stack
CN111405061B (en) Micro-service shutdown method based on Dubbo frame and server
CN112379941A (en) Linux kernel-based dual-system setting item management system and management method thereof
EP4227802A1 (en) Method, apparatus and computing device for configuring compute mode
US10089198B1 (en) Data storage system with active-standby system management
CN115422277A (en) Data source connection pool control method and device and server
CN114201549B (en) Switching method, system, server and storage medium
CN109597774B (en) Method, device and equipment for controlling functions of storage equipment
CN111683022A (en) White box switch, method for upgrading forwarding function of white box switch and readable storage medium
CN113992750A (en) Global transaction coordination method, device, equipment and medium
CN115550424B (en) Data caching method, device, equipment and storage medium
CN112621738A (en) Robot control method, electronic device, and computer-readable storage medium

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