Dynamic Virtual Device Mounting for Android Simulators
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current simulators for Android applications on PC systems cannot modify the shared path between the host machine and the virtual machine in real time without restarting the virtual machine, disrupting ongoing applications.
Innovation Solution
A control method that allows for dynamic mounting of the virtual machine to a new virtual device based on changes in the download directory, enabling the virtual machine to access installation packages in the new directory without restarting, by constructing a new virtual device and mounting the operating system to it.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the shared path is modified by virtualizing the host file directory and mounting it to the virtual machine, then file sharing capability is achieved, but the shared path cannot be changed without restarting the virtual machine
Solution Approach 1:
The patent implements dynamic remounting of the virtual device to allow the shared path to be changed during virtual machine operation. The host file directory virtualization is made dynamic by enabling remount operations that update the mount path without requiring virtual machine restart, thus making the system adaptable to path changes while maintaining operational continuity.
Solution Approach 2:
The patent performs preliminary path validation and preparation before executing the remount operation. The system checks whether the new path is valid and prepares the remounting process in advance, ensuring that the path modification can be executed smoothly without disrupting the running virtual machine applications.
2Adaptability or versatility
If the virtual machine is restarted to change the shared path, then the path modification is achieved, but the running applications are closed and affected
Solution Approach 1:
The patent implements dynamic remounting of the virtual device to allow the shared path to be changed during virtual machine operation. This dynamic approach enables path modification without virtual machine restart, thereby maintaining application running stability while achieving the required adaptability for shared path changes.
Solution Approach 2:
The patent uses the host system as an intermediary to perform the path modification. The host file directory virtualization layer acts as a mediator that can be remounted with new paths without affecting the running virtual machine applications, thus protecting application stability while enabling path changes.
3Adaptability or versatility
If the virtual machine is restarted to change the shared path, then the path modification is achieved, but time is lost due to application closure and restart
Solution Approach 1:
The patent implements dynamic remounting of the virtual device to allow the shared path to be changed during virtual machine operation. This eliminates the need for virtual machine restart, thereby reducing time loss while maintaining the adaptability required for shared path modification.
Solution Approach 2:
The patent ensures continuous operation of the virtual machine during path modification. By enabling remounting without restart, the useful action of running applications continues uninterrupted, eliminating the time loss that would otherwise occur during virtual machine restart and application reinitialization.
Data Source
AI summary
A control method for an electronic device, the method including determining, by a simulator configured to be installed on an electronic device comprising a first operating system, in response to a received first message sent by a first client in the electronic device, whether a first storage path is the same as a second storage path, where the first message indicates to install a first application, and the first storage path is a storage path of an installation package of the first application, and the simulator comprises a second operating system, constructing, in response to the first storage path being different from the second storage path, a first virtual device based on the first storage path, and sending a second message to the second operating system, where the second message indicates that the second operating system is to be mounted to the first virtual device.


