CN113590218A - Virtual equipment sharing method - Google Patents

Virtual equipment sharing method Download PDF

Info

Publication number
CN113590218A
CN113590218A CN202110852415.1A CN202110852415A CN113590218A CN 113590218 A CN113590218 A CN 113590218A CN 202110852415 A CN202110852415 A CN 202110852415A CN 113590218 A CN113590218 A CN 113590218A
Authority
CN
China
Prior art keywords
virtual
equipment
virtual device
sharing method
actual physical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110852415.1A
Other languages
Chinese (zh)
Inventor
何从华
曾峰
王新春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Discovery Technology Shenzhen Co ltd
Original Assignee
Discovery Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Discovery Technology Shenzhen Co ltd filed Critical Discovery Technology Shenzhen Co ltd
Priority to CN202110852415.1A priority Critical patent/CN113590218A/en
Publication of CN113590218A publication Critical patent/CN113590218A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a virtual device sharing method, which comprises the following steps: step 1: installing a virtual equipment manager, and creating and managing virtual equipment through the virtual equipment manager; step 2: when the virtual device created in step 1 is used, the virtual device is virtualized into a logical device, and the system uses the logical device as a real device, thereby realizing multi-use of one device. The invention has the beneficial effects that: according to the virtual equipment sharing method, as long as the virtual equipment is used, the equipment is firstly virtualized into the logic equipment, and the system can use the logic equipment as real equipment which is completely consistent with one physical equipment, so that one equipment can be accessed and used by multiple applications at the same time, multiple uses of one microphone equipment or video equipment are realized, and the product practicability and the use scene are effectively improved.

Description

