| In recent years,the development of cloud computing has become more and more rapid,and it has played an important role in the recovery of the world during the pandemic.Virtualization,as one of the key technologies of cloud computing,is also constantly developing,and as one of the software virtualization applications,Desktop virtualization technology is also more widely used in enterprises.At the meanwhile,global shipments of Android mobile phones have tended to tighten,and this situation has been further exacerbated by the pandemic.Currently,most desktop virtualization technologies on the market are oriented to traditional PC systems and lack support for mobile systems.Android phones have long been trapped by malicious programs to steal user privacy;although Android phones are known for their large screens,strong operability,intelligence,and portability,there is still a big gap in Android phones’ computing power,memory and storage space compared with PCs due to cutting power consumption,which also makes some Android phones unable to run some large applications.Furthermore,with the advent of the 5G era,Android mobile phone network speed will be significantly improved.Therefore,this thesis implements an Android cloud interactive system that remotely accesses the cloud Android system.This thesis first fully studies the working principles and applicable scenarios of traditional virtualization technology and container technology,as well as the Android system architecture,and chooses the solution of using container technology to virtualize the Android system,and then deeply studies the key technologies of Android graphics system and input system,desktop cloud protocols and VNC technology and USB device redirection technology.Considering the advantages of VNC cross-platform and low requirements for server and client physical device performance,this thesis optimizes VNC and uses optimized VNC as the Android cloud interactive system Desktop cloud protocol.According to the overall design,this thesis first uses the virtual Binder driver for the containerized Android system to solve the service conflict problem of the server-side Binder mechanism.Secondly the foreground system driver is used to solve the problem of the server-side display device and input device conflict.Then the frame buffer image of the Android system is intercepted by the anonymous shared memory and redirected to the client in display module of cloud interactive system,and the image data of the video mode is encoded by H.264,which reduces the bandwidth consumption when VNC transmits the video.Then the desktop cloud protocol is used to transmit the input events intercepted by the client application layer to the server,and inject the input events into the virtual device in the server kernel in input module of cloud interactive system.Finally,the USB device redirection scheme is selected to optimize VNC so that VNC supports USB redirection,which enrichs the equipment options of the cloud interactive system.In this thesis,after designing and implementing the Android cloud interactive system,the function and performance tests are carried out.The test results show that the cloud interactive system has reached the expected goals in terms of function and performance.No matter in normal desktop or video mode,the cloud Android system can be accessed relatively smoothly through the cloud interactive system by users. |