The invention discloses a Linux container-based Android and
open source gap dual-
system collaborative operation method, relates to the technical field of operation
system collaboration, and aims to reduce resource occupation and improve
collaboration and switching coherence, and the method comprises the following steps: step 1, by taking an Android as a host, creating a container isolation running domain, starting a
namespace and managing resources by a control group; the method comprises the following steps: presetting a binder
virtualization and three-state template; 2, deploying an
open source gap in a container, mounting a shared
directory in a
directory binding manner, configuring bridging or address translation, and establishing copy-on-write and snapshot identifiers; and step 3, establishing a cross-
system binder channel, and setting a service registration agent in a service manager and completing mapping of a
handle and an authority domain by combining a
shared memory and a local socket. And step 4, executing system switching without restarting, enabling one foreground and the other background through a foreground interface and continuous quota assignment, freezing a background session, limiting the speed of background
heartbeat, and returning according to a snapshot when an exception occurs.