Virtual equipment sharing method
Technical Field
The invention relates to the field of electronic communication, in particular to a sharing method based on virtual equipment.
Background
One android device can only be opened once by one microphone or camera at the same moment, and if the android device is opened for the second time, the device and occupied prompts can be displayed, namely, one audio device or video device can only be opened once at the same moment, if multiple applications are needed, the device is needed to be used at the same time, and then according to the design principle of the existing android system, a user cannot use the microphone device or the camera device on the same device at the same time.
Disclosure of Invention
The invention provides a virtual device sharing method, which comprises the following steps:
step 1: and installing a virtual equipment manager, and creating and managing virtual equipment through the virtual equipment manager.
Step 2: when the virtual device created in step 1 is used, the virtual device is virtualized into a logical device, and the system uses the logical device as a real device, thereby realizing multi-use of one device.
As a further improvement of the present invention, in said step 1, if the application is to be run on the simulator, the virtual device is created using a plug-in component adapted to the virtual device platform.
As a further improvement of the present invention, in step 1, creating a virtual device starting from a copy further includes: on the virtual device page of the virtual device manager, right clicking the virtual device and selecting Duplicate, the system will display the Verify Configuration page.
As a further improvement of the invention, the Virtual device is created from the copy, if the Change needs to be made on the System Image and Select Hardware pages, Change or Previous is clicked to make the Change, and then Finish is clicked, and the Virtual device will be displayed on the Your Virtual Devices page.
As a further improvement of the present invention, in the step 2, the method further includes that the user opens and uses the actual physical device through the first application program, and the specific steps are as follows:
step S1: and starting the first application program.
Step S2: the user equipment is turned on.
Step S3: the call uses the device API.
Step S4: a logical device is invoked.
Step S5: the device is applied for opening.
Step S6: locking the device resource exclusively and finally opening the actual physical device.
As a further improvement of the present invention, in step 2, the step of opening and using the actual physical device by the user through the first application program further includes opening and using the actual physical device through the second application program, and the specific steps are as follows:
step 20: and starting the second application program.
Step 21: the virtual device is turned on.
Step 22: and calling the virtual equipment.
Step 23: the virtual device of step 22 is virtualized into a logical device.
Step 24: a virtual resource pool is shared.
Step 25: and applying for a virtual equipment queue, and finally opening the actual physical equipment.
As a further improvement of the present invention, in said step S6 and said step S25, the actual physical device is a microphone or a camera.
As a further improvement of the present invention, in said step S3, the API level of the calling device cannot be lower than the level required by the application.
The invention has the beneficial effects that: according to the virtual equipment sharing method, as long as the virtual equipment is used, the equipment is firstly virtualized into the logic equipment, and the system can use the logic equipment as real equipment which is completely consistent with one physical equipment, so that one equipment can be accessed and used by multiple applications at the same time, multiple uses of one microphone equipment or video equipment are realized, and the product practicability and the use scene are effectively improved.
Drawings
FIG. 1 is a flow chart of the audio virtual device sharing virtual device based on a single microphone according to the present invention;
fig. 2 is a flow chart of the video virtual device sharing virtual device based on a single camera according to the present invention.
Detailed Description
The invention discloses a virtual equipment sharing method, which is characterized in that by introducing the logic of video or audio sharing virtual equipment, a user can simultaneously play video or audio through a plurality of different software applications while opening the camera equipment or audio equipment through a first application, so that the multiplexing of the camera equipment or microphone equipment is realized, and the practicability and the scene of a product are effectively improved.
In the Android system, an Android Virtual Device (AVD) is a configuration for defining functions to be used in the Android system, which is a characteristic of an Android mobile phone, a tablet, a Wear OS, an Android TV, or an Android auto OS device. The virtual device (AVD) manager is an interface that can be launched from the Android Studio and is intended to help create and manage AVDs.
Virtual Devices (AVDs) have dedicated storage areas in development computers. Virtual Devices (AVDs) store device user data such as installed applications and settings and emulated SD cards. The AVD Manager can be used to erase the user data as needed so that the corresponding device has the same data as the new device.
The API level of the target device is important because the application will not be able to run on a system image with an API level lower than the level required by the application.
As a first embodiment of the present invention, the present invention discloses a virtual device sharing method, including performing the following steps:
step 1: and installing a virtual equipment manager, and creating and managing virtual equipment through the virtual equipment manager.
Step 2: when the virtual device created in step 1 is used, the virtual device is virtualized into a logical device, and the system uses the logical device as a real device, thereby realizing multi-use of one device.
In said step 1, if an application declares an element in the manifest file, the application needs to have a system image of the external library. If an application is to be run on a simulator, A Virtual Device (AVD) is created that contains the required libraries, for which purpose the virtual device is created using plug-in components that are appropriate for the virtual device platform.
In step 1, creating a virtual device from the copy further includes: on the virtual device page of the virtual device manager, right clicking on the virtual device and selecting Duplicate, the system displays a Verify Configuration page.
If changes are needed on System Image and Select Hardware pages, Change or Previous changes are clicked and Finish is clicked, the Virtual device will be displayed in the Your Virtual Devices page.
As shown in fig. 1, in step 2, the method further includes that the user opens and uses the actual physical device through the first application program, and the specific steps are as follows:
step S1: starting a first application program;
step S2: opening the using equipment;
step S3: calling an equipment API;
step S4: calling a logic device;
step S5: applying for opening the equipment;
step S6: locking device resources is monopolized, and finally the actual physical device is opened, e.g., the actual physical device is a Microphone (MIC).
As shown in fig. 1, in step 2, the step of opening and using the actual physical device by the user through the first application program further includes opening and using the actual physical device through the second application program, and the specific steps are as follows:
step 20: starting a second application program; (including launch application 1 … … application n);
step 21: opening the virtual device; (including opening virtual device 1 … … opening virtual device n);
step 22: calling the virtual equipment; (including invoking virtual appliance 1 … … to invoke virtual appliance n);
step 23: virtualizing the virtual device of step 22 into a logical device; (including virtualization logic device 1 … … virtualization logic device n);
step 24: sharing a virtual resource pool;
step 25: the virtual device queue is applied, and finally the actual physical device Microphone (MIC) is opened.
As shown in fig. 2, as a second embodiment of the present invention, the second embodiment is a further modification on the first embodiment,
in step S6, the device resource is locked exclusively, and finally the actual physical device camera is turned on.
In step 25, a virtual device queue is applied, and finally, the actual physical device camera is opened.
The invention has the beneficial effects that: according to the virtual equipment sharing method, as long as the virtual equipment is used, the equipment is firstly virtualized into the logic equipment, and the system can use the logic equipment as real equipment which is completely consistent with one physical equipment, so that one equipment can be accessed and used by multiple applications at the same time, multiple uses of one microphone equipment or video equipment are realized, and the product practicability and the use scene are effectively improved.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (8)

