Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a method and apparatus for fault handling in dual operating systems, a memory and an electronic device for solving the above-mentioned problems in the prior art.
In order to achieve the above and other related objects, the present invention provides a method for processing a fault under a dual operating system, which is applied to an electronic device installed with an Android operating system and a Linux operating system; the method comprises the following steps: displaying a first main interface of an Android application portal; the first main interface comprises icons of at least one third party application program installed under the Android operating system, wherein the icons are contained in the Android application portal; wherein, the Android application portal is used for: acquiring a starting command for starting a certain third-party application program through the first main interface, starting the corresponding third-party application program and displaying an interactive interface of the corresponding third-party application program when the starting command is acquired; when the operation of the Android operating system is detected to be faulty, switching to a Linux application inlet, and displaying a second main interface of the Linux application inlet; the second main interface comprises icons of at least one application program installed under the Linux operating system, wherein the icons are contained in the Linux application portal; wherein, the Linux application portal is used for: and acquiring a starting command for starting a certain application program through the second main interface, and starting the corresponding application program and displaying an interactive interface of the corresponding application program when the starting command is acquired.
In an embodiment of the present invention, the method further includes: and when the operation of the Android operating system is detected to be recovered to be normal, switching from the Linux application inlet to the Android application inlet, and displaying the first main interface.
In an embodiment of the present invention, the first main interface further includes: an icon for switching to the Linux application portal; the Android application portal is further configured to: and acquiring a signal for clicking the icon through the first main interface, switching to the Linux application portal and displaying the second main interface when acquiring the signal.
In an embodiment of the present invention, the second main interface further includes: icons for switching to the Android application portal; the Linux application portal is further configured to: and acquiring a signal for clicking the icon through the second main interface, and switching to the Android application inlet and displaying the first main interface when acquiring the signal.
In order to achieve the above and other related objects, the present invention provides a fault handling device under dual operating systems, which is applied to an electronic device installed with an Android operating system and a Linux operating system; the device comprises: the display module is used for displaying a first main interface of the Android application portal; the first main interface comprises icons of at least one third party application program installed under the Android operating system, wherein the icons are contained in the Android application portal; wherein, the Android application portal is used for: acquiring a starting command for starting a certain third-party application program through the first main interface, starting the corresponding third-party application program and displaying an interactive interface of the corresponding third-party application program when the starting command is acquired; the switching module is used for switching to a Linux application inlet and displaying a second main interface of the Linux application inlet when detecting that the operation of the Android operating system fails; the second main interface comprises icons of at least one application program installed under the Linux operating system, wherein the icons are contained in the Linux application portal; wherein, the Linux application portal is used for: and acquiring a starting command for starting a certain application program through the second main interface, and starting the corresponding application program and displaying an interactive interface of the corresponding application program when the starting command is acquired.
In an embodiment of the present invention, the switching module is further configured to: and when the operation of the Android operating system is detected to be recovered to be normal, switching from the Linux application inlet to the Android application inlet, and displaying the first main interface.
In an embodiment of the present invention, the first main interface further includes: an icon for switching to the Linux application portal; the Android application portal is further configured to: and acquiring a signal for clicking the icon through the first main interface, switching to the Linux application portal and displaying the second main interface when acquiring the signal.
In an embodiment of the present invention, the second main interface further includes: icons for switching to the Android application portal; the Linux application portal is further configured to: and acquiring a signal for clicking the icon through the second main interface, and switching to the Android application inlet and displaying the first main interface when acquiring the signal.
To achieve the above and other related objects, the present invention provides a storage medium having stored therein a computer program which, when loaded and executed by a processor, implements the method for fault handling under a dual operating system as described in any one of the above.
To achieve the above and other related objects, the present invention provides an electronic device comprising: the device comprises a processor, a memory and a display screen; wherein the memory is used for storing a computer program; the processor is configured to load and execute the computer program to cause the electronic device to execute the fault handling method under the dual operating system as described in any one of the above.
As described above, the fault processing method and device under the dual operating systems, the memory and the electronic equipment of the invention ensure the operability of the vehicle body control task under the Linux operating system and improve the user experience when the Android operating system is halted due to the problem of a certain task in the Android operating system.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
The invention provides a fault processing method and a fault processing system under double operating systems, which are applied to electronic equipment provided with an Android operating system and a Linux operating system, for example: computers, smart phones, vehicle terminals, etc.
As shown in fig. 1, the fault handling method under the dual operating system includes the following steps:
s101: and displaying a first main interface of the Android application portal. And the first main interface comprises icons of at least one third party application program installed under the Android operating system, wherein the icons are contained in the Android application inlet. Further, the first main interface further includes: icons for switching to Linux application portals.
It should be noted that, the Android application portal is a pre-developed application, and the functions implemented by the Android application portal are: and acquiring a starting command for starting a certain third-party application program through the first main interface, and starting and running the corresponding third-party application program and displaying an interactive interface thereof when the starting command is acquired so as to be used by a user.
For example: and the navigation software, the music software and the application store software are installed under the Android operating system, and a user can select one or more or even all of the navigation software, the music software and the application store software according to own requirements and add the software to the Android application portal. Then, the first main interface displays an icon of the software contained in the Android application portal on the touch screen. The user can open and run the corresponding software by clicking the software icon on the touch screen, and see the interactive interface of the software.
S102: when the operation of the Android operating system is detected to be faulty, switching to a Linux application portal, and displaying a second main interface of the Linux application portal. And the second main interface comprises an icon of at least one application program installed under the Linux operating system, wherein the icon is contained in the Linux application portal. Further, the second main interface further includes: and the icon is used for switching to the Android application portal.
It should be noted that, the Linux application portal is a pre-developed application, and the functions implemented by the Linux application portal are as follows: and acquiring a starting command for starting a certain application program through the second main interface, and starting the corresponding application program and displaying an interactive interface of the corresponding application program when the starting command is acquired.
For example: the Linux operating system is provided with car body control software, bluetooth telephone software and radio software, and a user can select one or more or even all of the car body control software, bluetooth telephone software and radio software according to own requirements and add the one or more or even all of the car body control software, bluetooth telephone software and radio software into the Linux application portal. Then, the second main interface displays an icon of the software contained in the Linux application portal on the touch screen. The user can open and run the corresponding software by clicking the software icon on the touch screen, and see the interactive interface of the software.
Through the steps S101 to S102, when a certain task in the Android operating system has a problem and causes the Android operating system to crash, the operability of the application task under the Linux operating system can be ensured through automatic switching, so that the basic function under the Linux operating system cannot be used due to the abnormality of the Android operating system.
Further, the method further comprises: and when the operation of the Android operating system is detected to be recovered to be normal, switching back to the Android application inlet from the Linux application inlet, and displaying the first main interface.
In another embodiment, the first main interface further includes: icon for switching to Linux application portal, at this time, the Android application portal is further used for: and acquiring a signal for clicking the icon through the first main interface, switching to the Linux application portal and displaying the second main interface when acquiring the signal. For example: the user manually switches the touch screen from the first main interface to the second main interface by clicking an icon for switching to the Linux application portal on the touch screen.
In another embodiment, the second main interface further includes: icon for switching to Android application portal, at this time, the Linux application portal is further used for: and acquiring a signal for clicking the icon through the second main interface, and switching to the Android application inlet and displaying the first main interface when acquiring the signal. For example: and the user clicks an icon for switching to the Android application portal on the touch screen, so that the touch screen is manually switched from the second main interface to the first main interface.
As shown in fig. 2, the fault handling apparatus 200 under the dual operating system includes the following modules:
a display module 201 for: and displaying a first main interface of the Android application portal. And the first main interface comprises icons of at least one third party application program installed under the Android operating system, wherein the icons are contained in the Android application inlet. Further, the first main interface further includes: icons for switching to Linux application portals.
It should be noted that, the Android application portal is a pre-developed application, and the functions implemented by the Android application portal are: and acquiring a starting command for starting a certain third-party application program through the first main interface, and starting and running the corresponding third-party application program and displaying an interactive interface thereof when the starting command is acquired so as to be used by a user.
For example: and the navigation software, the music software and the application store software are installed under the Android operating system, and a user can select one or more or even all of the navigation software, the music software and the application store software according to own requirements and add the software to the Android application portal. Then, the first main interface displays an icon of the software contained in the Android application portal on the touch screen. The user can open the corresponding software by clicking the software icon on the touch screen and see the interactive interface of the software.
A switching module 202, configured to: when the operation of the Android operating system is detected to be faulty, switching to a Linux application portal, and displaying a second main interface of the Linux application portal through a display module 201. And the second main interface comprises an icon of at least one application program installed under the Linux operating system, wherein the icon is contained in the Linux application portal. Further, the second main interface further includes: and the icon is used for switching to the Android application portal.
It should be noted that, the Linux application portal is a pre-developed application, and the functions implemented by the Linux application portal are as follows: and acquiring a starting command for starting a certain application program through the second main interface, starting the corresponding application program when acquiring the starting command, and displaying an interactive interface of the corresponding application program through the display module 201.
For example: the Linux operating system is provided with car body control software, bluetooth telephone software and radio software, and a user can select one or more or even all of the car body control software, bluetooth telephone software and radio software according to own requirements and add the one or more or even all of the car body control software, bluetooth telephone software and radio software into the Linux application portal. Then, the second main interface displays an icon of the software contained in the Linux application portal on the touch screen. The user can open the corresponding software by clicking the software icon on the touch screen and see the interactive interface of the software.
Through the fault processing device 200 under the dual operating systems, when a certain task in the Android operating system has a problem and causes the Android operating system to crash, the operability of the application task under the Linux operating system can be ensured through automatic switching, so that the basic functions under the Linux operating system cannot be used due to the abnormality of the Android operating system.
Further, the switching module 202 is further configured to: and when the operation of the Android operating system is detected to be recovered to be normal, switching back to the Android application inlet from the Linux application inlet, and displaying the first main interface through the display module 201.
In another embodiment, the first main interface further includes: icon for switching to Linux application portal, at this time, the Android application portal is further used for: and acquiring a signal for clicking the icon through the first main interface, switching to the Linux application inlet when acquiring the signal, and displaying the second main interface through the display module 201. For example: the user manually switches the touch screen from the first main interface to the second main interface by clicking an icon for switching to the Linux application portal on the touch screen.
In another embodiment, the second main interface further includes: icon for switching to Android application portal, at this time, the Linux application portal is further used for: and acquiring a signal for clicking the icon through the second main interface, switching to the Android application portal when acquiring the signal, and displaying the first main interface through a display module 201. For example: and the user clicks an icon for switching to the Android application portal on the touch screen, so that the touch screen is manually switched from the second main interface to the first main interface.
In addition, the present invention further includes a storage medium and an electronic device, and since the technical features in the foregoing embodiments may be applied to the storage medium embodiment and the electronic device embodiment, the description is not repeated.
The storage medium includes: various media such as ROM, RAM, magnetic or optical disks that can store program code, wherein a computer program is stored that, when loaded into a processor for execution, performs all or part of the steps of the fault handling method under a dual operating system in the foregoing embodiments.
The electronic device is a device comprising a processor (CPU/MCU/SOC), a memory (ROM/RAM), a communication module (wired/wireless network), a display module, preferably a vehicle computer. In particular, the memory stores a computer program, and the processor implements all or part of the steps of the fault handling method under the dual operating system in the foregoing embodiment when the computer program is loaded and executed.
In summary, the fault processing method and device, the memory and the electronic equipment under the dual operation system effectively overcome various defects in the prior art and have high industrial utilization value.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. Accordingly, it is intended that all equivalent modifications and variations of the invention be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.