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

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

Info

Publication number
CN113784049B
CN113784049B CN202111091142.XA CN202111091142A CN113784049B CN 113784049 B CN113784049 B CN 113784049B CN 202111091142 A CN202111091142 A CN 202111091142A CN 113784049 B CN113784049 B CN 113784049B
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.)
Active
Application number
CN202111091142.XA
Other languages
Chinese (zh)
Other versions
CN113784049A (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

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

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 an intent request message when requesting to call a client camera; when the information of the content request is detected, a transformation camera application program in the virtual machine receives the content 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 content 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 the transformation camera application program in the virtual machine, and the transformation 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 equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of communication, in particular to a camera calling method of an android system virtual machine, electronic equipment and a storage medium.
Background
The cloud brings more demands customization and convenience to people anytime and anywhere. With the vigorous development of cloud computing, cloud servers are greatly developed, so that users can apply for a small computer with a hard disk and a memory, and also can apply for a cloud mobile phone with strong performance.
Assuming that the user's handset is a smart android handset with a relatively small memory and storage, it is not very realistic for the user to want to run applications that occupy a large memory, such as games. The cloud mobile phone is applied, and connection between the client software and the cloud mobile phone is required to be established, which is equivalent to an android operating system for remotely operating the cloud mobile phone. The android operating system of the cloud mobile phone generally adopts a virtual machine, namely a virtual mobile phone which is not a true exclusive mobile phone but can be shared.
With the code scanning payment of WeChat and payment treasures, the code scanning attention, the code scanning login and the wide application of various code scanning operations, the virtual machine and the user mobile phone need to be used in the scenes of code scanning, photographing, video and the like. However, the virtual machine is generally not equipped with a physical camera, and the above operation cannot be performed, which requires a corresponding operation by means of the mobile phone camera of the user.
Accordingly, there is a need to improve one or more problems in the related art as described above.
It should be noted that the information disclosed in the above background section is only for enhancing 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 an embodiment of the present disclosure is to provide a camera invoking method, an electronic device, and a storage medium for an android virtual machine, so as to overcome one or more problems due to limitations and disadvantages of the related art at least to some extent.
According to a first aspect of an embodiment of the present disclosure, there is provided a camera invoking method of an android system virtual machine, 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 an intent request message when requesting to call a client camera;
when detecting that the third party application program sends an intent request message when requesting to call a client camera, a transformation 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 third party application program does not send the content request information when requesting to call a client camera, 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;
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 remodelling 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 the image or video data sent by the client through the service process of the server in real time.
In an exemplary embodiment of the present disclosure, the visual 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 disclosure, the virtual machine monitors a process of the third party application program, and when the process of the third party application program is monitored, the 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.
In one exemplary embodiment of the disclosure, the call request data of the third party application program is sent to the camera application program in the virtual machine by modifying the android system framework layer camera class file code of the virtual machine to set system attributes or send broadcast notification or directly start a service process.
According to a second aspect of the embodiments of the present disclosure, there is provided a camera invoking method of an android system virtual machine, including:
the user client receives camera calling request data sent by a camera reconstruction application program in the virtual machine through a service process of the server;
the client calls a camera to shoot images or videos;
and the client sends the image or video shot by the camera to a camera application program in a virtual machine through a service process of the server.
In an exemplary embodiment of the disclosure, the client sends the image or video shot by the camera to a modified camera application program in the virtual machine in real time through a service process of the server.
In an exemplary embodiment of the disclosure, after the client receives the shooting information from the third party application program monitored by the virtual machine, the image or video shot by the camera is sent to a modified camera application program in the virtual machine through a service process of the server.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
the processor is configured to execute the steps of the camera calling method of the android system virtual machine in any embodiment through executing the executable instructions.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the camera invoking method of the android system virtual machine described in any of the above embodiments.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the embodiment of the disclosure, the camera calling method of the android system virtual machine provides the function of camera related operation for the third party application on the virtual machine, and realizes that the android virtual machine uses the physical camera to execute the camera related function operation of the third party application on the virtual machine.
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 disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 illustrates a flowchart of a camera invoking method of an android system virtual machine in an exemplary embodiment of the disclosure;
FIG. 2 illustrates a flowchart of another camera invocation method for an android virtual machine in an exemplary embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a virtual machine system architecture in an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a schematic diagram of a program product architecture 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.
Description of the embodiments
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many 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 the 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 a repetitive description thereof 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 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 exemplary embodiment, first, a method for invoking a camera of a virtual machine of an android system is 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 an intent request message when requesting to call a client camera;
step S103: when detecting that the third party application program sends an intent request message when requesting to call a client camera, a transformation 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 third party application program does not send the content request information when requesting to call a client camera, 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;
step S105: the virtual machine receives image or video data sent by the client through a service process of the server.
As shown in fig. 3, the virtual machine system includes a user side device, 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 started, the virtual machine is started and corresponding ports on the virtual machine side and the client side are monitored. When a user operates a third application program on the virtual machine through the client, and the third party application program execution function is to be used for the client section camera, the third party application program on the virtual machine can request to call the client section camera; at this time, the virtual machine detects whether the third party application program sends the content request information, and specifically, the third party application program can be a pre-installed camera application program in the android system of the virtual machine, or can be an application program which is installed by a user, such as an application of a beauty camera, a WeChat, a payment bank and the like; the method comprises the steps that the content request information is aimed at a call request sent by a default pre-installed camera application program, when the content request information is detected, a modified camera application program in a virtual machine directly receives the content request information, and call request data sent by the pre-installed camera application program is sent to a client through a service process in a server; when the third party application program requesting to call the camera is not a preloaded camera application program, an android system framework layer (framework layer) in the virtual machine intercepts call request data of the third party application program and sends the call request data to a reconstruction camera application program in the virtual machine, and the reconstruction camera application program in the virtual machine sends the call request data to a client through a service process through a port between the reconstruction 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 camera related function operation of the third party application on the virtual machine is implemented by the android virtual machine through the physical camera.
Next, each step 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 remodelling 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 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 the captured picture or video in real time, for example, when the user wants to capture the video, the user needs to display a video picture to ensure whether the picture is the picture that he wants to capture, and at this time, the virtual machine needs to receive the picture information in real time and display the picture in real time, so that the modified camera application in the virtual machine needs to start a visual interface to display the captured picture.
In one embodiment, the visual interface is a picture-in-picture mode interface or a small window mode interface or a full window mode interface. Specifically, according to different third party applications, different visual interfaces can be set, for example, when the third party application is a preloaded camera application program, the visual interfaces can be displayed in full screen; if the third party application is WeChat, the visual interface can be in a picture-in-picture mode display or a small window mode display, and the display mode can not influence the normal use of WeChat; the specific visual interface display may be set according to the needs of the user, and is not particularly limited herein. Because the remodelling camera in the virtual machine needs to start a camera call request of the third party application and also needs to start a visual interface, the remodelling camera application program in the virtual machine at least comprises: camera rights, read-write external storage rights, audio recording rights, positioning rights, and camera feature declarations.
In one embodiment, the virtual machine monitors the process of the third party application program, and when the process of the third party application program is monitored to end shooting, 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, the shooting picture may not need to be monitored in real time sometimes, or when the running speed is affected due to the fact that interaction between the virtual machine and the client is increased by the fact that the shooting picture is monitored in real time, the shooting process can be monitored, interaction is performed when the shooting execution is completed, and shot image or video data is received.
In one embodiment, the call request data of the third party application program is sent to the camera application program in the virtual machine by modifying the android system framework layer camera class file code of the virtual machine to set system attributes or send broadcast notification or directly start a service process. Specifically, the calling information is intercepted by carrying out code transformation on the camera class files of the android system framework layer of the virtual machine; for example, the system attribute is set through the transformation code, and when the system attribute changes after the call request data is intercepted, the call information is sent to the transformation camera application program of the virtual machine; for example, the method can also be that a broadcasting notification is sent when the request data to be called is intercepted through code transformation, and calling information is sent to a transformation camera application program of the virtual machine; for example, the method can also be a modified camera application program which directly starts a service process to send calling information to a virtual machine through code modification when the calling information exists, and for example, the method can be used for monitoring specific buttons of some common mainstream application programs such as WeChat, QQ, payment treasures and the like at a frame layer, such as a video shooting button of the WeChat application program, and directly starting the service process to send the calling information to the modified camera application program of the virtual machine when a user clicks a picture or the video shooting button is monitored.
The second embodiment provides a camera calling method of the android system virtual machine, which comprises the following steps:
step S201: the user client receives camera calling request data sent by a camera reconstruction application program in the virtual machine through a service process of the server;
step S202: the client calls a camera to shoot images or videos;
step S203: and the client sends the image or video shot by the camera to a camera application program in a virtual machine through a service process of the server.
Specifically, when the client of the user receives, through a corresponding port on the client side, camera call request data sent by a camera application program in the virtual machine transformed by the server through a service process, and then sends an intent request to the camera, namely a physical camera of the user equipment, so as to call the camera to shoot an image or a video, and the shot image or video data is sent to the camera application program in the virtual machine through the service process of the server.
In one embodiment, the client sends the image or video shot by the camera to a remodelling camera application program in the virtual machine in real time through a service process of the server. Specifically, the client can send the shot image or video to the reconstruction camera application program in the virtual machine in real time, so that the preview can be performed in the shooting process, and the shooting accuracy is ensured.
In one embodiment, after the client receives the shooting information from the third party application program monitored by the virtual machine, the image or video shot by the camera is sent to the modified camera application program in the virtual machine through a service process of the server. Specifically, after the virtual machine monitors that shooting ends and sends shooting end 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 ends according to the received shooting end 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 camera related function operation of the third party application on the virtual machine is implemented by the android virtual machine through the physical camera.
It should be noted that although the steps of the methods of the present disclosure are illustrated in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order or that all of the illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc. In addition, it is also readily understood that these steps may be performed synchronously or asynchronously, for example, in a plurality of modules/processes/threads.
In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium, on which a computer program is stored, which when executed by, for example, a processor, can implement the steps of the camera invoking method of the android system virtual machine in any one of the embodiments above. In some possible embodiments, the aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the present invention as described in the above-mentioned camera invoking method section of the android system virtual machine, when said program product is run on the terminal device.
Referring to fig. 4, a program product 300 for implementing the camera invoking method of the above-mentioned android system virtual machine, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer, is described according to an embodiment of the present invention. However, the program product of the present invention is not limited thereto, and in this 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. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk 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 data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium 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 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, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, 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., connected via the Internet using an Internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device is also provided, which may include a processor, and a memory for storing executable instructions of the processor. The processor is configured to execute the steps of the camera calling method of the android system virtual machine in any one of the embodiments through executing the executable instructions.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may 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 merely an example, and should not be construed as limiting the functionality and scope of use of 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. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above-described camera invoking method section of the android system virtual machine of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1 or fig. 2.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage 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 or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing 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 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.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, 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 nonvolatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to execute the camera invoking 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 adaptations, 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 (8)

1. A camera calling method of an 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 an intent request message when requesting to call a client camera; the method comprises the steps that the content request information aims at a call request sent by a default pre-installed camera application program, and the third party application program comprises the pre-installed camera application program in a virtual machine android system and an application program which is installed by a user;
when detecting that the third party application program sends an intent request message when requesting to call a client camera, a transformation 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 third party application program does not send the content request information when requesting to call a client camera, 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; the method comprises the steps that system attributes are set through modification of android system framework layer camera class file codes of the virtual machine, and call request data of the third-party application program are sent to a modified camera application program in the virtual machine in a mode of sending broadcast notification or directly starting a service process;
the virtual machine receives image or video data sent by the client through a service process of the server.
2. The camera invoking method of an android system virtual machine of claim 1, wherein a remodel camera application in the virtual machine initiates a visual interface while sending camera invoking request data of the third party application, and receives and displays image or video data sent by the client via a service process of the server in real time.
3. The camera invoking method of the android system virtual machine of claim 2, wherein the visual interface is a picture-in-picture mode interface or a small window mode interface or a full window mode interface.
4. The method for invoking a camera of an android system virtual machine according to claim 1, wherein the virtual machine monitors a process of the third party application program, and when the process of the third party application program is monitored to end 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. A camera invoking method of an android virtual machine, wherein a modified camera application in the virtual machine invokes camera invoking request data of a third party application through a service process of a server, and the method according to claim 1 is sent to a client, and the method is characterized by comprising:
the user client receives camera calling request data sent by a camera reconstruction application program in the virtual machine through a service process of the server;
the client calls a camera to shoot images or videos;
the client sends the image or video shot by the camera to a camera application program in a virtual machine through a service process of the server;
and the client sends the image or video shot by the camera to a reconstruction camera application program in the virtual machine in real time through a service process of the server.
6. The method for invoking the camera of the android system virtual machine according to claim 5, wherein after the client receives the shooting information from the third party application program monitored by the virtual machine, the image or the video shot by the camera is sent to the modified camera application program in the virtual machine through the service process of the server.
7. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the steps of the camera invoking method of the android system virtual machine of any one of claims 1-6 via execution of the executable instructions.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the steps of the camera invoking method of the virtual machine of the android system as claimed in any one of claims 1 to 6.
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 CN113784049A (en) 2021-12-10
CN113784049B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022570B (en) * 2021-12-24 2023-04-14 荣耀终端有限公司 Method for acquiring video frame, electronic equipment and readable storage medium
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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220445A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data acquisition method and terminal equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546920B (en) * 2011-01-04 2013-10-23 中国移动通信有限公司 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
CN112530024A (en) * 2018-10-15 2021-03-19 华为技术有限公司 Data processing method and equipment for virtual scene
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220445A (en) * 2021-03-26 2021-08-06 西安神鸟软件科技有限公司 Image or video data acquisition method and terminal equipment

Also Published As

Publication number Publication date
CN113784049A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN113784049B (en) Camera calling method of android system virtual machine, electronic equipment and storage medium
KR102158557B1 (en) Method and device for determining response time
US20220053068A1 (en) Methods, apparatuses and computer storage media for applet state synchronization
US11683554B2 (en) Techniques for managing generation and rendering of user interfaces on client devices
CN109933442B (en) Method, apparatus and computer storage medium for communication between small program platforms
WO2020207085A1 (en) Method and device for information sharing, electronic device, and storage medium
JP2015529878A (en) Providing access to remote applications via a web client
CN104539977A (en) Live broadcast previewing method and device
CN108063949A (en) Image screenshotss method, apparatus and screenshotss server
CN111459364B (en) Icon updating method and device and electronic equipment
US9906626B2 (en) Resource demand-based network page generation
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
CN109976922B (en) Discovery method, device and computer storage medium between small program platforms
CN111246238A (en) Live broadcast method, device, storage medium and live broadcast system
CN111327910A (en) Operation control method, device and equipment of application program and storage medium
WO2019242409A1 (en) Qr code generation method and apparatus for terminal device
AU2018403361B2 (en) Data transmission
CN115237481A (en) Method, device and equipment for driving external equipment and storage medium
CN113836455A (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN113791777A (en) Picture display method and device, computer readable storage medium and electronic equipment
CN114092362A (en) Panoramic picture loading method and device
CN113891135A (en) Multimedia data playing method and device, electronic equipment and storage medium
WO2023169157A1 (en) Sub application running method and apparatus, electronic device, program product, and storage medium
WO2023191711A1 (en) Device-cloud collaboration-based image processing method and apparatus, device, and storage medium
CN116680072A (en) VDI-based business scene processing method, storage medium and electronic equipment

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