CN112148503A - Method and device for receiving application message, electronic equipment and readable storage medium - Google Patents

Method and device for receiving application message, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112148503A
CN112148503A CN202010959319.2A CN202010959319A CN112148503A CN 112148503 A CN112148503 A CN 112148503A CN 202010959319 A CN202010959319 A CN 202010959319A CN 112148503 A CN112148503 A CN 112148503A
Authority
CN
China
Prior art keywords
operating system
application
new message
receiving
authorized
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.)
Pending
Application number
CN202010959319.2A
Other languages
Chinese (zh)
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.)
Shenzhen Zhutai Defense Intelligent Technology Co ltd
Original Assignee
Shenzhen Zhutai Defense Intelligent 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 Shenzhen Zhutai Defense Intelligent Technology Co ltd filed Critical Shenzhen Zhutai Defense Intelligent Technology Co ltd
Priority to CN202010959319.2A priority Critical patent/CN112148503A/en
Publication of CN112148503A publication Critical patent/CN112148503A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The invention relates to the technical field of electronic equipment, and discloses a method and a device for receiving an application message, electronic equipment and a readable storage medium; wherein, the method comprises the following steps: acquiring an application white list in a first operating system; when the electronic equipment is switched to a second operating system and the first operating system runs in a background, monitoring whether an authorized application in the first operating system receives a new message; when monitoring that the authorized application receives a new message, sending a notification of receiving the new message to a second operating system through an interface; the method for receiving the application message solves the problems that for multi-system electronic equipment with isolated hardware, the application message between different systems cannot be transmitted, so that when one system is used, the important application message of the other system cannot be transmitted to the system in use, the connectivity of information is poor, and the use experience of a user is influenced.

Description