1. A virtual device sharing method is characterized by comprising the following steps:
step 1: installing a virtual device manager, and creating and managing virtual devices through the virtual device manager;
step 2: when the virtual device created in the step 1 is used, the virtual device is virtualized into a logical device, and the system uses the logical device as a real device, so that one device can be used in multiple ways.
2. The virtual device sharing method according to claim 1, wherein in the step 1, if an application is to be run on a simulator, the virtual device is created using a plug-in component adapted to a virtual device platform.
3. The virtual device sharing method according to claim 1, further comprising, in the step 1, creating the virtual device starting from a copy, specifically including: and clicking the virtual equipment and selecting Duplicate on a virtual equipment page of the virtual equipment manager by a right key, and displaying a Verify Configuration page by the system.
4. The method for sharing Virtual Devices as claimed in claim 3, wherein the Virtual Devices are created from a copy, if changes are needed on SystemImage and Select Hardware pages, Change or Previous is clicked to make changes, and then Finish is clicked, and the Virtual Devices are displayed on a Your Virtual Devices page.
5. The virtual device sharing method according to claim 1, wherein in the step 2, the user opens and uses the actual physical device through the first application program, and the specific steps are as follows:
step S1: starting the first application program;
step S2: opening the using equipment;
step S3: calling the use equipment API;
step S4: calling a logic device;
step S5: applying for opening the equipment;
step S6: and locking the device resource exclusively, and finally opening the actual physical device.
6. The virtual device sharing method according to claim 5, wherein in the step 2, the user opens and uses the actual physical device through the first application program and also opens and uses the actual physical device through the second application program, and the specific steps are as follows:
step 20: starting the second application program;
step 21: opening the virtual device;
step 22: calling the virtual equipment;
step 23: virtualizing the virtual device of step 22 into the logical device;
step 24: sharing a virtual resource pool;
step 25: applying for a virtual device queue, and finally opening the actual physical device.
7. The virtual device sharing method according to claim 6, wherein in the step S6 and the step S25, the actual physical device is a microphone or a camera.
8. The virtual device sharing method according to claim 5, wherein in the step S3, the API level of calling the device cannot be lower than the level required by the application program.
CN202110852415.1A 2021-07-27 2021-07-27 Virtual equipment sharing method Pending CN113590218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110852415.1A CN113590218A (en) 2021-07-27 2021-07-27 Virtual equipment sharing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110852415.1A CN113590218A (en) 2021-07-27 2021-07-27 Virtual equipment sharing method

Publications (1)

Publication Number Publication Date
CN113590218A true CN113590218A (en) 2021-11-02

Family

ID=78250722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110852415.1A Pending CN113590218A (en) 2021-07-27 2021-07-27 Virtual equipment sharing method

Country Status (1)

Country Link
CN (1) CN113590218A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080222338A1 (en) * 2007-03-07 2008-09-11 Ramasubramanian Balasubramanian Apparatus and method for sharing devices between multiple execution domains of a hardware platform
CN107659768A (en) * 2017-08-08 2018-02-02 珠海全志科技股份有限公司 A kind of system and method based on the more Application share cameras of Android
CN111158865A (en) * 2020-01-10 2020-05-15 山东超越数控电子股份有限公司 Method for realizing multiplexing virtual serial port
CN112506818A (en) * 2020-12-08 2021-03-16 中国电子科技集团公司第三十研究所 USB hardware virtualization method based on software simulation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080222338A1 (en) * 2007-03-07 2008-09-11 Ramasubramanian Balasubramanian Apparatus and method for sharing devices between multiple execution domains of a hardware platform
CN107659768A (en) * 2017-08-08 2018-02-02 珠海全志科技股份有限公司 A kind of system and method based on the more Application share cameras of Android
CN111158865A (en) * 2020-01-10 2020-05-15 山东超越数控电子股份有限公司 Method for realizing multiplexing virtual serial port
CN112506818A (en) * 2020-12-08 2021-03-16 中国电子科技集团公司第三十研究所 USB hardware virtualization method based on software simulation

Similar Documents

Publication Publication Date Title
WO2016155388A1 (en) Method and device for installing and running application
US9092627B2 (en) Apparatus and method for providing security information in virtual environment
US9665841B2 (en) Cross-platform application framework
CN108475217B (en) System and method for auditing virtual machines
US8863113B1 (en) Method and system for unattended installation of guest operating system
MX2013003515A (en) Instant remote rendering.
MX2013003427A (en) Cross-environment redirection.
US20170192646A1 (en) Method and electronic device for hiding application icons and mobile phone
US10453430B2 (en) Methods and apparatus to provide extended graphics processing capabilities
CN106371826A (en) Application cross-system running method and apparatus
US9798508B2 (en) Implementing previously rendered frame buffer information in a customized GUI display
US20190310882A1 (en) Multiple application instances in operating systems that utilize a single process for application execution
US10803167B1 (en) Systems and methods for executing application launchers
CN113965809A (en) Method and device for simultaneous interactive live broadcast based on single terminal and multiple platforms
CN109375874B (en) Method, device and equipment for calling distributed storage
CN112000401B (en) Cloud desktop deployment method and cloud desktop system
CN112799801A (en) Method, device, equipment and medium for drawing simulation mouse pointer
US20170109113A1 (en) Remote Image Projection Method, Sever And Client Device
CN113590218A (en) Virtual equipment sharing method
JP2021522721A (en) Screen capture method, terminal and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
US20140223112A1 (en) System and method for managing data elements
WO2020064000A1 (en) Method and apparatus for displaying message box, terminal and storage medium
CN117234655B (en) Method, device, equipment and medium for running Linux desktop program based on android system
TW201224925A (en) System and method for multiple native software applications user interface composition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination