CN113784049A - Camera calling method of android system virtual machine, electronic device and storage medium - Google Patents

Camera calling method of android system virtual machine, electronic device and storage medium Download PDF

Info

Publication number
CN113784049A
CN113784049A CN202111091142.XA CN202111091142A CN113784049A CN 113784049 A CN113784049 A CN 113784049A CN 202111091142 A CN202111091142 A CN 202111091142A CN 113784049 A CN113784049 A CN 113784049A
Authority
CN
China
Prior art keywords
camera
virtual machine
application program
client
party application
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.)
Granted
Application number
CN202111091142.XA
Other languages
Chinese (zh)
Other versions
CN113784049B (en
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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202111091142.XA priority Critical patent/CN113784049B/en
Publication of CN113784049A publication Critical patent/CN113784049A/en
Application granted granted Critical
Publication of CN113784049B publication Critical patent/CN113784049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/617Upgrading or updating of programs or applications for camera control
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the disclosure relates to a camera calling method of an android system virtual machine, electronic equipment and a storage medium. The method comprises the following steps: a third party application program on the virtual machine requests to call a client camera; the virtual machine detects whether the third-party application program sends intent request information when requesting to call a client camera; when the intent request information is detected, a modified camera application program in the virtual machine receives the intent request and sends camera calling request data of the third party application program to the client through a service process of a server; and when it is detected that intent request information is not sent, the android system framework layer of the virtual machine intercepts call request data of the third party application program and sends the call request data to a modified camera application program in the virtual machine, and the modified camera application program in the virtual machine sends the camera call request data of the third party application program to the client through a service process of the server.

Description

Camera calling method of android system virtual machine, electronic device and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of communication, and in particular relates to a camera calling method of an android system virtual machine, electronic equipment and a storage medium.
Background
The cloud brings more requirements, customization and convenience anytime and anywhere to people. With the vigorous development of cloud computing, a cloud server is developed vigorously, a user can apply for a very small computer with a hard disk and a memory, and can also apply for a cloud mobile phone with strong performance.
If the mobile phone of the user is a mobile phone with a relatively small memory and a relatively small storage capacity of the smart android system, it is not practical for the user to run an application occupying a large memory, such as a game. The cloud mobile phone is applied, and a client software is required to be connected with the cloud mobile phone, which is equivalent to an android operating system of the cloud mobile phone to be operated remotely. The cloud mobile phone android operating system generally adopts a virtual machine, namely, the virtual machine is not a real exclusive mobile phone but a sharable virtualized mobile phone.
With the wide application of various code scanning operations of code scanning attention, code scanning login and new crown epidemic situation along with code scanning payment of WeChat and Payment treasures, a virtual machine and a user mobile phone need to scan codes, take pictures, perform video and other scenes. However, the virtual machine is generally not equipped with a physical camera, and cannot perform the above operations, which requires a mobile phone camera of the user to perform corresponding operations.
Accordingly, there is a need to ameliorate one or more of the problems with the related art solutions described above.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a camera calling method, an electronic device, and a storage medium for an android system virtual machine, so as to overcome one or more problems due to limitations and defects of the related art, at least to a certain extent.
According to a first aspect of the embodiments of the present disclosure, a method for calling a camera of an android system virtual machine is provided, including:
a third party application program on the virtual machine requests to call a client camera;
the virtual machine detects whether the third-party application program sends intent request information when requesting to call a client camera;
when detecting that the third-party application program sends intent request information when requesting to call a client camera, a modified camera application program in the virtual machine receives the intent request and sends camera call request data of the third-party application program to the client through a service process of a server;
when detecting that the intent request information is not sent by the third-party application program when the third-party application program requests to call a client camera, intercepting call request data of the third-party application program by an android system framework layer of the virtual machine and sending the call request data to a modified camera application program in the virtual machine, wherein the modified camera application program in the virtual machine sends the camera call request data of the third-party application program to the client through a service process of the server;
and the virtual machine receives image or video data sent by the client through a service process of the server.
In an exemplary embodiment of the disclosure, the modified camera application in the virtual machine starts a visual interface while sending the camera call request data of the third party application, and receives and displays, in real time, the image or video data sent by the client via the service process of the server.
In an exemplary embodiment of the present disclosure, the visualization interface is a picture-in-picture mode interface or a small window mode interface or a full window mode interface.
In an exemplary embodiment of the present disclosure, the virtual machine monitors a process of the third-party application, and when it is monitored that the third-party application finishes shooting, an improved camera application in the virtual machine receives and displays image or video data sent by the client through a service process of the server.
In an exemplary embodiment of the present disclosure, the call request data of the third party application is sent to the camera application in the virtual machine in a manner of setting a system attribute or sending a broadcast notification or directly starting a service process by modifying the android system framework layer camera class file code of the virtual machine.
According to a second aspect of the embodiments of the present disclosure, a method for calling a camera of an android system virtual machine is provided, including:
a user client receives camera calling request data sent by a modified camera application program in a virtual machine through a service process of a server;
the client calls a camera to shoot images or videos;
and the client sends the images or videos shot by the camera to a camera application program in the virtual machine through the service process of the server.
In an exemplary embodiment of the disclosure, the client sends the image or video captured by the camera to a modified camera application in a virtual machine in real time via a service process of the server.
In an exemplary embodiment of the disclosure, after receiving the shooting end information of the third-party application program monitored by the virtual machine, the client sends an image or video shot by the camera to a modified camera application program in the virtual machine through a service process of the server.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the steps of the camera call method of the android system virtual machine in any of the above embodiments by executing the executable instructions.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for invoking the camera of the virtual machine in the android system according to any one of the embodiments described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the camera calling method of the android system virtual machine provides a camera related operation function for the third party application on the virtual machine, and realizes that the android virtual machine uses a user to execute the camera related function operation of the third party application on the virtual machine through the physical camera.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 shows a flowchart of a method for invoking a camera of an android system virtual machine in an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a camera invocation method of another android system virtual machine in an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a virtual machine system in an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a schematic diagram of a program product structure in an exemplary embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In this example embodiment, a method for invoking a camera of a virtual machine of an android system is first provided, and referring to fig. 1, the method may include the following steps:
step S101: a third party application program on the virtual machine requests to call a client camera;
step S102: the virtual machine detects whether the third-party application program sends intent request information when requesting to call a client camera;
step S103: when detecting that the third-party application program sends intent request information when requesting to call a client camera, a modified camera application program in the virtual machine receives the intent request and sends camera call request data of the third-party application program to the client through a service process of a server;
step S104: when detecting that the intent request information is not sent by the third-party application program when the third-party application program requests to call a client camera, intercepting call request data of the third-party application program by an android system framework layer of the virtual machine and sending the call request data to a modified camera application program in the virtual machine, wherein the modified camera application program in the virtual machine sends the camera call request data of the third-party application program to the client through a service process of the server;
step S105: and the virtual machine receives image or video data sent by the client through a service process of the server.
Illustratively, as shown in fig. 3, the virtual machine system includes a user-side device side, a server, and a virtual machine, where the user device includes at least a client and a camera, the server performs data transmission between the client and the virtual machine through a service process, and when the server is powered on, the virtual machine is started and corresponding ports of the virtual machine side and the client side are monitored at the same time. When a user operates a third application program on the virtual machine through the client and the execution function of the third application program needs to use the client camera, the third application program on the virtual machine requests to call the client camera; at this time, the virtual machine detects whether the third-party application program sends intent request information, specifically, the third-party application may be a camera application program preinstalled in the android system of the virtual machine, or an application program installed by the user, such as an application of a beauty camera, WeChat, Paibao and the like; the intent request information is directed at a calling request sent by a default pre-installed camera application program, when the intent request information is detected, a modified camera application program in the virtual machine directly receives the intent request information and sends calling request data sent by the pre-installed camera application program to a client through a service process in a server; when the third-party application program requesting for calling the camera is not a pre-installed camera application program, an android system framework layer (framework layer) in the virtual machine intercepts calling request data of the third-party application program and sends the calling request data to a modified camera application program in the virtual machine, and the modified camera application program in the virtual machine sends the calling request data to a client through a service process through a port between the modified camera application program and a server.
According to the camera calling method of the android system virtual machine, the function of camera related operation is provided for the third party application on the virtual machine, and the android virtual machine can execute the camera related function operation of the third party application on the virtual machine through the physical camera by a user.
Hereinafter, the respective steps of the above-described method in the present exemplary embodiment will be described in more detail with reference to fig. 1 to 3.
In one embodiment, the modified camera application in the virtual machine starts a visual interface while sending the camera call request data of the third party application, and receives and displays the image or video data sent by the client through the service process of the server in real time. Specifically, some third-party applications need to preview a shot picture or video in real time, for example, when a user wants to shoot a video, a video picture needs to be displayed to ensure whether the picture is a picture that the user wants to shoot, at this time, the virtual machine needs to receive picture information in real time and display the picture in real time, so that a modified camera application in the virtual machine needs to start a visual interface to display the shot picture.
In one embodiment, the visualization interface is a picture-in-picture mode interface or a small window mode interface or a full window mode interface. Specifically, different visual interfaces can be set according to different third-party applications, and if the third-party applications are pre-installed camera application programs, the visual interfaces can be displayed in a full screen mode; if the third party application is the WeChat, the visual interface can be displayed in a picture-in-picture mode or a small window mode, and the display mode does not influence the normal use of the WeChat; the specific display of the visual interface may be set according to the needs of the user, and is not limited herein. Because the modified camera in the virtual machine needs to start a camera call request of a third-party application and also needs to start a visual interface, the modified camera application program in the virtual machine at least comprises: camera rights, read-write external storage rights, audio recording rights, positioning rights, and camera functional characteristic statements.
In one embodiment, the virtual machine monitors the process of the third-party application program, and when it is monitored that the shooting of the third-party application program is finished, the modified camera application program in the virtual machine receives and displays the image or video data sent by the client through the service process of the server. Specifically, according to the difference of the third-party application, sometimes the shooting picture may not be monitored in real time, or the shooting progress may be monitored when the interaction between the virtual machine and the client increases and affects the running speed due to the real-time monitoring of the shooting picture, and the interaction is performed when the shooting execution is monitored, so as to receive the shot image or video data.
In one embodiment, the calling request data of the third-party application program is sent to the camera application program in the virtual machine in a mode of setting system attributes or sending broadcast notifications or directly starting a service process by modifying the android system framework layer camera class file code of the virtual machine. Specifically, calling information is intercepted by performing code transformation on a camera file of an android system framework layer of the virtual machine; for example, the system attribute can be set by modifying a code, and when the system attribute changes after the call request data is intercepted, the call information is sent to a modified camera application program of the virtual machine; for example, the method can also be a modified camera application program which is modified by codes, and sends a broadcast notification when the data of the request to be called is intercepted, and sends the calling information to the virtual machine; for example, the modified camera application program may be modified by a code, and directly start the service process to send the call information to the virtual machine when there is the call information, for example, for some common mainstream applications such as WeChat, QQ, Paibao and other applications, monitor a specific button of the application at the framework layer, such as a video shooting button of the WeChat application program, and directly start the service process to send the call information to the modified camera application program of the virtual machine when it is monitored that the user clicks the picture or video shooting button.
In this example embodiment, a method for invoking a camera of a virtual machine of an android system is provided, including:
step S201: a user client receives camera calling request data sent by a modified camera application program in a virtual machine through a service process of a server;
step S202: the client calls a camera to shoot images or videos;
step S203: and the client sends the images or videos shot by the camera to a camera application program in the virtual machine through the service process of the server.
Specifically, when a client of a user receives camera call request data sent by a server through a service process and sent by a corresponding port of the client side, the camera call request data being sent by a modified camera application program in a virtual machine, the camera, namely a physical camera of user equipment, sends an intent request to the camera, so that the camera is called to shoot images or videos, and the shot images or video data are sent to the camera application program in the virtual machine through the service process of the server.
In one embodiment, the client sends the images or videos shot by the camera to a modified camera application in a virtual machine in real time through a service process of the server. Specifically, the client can send the shot image or video to a modified camera application program in the virtual machine in real time, so that the preview can be conveniently performed in the shooting process, and the shooting accuracy is ensured.
In one embodiment, after receiving the shooting end information of the third-party application program monitored by the virtual machine, the client sends an image or video shot by the camera to a modified camera application program in the virtual machine through a service process of the server. Specifically, after the virtual machine monitors that shooting is finished and sends shooting finishing information data to the client, the client directly sends a shot image or video to a modified camera application program in the virtual machine after shooting is finished, with reference to the received shooting finishing information data.
According to the camera calling method of the android system virtual machine, the function of camera related operation is provided for the third party application on the virtual machine, and the android virtual machine can execute the camera related function operation of the third party application on the virtual machine through the physical camera by a user.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored, and when executed by a processor, for example, the computer program may implement the steps of the method for invoking the camera of the android system virtual machine in any one of the above embodiments. In some possible embodiments, the various aspects of the present invention may also be implemented in the form of a program product including program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the camera invocation method section of the android system virtual machine described above in this specification, when the program product is run on the terminal device.
Referring to fig. 4, a program product 300 for implementing the camera call method of the android system virtual machine according to the embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to execute the steps of the camera call method of the android system virtual machine in any one of the above embodiments by executing the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 600 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program codes, and the program codes can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present invention described in the section of the camera call method of the android system virtual machine described above in this specification. For example, the processing unit 610 may perform the steps as shown in fig. 1 or fig. 2.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, where the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, or the like) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, or the like) to execute the camera call method of the virtual machine of the android system according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. The camera calling method of the android system virtual machine is characterized by comprising the following steps:
a third party application program on the virtual machine requests to call a client camera;
the virtual machine detects whether the third-party application program sends intent request information when requesting to call a client camera;
when detecting that the third-party application program sends intent request information when requesting to call a client camera, a modified camera application program in the virtual machine receives the intent request and sends camera call request data of the third-party application program to the client through a service process of a server;
when detecting that the intent request information is not sent by the third-party application program when the third-party application program requests to call a client camera, intercepting call request data of the third-party application program by an android system framework layer of the virtual machine and sending the call request data to a modified camera application program in the virtual machine, wherein the modified camera application program in the virtual machine sends the camera call request data of the third-party application program to the client through a service process of the server;
and the virtual machine receives image or video data sent by the client through a service process of the server.
2. The method for calling the camera of the android system virtual machine according to claim 1, wherein a modified camera application program in the virtual machine starts a visual interface while sending the camera call request data of the third party application program, and receives and displays image or video data sent by the client through a service process of the server in real time.
3. The method for invoking the camera of the android system virtual machine according to claim 2, wherein the visualization interface is a picture-in-picture mode interface, a small window mode interface, or a full window mode interface.
4. The method for calling the camera of the android system virtual machine according to claim 1, wherein the virtual machine monitors a process of the third party application program, and when it is monitored that the third party application program finishes shooting, a modified camera application program in the virtual machine receives and displays image or video data sent by the client through a service process of the server.
5. The method for calling the camera of the android system virtual machine according to claim 1, wherein call request data of the third party application program is sent to a camera application program in the virtual machine in a manner of setting a system attribute or sending a broadcast notification or directly starting a service process by modifying an android system framework layer camera class file code of the virtual machine.
6. The camera calling method of the android system virtual machine is characterized by comprising the following steps:
a user client receives camera calling request data sent by a modified camera application program in a virtual machine through a service process of a server;
the client calls a camera to shoot images or videos;
and the client sends the images or videos shot by the camera to a camera application program in the virtual machine through the service process of the server.
7. The method for invoking the camera of the android system virtual machine according to claim 6, wherein the client sends an image or a video shot by the camera to a modified camera application in the virtual machine in real time via a service process of the server.
8. The method for calling the camera of the android system virtual machine according to claim 6, wherein the client sends an image or a video shot by the camera to a modified camera application program in the virtual machine through a service process of the server after receiving the shooting completion information of the third-party application program monitored by the virtual machine.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the camera invocation method of the android system virtual machine of any of claims 1-8 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the camera invocation method for the android system virtual machine recited in any of claims 1-8.
CN202111091142.XA 2021-09-17 2021-09-17 Camera calling method of android system virtual machine, electronic equipment and storage medium Active CN113784049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111091142.XA CN113784049B (en) 2021-09-17 2021-09-17 Camera calling method of android system virtual machine, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111091142.XA CN113784049B (en) 2021-09-17 2021-09-17 Camera calling method of android system virtual machine, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113784049A true CN113784049A (en) 2021-12-10
CN113784049B CN113784049B (en) 2023-08-01