Method and device for receiving application message, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of electronic device technologies, and in particular, to a method and an apparatus for receiving an application message, an electronic device, and a readable storage medium.
Background
With the development of technology, multi-system electronic devices are more and more popular among users due to the advantages of convenience and flexibility in use, powerful functions and the like. For multi-system electronic equipment, a plurality of systems are generally isolated by adopting a hardware physical isolation mode, so that the systems cannot communicate with each other, and the privacy of the systems is guaranteed.
In the prior art, for hardware-isolated multi-system electronic devices, application messages between different systems cannot be transmitted, which easily causes a problem that when one system is used, an important application message of the other system cannot be transmitted to the system in use, and the use experience of a user is affected due to poor information connectivity.
Disclosure of Invention
The invention aims to provide a method, a device, electronic equipment and a readable storage medium for receiving an application message, and aims to solve the problem that in the prior art, the use experience of a user is influenced due to poor information connectivity of multi-system electronic equipment.
In a first aspect, an embodiment of the present application provides a method for receiving an application message, which is applied to an electronic device, where the electronic device has at least a first operating system and a second operating system that can be switched back and forth, and the first operating system and the second operating system have interfaces for transmitting notifications between the two systems, and the method includes:
acquiring an application white list in the first operating system; wherein the application white list is a list of all authorized applications installed on the first operating system;
when the electronic equipment is switched to the second operating system and the first operating system runs in a background, monitoring whether an authorized application in the first operating system receives a new message;
and when the authorized application is monitored to receive the new message, sending a notice of receiving the new message to the second operating system through the interface.
In some embodiments, the monitoring, when the electronic device switches to the second operating system and the first operating system runs in a background, whether an authorized application in the first operating system receives a new message includes:
when the electronic equipment is switched to the second operating system and the first operating system runs in a background, judging whether each application in the first operating system receives a new message or not;
if the application in the first operating system receives a new message, acquiring application information of the application receiving the new message;
and judging whether the application receiving the new message belongs to authorized application or not according to the application information.
In some embodiments, after the obtaining, if the application in the first operating system receives the new message, the application information of the application that receives the new message, the method further includes:
and if the application in the first operating system does not receive the new message, continuously judging whether the application in the first operating system receives the new message.
In some embodiments, when it is monitored that the authorized application receives the new message, sending a notification of receiving the new message to the second operating system through the interface, specifically includes:
when monitoring that the authorized application receives a new message, generating a notification of the new message;
sending a notification of the new message to the second operating system through the interface.
In some embodiments, after the monitoring that the authorized application receives the new message, sending a notification of the reception of the new message to the second operating system through the interface, the method further includes:
and when the authorized application is monitored not to receive the new message, continuously monitoring whether the authorized application in the first operating system receives the new message.
In some implementations, the notification is a clickable notification bar.
In some embodiments, after the monitoring that the authorized application receives the new message, sending a notification of the reception of the new message to the second operating system through the interface, the method further includes:
when the notification is clicked, switching to the first operating system.
In a second aspect, an embodiment of the present application provides an apparatus for receiving an application message, including:
an obtaining unit, configured to obtain an application white list in the first operating system; wherein the application white list is a list of all authorized applications installed on the first operating system;
the monitoring unit is used for monitoring whether an authorized application in the first operating system receives a new message or not when the electronic equipment is switched to the second operating system and the first operating system runs in a background;
and the sending unit is used for sending a notice of receiving the new message to the second operating system through the interface when monitoring that the authorized application receives the new message.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a memory and a processor, and the electronic device further includes at least a first operating system and a second operating system that are switchable back and forth, and the first operating system and the second operating system have interfaces for transmitting notifications between the two systems;
the memory stores a first operating system, a second operating system, and a computer program running on the first operating system;
the processor, the first operating system and the second operating system are running on the processor, and the processor is used for executing the computer program and realizing the method for receiving the application message when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor is caused to implement the method for receiving an application message described above.
Compared with the prior art, the invention mainly has the following beneficial effects:
in the method for receiving the application message, the application white list is obtained in the first operating system; the application white list is a list of all authorized applications installed on the first operating system; when the electronic equipment is switched to a second operating system and the first operating system runs in a background, monitoring whether an authorized application in the first operating system receives a new message; and when the authorized application is monitored to receive the new message, sending a notice of receiving the new message to the second operating system through the interface. The method for receiving the application message solves the problems that for hardware-isolated multi-system electronic equipment, the application messages between different systems cannot be transmitted, so that when one system is used, the important application message of the other system cannot be transmitted to the system in use, the information connectivity is poor, and the use experience of a user is influenced.
Drawings
Fig. 1 is a flowchart illustrating a method for receiving an application message according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating step S20 in a method for receiving an application message according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating step S30 in a method for receiving an application message according to a first embodiment of the present invention;
fig. 4 is a flowchart of a method for receiving an application message according to a first embodiment of the present invention, where it is monitored that an authorized application does not receive a new message;
fig. 5 is a flowchart illustrating a method for receiving an application message according to a second embodiment of the present invention;
fig. 6 is a block diagram schematically illustrating a structure of a land value evaluation device according to a first 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 is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following describes the implementation of the present invention in detail with reference to specific embodiments.
The invention provides a method for receiving an application message, which is applied to an electronic device, wherein the electronic device at least comprises a first operating system and a second operating system which can be switched back and forth, and the first operating system and the second operating system are provided with interfaces for transmitting notifications between the two systems.
Specifically, here, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a desktop computer, a smart watch, a vehicle-mounted entertainment device, a smart wearable device, and the like.
An Operating System (OS) is a computer program that manages and controls computer hardware and software resources, and is an interface between a user and a computer, as well as an interface between computer hardware and other software. Common operating systems include Microsoft Windows, Linux, Android, iOS, and the like.
The dual system is to install two operating systems on the device.
The first operating system and the second operating system respectively have interfaces for transmitting notifications between the two systems, for example, for a device with a dual android system, a custom protocol is established between the two systems based on that underlying drivers of the two operating systems are shared, and specific data can be transmitted by the protocol convention, where the custom protocol is considered as a transmission interface and the specific data is considered as a notification.
Fig. 1 shows a flowchart of a first embodiment of a method for receiving an application message, where in the first embodiment, the method for receiving an application message includes the following steps: step S10, step S20, and step S30.
S10, acquiring an application white list in the first operating system; the application white list is a list of all authorized applications installed on the first operating system.
It should be noted that, the application herein refers to application software in the electronic device. The object-oriented system is generally divided into personal user application (facing personal consumers) and enterprise-level application (facing enterprises), and the system classification of the mobile terminal mainly comprises iOSApp (such as WeChat, etc.), Android Apk (such as Baidu application, etc.), and xap and appx of windows phone.
Specifically, the application white list is a list of all authorized applications installed on the first operating system, and when the authorized applications are switched to the second operating system, a notification of a new message may be sent to the second operating system when the new message is received.
And S20, when the electronic equipment is switched to the second operating system and the first operating system runs in the background, monitoring whether the authorized application in the first operating system receives a new message.
In particular, while using the second operating system, the first operating system is running in the background, and the first operating system can still receive new messages for the respective application.
Referring to fig. 2, in some embodiments, step S20 specifically includes step S201, step S202, and step S203:
s201, when the electronic equipment is switched to the second operating system and the first operating system runs in the background, judging whether each application in the first operating system receives a new message.
Specifically, when an application in the first operating system receives a new message, this signal is captured, and a determination is made that the first operating system received the new message.
S202, if the application in the first operating system receives the new message, acquiring the application information of the application receiving the new message.
Specifically, when it is determined that the application of the first operating system receives a new message, application information of the received new message is acquired.
S203, judging whether the application receiving the new message belongs to authorized application according to the application information.
Specifically, for example, the application package information obtained in the previous step is compared with an application white list, and if the application package information is on the application white list, the application belongs to an authorized application; and if the application packet information is not on the application white list, the application does not belong to the authorized application.
Referring to fig. 2, in some embodiments, the method further includes:
and if the application in the first operating system does not receive the new message, continuously judging whether the application in the first operating system receives the new message.
Specifically, if the application not capturing the first operating system receives a signal of a new message, the monitoring state is maintained until the application capturing the first operating system receives a signal of a new message.
And S30, when the authorized application is monitored to receive the new message, sending a notice of receiving the new message to the second operating system through the interface.
Specifically, when the application receiving the new message is judged to be the authorized application, the notification of receiving the new message is transmitted to the second operating system which is being used through the custom protocol, so that a user can timely learn about the new message received by the authorized application of the first operating system, and missing of important messages is avoided.
It should be noted that the notification is only a prompt, and does not show the specific content of the new message, which plays a role in ensuring the privacy and security of the first operating system.
Referring to fig. 3, in some embodiments, the step S30 specifically includes the steps S301 and S302:
s301, when the authorized application is monitored to receive the new message, generating a notification of the new message.
Specifically, when it is determined that the application that received the new message is an authorized application, a notification of the new message is generated.
S302, the notification of the new message is sent to the second operating system through the interface.
Specifically, the notification is transmitted to the second operating system being used through a custom protocol in the first operating system and the second operating system.
Referring to fig. 4, in some embodiments, the method further includes:
when the authorized application is monitored not to receive the new message, the authorized application in the first operating system is continuously monitored whether to receive the new message.
Specifically, when it is determined that the application that received the new message is not an authorized application, the monitoring is continued until it is determined that the application that received the new message is an authorized application.
In the method for receiving the application message, the application white list is obtained in the first operating system; the application white list is a list of all authorized applications installed on the first operating system; when the electronic equipment is switched to a second operating system and the first operating system runs in a background, monitoring whether an authorized application in the first operating system receives a new message; and when the authorized application is monitored to receive the new message, sending a notice of receiving the new message to the second operating system through the interface. The method for receiving the application message solves the problems that for hardware-isolated multi-system electronic equipment, the application messages between different systems cannot be transmitted, so that when one system is used, the important application message of the other system cannot be transmitted to the system in use easily, the information connectivity is poor, and the use experience of a user is influenced.
Preferably, the notification is a clickable notification bar.
Based on the second embodiment of the present invention proposed by the first embodiment of the present invention, fig. 5 is a flowchart illustrating a method for receiving an application message according to the second embodiment of the present invention, and as shown in fig. 5, the present embodiment is different from the first embodiment in that after step S30, the method for receiving an application message further includes step S40.
And S40, switching to the first operating system when the notification is clicked.
Specifically, after the notification bar is clicked, a system switching interface is called to enter the first operating system.
Optionally, the notification includes, but is not limited to, ringing, vibration, and the like. The notification only plays a role of reminding, and does not provide a switching interface for the system and the authorized application to enter, nor provides the related information of the authorized application receiving the new message
Referring to fig. 6, fig. 6 is a schematic block diagram illustrating a structure of an apparatus for receiving an application message according to a first embodiment of the present invention; a first embodiment of the present application provides an apparatus for receiving an application message, including:
an obtaining unit 1, configured to obtain an application white list in a first operating system; the application white list is authorized applications installed on the first operating system.
And the monitoring unit 2 is configured to monitor whether the authorized application in the first operating system receives a new message when the electronic device is switched to the second operating system and the first operating system runs in the background.
And the sending unit 3 is configured to send a notification of receiving the new message to the second operating system through the interface when it is monitored that the authorized application receives the new message.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus and the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The apparatus described above may be implemented in the form of a computer program that is executable on an electronic device.
The electronic equipment provided by the embodiment of the invention comprises a processor, a memory, at least a first operating system and a second operating system which can be switched back and forth, wherein the first operating system and the second operating system are provided with interfaces for transmitting notifications between the two systems; the memory may include, among other things, a non-volatile storage medium and an internal memory.
The processor is used for providing calculation and control capability, and supporting the operation of the whole computer equipment, and the first operating system and the second operating system are operated on the processor.
The non-volatile storage medium stores a first operating system, a second operating system, and a computer program that runs on the first operating system. The computer program comprises program instructions that, when executed, cause a processor to perform any of the methods of receiving an application message.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by a processor causes the processor to perform any of the methods for receiving application messages.
It should be understood that the processor may be a Central Processing Unit (CPU), and the processor may be other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and the processor executes the program instructions to implement any one of the methods for receiving an application message provided in the embodiments of the present application. The program when executed may comprise some or all of the steps in various embodiments of a method for receiving application messages provided by the present invention.
The computer-readable storage medium may be an internal storage unit of the electronic device according to the foregoing embodiment, for example, a hard disk or a memory of the electronic device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk provided on the electronic device, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), and the like.
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 and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for receiving an application message, wherein the method is applied to an electronic device, the electronic device has at least a first operating system and a second operating system which can be switched back and forth, the first operating system and the second operating system have interfaces for transmitting notifications between the two systems, and the method comprises:
acquiring an application white list in the first operating system; wherein the application white list is a list of all authorized applications installed on the first operating system;
when the electronic equipment is switched to the second operating system and the first operating system runs in a background, monitoring whether an authorized application in the first operating system receives a new message;
and when the authorized application is monitored to receive the new message, sending a notice of receiving the new message to the second operating system through the interface.
2. The method according to claim 1, wherein monitoring whether an authorized application in the first operating system receives a new message when the electronic device switches to the second operating system and the first operating system runs in the background comprises:
when the electronic equipment is switched to the second operating system and the first operating system runs in a background, judging whether each application in the first operating system receives a new message or not;
if the application in the first operating system receives a new message, acquiring application information of the application receiving the new message;
and judging whether the application receiving the new message belongs to authorized application or not according to the application information.
3. The method as claimed in claim 2, wherein after the obtaining the application information of the application receiving the new message if the application in the first operating system receives the new message, the method further comprises:
and if the application in the first operating system does not receive the new message, continuously judging whether the application in the first operating system receives the new message.
4. The method according to claim 1, wherein when it is monitored that the authorized application receives the new message, sending a notification of receiving the new message to the second operating system through the interface, specifically includes:
when monitoring that the authorized application receives a new message, generating a notification of the new message;
sending a notification of the new message to the second operating system through the interface.
5. The method of claim 1, wherein after the monitoring that the authorized application receives the new message, sending a notification of the receipt of the new message to the second operating system through the interface, the method further comprises:
and when the authorized application is monitored not to receive the new message, continuously monitoring whether the authorized application in the first operating system receives the new message.
6. A method for receiving application messages according to claim 1, wherein the notification is a clickable notification bar.
7. The method of claim 6, wherein after the monitoring that the authorized application receives the new message, sending a notification of the receipt of the new message to the second operating system through the interface, the method further comprises:
when the notification is clicked, switching to the first operating system.
8. An apparatus for receiving an application message, comprising:
an obtaining unit, configured to obtain an application white list in the first operating system; wherein the application white list is a list of all authorized applications installed on the first operating system;
the monitoring unit is used for monitoring whether an authorized application in the first operating system receives a new message or not when the electronic equipment is switched to the second operating system and the first operating system runs in a background;
and the sending unit is used for sending a notice of receiving the new message to the second operating system through the interface when monitoring that the authorized application receives the new message.
9. An electronic device comprising a memory and a processor, the electronic device further having at least a first operating system and a second operating system that are switchable back and forth, the first operating system and the second operating system having interfaces for transmitting notifications between the two systems;
the memory stores a first operating system, a second operating system, and a computer program running on the first operating system;
the processor, on which the first operating system and the second operating system run, are configured to execute the computer program and, when executing the computer program, to implement the method of receiving application messages of any of claims 1 to 7.
10. A readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the method of receiving application messages of any one of claims 1 to 7.
CN202010959319.2A 2020-09-14 2020-09-14 Method and device for receiving application message, electronic equipment and readable storage medium Pending CN112148503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010959319.2A CN112148503A (en) 2020-09-14 2020-09-14 Method and device for receiving application message, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010959319.2A CN112148503A (en) 2020-09-14 2020-09-14 Method and device for receiving application message, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112148503A true CN112148503A (en) 2020-12-29

Family

ID=73892204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010959319.2A Pending CN112148503A (en) 2020-09-14 2020-09-14 Method and device for receiving application message, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112148503A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550044A (en) * 2015-12-11 2016-05-04 北京元心科技有限公司 Method and device for prompting to-be-processed event information in multiple systems
WO2016161682A1 (en) * 2015-04-08 2016-10-13 宇龙计算机通信科技(深圳)有限公司 Prompt method and device for multisystem terminal notification message
CN106933682A (en) * 2017-02-10 2017-07-07 华为机器有限公司 The method and terminal of Message Processing
CN108255683A (en) * 2016-12-29 2018-07-06 杭州华为数字技术有限公司 The method and terminal of message notifying in terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016161682A1 (en) * 2015-04-08 2016-10-13 宇龙计算机通信科技(深圳)有限公司 Prompt method and device for multisystem terminal notification message
CN105550044A (en) * 2015-12-11 2016-05-04 北京元心科技有限公司 Method and device for prompting to-be-processed event information in multiple systems
CN108255683A (en) * 2016-12-29 2018-07-06 杭州华为数字技术有限公司 The method and terminal of message notifying in terminal
CN106933682A (en) * 2017-02-10 2017-07-07 华为机器有限公司 The method and terminal of Message Processing

Similar Documents

