WO2024109290A1 - 应用启动方法、装置、设备及存储介质 - Google Patents
应用启动方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2024109290A1 WO2024109290A1 PCT/CN2023/119392 CN2023119392W WO2024109290A1 WO 2024109290 A1 WO2024109290 A1 WO 2024109290A1 CN 2023119392 W CN2023119392 W CN 2023119392W WO 2024109290 A1 WO2024109290 A1 WO 2024109290A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- target application
- state
- message
- logged
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000004044 response Effects 0.000 claims abstract description 39
- 238000004891 communication Methods 0.000 claims description 48
- 230000004913 activation Effects 0.000 claims description 32
- 230000000694 effects Effects 0.000 claims description 18
- 238000012546 transfer Methods 0.000 claims description 8
- 230000007704 transition Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 19
- 238000012545 processing Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 230000009977 dual effect Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000010267 cellular communication Effects 0.000 description 4
- 238000009434 installation Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003860 sleep quality Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- 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
-
- 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/445—Program loading or initiating
-
- 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/445—Program loading or initiating
- G06F9/44594—Unloading
-
- 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/451—Execution arrangements for user interfaces
Definitions
- the embodiments of the present application relate to the field of electronic devices, and in particular to an application startup method, apparatus, device and storage medium.
- electronic devices can also realize complex functions through installed applications. For example, users can use instant messaging applications installed in electronic devices to communicate instantly, and use sleep monitoring applications installed to monitor sleep quality in real time.
- the embodiment of the present application provides an application startup method, device, equipment and storage medium.
- the technical solution is as follows:
- an embodiment of the present application provides an application startup method, the method is used in an electronic device, the electronic device supports running a first system and a second system;
- the method comprises:
- the first system displays an application entrance, the application entrance is used to trigger entering a target application, the second system has the target application installed, and the first system has not installed the target application;
- the first system In response to a triggering operation on the application entry, the first system sends an application start message to the second system;
- the second system starts the target application based on the application start message and displays an application interface.
- an embodiment of the present application provides an application startup device, the device is used in an electronic device, and the electronic device supports running a first system and a second system;
- the device comprises:
- a first system module configured to display an application entry, wherein the application entry is configured to trigger entry into a target application, the target application being installed in the second system module and not installed in the first system module;
- the first system module is used to send an application startup message to the second system module in response to a triggering operation on the application entry;
- the second system module is used to start the target application based on the application start message and display the application interface.
- an embodiment of the present application provides an electronic device, which includes a processor and a memory; the memory stores at least one program, and the at least one program is used to be executed by the processor to implement the application startup method described in the above aspect.
- an embodiment of the present application provides a computer-readable storage medium, in which at least one program is stored.
- the at least one program is loaded and executed by a processor to implement the application startup method as described in the above aspects.
- an embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the application startup method described in the above aspect.
- FIG1 shows a dual-core communication software framework of an Android operating system according to an exemplary embodiment of the present application
- FIG2 shows a dual-core communication software framework of an RTOS according to an exemplary embodiment of the present application
- FIG3 shows a flow chart of an application startup method provided by an exemplary embodiment of the present application
- FIG4 shows a schematic diagram of a notification message interface of a target application provided by an exemplary embodiment of the present application
- FIG5 is a schematic diagram showing an application list interface provided by an exemplary embodiment of the present application.
- FIG6 is a schematic diagram showing an application startup method provided by an exemplary embodiment of the present application.
- FIG7 shows a flow chart of a method for switching a target application login state provided by another exemplary embodiment of the present application.
- FIG8 shows a schematic diagram of a notification message interface provided by an exemplary embodiment of the present application.
- FIG9 is a schematic diagram showing a method for activating an active component in a first system provided by an exemplary embodiment of the present application.
- FIG10 is a schematic diagram showing a method for disabling an active component in a first system provided by an exemplary embodiment of the present application
- FIG11 shows a structural block diagram of an application startup device provided by an embodiment of the present application.
- FIG. 12 shows a structural block diagram of an electronic device provided by an exemplary embodiment of the present application.
- a and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
- the character "/" generally indicates that the related objects are in an "or” relationship.
- a single processor is provided in the electronic device, and the application startup and running functions are realized through the operating system running on the processor.
- electronic devices in most cases only need to realize some functions with low processing performance requirements.
- smart watches or smart bracelets in most cases, smart watches or smart bracelets only need to display time and message prompts. Therefore, keeping the processor in working state for a long time will not improve the performance of the electronic device, but will increase the power consumption of the device, resulting in a shorter battery life of the electronic device (especially on wearable devices with smaller battery capacity).
- the electronic device is provided with at least a first processor and a second processor with different processing performance and power consumption, which are respectively used to run the first system and the second system (i.e., a dual-core dual system), and a system switching mechanism is designed for the dual-core dual system.
- the first system and the second system of the dual-system electronic device have applications installed that can match each other (for example, the same target program is installed in both systems), and also have applications installed that cannot match each other (for example, the application only supports installation in the first system or the second system).
- the electronic device cannot start the application through the first system.
- the electronic device can only start the application and display the application interface when the second system is in the foreground. That is, when the first system of the electronic device is in the foreground, the user needs to switch systems to start the application through the second system, resulting in an inconvenient and low efficiency application startup method.
- the first system where the target application is not installed displays the application entrance and sends an application startup message to the second system where the target application is installed, so that the second system starts and runs the target application, allowing the user to start the application on the second system through the first system, thereby improving the application startup efficiency.
- the first processor and the second processor work asynchronously, and the first system and the second system need to realize system communication (or dual-core communication).
- the first system is an Android operating system running on a central processing unit (CPU)
- the second system is a real-time operating system (RTOS) running on a microcontroller unit (MCU).
- RTOS real-time operating system
- FIG1 it shows a dual-core communication software framework of an Android operating system shown in an exemplary embodiment of the present application.
- the dual-core communication software framework follows the design principle of “low coupling, high reliability, and high reuse”, including Kernel, Module development of HIDL (Hardware Abstract Layer Interface Description Language), Native Service (local service), Framework Service (framework service), Framework API (framework interface) and APP (application) parts.
- Kernel Module development of HIDL (Hardware Abstract Layer Interface Description Language), Native Service (local service), Framework Service (framework service), Framework API (framework interface) and APP (application) parts.
- the APP module includes Launcher (desktop launcher), Setting (settings) and SystemUI (system user interface) and other functional modules
- the Framework API module includes MCUManager (MCU management), SensorManager (sensor management), LocationManager (location management) and other management modules
- the Framework Service module includes MCUManagerService (MCU management service), SystemSensorManager (system sensor management), LocationManagerService (location management service) and other service modules
- the Native Service module includes dccservice (dcc service), Sensorservice (sensor service) and other service modules
- the HIDL module includes Sensor HAL (sensor hardware abstraction layer), GPS HAL (global positioning system hardware abstraction layer) and other modules.
- the Kernel module includes DCC Transfer Driver (DCC transmission driver) such as dcc_data, Mcu_sensor, and Mcu_gps.
- the transport layer shields the transmission details of the lower layer (data link layer) of the system from the application layer and provides service channels for application scenarios.
- the application layer responds to human-computer interaction and transmits the data generated in the process of human-computer interaction through the transport layer, as well as responds to external data requests.
- RTOS is designed using the principle of equality. Taking the electronic device as a smart watch as an example, as shown in FIG2 , a dual-core communication software framework of RTOS shown in an exemplary embodiment of the present application is shown.
- the dual-core communication software framework of RTOS is divided into application layer (Application Layer), service layer (Service Layer), framework layer (Framework Layer), hardware abstraction layer (Hardware abstraction layer) and platform layer (Platform Layer).
- the application layer includes watch face, Daily Tracker, Message center, Voice around Apps, Health Apps, Settings and other application modules;
- the service layer includes Sport&health task, System manager task, AMS (activity management service), AudioService, Log Service, OFTP Service (Odette file transfer protocol service), BT Service (Bluetooth service), Delegate Service, RPC Service (remote call service), sensor Service, storage Service and other service modules;
- the framework layer includes Message Pub, UI Framework, ), G2D Engine (G2D engine), Audio Middleware (audio middleware), Preference (preference), File system (file system), Algorithms (algorithms), AsycEvent (in-process asynchronous event) and other framework modules;
- the hardware abstraction layer includes hardware abstraction modules such as Screen/TP (screen/touch screen) and sensors (sensors);
- the platform layer includes board support package (Board Support Package, BSP) and low-level drivers (LOW level Driver), among which BSP includes Screen/TP, Codec (codec), sensors, Flash
- FIG. 3 shows a flow chart of an application startup method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method applied to an electronic device, and the electronic device supports running the first system and the second system as an example.
- the method may include the following steps:
- Step 301 The first system displays an application entry, where the application entry is used to trigger entry into a target application.
- the second system has the target application installed, but the first system has not installed the target application.
- the high-power system (which can be the first system or the second system) running on the high-power processor processes the event requiring high-performance processing, ensuring that the triggered event can be responded to and processed in a timely manner to meet the performance requirements of the electronic device;
- the low-power system (which can be the first system or the second system) running on the low-power processor processes the event requiring low-performance processing, and keeps the high-power processor in a dormant state (correspondingly, the high-power processor is operated by the low-power processor).
- the high-power consumption system is in sleep mode), which reduces the power consumption of electronic devices while realizing the basic functions of electronic devices.
- an electronic device is provided with a first processor and a second processor, wherein the processing performance of the first processor is higher than the processing performance of the second processor (the processing capability and processing speed of the first processor are both higher than those of the second processor), and the power consumption of the first processor is higher than that of the second processor, and accordingly, the operating power consumption of the first system run by the first processor is higher than the operating power consumption of the second system run by the second processor, and therefore, the first system can process events processed by the second system, while the second system may not necessarily be able to process events processed by the first system.
- the electronic device may also be provided with a single processor, and the first system and the second system respectively run on different cores of the processor, wherein the processing performance of the core running the first system is higher than the processing performance of the core running the second system.
- the first processor is a CPU
- the second processor is an MCU
- the first system is an Android system
- the second system is an RTOS. Accordingly, different applications can be installed in the first system and the second system.
- the working modes of the electronic device include a performance mode, a hybrid mode and a low power consumption mode, wherein in the performance mode, both the first processor and the second processor remain awake (correspondingly, both the first system and the second system are in an awake state); in the low power consumption mode, only the second processor remains awake, while the first processor remains in an off state (i.e., the second system is in an awake state and the first system is in an off state); in the hybrid mode, when processing events through the first system, the second processor is in a standby state and can switch between a sleep state and a wake-up state (i.e., when the first system is in an awake state, the second system can be in an awake state or in a sleep state), and when both the first system and the second system are in an awake state, when processing events through the first system, the first system is in a foreground running state and the second system is in a background running state.
- the performance mode both the first processor and the second processor remain awake (correspondingly, both the first system and the second system are in
- system-related data is cached in the memory (RAM) so that the system-related data can be run at any time.
- RAM memory
- the system-related data is stored in the hard disk (ROM), and is written to the memory by the hard disk when switching to the awake state.
- the first system when the electronic device processes an event through a high-performance first system, the first system is in the foreground running state, and the second system can be in the background running state or the sleep state.
- the first system displays the application entrance of the target application.
- the application entry of the target application may be a notification message interface of the target application or an application icon corresponding to the target application.
- the first system when the first system is in a foreground running state and receives a notification message from a target application, the first system displays a notification message interface of the target application based on the notification message.
- the electronic device is equipped with a cellular communication component, and the electronic device can directly obtain the notification message of the target application through the cellular communication network, and then the first system displays the notification message interface of the target application based on the notification message.
- a terminal-side application corresponding to the target application is installed in the terminal.
- the terminal-side application and the target application in the electronic device can be the same application, or different applications with the same function.
- the electronic device can establish a communication connection with the terminal through a communication component and receive notification messages of the target application sent by the terminal through the communication connection.
- the communication connection between the electronic device and the terminal can be a wired communication connection or a wireless communication connection, for example, a Bluetooth connection, a Universal Serial Bus (USB), a Wireless Fidelity (WiFi) connection, a mobile data network connection, and a Near Field Communication (NFC), etc., which is not limited in this embodiment.
- a Bluetooth connection for example, a Universal Serial Bus (USB), a Wireless Fidelity (WiFi) connection, a mobile data network connection, and a Near Field Communication (NFC), etc.
- USB Universal Serial Bus
- WiFi Wireless Fidelity
- NFC Near Field Communication
- the communication connection is a Bluetooth connection
- a Bluetooth communication component is installed in the electronic device, and the electronic device and the terminal realize communication data transmission through the Bluetooth communication component.
- the communication component is mounted on the second processor, which can enable the electronic device to maintain low power consumption while maintaining a communication connection with the terminal during operation.
- the second system since the communication component is mounted on the second processor, the second system is in operation (switching between the foreground and the background) during the operation of the electronic device. In the background running state), the communication connection between the second system and the terminal is still maintained, that is, during the operation of the electronic device, the electronic device transmits communication data through the communication connection.
- the first system reuses the communication connection between the second system and the terminal to receive the notification message sent by the terminal, or, after the second system receives the notification message sent by the terminal through the communication connection between the terminal and the terminal, the first system receives the notification message forwarded by the second system through dual-core communication.
- the first processor and the second processor of the electronic device are both mounted with communication components.
- the second processor can be in a sleep state or in a running state, and the terminal and the electronic device are communicatively connected through the communication component mounted on the first processor.
- the first processor is in a sleep state (the first system is in a sleep state), and the terminal and the electronic device are communicatively connected through the communication component mounted on the second processor.
- the first system displays an application icon corresponding to the target application in the application list interface.
- the application list of the second system displays the launch entry of the target application, such as the icon of the target application, and the second system can start and run the target application in response to the user's touch operation on the icon.
- the application icon displayed in the application list interface of the first system is only an application entry, not a complete target application.
- the first system cannot run the target application and can only instruct the second system to start the target application.
- the smart watch is provided with an Android system (run by a first processor) and an RTOS system (run by a second processor), and the smart watch and the mobile phone establish a communication connection via Bluetooth.
- the notification message interface 41 of the target application is displayed based on the notification message through the Android system.
- the smart watch displays an application icon 52 corresponding to the target application in an application list interface 51 through the Android system.
- Step 302 In response to a trigger operation on an application entry, the first system sends an application start message to the second system.
- the first system may send an application startup message to the second system in response to a trigger operation on the application entry.
- the first system in response to a triggering operation on the notification message interface, sends an application startup message to the second system.
- the first system when the application entry is an application icon corresponding to the target application, in response to a triggering operation on the application icon, the first system sends an application start message to the second system.
- the trigger operation may be a touch operation performed on the application entry on the touch display screen of the terminal, such as a click operation, a slide operation, a gesture operation, and a long press operation, etc.
- a touch operation performed on the application entry on the touch display screen of the terminal, such as a click operation, a slide operation, a gesture operation, and a long press operation, etc.
- the embodiments of the present application do not limit the specific trigger operation.
- the first system after receiving the user's trigger operation on the application portal, the first system first confirms that the target application needs to be started, and then sends an application start message to the second system so that the second system starts the target application.
- the first system sends an application startup message to the second system through dual-core communication.
- Step 303 The second system starts the target application based on the application start message and displays the application interface.
- the second system after receiving the application startup message sent by the first system, the second system starts the target application indicated by the application startup message, and after the target application is started, obtains screen control authority from the first system, and then displays the application interface of the target application through the display screen of the electronic device.
- the first system in order to achieve smooth switching of the electronic device display interface during application startup, after the first system sends an application startup message to the second system, the first system draws and displays a transition interface of the target application, and then, when the second system completes application startup, the first system transfers screen control authority to the second system, so that the second system can display the application interface after obtaining screen control authority.
- transition interface of the target application and the application interface of the target application may be the same interface or different interfaces, which is not limited in the embodiments of the present application.
- the Android system in response to the application entry (notification message interface of the target application) displayed by the Android system 61 or the application icon corresponding to the target application is displayed in the application list interface 62), the Android system sends an application startup message to the RTOS system, and the smart watch draws and displays the transition interface 63 of the target application through the Android system, and then when the RTOS system completes the application startup, the screen control authority is transferred to the RTOS system, and then when the RTOS system obtains the screen control authority, the application interface 64 of the target application is displayed through the RTOS system.
- the first system after the first system transfers the screen control authority to the second system, in order to facilitate the user to switch systems at any time, the first system can remain in the background running state.
- the first system may switch to a sleep state after transferring the screen control authority to the second system.
- the first system switches to a sleep state after transferring screen control authority to the second system, and the electronic device starts and runs the application through the second system, thereby reducing the operating power consumption of the electronic device while ensuring the normal operation of the application startup function of the target application of the electronic device.
- the second system wakes up the first system, and after the first system switches to the awake state, the screen control authority is transferred to the first system, and then the first system processes the event. At this time, the second system switches to the background running state.
- the first system transfers screen control authority to the second system, it maintains an awake state for a preset time to avoid frequently waking up the first system. If no system switching operation is received within the preset time, the first system enters a sleep state.
- the first system that does not have the target application installed displays an application entrance and sends an application startup message to the second system that has the target application installed, so that the second system starts and runs the target application, allowing the user to start the application on the second system through the first system, which can enrich the user's application startup method and improve application startup efficiency.
- the first system displays an application entry, including:
- the first system When the first system is in the foreground running state and receives a notification message from the target application, the first system displays the notification message interface of the target application; or,
- the first system displays an application icon corresponding to the target application in the application list interface.
- the first system is provided with an activity component, and the activity component is used to control the display state of the application icon;
- the first system displays an application icon corresponding to the target application in the application list interface, including:
- the first system When the active component is in an activated state, the first system displays an application icon corresponding to the target application in the application list interface.
- the initial state of the activity component is a disabled state, and the application icon is not displayed in the disabled state;
- the method also includes:
- the second system When the target application is switched from a non-logged-in state to a logged-in state, the second system sends an activation message to the first system;
- the first system switches the active component from a disabled state to an activated state based on the activation message.
- the activation message includes an application package name and an activation status identifier of the target application.
- the method further includes:
- the first system or the second system displays a notification message interface including a login control, the notification message is sent by a terminal that has established a communication connection with the electronic device, the terminal is installed with a terminal-side application corresponding to the target application, and the terminal-side application is in a logged-in state;
- the second system In response to the triggering operation on the login control, the second system starts the target application and displays a login interface, where the login interface indicates that the target application is switched from a non-logged-in state to a logged-in state.
- the method further includes:
- the first system In response to an uninstallation operation on the target application in the first system, the first system hides the application icon.
- the method further includes:
- the first system In response to an uninstallation operation on the target application in the first system, the first system sends a disable message to the second system;
- the second system switches the target application from a logged-in state to a non-logged-in state based on the disable message.
- the method further includes:
- the second system In response to a logout operation on the target application in the second system, the second system switches the target application from a logged-in state to a non-logged-in state, and sends a disable message to the first system;
- the first system switches the active component from an activated state to a disabled state based on the disable message.
- the disable message includes an application package name of the target application and a disable status identifier.
- the method further includes:
- the first system draws and displays a transition interface of the target application
- the first system transfers the screen control authority to the second system, so that the second system displays the application interface when the screen control authority is obtained.
- a useful activity component is provided in the first system, and the activity component is used to control the display state of the application icon.
- the initial state of the activity component is a disabled state.
- the first system displays the application icon corresponding to the target application in the application list interface.
- the activity component is in a disabled state, the first system does not display the application icon corresponding to the target application in the application list interface.
- FIG. 7 shows a flow chart of a method for switching a target application login state provided by another exemplary embodiment of the present application.
- the method may include the following steps:
- Step 701 When the target application is in a non-logged-in state and a notification message of the target application is received, the first system or the second system displays a notification message interface including a login control.
- the electronic device when the target application in the second system is not logged in, the electronic device cannot directly obtain the notification message of the target application through the cellular communication network. Therefore, when the terminal is installed with a terminal-side application corresponding to the target application and the terminal-side application is logged in, the terminal sends the notification message received by the terminal-side application to the electronic device, and the electronic device can receive the notification message sent by the terminal through the communication connection established with the terminal, and then based on the notification message, the first system or the second system in the foreground running state displays a notification message interface containing a login control.
- the electronic device can directly receive notification messages from the target application through the cellular communication network, or receive notification messages sent by the terminal through the communication component; when the target application is not logged-in, the electronic device can only receive notification messages sent by the terminal through the communication component.
- the second system when the communication component is mounted on the second processor, the second system is always in operation during the operation of the electronic device.
- the second system When the second system is in the foreground operation state, the second system directly displays the notification message interface based on the notification message.
- the second system receives the notification message through the communication connection with the terminal, and when the first system is in the foreground operation state, the notification message is forwarded to the first system through dual-core communication, or the first system directly multiplexes the communication connection between the second system and the terminal to receive the notification message sent by the terminal, so that the first system displays the notification message interface.
- the first system or the second system in the foreground running state in the electronic device receives the notification message sent by the terminal through the communication connection between the terminal and the electronic device, and displays the notification message interface.
- a start control for triggering the start of a target application is provided in the notification message interface displayed by the electronic device based on the notification message, so that in response to the triggering operation of the start control, the electronic device can instruct the second system to start the target application.
- the startup control is an open control or a login control.
- the first system or the second system in the foreground running state identifies the login state of the target application in the second system, and then determines the startup control displayed in the message notification interface based on the login state of the target application. For example, when the target application is not logged in, a login control is displayed in the notification message interface, so that in response to the triggering operation of the login control, the electronic device can instruct the second system to start the target application; when the target application is logged in, an open control is displayed in the notification message interface or the startup control is not displayed, so that in response to the triggering operation of the open control or the notification message interface, the electronic device can instruct the second system Start the target application.
- the first system or the second system displays a notification message interface including a login control based on the notification message.
- the message notification interface may also include a close control for closing the message notification interface, so that in response to the triggering operation of the close control, the electronic device can instruct the first system or the second system to close the notification message interface.
- the Android system or RTOS system displays a notification message interface 81 including a login control 82 and a close control 83 based on the notification message.
- the Android system or RTOS system displays a notification message interface 81 including an open control 84 and a close control 83 based on the notification message.
- Step 702 in response to the triggering operation on the login control, the second system starts the target application and displays a login interface, where the login interface indicates that the target application is switched from a non-logged-in state to a logged-in state.
- the trigger operation may be a touch operation on the login control on the touch display screen of the terminal, such as a click operation, a slide operation, a gesture operation, and a long press operation.
- a touch operation on the login control on the touch display screen of the terminal such as a click operation, a slide operation, a gesture operation, and a long press operation.
- the embodiment of the present application does not limit the specific trigger operation.
- the second system when the second system is in the foreground running state and receives a notification message, in response to the triggering operation of the login control, the second system can directly start the target application; when the first system is in the foreground running state and receives a notification message, the first system sends a startup message to the second system to instruct the second system to start the target application.
- the second system detects the login status of the target application and determines the interface to be displayed based on the login status. That is, when the target application is in the logged-in state, the second system starts the target application and displays the application interface of the target application; when the target application is in the logged-in state, the second system starts the target application and displays the login interface of the target application, which indicates that the target application has switched from the logged-in state to the logged-in state.
- the target application in the second system is in a non-logged-in state.
- the first system or the second system in the foreground running state displays a notification message interface including a login control based on the notification message, in response to a triggering operation on the login control, the second system starts the target application and displays the login interface.
- Step 703 When the target application is switched from a non-logged-in state to a logged-in state, the second system sends an activation message to the first system.
- the dual-core communication between the first system and the second system may follow the following communication protocol:
- the syntax function is used to specify the language version
- the option function is used to modify the configuration options
- the message function is used to define the message type
- AppState represents the state of the target application, which consists of pkg and state.
- pkg represents the application package name (each application package name is unique), and state represents whether the application is activated (1 for activation and 0 for disablement).
- the activation message sent by the second system to the first system includes an application package name of the target application and an activation state identifier.
- the activation message is a message in which pkg is the application package name of the target application and state is 1.
- Step 704 The first system switches the active component from a disabled state to an activated state based on the activation message.
- the initial state of the active component in the first system is a disabled state, and in the disabled state, the first system hides the application icon corresponding to the target application in the application list interface.
- the first system parses the activation message, and when the target application indicated by the activation message is determined, the corresponding active component is switched from a disabled state to an activated state based on the activation message, and when the active component is in an activated state, the application icon corresponding to the target application is displayed in the application list interface.
- the Android system since the initial state of the activity component in the Android system is a disabled state, the Android system hides the application icon of the target application in the application list interface 91, and then upon receiving the user's response to the message notification interface 92, After the trigger operation is performed by the login control, the Android system instructs the RTOS system to start and log in to the target application, and transfers the screen control authority to the RTOS system. After the RTOS system switches the target application to the login state and displays the application interface 93, it sends an activation message to the Android system. Based on the received activation message, the Android system switches the active component from a disabled state to an activated state, and then displays the application icon corresponding to the target application in the application list interface 91.
- the Android system is in the background running state at this time, that is, the Android system does not have the screen control authority, that is, the application list interface 91 including the application icon corresponding to the target application will not be displayed on the screen.
- Step 705 In response to the uninstallation operation of the target application in the first system, the first system sends a disable message to the second system.
- the first system when the active component is in an activated state, the first system may display an application icon corresponding to the target application, and then, upon receiving an uninstall operation of the user on the application icon, the first system sends a disable message to the second system.
- the uninstall operation may be a touch operation on the application icon, such as a click operation, a slide operation, a gesture operation, and a long press operation, etc.
- the embodiment of the present application does not limit the specific uninstall operation.
- the first system may first display an uninstall control after receiving a touch operation on the application icon, and then confirm receipt of the uninstall operation when receiving a touch operation on the uninstall control.
- the disabling message sent by the first system to the second system includes an application package name of the target application and an activation state identifier.
- the disabling message is a message in which pkg is the application package name of the target application and state is 0.
- the first system after the first system receives the uninstall operation performed on the application icon, in response to the uninstall operation on the target application in the first system, the first system hides the application icon.
- the first system hides the application icon by switching the active component from an activated state to a disabled state.
- the first system when the first system switches the active component from an activated state to a disabled state, the first system hides the application icon corresponding to the target application in the application list interface.
- the Android system monitors the user's long press operation on the application icon in the application list interface 101, the uninstall control 102 is displayed, and then after receiving the touch operation on the uninstall control 102, it is determined that an uninstall operation on the target application has been received.
- the Android system switches the active component from an activated state to a disabled state, and hides the application icon corresponding to the target application in the application list interface 101.
- Step 706 The second system switches the target application from a logged-in state to a non-logged-in state based on the disable message.
- the second system after receiving the disabling message sent by the first system, parses the disabling message, and when determining the target application indicated by the disabling message, the second system switches the target application from a logged-in state to a non-logged-in state based on the disabling message.
- the second system may first store the login information of the target application, and then switch the target application from a logged-in state to a non-logged-in state, so that subsequent users may log in to the target application directly based on the historical login information.
- an activity component is provided in the first system, which is used to control the display status of the application icon, so that the user can start the application in the second system through the application icon in the first system, enriching the application startup method and improving the application startup efficiency.
- the first system may disable the active component and instruct the second system to log out of the target application in response to the uninstall operation performed on the application icon.
- the second system may also instruct the first system to disable the active component in response to a logout operation on the target application.
- the second system in response to a logout operation on the target application within the second system, switches the target application from a logged-in state to a non-logged-in state, and sends a disable message to the first system. Based on the disable message, the first system switches the active component from an activated state to a disabled state.
- the disable message sent by the second system to the first system and the disable message sent by the first system to the second system may be the same message or different messages, which is not limited in this embodiment of the present application.
- the disabling message sent by the second system to the first system includes an application package name of the target application and an activation state identifier.
- the disabling message is a message in which pkg is the application package name of the target application and state is 0.
- the first system parses the disabling message, and when determining the target application indicated by the disabling message, the first system switches the active component from an activated state to a disabled state based on the disabling message.
- the second system can respond to a logout operation on the target application by instructing the first system to switch the active component to a disabled state, so that the user can switch the state of the active component in the first system without switching the system, which helps to improve the efficiency of the active component state switching.
- FIG. 11 shows a structural block diagram of an application startup device provided by an embodiment of the present application.
- the device can be implemented as all or part of an electronic device through software, hardware, or a combination of both.
- the device includes:
- the first system module 1101 is used to display an application entry, the application entry is used to trigger the entry into a target application, the second system module 1102 is installed with the target application, and the first system module 1101 is not installed with the target application;
- the first system module 1101 is configured to send an application startup message to the second system module 1102 in response to a triggering operation on the application entry;
- the second system module 1102 is used to start the target application based on the application start message and display the application interface.
- the first system module 1101 is used to:
- the application icon corresponding to the target application is displayed in the application list interface.
- the first system module is provided with an activity component, and the activity component is used to control the display state of the application icon;
- the first system module 1101 is used for:
- the application icon corresponding to the target application is displayed in the application list interface.
- the initial state of the activity component is a disabled state, and the application icon is not displayed in the disabled state;
- the second system module 1102 is used to:
- the first system module 1101 is used for:
- the active component is switched from the disabled state to the activated state based on the activation message.
- the activation message includes an application package name and an activation status identifier of the target application.
- the first system module 1101 or the second system module 1102 is further used for:
- the target application When the target application is in the non-logged-in state and a notification message of the target application is received, displaying the notification message interface including a login control, wherein the notification message is sent by a terminal that has established a communication connection with the electronic device, the terminal is installed with a terminal-side application corresponding to the target application, and the terminal-side application is in the logged-in state;
- the second system module 1102 is used to:
- the target application In response to a triggering operation on the login control, the target application is started and a login interface is displayed, wherein the login interface indicates that the target application is switched from the non-logged-in state to the logged-in state.
- the first system module 1101 is used to:
- the application icon is hidden.
- the first system module 1101 is used to:
- the second system module 1102 is used to:
- the target application is switched from a logged-in state to a non-logged-in state based on the disable message.
- the second system module 1102 is used to:
- the first system module 1101 is used for:
- the active component is switched from the activated state to the disabled state based on the disable message.
- the disabling message includes an application package name and a disabling status identifier of the target application.
- the first system module 1101 is used to:
- the screen control authority is transferred to the second system module 1102, so that the second system module 1102 displays the application interface when the screen control authority is obtained.
- the first system that does not have the target application installed displays an application entrance and sends an application startup message to the second system that has the target application installed, so that the second system starts and runs the target application, allowing the user to start the application on the second system through the first system, which can enrich the user's application startup method and improve application startup efficiency.
- FIG12 shows a block diagram of an electronic device provided by an exemplary embodiment of the present application.
- the electronic device in the present application may include one or more of the following components: a processor 1210 and a memory 1220 .
- the processor 1210 includes at least a first processor 1211 and a second processor 1212, wherein the first processor 1211 is used to run the first system, the second processor 1212 is used to run the second system, and the power consumption of the first processor 1211 is higher than that of the second processor 1212, and the performance of the first processor 1211 is higher than that of the second processor 1212.
- the processor 1210 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220.
- the processor 1210 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA).
- the processor 1210 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processing unit (NPU), and a modem.
- the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1210, but may be implemented separately through a chip.
- the memory 1220 may include a random access memory (RAM) or a read-only memory (ROM).
- the memory 1220 includes a non-transitory computer-readable storage medium.
- the memory 1220 may be used to store instructions, programs, codes, code sets, or instruction sets.
- the memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device (such as application data, a phone book), etc.
- the electronic device in the embodiment of the present application further includes a communication component 1230 and a display component 1240.
- the communication component 1230 may be a Bluetooth component, a Wireless Fidelity (Wi-Fi) component, a Near Field Communication (NFC) component, etc., for communicating with an external device (server or other terminal device) via a wired or wireless network;
- the display component 1240 is used for displaying a graphical user interface and/or receiving user interaction operations.
- the structures of the electronic devices shown in the above figures do not limit the electronic devices, and the electronic devices may include more or fewer components than shown, or combine certain components, or arrange the components differently.
- the electronic devices may also include radio frequency circuits, input units, sensors, audio circuits, speakers, The microphone, power supply and other components will not be described in detail here.
- An embodiment of the present application further provides a computer-readable storage medium, which stores at least one program, and the at least one program is used to be executed by a processor to implement the application startup method as described in the above embodiment.
- the embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium.
- a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the application startup method provided in the above embodiment.
- Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another.
- the storage medium can be any available medium that a general or special-purpose computer can access.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
一种应用启动方法、装置、设备及存储介质,涉及电子设备领域。该方法包括:第一系统显示应用入口,应用入口用于触发进入目标应用,第二系统安装有目标应用,且第一系统未安装目标应用(301);响应于对应用入口的触发操作,第一系统向第二系统发送应用启动消息(302);第二系统基于应用启动消息启动目标应用并显示应用界面(303)。
Description
本申请要求于2022年11月25日提交的申请号为202211491704.4、发明名称为“应用启动方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及电子设备领域,特别涉及一种应用启动方法、装置、设备及存储介质。
随着科技技术的不断发展,越来越多功能各异的电子设备应运而生,为用户的日常生活带来诸多便利。
电子设备除了可以实现一些简单功能,比如查看时间、设置闹钟外,还可以通过安装的应用实现一些复杂功能。比如,用户可以通过电子设备中安装的即时通信应用进行即时通信,通过安装的睡眠监测应用对睡眠质量进行实时监测。
发明内容
本申请实施例提供了一种应用启动方法、装置、设备及存储介质。所述技术方案如下:
一方面,本申请实施例提供了一种应用启动方法,所述方法用于电子设备,所述电子设备中支持运行第一系统和第二系统;
所述方法包括:
所述第一系统显示应用入口,所述应用入口用于触发进入目标应用,所述第二系统安装有所述目标应用,且所述第一系统未安装所述目标应用;
响应于对所述应用入口的触发操作,所述第一系统向所述第二系统发送应用启动消息;
所述第二系统基于所述应用启动消息启动所述目标应用并显示应用界面。
另一方面,本申请实施例提供了一种应用启动装置,所述装置用于电子设备,所述电子设备中支持运行第一系统和第二系统;
所述装置包括:
第一系统模块,用于显示应用入口,所述应用入口用于触发进入目标应用,第二系统模块安装有所述目标应用,且所述第一系统模块未安装所述目标应用;
所述第一系统模块,用于响应于对所述应用入口的触发操作,向所述第二系统模块发送应用启动消息;
所述第二系统模块,用于基于所述应用启动消息启动所述目标应用并显示应用界面。
另一方面,本申请实施例提供了一种电子设备,所述电子设备包括处理器和存储器;所述存储器存储有至少一段程序,所述至少一段程序用于被所述处理器执行以实现如上述方面所述的应用启动方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如上述方面所述的应用启动方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;电子设备的处理器从所述计算机可读存储介质读取所述计算机指令,处理器执行该计算机指令,使得该电子设备执行上述方面所述的应用启动方法。
图1示出了本申请一个示例性实施例示出的安卓操作系统的双核通信软件框架;
图2示出了本申请一个示例性实施例示出的RTOS的双核通信软件框架;
图3示出了本申请一个示例性实施例提供的应用启动方法的流程图;
图4示出了本申请一个示例性实施例提供的目标应用的通知消息界面的示意图;
图5示出了本申请一个示例性实施例提供的应用列表界面的示意图;
图6示出了本申请一个示例性实施例提供的应用启动方法的示意图;
图7示出了本申请另一个示例性实施例提供的目标应用登录状态的切换方法的流程图;
图8示出了本申请一个示例性实施例提供的通知消息界面的示意图;
图9示出了本申请一个示例性实施例提供的第一系统中活动组件的激活方法的示意图;
图10示出了本申请一个示例性实施例提供的第一系统中活动组件的禁用方法的示意图;
图11示出了本申请一个实施例提供的应用启动装置的结构框图;
图12示出了本申请一个示例性实施例提供的电子设备的结构方框图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
相关技术中,电子设备中设置有单一处理器,并通过运行在处理器上的操作系统,实现应用启动和运行功能。然而,在日常使用过程中,电子设备在大多数情况下只需要实现一些对处理性能要求较低的功能,比如,对于智能手表或智能手环来说,大多数情况下,智能手表或智能手环只需要进行时间显示和消息提示,因此长时间保持处理器处于工作状态并不会提高电子设备的性能,反而会增加设备功耗,导致电子设备的续航时间较短(在电池容量较小的可穿戴式设备上尤为明显)。
为了在保证电子设备性能的同时,降低电子设备的功耗,在一种可能的实施方式中,电子设备至少设置具有不同处理性能以及功耗的第一处理器和第二处理器,分别用于运行第一系统和第二系统(即双核双系统),并为双核双系统设计了一套系统切换机制。
双系统电子设备的第一系统与第二系统中安装有能够相互匹配的应用程序(例如,两个系统中安装有同样的目标程序),也安装有不能相互匹配的应用程序(例如,该应用程序仅支持安装在第一系统或第二系统中)。对于仅支持安装在某一系统的应用程序,以该应用程序仅支持安装在第二系统为例,电子设备无法通过第一系统启动该应用程序,电子设备仅在第二系统处于前台运行状态的情况下能够启动该应用程序并显示应用界面,即在电子设备的第一系统处于前台运行的情况下,用户需要进行系统切换以通过第二系统启动该应用程序,导致应用启动方法不够便捷,效率较低。
为解决用户无法通过第一系统启动安装在第二系统中的应用程序以造成的应用启动效率较低的问题,本申请实施例提供的方案中,对于支持双系统的电子设备,在存在应用使用需求的情况下,未安装目标应用的第一系统显示应用入口,并向安装有目标应用的第二系统发送应用启动消息,以便第二系统启动并运行目标应用,使得用户可通过第一系统启动第二系统上的应用,能够提升应用启动效率。
本申请实施例中,由于第一处理器和第二处理器异步工作,且第一系统和第二系统需要实现系统通信(或称为双核通信)。在一种可能的应用场景下,第一系统为运行在中央处理器(Central Processing Unit,CPU)上的安卓(Android)操作系统,且第二系统为运行在微控制单元(Micro Controller Unit,MCU)上的实时操作系统(Real Time Operating System,RTOS)。
如图1所示,其示出了本申请一个示例性实施例示出的安卓操作系统的双核通信软件框架。该双核通信软件框架遵循“低耦合,高可靠,高复用”的设计原则,包括Kernel(内核)、
HIDL(硬件抽象层接口描述语言)、Native Service(本地服务)、Framework Service(框架服务)、Framework API(框架接口)和APP(应用)部分的模块开发。
其中,APP模块包括Launcher(桌面启动器)、Setting(设置)和SystemUI(系统用户界面)等功能模块、Framework API模块中包括MCUManager(MCU管理)、SensorManager(传感器管理)、LocationManager(位置管理)等管理模块,Framework Service模块中包括MCUManagerService(MCU管理服务)、SystemSensorManager(系统传感器管理)、LocationManagerService(位置管理服务)等服务模块,Native Service模块包括dccservice(dcc服务)、Sensorservice(传感器服务)等服务模块,HIDL模块包括Sensor HAL(传感器硬件抽象层)、GPS HAL(全球定位系统硬件抽象层)等模块。Kernel模块包括dcc_data、Mcu_sensor、Mcu_gps等DCC Transfer Driver(DCC传输驱动)。
传输层作为双核通信软件框架中衔接上下层的接口层,向应用层屏蔽系统下层(数据链路层)通信的传输细节,为应用场景提供服务通道;应用层作为服务提供的主体,响应于人机交互并通过传输层对人机交互过程中产生的数据进行传输,以及对外部数据请求进行响应。
RTOS采用对等原则进行设计。以电子设备为智能手表为例,如图2所示,其示出了本申请一个示例性实施例示出的RTOS的双核通信软件框架。
RTOS的双核通信软件框架分为应用层(Application Layer)、服务层(Service Layer)、框架层(Framework Layer)、硬件抽象层(Hardware abstraction layer)和平台层(Platform Layer)。
其中,应用层包括watch face(表盘)、Daily Tracker(日常追踪)、Message center(消息中心)、Voice around Apps(声音应用)、Health Apps(健康应用)、Settings(设置)等应用模块;服务层包括Sport&health task(运动健康任务)、System manager task(系统管理任务)、AMS(活动管理服务)、AudioService(音频服务)、Log Service(日志服务)、OFTP Service(Odette文件传输协议服务)、BT Service(蓝牙服务)、Delegate Service(转交服务)、RPC Service(远程调用服务)、sensor Service(传感器服务)、storage Service(存储服务)等服务模块;框架层包括Message Pub(消息中心)、UI Framework(用户界面框架)、G2D Engine(G2D引擎)、Audio Middleware(音频中间件)、Preference(偏好)、File system(文件系统)、Algorithms(算法)、AsycEvent(进程内异步事件)等框架模块;硬件抽象层包括Screen/TP(屏幕/触控屏)、sensors(传感器)等硬件抽象模块;平台层包括板级支持包(Board Support Package,BSP)以及低等级驱动(LOW level Driver),其中,BSP包括Screen/TP、Codec(编码译码器)、sensors、Flash(闪存)、PSRAM(伪静态随机存储器)等等,低等级驱动包括Uart(通用异步收发传输器)、ADC(模数转换器)、GPIO(通用输入输出)、SPI(串行外设接口)、I2C(集成电路总线)、IOS(输入输出系统)、PCM(脉冲编码调制)、I2S(集成音频总线)、HWTimer(硬件定时器)。
需要说明的是,上述双核通信软件框架仅用于示意性说明,本领域技术人员还可以根据实际需求,对上述框架进行增加、删除或修改,本申请实施例并不对双核通信软件框架的具体结构构成限定。
请参考图3,其示出了本申请一个示例性实施例提供的应用启动方法的流程图,本实施例以该方法应用于电子设备,且电子设备中支持运行第一系统和第二系统为例进行说明,该方法可以包括如下步骤:
步骤301,第一系统显示应用入口,应用入口用于触发进入目标应用,第二系统安装有目标应用,且第一系统未安装目标应用。
双系统电子设备运行过程中,当存在高性能处理需求的事件时,通过运行在高功耗处理器上的高功耗系统(可以为第一系统或第二系统),对高性能处理需求的事件进行处理,保证触发的事件能够被及时响应并处理,满足电子设备的性能需求;当不存在高性能处理需求的事件时,通过运行在低功耗处理器上的低功耗系统(可以为第一系统或第二系统),对低性能处理需求的事件进行处理,并保持高功耗处理器处于休眠状态(相应的,由高功耗处理器运
行的高功耗系统处于休眠状态),在实现电子设备基础功能的同时,降低电子设备的功耗。
在一种可能的实施方式中,电子设备设置有第一处理器和第二处理器,其中,第一处理器的处理性能高于第二处理器的处理性能(第一处理器的处理能力和处理速度均高于第二处理器),且第一处理器的功耗高于第二处理器的功耗,相应的,由第一处理器运行的第一系统的运行功耗高于由第二处理器运行的第二系统的运行功耗,因此,第一系统能够处理第二系统所处理的事件,而第二系统并不一定能够处理第一系统所处理的事件。
在另一种可能的实施方式中,电子设备也可以设置单一处理器,第一系统和第二系统分别运行在处理器的不同核心上,其中,运行第一系统的核心的处理性能高于运行第二系统的核心的处理性能。
比如,以电子设备为智能手表为例,第一处理器为CPU,第二处理器为MCU,第一系统为安卓系统,第二系统为RTOS。相应的,第一系统与第二系统中可以安装有不同的应用程序。
在一种可能的实施方式中,电子设备的工作模式包括性能模式、混动模式和低功耗模式,其中,性能模式下,第一处理器和第二处理器均保持唤醒状态(相应的,第一系统和第二系统均处于唤醒状态);低功耗模式下,仅第二处理器保持唤醒状态,而第一处理器保持关闭状态(即第二系统处于唤醒状态,第一系统处于关闭状态);混动模式下,在通过第一系统处理事件时,第二处理器处于待机状态,可以在休眠和唤醒状态之间切换(即第一系统处于唤醒状态时,第二系统既可以处于唤醒状态,又可以处于休眠状态),在第一系统与第二系统均处于唤醒状态的情况下,在通过第一系统处理事件时,第一系统处于前台运行状态,第二系统处于后台运行状态。
可选的,唤醒状态下,系统相关数据缓存在内存(RAM)中,以便于随时运行系统相关数据,休眠状态下,处理器大部分硬件模块关闭,系统相关数据存储在硬盘(ROM)中,并在切换为唤醒状态时由硬盘写入内存中。
本申请实施例中,在电子设备通过高性能的第一系统处理事件时,第一系统处于前台运行状态,第二系统可以处于后台运行状态或休眠状态,在用户需要进入仅安装在第二系统的目标应用时,第一系统显示目标应用的应用入口。
可选的,目标应用的应用入口可以为目标应用的通知消息界面或目标应用对应的应用图标。
在一种可能的实施方式中,在第一系统处于前台运行状态,且接收到目标应用的通知消息的情况下,第一系统基于通知消息显示目标应用的通知消息界面。
在一些实施例中,电子设备上搭载有蜂窝通信组件,电子设备可通过蜂窝通信网络直接获取目标应用的通知消息,进而由第一系统基于通知消息显示目标应用的通知消息界面。
在另一些实施例中,终端中安装有与目标应用对应的终端侧应用,该终端侧应用与电子设备中的目标应用可以为相同应用,或,功能相同的不同应用,电子设备可以与终端通过通信组件建立通信连接,并通过该通信连接接收终端发送的目标应用的通知消息。
可选的,电子设备与终端之间的通信连接可以为有线通信连接或无线通信连接,例如,蓝牙连接、通用串行总线(Universal Serial Bus,USB)、无线保真(Wireless Fidelity,WiFi)连接、移动数据网络连接以及近场通信(Near Field Communication,NFC)等等,本实施例对此不作限定。
可选的,该通信连接为蓝牙连接,电子设备中安装有蓝牙通信组件,电子设备与终端通过蓝牙通信组件实现通信数据传输。
为了保证终端发送的通知消息能够被及时接收和处理,在一些实施例中,通信组件挂载在第二处理器上,可以使电子设备在运行过程中,在保持与终端之间的通信连接的同时,保持较低的功耗。
需要说明的是,由于通信组件挂载在第二处理器上,因此第二系统在电子设备运行过程中均处于运行状态(在前后台之间切换)。在第一系统处于前台运行状态时(此时第二系统为
后台运行状态),第二系统与终端之间的通信连接仍旧保持,即电子设备运行过程中,电子设备均通过该通信连接进行通信数据传输。
可选的,第一系统复用第二系统与终端之间的通信连接接收终端发送的通知消息,或,第二系统通过与终端之间的通信连接,接收终端发送的通知消息后,第一系统通过双核通信的方式接收第二系统转发的通知消息。
在另一些实施例中,电子设备的第一处理器和第二处理器均挂载有通信组件,在第一系统处于前台运行状态的情况下,第二处理器既可以处于休眠状态,也可以处于运行状态,终端与电子设备通过第一处理器挂载的通信组件进行通信连接,在第二系统处于前台运行状态的情况下,第一处理器处于休眠状态(第一系统处于休眠状态),终端与电子设备通过第二处理器挂载的通信组件进行通信连接。
在另一种可能的实施方式中,第一系统在应用列表界面中显示目标应用对应的应用图标。
可以理解的是,由于目标应用仅安装于第二系统,因此当第二系统运行于设备前台时,第二系统的应用列表显示目标应用的启动入口,比如目标应用的图标,第二系统可响应于用户对该图标的触控操作启动并运行目标应用。而由于第一系统中未安装目标应用,因此,第一系统在应用列表界面中显示的应用图标仅作为应用入口,并不是完整的目标应用,在接收到用户对应用图标的触控操作的情况下,第一系统无法运行目标应用,只能指示第二系统启动目标应用。
示意性的,如图4所示,以电子设备为智能手表为例,智能手表中设置有安卓系统(由第一处理器运行)和RTOS系统(由第二处理器运行),该智能手表和手机通过蓝牙建立有通信连接。智能手表接收到手机发送的通知消息后,通过安卓系统基于通知消息显示目标应用的通知消息界面41。
示意性的,如图5所示,智能手表通过安卓系统在应用列表界面51中显示目标应用对应的应用图标52。
步骤302,响应于对应用入口的触发操作,第一系统向第二系统发送应用启动消息。
本申请实施例中,第一系统可响应于对应用入口的触发操作向第二系统发送应用启动消息。
可选的,在应用入口为目标应用的通知消息界面的情况下,响应于对该通知消息界面的触发操作,第一系统向第二系统发送应用启动消息。
可选的,在应用入口为目标应用对应的应用图标的情况下,响应于对该应用图标的触发操作,第一系统向第二系统发送应用启动消息。
可选的,触发操作可以为在终端触控显示屏上对应用入口进行的触控操作,如点击操作、滑动操作、手势操作以及长按操作等,本申请实施例并不对具体的触发操作构成限定。
本申请实施例中,第一系统在接收到用户对应用入口的触发操作后,首先确认需要启动目标应用,从而向第二系统发送应用启动消息,以便第二系统启动目标应用。
可选的,第一系统通过双核通信的方式向第二系统发送应用启动消息。
步骤303,第二系统基于应用启动消息启动目标应用并显示应用界面。
本申请实施例中,第二系统在接收到第一系统发送的应用启动消息后,即启动应用启动消息所指示的目标应用,并在目标应用启动后,从第一系统处获取屏幕控制权限,进而通过电子设备的显示屏显示目标应用的应用界面。
在一种可能的实施方式中,为了实现应用启动过程中电子设备显示界面的平滑切换,第一系统向第二系统发送应用启动消息之后,第一系统绘制并显示目标应用的过渡界面,进而在第二系统完成应用启动的情况下,向第二系统转移屏幕控制权限,以便第二系统在获取到屏幕控制权限的情况下显示应用界面。
可选的,目标应用的过渡界面与目标应用的应用界面可以是相同的界面,也可以是不同的界面,本申请实施例对此不作限定。
示意性的,如图6所示,响应于对安卓系统显示的应用入口(目标应用的通知消息界面
61或应用列表界面62中显示目标应用对应的应用图标)的触发操作,安卓系统向RTOS系统发送应用启动消息,智能手表通过安卓系统绘制并显示目标应用的过渡界面63,进而在RTOS系统完成应用启动的情况下,向RTOS系统转移屏幕控制权限,进而在RTOS系统获取到屏幕控制权限的情况下,通过RTOS系统显示目标应用的应用界面64。
在一些实施例中,第一系统将屏幕控制权限转移给第二系统后,为了便于用户随时进行系统切换,第一系统可以保持后台运行状态。
在另一些实施例中,为了降低电子设备的功耗,延长电子设备的续航能力,第一系统向第二系统转移屏幕控制权限后可以切换至休眠状态。
可选的,第一系统将屏幕控制权限转移给第二系统后切换至休眠状态,电子设备通过第二系统启动并运行应用,在保证电子设备目标应用的应用启动功能正常运行的同时,降低了电子设备的运行功耗。
可选的,当存在需要由第一系统进行处理的事件时,第二系统唤醒第一系统,并在第一系统切换至唤醒状态后,将屏幕控制权限转移给第一系统,进而由第一系统进行事件处理,此时,第二系统切换至后台运行状态。
在另一种可能的实施方式中,第一系统向第二系统转移屏幕控制权限后,保持预设时长的唤醒状态,以避免出现频繁唤醒第一系统的情况,若在预设时长内未接收到系统切换操作,第一系统则进入休眠状态。
综上所述,本申请实施例中,对于支持双系统的电子设备,在存在目标应用的使用需求的情况下,未安装目标应用的第一系统显示应用入口,并向安装有目标应用的第二系统发送应用启动消息,以便第二系统启动并运行目标应用,使得用户可通过第一系统启动第二系统上的应用,能够丰富用户的应用启动方式,提升应用启动效率。
可选的,第一系统显示应用入口,包括:
在第一系统处于前台运行状态,且接收到目标应用的通知消息的情况下,第一系统显示目标应用的通知消息界面;或,
第一系统在应用列表界面中显示目标应用对应的应用图标。
可选的,第一系统设置有活动组件,活动组件用于控制应用图标的显示状态;
第一系统在应用列表界面中显示目标应用对应的应用图标,包括:
在活动组件处于激活状态的情况下,第一系统在应用列表界面中显示目标应用对应的应用图标。
可选的,活动组件的初始状态为禁用状态,且禁用状态下应用图标不显示;
方法还包括:
在目标应用由未登录状态切换为登录状态的情况下,第二系统向第一系统发送激活消息;
第一系统基于激活消息将活动组件由禁用状态切换为激活状态。
可选的,激活消息中包含目标应用的应用包名以及激活状态标识。
可选的,在目标应用由未登录状态切换为登录状态的情况下,第二系统向第一系统发送激活消息之前,方法还包括:
在目标应用处于未登录状态,且接收到目标应用的通知消息的情况下,第一系统或第二系统显示包含登录控件的通知消息界面,通知消息由与电子设备建立有通信连接的终端发送的,终端安装有与目标应用对应的终端侧应用,且终端侧应用处于登录状态;
响应于对登录控件的触发操作,第二系统启动目标应用并显示登录界面,登录界面表明将目标应用由未登录状态切换为登录状态。
可选的,方法还包括:
响应于第一系统内对目标应用的卸载操作,第一系统隐藏应用图标。
可选的,方法还包括:
响应于第一系统内对目标应用的卸载操作,第一系统向第二系统发送禁用消息;
第二系统基于禁用消息将目标应用由登录状态切换为未登录状态。
可选的,方法还包括:
响应于第二系统内对目标应用的登出操作,第二系统将目标应用由登录状态切换为未登录状态,并向第一系统发送禁用消息;
第一系统基于禁用消息将活动组件由激活状态切换为禁用状态。
可选的,禁用消息中包含目标应用的应用包名以及禁用状态标识。
可选的,第一系统向第二系统发送应用启动消息之后,方法还包括:
第一系统绘制并显示目标应用的过渡界面;
在第二系统完成应用启动的情况下,第一系统向第二系统转移屏幕控制权限,以便第二系统在获取到屏幕控制权限的情况下显示应用界面。
在一种可能的实施方式中,第一系统中设置有用活动组件(activity),该活动组件用于控制应用图标的显示状态。可选的,该活动组件的初始状态为禁用状态。在该活动组件处于激活状态的情况下,第一系统在应用列表界面中显示目标应用对应的应用图标,在该活动组件处于禁用状态的情况下,第一系统在应用列表界面中不显示目标应用对应的应用图标。
请参考图7,其示出了本申请另一个示例性实施例提供的目标应用登录状态的切换方法的流程图,该方法可以包括如下步骤:
步骤701,在目标应用处于未登录状态,且接收到目标应用的通知消息的情况下,第一系统或第二系统显示包含登录控件的通知消息界面。
在一种可能的实施方式中,在第二系统中的目标应用处于未登录状态的情况下,电子设备无法通过蜂窝通信网络直接获取目标应用的通知消息,因此,在终端安装有与目标应用对应的终端侧应用,且该终端侧应用处于登录状态的情况下,终端将终端侧应用接收到的通知消息发送至电子设备,电子设备可通过与终端之间建立的通信连接接收终端发送的通知消息,进而基于通知消息,由处于前台运行状态的第一系统或第二系统显示包含登录控件的通知消息界面。
可以理解的是,在目标应用处于登录状态的情况下,电子设备可通过蜂窝通信网络直接接收到目标应用的通知消息,或者,通过通信组件接收终端发送的通知消息;在目标应用处于未登录状态的情况下,电子设备仅能够通过通信组件接收终端发送的通知消息。
可选的,在通信组件挂载在第二处理器的情况下,第二系统在电子设备运行过程中始终处于运行状态。在第二系统处于前台运行状态的情况下,第二系统直接基于通知消息显示通知消息界面,在第一系统处于前台运行状态时(此时第二系统为后台运行状态),第二系统通过与终端之间的通信连接接收通知消息,并在第一系统处于前台运行状态的情况下,通过双核通信的方式将通知消息转发至第一系统中,或,直接由第一系统复用第二系统与终端之间的通信连接接收终端发送的通知消息,以便第一系统显示通知消息界面。
可选的,在电子设备的第一处理器和第二处理器均挂载有通信组件的情况下,电子设备中处于前台运行状态的第一系统或第二系统通过终端与电子设备之间的通信连接,接收终端发送的通知消息,并显示通知消息界面。
在一种可能的实施方式中,电子设备基于通知消息显示的通知消息界面中设置有用于触发启动目标应用的启动控件,从而响应于对该启动控件的触发操作,电子设备可以指示第二系统启动目标应用。
可选的,启动控件为打开控件或登录控件。处于前台运行状态的第一系统或第二系统接收到通知消息后,识别第二系统中目标应用的登录状态,进而基于目标应用的登录状态确定消息通知界面中显示的启动控件,例如,在目标应用处于未登录状态的情况下,通知消息界面中显示有登录控件,从而响应于对登录控件的触发操作,电子设备可以指示第二系统启动目标应用;在目标应用处于登录状态的情况下,通知消息界面中显示有打开控件或不显示启动控件,从而响应于对打开控件或对通知消息界面的触发操作,电子设备可以指示第二系统
启动目标应用。
本申请实施例中,由于目标应用处于未登录状态,因此第一系统或第二系统基于通知消息显示包含登录控件的通知消息界面。
可选的,消息通知界面中除了包含用于触发启动目标应用的启动控件之外,还可以包含用于关闭消息通知界面的关闭控件,从而响应于对该关闭控件的触发操作,电子设备可以指示第一系统或第二系统关闭通知消息界面。
示意性的,如图8所示,在目标应用处于未登录状态的情况下,安卓系统或RTOS系统基于通知消息显示包含登录控件82以及关闭控件83的通知消息界面81,在目标应用处于登录状态的情况下,安卓系统或RTOS系统基于通知消息显示包含打开控件84以及关闭控件83的通知消息界面81。
步骤702,响应于对登录控件的触发操作,第二系统启动目标应用并显示登录界面,登录界面表明将目标应用由未登录状态切换为登录状态。
可选的,该触发操作可以为在终端触控显示屏上对登录控件进行的触控操作,如点击操作、滑动操作、手势操作以及长按操作等,本申请实施例并不对具体的触发操作构成限定。
可选的,在第二系统处于前台运行状态,且接收到通知消息的情况下,响应于对登录控件的触发操作,第二系统可以直接启动目标应用;在第一系统处于前台运行状态,且接收到通知消息的情况下,则由第一系统向第二系统发送启动消息,以指示第二系统启动目标应用。
进一步的,第二系统对目标应用的登录状态进行检测,并根据该登录状态确定待显示的界面,即在目标应用处于登录状态的情况下,第二系统启动目标应用并显示目标应用的应用界面;在目标应用处于未登录状态的情况下,第二系统启动目标应用并显示目标应用的登录界面,该登录界面表明目标应用由未登录状态切换为登录状态。
本申请实施例中,第二系统中的目标应用处于未登录状态,处于前台运行状态的第一系统或第二系统基于通知消息显示包含登录控件的通知消息界面后,响应于对登录控件的触发操作,第二系统启动目标应用并显示登录界面。
步骤703,在目标应用由未登录状态切换为登录状态的情况下,第二系统向第一系统发送激活消息。
在一种可能的实施方式中,第一系统与第二系统之间的双核通信可以遵循如下通信协议:
其中,syntax函数用于指定语言版本,option函数用于修改配置选项,message函数用于定义消息类型,AppState表示目标应用的状态,其由pkg和state组成。pkg表示应用包名(每个应用的包名都是唯一的),state表示应用是否激活(1表示激活,0表示禁用)。
可选的,第二系统向第一系统发送的激活消息中包含目标应用的应用包名以及激活状态标识,该激活消息为一条pkg为目标应用的应用包名,state为1的消息。
步骤704,第一系统基于激活消息将活动组件由禁用状态切换为激活状态。
可选的,第一系统中的活动组件的初始状态为禁用状态,且禁用状态下,第一系统隐藏应用列表界面中的目标应用对应的应用图标。
本申请实施例中,第一系统接收到激活消息后,对该激活消息进行解析,在确定出激活消息所指示的目标应用的情况下,基于激活消息将对应的活动组件由禁用状态切换为激活状态,并在活动组件处于激活状态的情况下,在应用列表界面中显示目标应用对应的应用图标。
示意性的,如图9所示,由于安卓系统中的活动组件的初始状态为禁用状态,因此安卓系统隐藏应用列表界面91中目标应用的应用图标,进而在接收到用户对消息通知界面92中
的登录控件进行的触发操作后,安卓系统指示RTOS系统启动并登录目标应用,并向RTOS系统转移屏幕控制权限,RTOS系统将目标应用切换至登录状态并显示应用界面93后,向安卓系统发送激活消息,安卓系统基于接收到的激活消息将活动组件由禁用状态切换为激活状态,进而在应用列表界面91中显示目标应用对应的应用图标。
需要注意的是,若此时安卓系统处于后台运行状态,即安卓系统不具备屏幕控制权限,即包含目标应用对应的应用图标的应用列表界面91将不显示于屏幕。
步骤705,响应于第一系统内对目标应用的卸载操作,第一系统向第二系统发送禁用消息。
本申请实施例中,在活动组件处于激活状态的情况下,第一系统可显示目标应用对应的应用图标,进而在接收到用户对该应用图标的卸载操作的情况下,第一系统向第二系统发送禁用消息。
可选的,该卸载操作可以为对应用图标进行的触控操作,如点击操作、滑动操作、手势操作以及长按操作等,本申请实施例并不对具体的卸载操作构成限定。
可选的,为避免出现用户误触导致卸载目标应用的情况,第一系统在接收到对应用图标进行的触控操作后,可以先显示卸载控件,进而在接收到对该卸载控件进行的触控操作的情况下,确认接收到卸载操作。
可选的,第一系统向第二系统发送的禁用消息中包含目标应用的应用包名以及激活状态标识,该禁用消息为一条pkg为目标应用的应用包名,state为0的消息。
在一种可能的实施方式中,第一系统接收到对应用图标进行的卸载操作后,响应于第一系统内对目标应用的卸载操作,第一系统隐藏应用图标。
可选的,第一系统通过将活动组件由激活状态切换至禁用状态的方式隐藏应用图标。
可选的,第一系统将活动组件由激活状态切换为禁用状态的情况下,第一系统隐藏在应用列表界面中的目标应用对应的应用图标。
示意性的,如图10所示,安卓系统监听到用户对应用列表界面101中的应用图标进行的长按操作后,显示卸载控件102,进而在接收到对该卸载控件102的触控操作后,确定接收到对目标应用的卸载操作,安卓系统响应于该卸载操作,将活动组件由激活状态切换为禁用状态,并隐藏在应用列表界面101中的目标应用对应的应用图标。
步骤706,第二系统基于禁用消息将目标应用由登录状态切换为未登录状态。
在一种可能的实施方式中,第二系统接收到第一系统发送的禁用消息后,对该禁用消息进行解析,在确定出禁用消息所指示的目标应用的情况下,第二系统基于禁用消息将目标应用由登录状态切换为未登录状态。
可选的,第二系统可先存储目标应用的登录信息,再将目标应用由登录状态切换为未登录状态,以便后续用户登录目标应用时可直接基于历史登录信息进行登录。
本申请实施例中,第一系统中设置有活动组件,该活动组件用于控制应用图标的显示状态,使得用户可通过第一系统中的应用图标启动第二系统内的应用,丰富了应用启动方式,提升应用启动效率。
上述实施例中,第一系统可响应于对应用图标进行的卸载操作,禁用活动组件并指示第二系统登出目标应用。
在另一些实施例中,第二系统也可响应于对目标应用的登出操作指示第一系统禁用活动组件。
在一种可能的实施方式中,响应于第二系统内对目标应用的登出操作,第二系统将目标应用由登录状态切换为未登录状态,并向第一系统发送禁用消息,第一系统基于禁用消息将活动组件由激活状态切换为禁用状态。
可选的,第二系统发送至第一系统的禁用消息与第一系统发送至第二系统的禁用消息可以是相同的消息,也可以是不同的消息,本申请实施例对此不作限定。
可选的,第二系统向第一系统发送的禁用消息中包含目标应用的应用包名以及激活状态标识,该禁用消息为一条pkg为目标应用的应用包名,state为0的消息。
可选的,第一系统接收到该禁用消息后,对该禁用消息进行解析,在确定出禁用消息所指示的目标应用的情况下,第一系统基于禁用消息将活动组件由激活状态切换为禁用状态。
本申请实施例中,第二系统可响应于对目标应用的登出操作,指示第一系统将活动组件切换至禁用状态,使得用户无需切换系统也能实现对第一系统中活动组件的状态切换,有助于提升活动组件状态切换的效率。
请参考图11,其示出了本申请一个实施例提供的应用启动装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为电子设备的全部或一部分。该装置包括:
第一系统模块1101,用于显示应用入口,所述应用入口用于触发进入目标应用,第二系统模块1102安装有所述目标应用,且所述第一系统模块1101未安装所述目标应用;
所述第一系统模块1101,用于响应于对所述应用入口的触发操作,向所述第二系统模块1102发送应用启动消息;
所述第二系统模块1102,用于基于所述应用启动消息启动所述目标应用并显示应用界面。
可选的,所述第一系统模块1101,用于:
在所述第一系统模块1101处于前台运行状态,且接收到所述目标应用的通知消息的情况下,显示所述目标应用的通知消息界面;或,
在应用列表界面中显示所述目标应用对应的应用图标。
可选的,所述第一系统模块设置有活动组件,所述活动组件用于控制所述应用图标的显示状态;
所述第一系统模块1101,用于:
在所述活动组件处于激活状态的情况下,在所述应用列表界面中显示所述目标应用对应的所述应用图标。
可选的,所述活动组件的初始状态为禁用状态,且所述禁用状态下所述应用图标不显示;
所述第二系统模块1102,用于:
在所述目标应用由未登录状态切换为登录状态的情况下,向所述第一系统模块1101发送激活消息;
所述第一系统模块1101,用于:
基于所述激活消息将所述活动组件由所述禁用状态切换为所述激活状态。
可选的,所述激活消息中包含所述目标应用的应用包名以及激活状态标识。
可选的,所述第一系统模块1101或所述第二系统模块1102,还用于:
在所述目标应用处于所述未登录状态,且接收到所述目标应用的通知消息的情况下,显示包含登录控件的所述通知消息界面,所述通知消息由与所述电子设备建立有通信连接的终端发送的,所述终端安装有与所述目标应用对应的终端侧应用,且所述终端侧应用处于所述登录状态;
所述第二系统模块1102,用于:
响应于对所述登录控件的触发操作,启动所述目标应用并显示登录界面,所述登录界面表明将所述目标应用由所述未登录状态切换为所述登录状态。
可选的,所述第一系统模块1101,用于:
响应于所述第一系统模块1101内对所述目标应用的卸载操作,隐藏所述应用图标。
可选的,所述第一系统模块1101,用于:
响应于所述第一系统模块1101内对所述目标应用的卸载操作,向所述第二系统模块1102发送禁用消息;
所述第二系统模块1102,用于:
基于所述禁用消息将所述目标应用由登录状态切换为未登录状态。
可选的,所述第二系统模块1102,用于:
响应于所述第二系统模块1102内对所述目标应用的登出操作,将所述目标应用由登录状态切换为未登录状态,并向所述第一系统模块1101发送禁用消息;
所述第一系统模块1101,用于:
基于所述禁用消息将所述活动组件由所述激活状态切换为所述禁用状态。
可选的,所述禁用消息中包含所述目标应用的应用包名以及禁用状态标识。
可选的,所述第一系统模块1101,用于:
绘制并显示所述目标应用的过渡界面;
在所述第二系统模块1102完成应用启动的情况下,向所述第二系统模块1102转移屏幕控制权限,以便所述第二系统模块1102在获取到所述屏幕控制权限的情况下显示所述应用界面。
综上所述,本申请实施例中,对于支持双系统的电子设备,在存在目标应用的使用需求的情况下,未安装目标应用的第一系统显示应用入口,并向安装有目标应用的第二系统发送应用启动消息,以便第二系统启动并运行目标应用,使得用户可通过第一系统启动第二系统上的应用,能够丰富用户的应用启动方式,提升应用启动效率。
请参考图12,其示出了本申请一个示例性实施例提供的电子设备的结构方框图。本申请中的电子设备可以包括一个或多个如下部件:处理器1210和存储器1220。
可选的,处理器1210至少包括第一处理器1211和第二处理器1212,其中,第一处理器1211用于运行第一系统,第二处理器1212用于运行第二系统,且第一处理器1211的功耗高于第二处理器1212的功耗,第一处理器1211的性能高于第二处理器1212的性能。处理器1210利用各种接口和线路连接整个电子设备内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行电子设备的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块芯片进行实现。
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1220包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据电子设备的使用所创建的数据(比如应用数据、电话本)等。
本申请实施例中的电子设备还包括通信组件1230和显示组件1240。其中,通信组件1230可以为蓝牙组件、无线局域网(Wireless Fidelity,Wi-Fi)组件、近场通信(Near Field Communication,NFC)组件等等,用于通过有线或无线网络与外部设备(服务器或其他终端设备)进行通信;显示组件1240用于进行图形用户界面展示,和/或,接收用户交互操作。
除此之外,本领域技术人员可以理解,上述附图所示出的电子设备的结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,电子设备中还包括射频电路、输入单元、传感器、音频电路、扬声器、
麦克风、电源等部件,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,该存储介质存储有至少一段程序,至少一段程序用于被处理器执行以实现如上述实施例所述的应用启动方法。
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述实施例提供的应用启动方法。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。
Claims (20)
- 一种应用启动方法,所述方法用于电子设备,所述电子设备中支持运行第一系统和第二系统;所述方法包括:所述第一系统显示应用入口,所述应用入口用于触发进入目标应用,所述第二系统安装有所述目标应用,且所述第一系统未安装所述目标应用;响应于对所述应用入口的触发操作,所述第一系统向所述第二系统发送应用启动消息;所述第二系统基于所述应用启动消息启动所述目标应用并显示应用界面。
- 根据权利要求1所述的方法,其中,所述第一系统显示应用入口,包括:在所述第一系统处于前台运行状态,且接收到所述目标应用的通知消息的情况下,所述第一系统显示所述目标应用的通知消息界面;或,所述第一系统在应用列表界面中显示所述目标应用对应的应用图标。
- 根据权利要求2所述的方法,其中,所述第一系统设置有活动组件,所述活动组件用于控制所述应用图标的显示状态;所述第一系统在应用列表界面中显示所述目标应用对应的应用图标,包括:在所述活动组件处于激活状态的情况下,所述第一系统在所述应用列表界面中显示所述目标应用对应的所述应用图标。
- 根据权利要求3所述的方法,其中,所述活动组件的初始状态为禁用状态,且所述禁用状态下所述应用图标不显示;所述方法还包括:在所述目标应用由未登录状态切换为登录状态的情况下,所述第二系统向所述第一系统发送激活消息;所述第一系统基于所述激活消息将所述活动组件由所述禁用状态切换为所述激活状态。
- 根据权利要求4所述的方法,其中,所述激活消息中包含所述目标应用的应用包名以及激活状态标识。
- 根据权利要求4所述的方法,其中,所述在所述目标应用由未登录状态切换为登录状态的情况下,所述第二系统向所述第一系统发送激活消息之前,所述方法还包括:在所述目标应用处于所述未登录状态,且接收到所述目标应用的通知消息的情况下,所述第一系统或所述第二系统显示包含登录控件的所述通知消息界面,所述通知消息由与所述电子设备建立有通信连接的终端发送的,所述终端安装有与所述目标应用对应的终端侧应用,且所述终端侧应用处于所述登录状态;响应于对所述登录控件的触发操作,所述第二系统启动所述目标应用并显示登录界面,所述登录界面表明将所述目标应用由所述未登录状态切换为所述登录状态。
- 根据权利要求2所述的方法,其中,所述方法还包括:响应于所述第一系统内对所述目标应用的卸载操作,所述第一系统隐藏所述应用图标。
- 根据权利要求3所述的方法,其中,所述方法还包括:响应于所述第一系统内对所述目标应用的卸载操作,所述第一系统向所述第二系统发送禁用消息;所述第二系统基于所述禁用消息将所述目标应用由登录状态切换为未登录状态。
- 根据权利要求3所述的方法,其中,所述方法还包括:响应于所述第二系统内对所述目标应用的登出操作,所述第二系统将所述目标应用由登录状态切换为未登录状态,并向所述第一系统发送禁用消息;所述第一系统基于所述禁用消息将所述活动组件由所述激活状态切换为所述禁用状态。
- 根据权利要求8或9所述的方法,其中,所述禁用消息中包含所述目标应用的应用包名以及禁用状态标识。
- 根据权利要求1所述的方法,其中,所述第一系统向所述第二系统发送应用启动消息之后,所述方法还包括:所述第一系统绘制并显示所述目标应用的过渡界面;在所述第二系统完成应用启动的情况下,所述第一系统向所述第二系统转移屏幕控制权限,以便所述第二系统在获取到所述屏幕控制权限的情况下显示所述应用界面。
- 一种应用启动装置,所述装置用于电子设备,所述电子设备中支持运行第一系统和第二系统;所述装置包括:第一系统模块,用于显示应用入口,所述应用入口用于触发进入目标应用,第二系统模块安装有所述目标应用,且所述第一系统模块未安装所述目标应用;所述第一系统模块,用于响应于对所述应用入口的触发操作,向所述第二系统模块发送应用启动消息;所述第二系统模块,用于基于所述应用启动消息启动所述目标应用并显示应用界面。
- 根据权利要求12所述的装置,其中,所述第一系统模块,用于:在所述第一系统模块处于前台运行状态,且接收到所述目标应用的通知消息的情况下,显示所述目标应用的通知消息界面;或,在应用列表界面中显示所述目标应用对应的应用图标。
- 根据权利要求13所述的装置,其中,所述第一系统模块设置有活动组件,所述活动组件用于控制所述应用图标的显示状态;所述第一系统模块,用于:在所述活动组件处于激活状态的情况下,在所述应用列表界面中显示所述目标应用对应的所述应用图标。
- 根据权利要求14所述的装置,其中,所述活动组件的初始状态为禁用状态,且所述禁用状态下所述应用图标不显示;所述第二系统模块,用于:在所述目标应用由未登录状态切换为登录状态的情况下,向所述第一系统模块发送激活消息;所述第一系统模块,用于:基于所述激活消息将所述活动组件由所述禁用状态切换为所述激活状态。
- 根据权利要求15所述的装置,其中,所述激活消息中包含所述目标应用的应用包名以及激活状态标识。
- 根据权利要求15所述的装置,其中,所述第一系统模块或所述第二系统模块,还用于:在所述目标应用处于所述未登录状态,且接收到所述目标应用的通知消息的情况下,显示包含登录控件的所述通知消息界面,所述通知消息由与所述电子设备建立有通信连接的终端发送的,所述终端安装有与所述目标应用对应的终端侧应用,且所述终端侧应用处于所述登录状态;所述第二系统模块,用于:响应于对所述登录控件的触发操作,启动所述目标应用并显示登录界面,所述登录界面表明将所述目标应用由所述未登录状态切换为所述登录状态。
- 一种电子设备,所述电子设备包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至11任一所述的应用启动方法。
- 一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至11任一所述的应用启动方法。
- 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;电子设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述电子设备实现如权利要求1至11任一所述的应用启动方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211491704.4 | 2022-11-25 | ||
CN202211491704.4A CN118093026A (zh) | 2022-11-25 | 2022-11-25 | 应用启动方法、装置、设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024109290A1 true WO2024109290A1 (zh) | 2024-05-30 |
Family
ID=91163775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/119392 WO2024109290A1 (zh) | 2022-11-25 | 2023-09-18 | 应用启动方法、装置、设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118093026A (zh) |
WO (1) | WO2024109290A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112015475A (zh) * | 2019-05-30 | 2020-12-01 | 杭州海康威视数字技术股份有限公司 | 一种应用程序启动方法及装置 |
US10924528B1 (en) * | 2018-06-29 | 2021-02-16 | Parallels International Gmbh | Method to determine use of local and remote applications in a distributed multiuser environment for shared file resources |
CN113656120A (zh) * | 2021-07-23 | 2021-11-16 | 北京鸿合爱学教育科技有限公司 | 界面切换方法、装置、设备及存储介质 |
CN114554579A (zh) * | 2022-02-07 | 2022-05-27 | Oppo广东移动通信有限公司 | 应用控制方法、装置、电子设备和计算机可读存储介质 |
CN115167953A (zh) * | 2021-04-06 | 2022-10-11 | Oppo广东移动通信有限公司 | 应用界面的显示方法、装置、设备及存储介质 |
-
2022
- 2022-11-25 CN CN202211491704.4A patent/CN118093026A/zh active Pending
-
2023
- 2023-09-18 WO PCT/CN2023/119392 patent/WO2024109290A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10924528B1 (en) * | 2018-06-29 | 2021-02-16 | Parallels International Gmbh | Method to determine use of local and remote applications in a distributed multiuser environment for shared file resources |
CN112015475A (zh) * | 2019-05-30 | 2020-12-01 | 杭州海康威视数字技术股份有限公司 | 一种应用程序启动方法及装置 |
CN115167953A (zh) * | 2021-04-06 | 2022-10-11 | Oppo广东移动通信有限公司 | 应用界面的显示方法、装置、设备及存储介质 |
CN113656120A (zh) * | 2021-07-23 | 2021-11-16 | 北京鸿合爱学教育科技有限公司 | 界面切换方法、装置、设备及存储介质 |
CN114554579A (zh) * | 2022-02-07 | 2022-05-27 | Oppo广东移动通信有限公司 | 应用控制方法、装置、电子设备和计算机可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN118093026A (zh) | 2024-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4132122B1 (en) | Power optimization method and electronic device | |
JP6785332B2 (ja) | ブルートゥーススピーカーデータ処理の方法、装置及びブルートゥーススピーカー | |
US20230324974A1 (en) | Method for system switching, wearable device, and storage medium | |
US20240345855A1 (en) | Application starting method, electronic device, and non-transitory computer-readable storage medium | |
WO2022213757A1 (zh) | 应用界面的显示方法、装置、设备及存储介质 | |
WO2022218107A1 (zh) | 数据传输方法、装置、设备及存储介质 | |
US20240045702A1 (en) | User interface display method and apparatus, device, and storage medium | |
WO2024109290A1 (zh) | 应用启动方法、装置、设备及存储介质 | |
WO2023124622A1 (zh) | 通信连接的维持方法、装置、设备、存储介质及程序产品 | |
US20240356828A1 (en) | Method for maintaining communication connection, electronic device, and non-transitory computer-readable storage medium | |
WO2023116237A1 (zh) | 界面显示方法、装置、设备、存储介质及程序产品 | |
WO2024032140A1 (zh) | 息屏显示方法、装置、设备及存储介质 | |
WO2023236516A1 (zh) | 语音识别方法、装置、设备及存储介质 | |
WO2023116236A1 (zh) | 应用启动方法、装置、设备及存储介质 | |
WO2023185152A1 (zh) | 来电处理方法、装置、设备及存储介质 | |
WO2022218106A1 (zh) | 数据传输方法、装置、设备及存储介质 | |
WO2023138235A1 (zh) | 主题切换方法、装置、设备、存储介质及程序产品 | |
US20240357671A1 (en) | Device connection method, device, and storage medium | |
WO2023125077A1 (zh) | 设备连接方法、装置、设备、存储介质及程序产品 | |
CN115309691A (zh) | 音频播放方法、装置、设备、存储介质及程序产品 | |
CN116521283A (zh) | 界面显示方法、装置、设备及存储介质 | |
CN115309252A (zh) | 音乐控制界面显示方法、装置、可穿戴式设备及存储介质 | |
CN118193093A (zh) | 消息显示方法、装置、设备及存储介质 | |
CN115373503A (zh) | 片上系统、控制方法和电子设备 | |
CN118502886A (zh) | 应用切换方法、装置、设备、存储介质及程序产品 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23893383 Country of ref document: EP Kind code of ref document: A1 |