Family

ID=78851753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111091142.XA Active CN113784049B (en) 2021-09-17 2021-09-17 Camera calling method of android system virtual machine, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113784049B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116140A (en) * 2022-01-27 2022-03-01 荣耀终端有限公司 Method for acquiring data and electronic equipment
CN115022570A (en) * 2021-12-24 2022-09-06 荣耀终端有限公司 Method for acquiring video frame, electronic device and readable storage medium
CN116887032A (en) * 2023-07-05 2023-10-13 荣耀终端有限公司 Cross-terminal image data acquisition system, method, client and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546920A (en) * 2011-01-04 2012-07-04 中国移动通信有限公司 Method, system and device of running process
CN107153533A (en) * 2016-03-04 2017-09-12 深圳市深信服电子科技有限公司 Application call method and system based on Android virtual system
CN108304247A (en) * 2017-12-19 2018-07-20 华为技术有限公司 The method and apparatus of access camera, server, readable storage medium storing program for executing
CN110493203A (en) * 2019-07-31 2019-11-22 湖南微算互联信息技术有限公司 A kind of cloud cell-phone camera head controlling method, system, device and storage medium
WO2020228650A1 (en) * 2019-05-14 2020-11-19 华为技术有限公司 Method for virtual machine to remotely access data of usb peripheral device
US20210233272A1 (en) * 2018-10-15 2021-07-29 Huawei Technologies Co., Ltd. Data processing method and device used in virtual scenario
CN113220445A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data acquisition method and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546920A (en) * 2011-01-04 2012-07-04 中国移动通信有限公司 Method, system and device of running process
CN107153533A (en) * 2016-03-04 2017-09-12 深圳市深信服电子科技有限公司 Application call method and system based on Android virtual system
CN108304247A (en) * 2017-12-19 2018-07-20 华为技术有限公司 The method and apparatus of access camera, server, readable storage medium storing program for executing
US20210233272A1 (en) * 2018-10-15 2021-07-29 Huawei Technologies Co., Ltd. Data processing method and device used in virtual scenario
WO2020228650A1 (en) * 2019-05-14 2020-11-19 华为技术有限公司 Method for virtual machine to remotely access data of usb peripheral device
CN110493203A (en) * 2019-07-31 2019-11-22 湖南微算互联信息技术有限公司 A kind of cloud cell-phone camera head controlling method, system, device and storage medium
CN113220445A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data acquisition method and terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022570A (en) * 2021-12-24 2022-09-06 荣耀终端有限公司 Method for acquiring video frame, electronic device and readable storage medium
CN114116140A (en) * 2022-01-27 2022-03-01 荣耀终端有限公司 Method for acquiring data and electronic equipment
CN114116140B (en) * 2022-01-27 2022-07-26 荣耀终端有限公司 Method for acquiring data and electronic equipment
CN116887032A (en) * 2023-07-05 2023-10-13 荣耀终端有限公司 Cross-terminal image data acquisition system, method, client and server

Also Published As

Publication number Publication date
CN113784049B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
KR102158557B1 (en) Method and device for determining response time
JP6092381B2 (en) Method, system, and computer-readable storage medium for providing access to a remote application via a web client
CN113784049B (en) Camera calling method of android system virtual machine, electronic equipment and storage medium
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
WO2020207085A1 (en) Method and device for information sharing, electronic device, and storage medium
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
CN111330280B (en) Method and device for processing data in game, storage medium and electronic equipment
US20220245005A1 (en) Methods, devices and computer storage media for inter-mini program platform discovery
CN113900754A (en) Desktop sharing method and device, computer equipment and storage medium
EP3671627A1 (en) Image processing method and device
CN111158820A (en) Control click event processing method and device, electronic equipment and storage medium
CN110275787B (en) Online platform data transmission method, device, medium and electronic equipment
CN113655975B (en) Image display method, image display device, electronic apparatus, and medium
US20240146978A1 (en) Functional component loading method and data processing method for video live-streaming, and device
US20170109113A1 (en) Remote Image Projection Method, Sever And Client Device
EP4203487A1 (en) Method and apparatus for processing multimedia resource
CN113836455A (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN115237481A (en) Method, device and equipment for driving external equipment and storage medium
CN112367295B (en) Plug-in display method and device, storage medium and electronic equipment
CN114490266A (en) Data acquisition method, device, equipment and storage medium
CN113791777A (en) Picture display method and device, computer readable storage medium and electronic equipment
CN107390981B (en) Global menu control method, device, equipment and storage medium
WO2023169157A1 (en) Sub application running method and apparatus, electronic device, program product, and storage medium
CN115348478B (en) Equipment interactive display method and device, electronic equipment and readable storage medium

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Camera calling method, electronic devices, and storage media for Android virtual machines

Granted publication date: 20230801

Pledgee: Pudong Development Bank of Shanghai Limited by Share Ltd. Xi'an branch

Pledgor: XI'AN VANXVM ELECTRONICS TECHNOLOGY Co.,Ltd.

Registration number: Y2024610000022

PE01 Entry into force of the registration of the contract for pledge of patent right