Publication Publication Date Title
CN108628684B (en) DPDK-based message processing method and computer equipment
KR102107708B1 (en) Automatic application updates
WO2012175786A1 (en) Methods, apparatuses and computer program products for provisioning applications to in vehicle infotainment systems with secured access
US11853767B2 (en) Inter-core data processing method, system on chip and electronic device
US11321098B2 (en) Multi-operating system device, notification device and methods thereof
CN104992096A (en) Data protection method and mobile terminal
AU2019256257B2 (en) Processor core scheduling method and apparatus, terminal, and storage medium
US11736149B2 (en) Data transmission method for Bluetooth card reader and electronic device
EP2537094B1 (en) Method and apparatus for crash recovery and resynchronization
CN111767086A (en) Method and device for migrating browser data
CN106911666B (en) Wearable intelligent device and message processing method and system thereof
US8717375B1 (en) Graphics display coordination
EP2658304A1 (en) Setting an Optimal Ping Interval
CN112689012A (en) Cross-network proxy communication method and device
CN112148503A (en) Method and device for receiving application message, electronic equipment and readable storage medium
CN105391673A (en) Safe access method and device
CN111767558A (en) Data access monitoring method, device and system
CN106851535B (en) Method and device for sharing Bluetooth by multiple systems
JP3920892B2 (en) Terminal device
CN110781014B (en) Recording data multi-process distribution method and system based on Android device
CN114584615A (en) Cloud service collaborative interaction method, device and equipment
CN113518431B (en) Communication processing method, terminal, device and storage medium
US20110270970A1 (en) Network device testing system and method
CN110460567B (en) Identity authentication method and device
WO2017049317A1 (en) Secure data link for subscriber identification module (sim)-based processor

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