CN111061524A - Application data processing method and related device - Google Patents

Application data processing method and related device Download PDF

Info

Publication number
CN111061524A
CN111061524A CN201911263287.6A CN201911263287A CN111061524A CN 111061524 A CN111061524 A CN 111061524A CN 201911263287 A CN201911263287 A CN 201911263287A CN 111061524 A CN111061524 A CN 111061524A
Authority
CN
China
Prior art keywords
application
module
media
algorithm
application data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911263287.6A
Other languages
Chinese (zh)
Inventor
杨平平
方攀
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911263287.6A priority Critical patent/CN111061524A/en
Publication of CN111061524A publication Critical patent/CN111061524A/en
Priority to PCT/CN2020/129137 priority patent/WO2021115038A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space

Abstract

The embodiment of the application discloses an application data processing method and a related device, which are applied to electronic equipment, wherein the electronic equipment comprises a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. The method and the device for obtaining the bottom layer algorithm of the electronic equipment are beneficial to achieving the simplicity of obtaining the bottom layer algorithm of the electronic equipment by the third-party application and the safe bottom layer opening function.

Description

Application data processing method and related device
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to an application data processing method and a related apparatus.
Background
At present, various third-party application software is applied more and more widely in electronic devices, and as the requirement of a user for processing data by the third-party application is higher and higher, the third-party application software needs to use stronger enhanced functions or data processed by an algorithm so as to meet the requirement of the user.
Disclosure of Invention
The embodiment of the application data processing method and the related device are provided, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe open bottom layer function are realized.
In a first aspect, an embodiment of the present application provides an application data processing method, which is applied to an electronic device, where the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the method comprises the following steps:
the third party application sends a data request to a hardware abstraction layer of the operating system;
the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
and the third party application receives the target application data and realizes the target function according to the target application data.
In a second aspect, an embodiment of the present application provides an application data processing apparatus, which is applied to an electronic device, where the application data processing apparatus includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; wherein the content of the first and second substances,
the third party application is used for sending a data request to a hardware abstraction layer of the operating system;
the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, calling an algorithm for realizing a target function to process the original application data to obtain target application data, and sending the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
the third party application is further configured to receive the target application data and implement the target function according to the target application data.
In a third aspect, an embodiment of the present application provides a chip, including: and the processor is used for calling and running the computer program from the memory so that the device provided with the chip executes the instructions of the steps in the method of any one of the first aspect of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in any of the methods of the first aspect of the embodiment of the present application.
It can be seen that, in the embodiment of the present application, the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. Therefore, the data request is sent to the hardware abstraction layer through the third-party application, and the target application data returned by the hardware abstraction layer is obtained to realize the target function, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe opening of the bottom layer function are facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic architecture diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an application data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another application data processing method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an application data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of an application data processing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device related to the embodiment of the present application may include various handheld devices (smart phones, tablet computers, etc.) having a wireless communication function, vehicle-mounted devices (navigators, vehicle-mounted refrigerators, vehicle-mounted dust collectors, etc.), wearable devices (smart watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The embodiment of the application is applied to an electronic device with an operating system, the operating system is a computer program for managing computer hardware and software resources, and the operating system can be at least one of the following: android system Android, Windows system, apple system, saiban system, hong meng system, Linux operating system, etc., which are not limited herein.
Currently, taking an Android system as an example, in an Android platform, a third-party Application may now access underlying algorithm data through a standard Android Application Programming Interface (API), but if it wants to use more underlying enhanced functions or data processed through an algorithm, there is no corresponding standard Interface to map underlying capability to three-party access. And the development and maintenance cost is increased by replacing the existing interface to call the bottom layer function, the code amount is large (2 k-3 k codes), and when the SDK is increased, the function is increased and the SDK is required to be updated.
In view of the foregoing problems, embodiments of the present application provide an application data processing method and a related apparatus, and the following describes embodiments of the present application in detail with reference to the accompanying drawings.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 1, an electronic device according to an embodiment of the present application includes a media service module and an operating system (e.g., an android operating system, which is not limited herein exclusively), an application layer of the operating system is provided with a third party application and a media management module (also referred to as a media interface module), a hardware abstraction layer of the operating system is provided with a hardware abstraction module (e.g., an android native module, such as a native camera hardware abstraction module CameraHAL), a media policy module and an algorithm management module, and further, an operating system native architecture further includes a framework layer and a driver layer, the framework layer includes application interfaces of various native applications (e.g., a native camera application program interface), application services (e.g., a native camera service), a framework layer interface (e.g., Google HAL3 interface), the hardware abstraction layer includes a hardware abstraction layer interface (e.g., HAL3.0), and hardware abstraction modules of various native applications (e.g., a camera hardware abstraction module), the driver layer includes various drivers (e.g., screen Display driver, Audio driver, etc.) for enabling various hardware of the electronic device, such as the image signal processor ISP + front-end image sensors, etc.
The media service module is independent of the operating system, third-party applications can communicate with the media service module through the media management module, the media service module can communicate with the media policy module through an android native information link formed by an application interface, an application service, a frame layer interface, a hardware abstraction layer interface and the hardware abstraction module, the media policy module communicates with the algorithm management module, the algorithm management module maintains an android native algorithm library, the algorithm library comprises enhancement functions supported by various native applications, and for example, for a native camera application, the enhancement functions such as binocular shooting, beauty, sharpening, night vision and the like are supported. In addition, the media service module can also directly communicate with the media policy module or the algorithm management module.
Referring to fig. 2, fig. 2 is a schematic flowchart of an application data processing method provided in an embodiment of the present application, where the application data processing method may be applied to the electronic device shown in fig. 1, where the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; as shown in the figure, the application data processing method includes the following operations.
S201, the third party application sends a data request to a hardware abstraction layer of the operating system;
the operating system can be an android system. The third-party application can be various applications such as a camera application and a map application which need to use the underlying application data of the electronic equipment.
S202, the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
the hardware abstraction module receives a data request of a third party application, acquires original application data of a hardware abstraction layer to be processed according to the data request, and pre-requests an operating system to process the original application data aiming at an algorithm of a target function opened by the third party application through the media service module according to the third party application, and returns the processed data to the third party application.
Based on the above fig. 1, a hardware abstraction layer of the operating system is provided with a hardware abstraction module; the hardware abstraction layer receives the data request, acquires original application data to be processed, and calls an algorithm for realizing a target function to process the original application data to obtain target application data, and the method comprises the following steps:
and the hardware abstraction module receives the data request, acquires original application data to be processed, and calls an algorithm for realizing a target function to process the original application data to obtain target application data. The application data includes at least one of: the third-party application receives network application data from a network side; and the hardware abstraction module calls the local application data obtained by the drive enabling hardware for information acquisition.
The media service module specifically sends the first function configuration information to the media policy module through any one of communication links: a first communication link formed by connecting the media service module, an application interface of a framework layer of the operating system, an application service, a framework layer interface, a hardware abstraction interface of a hardware abstraction layer of the operating system, the hardware abstraction module and the media policy module in series; and a second communication link formed by the media service module and the media policy module connected in series; and the third communication link is formed by connecting the media service module, the algorithm management module and the media strategy module in series.
In the concrete implementation, the third-party application can communicate with the media service module through the media management module, the media service module can communicate with the media policy module through an android native information link composed of the application interface, the application service, the frame layer interface, the hardware abstraction layer interface and the hardware abstraction module, the media policy module communicates with the algorithm management module, the algorithm management module maintains an android native algorithm library, the algorithm library comprises enhancement functions supported by various native applications, for example, aiming at a native camera application, the method supports the implementation of various enhancement functions such as binocular shooting, beauty, sharpening, night scene and the like. In addition, the media service module can also directly communicate with the media policy module or the algorithm management module.
S203, the third party application receives the target application data and realizes the target function according to the target application data.
And the third party application realizes the target function according to the target application data obtained by processing and returned by the hardware abstraction layer.
It can be seen that, in the embodiment of the present application, the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. Therefore, the data request is sent to the hardware abstraction layer through the third-party application, and the target application data returned by the hardware abstraction layer is obtained to realize the target function, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe opening of the bottom layer function are facilitated.
In one possible embodiment, a hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module; the hardware abstraction layer receives the data request, acquires original application data to be processed, and calls an algorithm for realizing a target function to process the original application data to obtain target application data, and the method comprises the following steps: the hardware abstraction module receives the data request, acquires original application data to be processed and sends the original application data to the algorithm management module; and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
The media service module is independent of the operating system, and the media service module can directly enable the algorithm module in the algorithm library through the algorithm management module, so that the enhancement function of opening the correlation of the native application for the third-party application is realized.
The hardware abstraction layer is used for acquiring network application data from a third party application and/or calling target application data acquired by a drive enabling sensor.
The media service module will bind the message to the bottom HAL, and convert the parameters sent by the upper layer into the parameters that can be recognized by the bottom. And receiving the data request through a hardware abstraction module arranged on a hardware abstraction layer, acquiring original application data to be processed according to the data request and sending the original application data to an algorithm management module, and processing the original application data by the algorithm management module according to the algorithm of a target function to obtain target application data.
It can be seen that, in this example, the hardware abstraction module receives the data request, acquires the original application data to be processed, and sends the original application data to the algorithm management module, and then the algorithm management module processes the original application data by using the algorithm of the target function to obtain the target application data.
In one possible embodiment, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module through the media policy module; the hardware abstraction layer receives the data request, acquires original application data to be processed, and calls an algorithm for realizing a target function to process the original application data to obtain target application data, and the method comprises the following steps: the hardware abstraction module receives the data request, acquires original application data to be processed, and sends the original application data to the algorithm management module through the media strategy module; and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
The data request is received through a hardware abstraction module arranged on a hardware abstraction layer, original application data to be processed are obtained according to the data request and are sent to an algorithm management module after being processed by a media strategy module, and the algorithm management module processes the original application data according to an algorithm of a target function to obtain target application data.
In a specific implementation, the media service module may enable the algorithm module in the algorithm library through the android native information link, the media policy module, and the algorithm management module, or directly enable the algorithm module in the algorithm library through the media policy module and the algorithm management module, or directly enable the algorithm module in the algorithm library through the algorithm management module, so as to implement an enhanced function of opening native application association for third-party applications.
As can be seen, in this example, the hardware abstraction module receives the data request, obtains the original application data to be processed, and sends the original application data to the algorithm management module through the media policy module; the algorithm management module receives the original application data, processes the original application data by utilizing the algorithm of the target function to obtain the target application data, and is favorable for realizing the enhancement function of opening the original application association aiming at the third-party application.
In one possible embodiment, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, wherein the hardware abstraction module is connected with the media policy module, and the media policy module is connected with the algorithm management module; the algorithm of the target function is specifically opened to the third-party application through the following operations: the media policy module receives first function configuration information from the media service module, wherein the first function configuration information comprises description information of the target function; converting the first function configuration information into second function configuration information which can be identified by the algorithm management module, and sending the second function configuration information to the algorithm management module; and the algorithm management module receives the second function configuration information and opens the use permission of the third-party application for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
After the selected open capability is set to the media policy module, the media policy module converts the first function configuration information of the target function into second function configuration information which can be identified by the algorithm management module, and finally sends the second function configuration information to the algorithm management module, and the algorithm management module opens the use permission of the algorithm of the target function according to the received second configuration information.
It can be seen that, in this example, the media policy module converts the first configuration information of the enhanced function selected to be opened into the second configuration information that can be identified by the algorithm management module, and the media policy module sends the second configuration information to the algorithm management module, and the intermediate information has a conversion process and does not directly use the capability of the bottom layer, so as to prevent a third party from directly coupling and seeing the capability of the bottom layer, which is beneficial to ensuring the security of the capability of opening the bottom layer.
In one possible embodiment, before the media policy module receives the first function configuration information from the media service module, the method further comprises: the media service module determines the target function needed to be used by the third-party application, and generates the first function configuration information according to the target function; the media service module sends the first function configuration information to the media policy module.
In a specific implementation, the media service module responds to a data request of a third party, determines a target function and corresponding first function configuration information which need to be used by a third party application according to the data request, and then sends the first function configuration information to a bottom layer, that is, the first function configuration information is sent to the media policy module, and the media policy module processes the first function configuration information.
As can be seen, in this example, the media service module determines a target function that needs to be used by the third-party application, and generates first function configuration information according to the target function; the media service module sends the first function configuration information to the media policy module, and can allow the third-party application to use the bottom-layer algorithm according to the configuration information, so that the third-party application can use the bottom-layer enhanced function or the target application data processed by the bottom-layer algorithm.
In a possible embodiment, the application layer of the operating system is further provided with a media management module, and the media management module supports the information interaction between the third-party application and the media service module through an SDK binder communication mechanism.
The media management module realizes information interaction between the third-party application and the media service module through an SDK Binder communication mechanism, and the Binder is realized based on memory mapping. The third-party application is connected with the media service module through the SDK binder message, and the media service module and the third-party application are completely communicated through the binder message, so that the service states of the third-party application and the media service module can be acquired.
In the concrete implementation, the media management module will bind the message to the hardware abstraction layer, convert the data issued by the third party application into the information which can be identified by the bottom layer, and transmit the configuration information of the third party application to the media service module, and the media service module responds to the configuration request of the third party application to enable the configuration information to reach the bottom layer.
In this example, the media management module supports the implementation of information interaction through the SDK binder communication mechanism, which is beneficial to improving the performance, security, and efficiency of the third-party application when acquiring the underlying capability.
In one possible embodiment, before the third party application sends the data request to the hardware abstraction layer of the operating system, the method further includes: the third-party application sends a media platform version acquisition request carrying an authentication code to the media service module; the media service module receives the media platform version acquisition request, verifies the authentication code and passes the verification; and the media service module sends the media platform version information to the third-party application.
Wherein, the media service module receives the media platform version acquisition request, checks the authentication code and passes the check, including: the media platform service module acquires an asymmetric private key of a preconfigured third party application; the media platform service module decrypts the authentication code by using the asymmetric private key to obtain an APP signature key, a system date and an appointed field of the third-party application; and the media platform service module determines that the verification is passed according to the APP signature key, the system date and the appointed field. For example, the media service module receives a media platform version acquisition request carrying an authentication code from a third-party application, verifies the authentication code, and returns the media platform version information to the third-party application if the verification is successful, for example, a character string such as "1.1: 1.2" may be returned.
In the specific implementation, the APP signature key can be understood as permission for installing third-party application, after the third-party application is downloaded to the electronic device, the third-party application is sent to an internal server, the internal server uses an asymmetric public key to encrypt according to the APP signature key, the system date, the appointed field and other information of the third-party application to obtain an authentication code, the encrypted information can also be information such as authorization duration, after the media service module receives the authentication code from the third-party application, a preconfigured asymmetric private key of the third-party application corresponding to the public key can be obtained, then the asymmetric private key is used for decrypting authentication to obtain the APP signature key, the system date, the appointed field and other information of the third-party application, then the system judges the information, and if the information passes the correct verification.
As can be seen, in this example, the third-party application sends a media platform version acquisition request carrying an authentication code to the media service module; the media service module receives a media platform version acquisition request, verifies the authentication code and passes the verification; the media service module sends the version information of the media platform to the third-party application, and by encryption, authorization and decryption, the security can be effectively controlled, and the security of the opening of the bottom core function is guaranteed.
In one possible embodiment, after the media service module sends the media platform version information to the third-party application, the method further comprises: the third party application receives the media platform version information and sends a capability acquisition request carrying the media platform version information to the media service module; the media service module receives the capability acquisition request, inquires an application capability list of the media platform version information, and sends the application capability list to the third-party application; the third-party application receives the application capability list, and inquires the application capability list to acquire a plurality of android native functions supported by the current media platform for the third-party application; and determining a target function selected to be opened in the plurality of android native functions.
Wherein, all the capabilities supported by the media platform being used for the third party application, that is, the capabilities that can be opened for the third party application to access, can be listed in the application capability list.
As can be seen, in this example, the third-party application can determine the capability list according to the version information of the media platform, determine the selected enhanced function according to the capability list, and then interact with the media management module, the media service module, the algorithm management module, and the hardware abstraction module to finally call the corresponding algorithm module to process the underlying application data, thereby ensuring that the enhanced function is open and safe.
In one possible embodiment, the target function is determined by any one of the following: displaying a plurality of android native functions through an application interface of the third-party application, and determining a target function according to selection of a user for the plurality of android native functions; determining a current application scene by the third-party application, and determining the target function according to the application scene; and determining a current application scene by the third-party application, sending the application scene to the media service module, and determining the target function by the media service module according to the application scene.
The method comprises the steps that a display interface of the electronic equipment displays an application interface of a third-party application, the application interface comprises a plurality of android native functions, and then a target function is determined according to selection of a user for the plurality of android native functions, or the target function is determined according to a current application scene determined by the third-party application, or the target function is determined by a media service module according to the application scene determined by the third-party application.
In a specific implementation, a display interface of the electronic device displays an application interface of a third-party application, where the application interface includes a plurality of android native functions, for example, when the third-party application is a camera, the plurality of android native camera functions may include a filter, a beauty function, a focusing function, a binocular shooting function, a portrait recognition function, a sharpening function, a night scene function, and the like, and then a target function is determined according to a user selection; and determining the target function according to the current application scene determined by the third-party application, for example, when the third-party application is a camera and the current application scene is determined to be night scene shooting, determining that the target function is the night scene shooting function of the android native camera.
As can be seen, in this example, the target function is determined according to the selection of the user for displaying the plurality of android native functions through the application interface of the third-party application, or the target function is determined by the third-party application in the current application scenario, or the target function is determined by the media service module in the current application scenario according to the third-party application, so that simplicity and diversity of calling the underlying capability by the third-party application are achieved.
Referring to fig. 3, fig. 3 is a schematic flowchart of an application data processing method provided in an embodiment of the present application, where the application data processing method may be applied to the electronic device shown in fig. 1, where the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; as shown in the figure, the application data processing method includes the following operations.
S301, the third party application sends a data request to a hardware abstraction layer of the operating system;
s302, a hardware abstraction module and an algorithm management module are arranged on a hardware abstraction layer of the operating system, the hardware abstraction module is connected with the algorithm management module, and the hardware abstraction module receives the data request, acquires original application data to be processed and sends the original application data to the algorithm management module;
s303, the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data;
s304, the third party application receives the target application data and realizes the target function according to the target application data.
It can be seen that, in the embodiment of the present application, the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. Therefore, the data request is sent to the hardware abstraction layer through the third-party application, and the target application data returned by the hardware abstraction layer is obtained to realize the target function, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe opening of the bottom layer function are facilitated.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an application data processing apparatus according to an embodiment of the present application, consistent with the embodiment shown in fig. 2; the application data processing device is applied to the electronic equipment and comprises a media service module and an operating system, wherein a third-party application is arranged on an application layer of the operating system; wherein the content of the first and second substances,
the third party application is used for sending a data request to a hardware abstraction layer of the operating system;
the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, calling an algorithm for realizing a target function to process the original application data to obtain target application data, and sending the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
the third party application is further configured to receive the target application data and implement the target function according to the target application data.
It can be seen that, in the embodiment of the present application, the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. Therefore, the data request is sent to the hardware abstraction layer through the third-party application, and the target application data returned by the hardware abstraction layer is obtained to realize the target function, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe opening of the bottom layer function are facilitated.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module; wherein the content of the first and second substances,
and aiming at the hardware abstraction layer, the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, and calling an algorithm for realizing a target function to process the original application data to obtain target application data:
the hardware abstraction module is used for receiving the data request, acquiring original application data to be processed and sending the original application data to the algorithm management module;
and the algorithm management module is used for receiving the original application data, and processing the original application data by using the algorithm of the target function to obtain target application data.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module through the media policy module; wherein the content of the first and second substances,
and aiming at the hardware abstraction layer, the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, and calling an algorithm for realizing a target function to process the original application data to obtain target application data:
the hardware abstraction module is used for receiving the data request, acquiring original application data to be processed, and sending the original application data to the algorithm management module through the media strategy module;
and the algorithm management module is used for receiving the original application data, and processing the original application data by using the algorithm of the target function to obtain target application data.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, wherein the hardware abstraction module is connected with the media policy module, and the media policy module is connected with the algorithm management module; wherein the content of the first and second substances,
the algorithm of the target function is specifically opened to the third-party application through the following modules:
the media policy module is configured to receive first function configuration information from the media service module, where the first function configuration information includes description information of the target function; converting the first function configuration information into second function configuration information which can be identified by the algorithm management module, and sending the second function configuration information to the algorithm management module;
and the algorithm management module is used for receiving the second function configuration information and opening the use permission of the third-party application for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
In one possible example, the media policy module, prior to receiving the first functional configuration information from the media service module:
the media service module is configured to determine the target function that the third-party application needs to use, and generate the first function configuration information according to the target function;
the media service module is configured to send the first function configuration information to the media policy module.
In one possible example, the application layer of the operating system is further provided with a media management module; wherein the content of the first and second substances,
and the media management module is used for supporting the realization of the information interaction between the third-party application and the media service module through an SDK binder communication mechanism.
In one possible example, the third party application, prior to sending the data request to the hardware abstraction layer of the operating system:
the third-party application is used for sending a media platform version acquisition request carrying an authentication code to the media service module;
the media service module is used for receiving the media platform version acquisition request, verifying the authentication code and passing the verification;
the media service module is used for sending the media platform version information to the third-party application.
In one possible example, the media service module, after sending the media platform version information to the third party application:
the third-party application is used for receiving the media platform version information and sending a capability acquisition request carrying the media platform version information to the media service module;
the media service module is used for receiving the capability acquisition request, inquiring an application capability list of the media platform version information and sending the application capability list to the third-party application;
the third-party application is used for receiving the application capability list and inquiring the application capability list to acquire a plurality of android native functions supported by the current media platform aiming at the third-party application; and determining a target function selected to be opened in the plurality of android native functions.
In one possible example, the third-party application is used for displaying a plurality of android native functions on an application interface of the third-party application, and the target function is determined according to the selection of the plurality of android native functions by a user; the system is also used for determining the current application scene and determining the target function according to the application scene; and the media service module is further used for determining a current application scene, sending the application scene to the media service module, and determining the target function according to the application scene.
In accordance with the embodiment shown in fig. 2, please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application, and as shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for performing the following steps;
the third party application sends a data request to a hardware abstraction layer of the operating system;
the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
and the third party application receives the target application data and realizes the target function according to the target application data.
It can be seen that, in the embodiment of the present application, the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. Therefore, the data request is sent to the hardware abstraction layer through the third-party application, and the target application data returned by the hardware abstraction layer is obtained to realize the target function, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe opening of the bottom layer function are facilitated.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module; in the aspect of receiving the data request at the hardware abstraction layer, acquiring original application data to be processed, and calling an algorithm for implementing a target function to process the original application data to obtain target application data, the instruction in the program 521 is specifically configured to perform the following operations: the hardware abstraction module receives the data request, acquires original application data to be processed and sends the original application data to the algorithm management module; and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module through the media policy module; in the aspect of receiving the data request at the hardware abstraction layer, acquiring original application data to be processed, and calling an algorithm for implementing a target function to process the original application data to obtain target application data, the instruction in the program 521 is specifically configured to perform the following operations: the hardware abstraction module receives the data request, acquires original application data to be processed, and sends the original application data to the algorithm management module through the media strategy module; and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, wherein the hardware abstraction module is connected with the media policy module, and the media policy module is connected with the algorithm management module; in terms of implementing the algorithm of the target function to be open to the third-party application through the following operations, the instructions in the program 521 are specifically configured to perform the following operations: the media policy module receives first function configuration information from the media service module, wherein the first function configuration information comprises description information of the target function; converting the first function configuration information into second function configuration information which can be identified by the algorithm management module, and sending the second function configuration information to the algorithm management module; and the algorithm management module receives the second function configuration information and opens the use permission of the third-party application for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
In one possible example, the program 521 includes instructions for performing the following steps: before the media policy module receives first function configuration information from the media service module, the media service module determines the target function needed to be used by the third-party application, and generates the first function configuration information according to the target function; the media service module sends the first function configuration information to the media policy module.
In one possible example, the application layer of the operating system is further provided with a media management module, and the media management module supports the information interaction between the third-party application and the media service module through an SDK binder communication mechanism.
In one possible example, the program 521 includes instructions for performing the following steps: before the third-party application sends a data request to a hardware abstraction layer of the operating system, the third-party application sends a media platform version acquisition request carrying an authentication code to the media service module; the media service module receives the media platform version acquisition request, verifies the authentication code and passes the verification; and the media service module sends the media platform version information to the third-party application.
In one possible example, the program 521 includes instructions for performing the following steps: after the media service module sends the media platform version information to the third-party application, the third-party application receives the media platform version information and sends a capability acquisition request carrying the media platform version information to the media service module; the media service module receives the capability acquisition request, inquires an application capability list of the media platform version information, and sends the application capability list to the third-party application; the third-party application receives the application capability list, and inquires the application capability list to acquire a plurality of android native functions supported by the current media platform for the third-party application; and determining a target function selected to be opened in the plurality of android native functions.
In one possible example, the program 521 includes instructions for performing the following steps: the target function is determined by any one of the following methods: displaying a plurality of android native functions through an application interface of the third-party application, and determining a target function according to selection of a user for the plurality of android native functions; determining a current application scene by the third-party application, and determining the target function according to the application scene; and determining a current application scene by the third-party application, sending the application scene to the media service module, and determining the target function by the media service module according to the application scene.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of an application data processing apparatus 600 according to an embodiment of the present application. The application data processing device 600 is applied to electronic equipment, wherein the electronic equipment comprises a media service module and an operating system, and a third-party application is arranged on an application layer of the operating system; the application data processing apparatus includes a processing unit 601 and a communication unit 602, where the processing unit 601 is configured to execute any step in the above method embodiments, and when performing data transmission such as sending, the communication unit 603 is optionally invoked to complete a corresponding operation. The details will be described below.
The processing unit 601 is configured to control the third-party application to send a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data.
The application data processing apparatus 600 may further comprise a storage unit 603 for storing program codes and data of the electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch display screen or a transceiver, and the storage unit 603 may be a memory.
It can be seen that, in the embodiment of the present application, the electronic device includes a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the third party application sends a data request to a hardware abstraction layer of the operating system; the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third party application, wherein the algorithm of the target function is that the third party application requests an operating system to be open for the third party application in advance through the media service module; and the third party application receives the target application data and realizes the target function according to the target application data. Therefore, the data request is sent to the hardware abstraction layer through the third-party application, and the target application data returned by the hardware abstraction layer is obtained to realize the target function, so that the simplicity of obtaining the algorithm of the bottom layer of the electronic equipment by the third-party application and the safe opening of the bottom layer function are facilitated.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module; in the aspect of receiving the data request at the hardware abstraction layer, acquiring original application data to be processed, and calling an algorithm for implementing a target function to process the original application data to obtain target application data, the processing unit 601 is specifically configured to receive the data request, acquire the original application data to be processed, and send the original application data to the algorithm management module; and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module through the media policy module; in the aspect of receiving the data request at the hardware abstraction layer, acquiring original application data to be processed, and calling an algorithm for implementing a target function to process the original application data to obtain target application data, the processing unit 601 is specifically configured to receive the data request, acquire the original application data to be processed, and send the original application data to the algorithm management module through the media policy module; and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
In one possible example, a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, wherein the hardware abstraction module is connected with the media policy module, and the media policy module is connected with the algorithm management module; in terms of implementing the algorithm of the target function to be open to the third-party application specifically by the following operations, the processing unit 601 is specifically configured to receive, by the media policy module, first function configuration information from the media service module, where the first function configuration information includes description information of the target function; converting the first function configuration information into second function configuration information which can be identified by the algorithm management module, and sending the second function configuration information to the algorithm management module; and the algorithm management module receives the second function configuration information and opens the use permission of the third-party application for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
In a possible example, before the media policy module receives first function configuration information from the media service module, the media service module determines the target function that the third-party application needs to use, and generates the first function configuration information according to the target function; the media service module sends the first function configuration information to the media policy module.
In one possible example, the application layer of the operating system is further provided with a media management module, and the media management module supports the information interaction between the third-party application and the media service module through an SDK binder communication mechanism.
In a possible example, the processing unit 601 is further configured to, before the third party application sends a data request to a hardware abstraction layer of the operating system, send a media platform version obtaining request carrying an authentication code to the media service module by the third party application; the media service module receives the media platform version acquisition request, verifies the authentication code and passes the verification; and the media service module sends the media platform version information to the third-party application.
In a possible example, the processing unit 601 is further configured to, after the media service module sends the media platform version information to the third-party application, receive the media platform version information by the third-party application, and send a capability obtaining request carrying the media platform version information to the media service module; the media service module receives the capability acquisition request, inquires an application capability list of the media platform version information, and sends the application capability list to the third-party application; the third-party application receives the application capability list, and inquires the application capability list to acquire a plurality of android native functions supported by the current media platform for the third-party application; and determining a target function selected to be opened in the plurality of android native functions.
In a possible example, the processing unit 601 is further configured to determine the target function by any one of: displaying a plurality of android native functions through an application interface of the third-party application, and determining a target function according to selection of a user for the plurality of android native functions; determining a current application scene by the third-party application, and determining the target function according to the application scene; and determining a current application scene by the third-party application, sending the application scene to the media service module, and determining the target function by the media service module according to the application scene.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

1. The application data processing method is applied to electronic equipment, wherein the electronic equipment comprises a media service module and an operating system, and an application layer of the operating system is provided with a third-party application; the method comprises the following steps:
the third party application sends a data request to a hardware abstraction layer of the operating system;
the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm for realizing a target function to process the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
and the third party application receives the target application data and realizes the target function according to the target application data.
2. The method according to claim 1, wherein a hardware abstraction module and an algorithm management module are arranged on a hardware abstraction layer of the operating system, and the hardware abstraction module is connected with the algorithm management module;
the hardware abstraction layer receives the data request, acquires original application data to be processed, and calls an algorithm for realizing a target function to process the original application data to obtain target application data, and the method comprises the following steps:
the hardware abstraction module receives the data request, acquires original application data to be processed and sends the original application data to the algorithm management module;
and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
3. The method according to claim 1, wherein a hardware abstraction module, a media policy module and an algorithm management module are arranged on a hardware abstraction layer of the operating system, and the hardware abstraction module is connected with the algorithm management module through the media policy module;
the hardware abstraction layer receives the data request, acquires original application data to be processed, and calls an algorithm for realizing a target function to process the original application data to obtain target application data, and the method comprises the following steps:
the hardware abstraction module receives the data request, acquires original application data to be processed, and sends the original application data to the algorithm management module through the media strategy module;
and the algorithm management module receives the original application data, and processes the original application data by using the algorithm of the target function to obtain target application data.
4. The method according to claim 1, wherein a hardware abstraction module, a media policy module and an algorithm management module are arranged on a hardware abstraction layer of the operating system, the hardware abstraction module is connected with the media policy module, and the media policy module is connected with the algorithm management module;
the algorithm of the target function is specifically opened to the third-party application through the following operations:
the media policy module receives first function configuration information from the media service module, wherein the first function configuration information comprises description information of the target function; converting the first function configuration information into second function configuration information which can be identified by the algorithm management module, and sending the second function configuration information to the algorithm management module;
and the algorithm management module receives the second function configuration information and opens the use permission of the third-party application for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
5. The method of claim 4, wherein before the media policy module receives the first functional configuration information from the media service module, the method further comprises:
the media service module determines the target function needed to be used by the third-party application, and generates the first function configuration information according to the target function;
the media service module sends the first function configuration information to the media policy module.
6. The method according to any one of claims 1 to 5, wherein a media management module is further provided in the application layer of the operating system, and the media management module supports information interaction between the third-party application and the media service module through an SDK binder communication mechanism.
7. The method of claim 6, wherein prior to the third party application sending a data request to a hardware abstraction layer of the operating system, the method further comprises:
the third-party application sends a media platform version acquisition request carrying an authentication code to the media service module;
the media service module receives the media platform version acquisition request, verifies the authentication code and passes the verification;
and the media service module sends the media platform version information to the third-party application.
8. The method of claim 7, wherein after the media service module sends the media platform version information to the third-party application, the method further comprises:
the third party application receives the media platform version information and sends a capability acquisition request carrying the media platform version information to the media service module;
the media service module receives the capability acquisition request, inquires an application capability list of the media platform version information, and sends the application capability list to the third-party application;
the third-party application receives the application capability list, and inquires the application capability list to acquire a plurality of android native functions supported by the current media platform for the third-party application; and determining a target function selected to be opened in the plurality of android native functions.
9. The method of claim 8, wherein the target function is determined by any one of:
displaying a plurality of android native functions through an application interface of the third-party application, and determining a target function according to selection of a user for the plurality of android native functions; and the number of the first and second groups,
determining a current application scene by the third-party application, and determining the target function according to the application scene; and the number of the first and second groups,
and determining a current application scene by the third-party application, sending the application scene to the media service module, and determining the target function by the media service module according to the application scene.
10. The application data processing device is applied to electronic equipment and comprises a media service module and an operating system, wherein a third-party application is arranged on an application layer of the operating system; wherein the content of the first and second substances,
the third party application is used for sending a data request to a hardware abstraction layer of the operating system;
the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, calling an algorithm for realizing a target function to process the original application data to obtain target application data, and sending the target application data to the third-party application, wherein the algorithm of the target function is that the third-party application requests an operating system to be open for the third-party application in advance through the media service module;
the third party application is further configured to receive the target application data and implement the target function according to the target application data.
11. The device of claim 10, wherein a hardware abstraction module and an algorithm management module are provided in a hardware abstraction layer of the operating system, and the hardware abstraction module is connected to the algorithm management module; wherein the content of the first and second substances,
and aiming at the hardware abstraction layer, the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, and calling an algorithm for realizing a target function to process the original application data to obtain target application data:
the hardware abstraction module is used for receiving the data request, acquiring original application data to be processed and sending the original application data to the algorithm management module;
and the algorithm management module is used for receiving the original application data, and processing the original application data by using the algorithm of the target function to obtain target application data.
12. The device of claim 10, wherein a hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module and an algorithm management module, and the hardware abstraction module is connected with the algorithm management module through the media policy module; wherein the content of the first and second substances,
and aiming at the hardware abstraction layer, the hardware abstraction layer is used for receiving the data request, acquiring original application data to be processed, and calling an algorithm for realizing a target function to process the original application data to obtain target application data:
the hardware abstraction module is used for receiving the data request, acquiring original application data to be processed, and sending the original application data to the algorithm management module through the media strategy module;
and the algorithm management module is used for receiving the original application data, and processing the original application data by using the algorithm of the target function to obtain target application data.
13. The apparatus according to claim 10, wherein a hardware abstraction module, a media policy module and an algorithm management module are provided at a hardware abstraction layer of the operating system, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm management module; wherein the content of the first and second substances,
the algorithm of the target function is specifically opened to the third-party application through the following modules:
the media policy module is configured to receive first function configuration information from the media service module, where the first function configuration information includes description information of the target function; converting the first function configuration information into second function configuration information which can be identified by the algorithm management module, and sending the second function configuration information to the algorithm management module;
and the algorithm management module is used for receiving the second function configuration information and opening the use permission of the third-party application for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
14. The apparatus of claim 13, wherein the media policy module, prior to receiving the first functional configuration information from the media service module:
the media service module is configured to determine the target function that the third-party application needs to use, and generate the first function configuration information according to the target function;
the media service module is configured to send the first function configuration information to the media policy module.
15. The apparatus according to any one of claims 10-14, wherein the application layer of the operating system is further provided with a media management module; wherein the content of the first and second substances,
and the media management module is used for supporting the realization of the information interaction between the third-party application and the media service module through an SDK binder communication mechanism.
16. The apparatus of claim 15, wherein the third-party application, prior to sending the data request to the hardware abstraction layer of the operating system:
the third-party application is used for sending a media platform version acquisition request carrying an authentication code to the media service module;
the media service module is used for receiving the media platform version acquisition request, verifying the authentication code and passing the verification;
the media service module is used for sending the media platform version information to the third-party application.
17. The apparatus of claim 16, wherein the media service module, after sending the media platform version information to the third-party application:
the third-party application is used for receiving the media platform version information and sending a capability acquisition request carrying the media platform version information to the media service module;
the media service module is used for receiving the capability acquisition request, inquiring an application capability list of the media platform version information and sending the application capability list to the third-party application;
the third-party application is used for receiving the application capability list and inquiring the application capability list to acquire a plurality of android native functions supported by the current media platform aiming at the third-party application; and determining a target function selected to be opened in the plurality of android native functions.
18. The apparatus of claim 17, wherein the third-party application is configured to display a plurality of android native functions in an application interface of the third-party application, and wherein the target function is determined according to a user selection of the plurality of android native functions; the system is also used for determining the current application scene and determining the target function according to the application scene; and the media service module is further used for determining a current application scene, sending the application scene to the media service module, and determining the target function according to the application scene.
19. A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is installed performs the method of any one of claims 1-9.
20. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-9.
CN201911263287.6A 2019-12-09 2019-12-09 Application data processing method and related device Pending CN111061524A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911263287.6A CN111061524A (en) 2019-12-09 2019-12-09 Application data processing method and related device
PCT/CN2020/129137 WO2021115038A1 (en) 2019-12-09 2020-11-16 Application data processing method and related apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911263287.6A CN111061524A (en) 2019-12-09 2019-12-09 Application data processing method and related device

Publications (1)

Publication Number Publication Date
CN111061524A true CN111061524A (en) 2020-04-24

Family

ID=70300495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911263287.6A Pending CN111061524A (en) 2019-12-09 2019-12-09 Application data processing method and related device

Country Status (2)

Country Link
CN (1) CN111061524A (en)
WO (1) WO2021115038A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330519A (en) * 2020-11-17 2021-02-05 珠海大横琴科技发展有限公司 Data processing method and device
WO2021115113A1 (en) * 2019-12-09 2021-06-17 Oppo广东移动通信有限公司 Data processing method and device, and storage medium
WO2021115038A1 (en) * 2019-12-09 2021-06-17 Oppo广东移动通信有限公司 Application data processing method and related apparatus
CN113778458A (en) * 2021-08-19 2021-12-10 北京爱芯科技有限公司 Data processor function development system, method and computing equipment
WO2022161106A1 (en) * 2021-01-29 2022-08-04 华为技术有限公司 Electronic device, data transmission method between electronic device and another electronic device, and medium
CN116339870A (en) * 2023-05-22 2023-06-27 南京美乐威电子科技有限公司 Method for scheduling hardware interface of equipment by third-party application and audio/video processing equipment
WO2023123786A1 (en) * 2021-12-28 2023-07-06 北京小米移动软件有限公司 Video data processing method, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009252194A (en) * 2008-04-11 2009-10-29 Nec Electronics Corp Data processor, hardware access method, and hardware access program
CN104657956A (en) * 2015-03-16 2015-05-27 龙旗电子(惠州)有限公司 Method for realizing smart phone picture beautifying function
CN109101352A (en) * 2018-08-30 2018-12-28 Oppo广东移动通信有限公司 Algorithm framework, algorithm call method, device, storage medium and mobile terminal
CN110113483A (en) * 2019-04-19 2019-08-09 华为技术有限公司 Use the powerful method of the increasing of electronic equipment and relevant apparatus

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200913B (en) * 2011-06-20 2014-05-07 奇瑞汽车股份有限公司 Layered design method of model-based automatic transmission software development platform
CN110177218B (en) * 2019-06-28 2021-06-04 广州鲁邦通物联网科技有限公司 Photographing image processing method of android device
CN110933313B (en) * 2019-12-09 2021-07-16 Oppo广东移动通信有限公司 Dark light photographing method and related equipment
CN110991369A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Image data processing method and related device
CN110990088B (en) * 2019-12-09 2023-08-11 Oppo广东移动通信有限公司 Data processing method and related equipment
CN111061524A (en) * 2019-12-09 2020-04-24 Oppo广东移动通信有限公司 Application data processing method and related device
CN110941821A (en) * 2019-12-09 2020-03-31 Oppo广东移动通信有限公司 Data processing method, device and storage medium
CN111045518B (en) * 2019-12-09 2023-06-30 上海瑾盛通信科技有限公司 Method and related device for acquiring attitude data
CN110991368B (en) * 2019-12-09 2023-06-02 上海瑾盛通信科技有限公司 Camera scene recognition method and related device
CN110933275B (en) * 2019-12-09 2021-07-23 Oppo广东移动通信有限公司 Photographing method and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009252194A (en) * 2008-04-11 2009-10-29 Nec Electronics Corp Data processor, hardware access method, and hardware access program
CN104657956A (en) * 2015-03-16 2015-05-27 龙旗电子(惠州)有限公司 Method for realizing smart phone picture beautifying function
CN109101352A (en) * 2018-08-30 2018-12-28 Oppo广东移动通信有限公司 Algorithm framework, algorithm call method, device, storage medium and mobile terminal
CN110113483A (en) * 2019-04-19 2019-08-09 华为技术有限公司 Use the powerful method of the increasing of electronic equipment and relevant apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021115113A1 (en) * 2019-12-09 2021-06-17 Oppo广东移动通信有限公司 Data processing method and device, and storage medium
WO2021115038A1 (en) * 2019-12-09 2021-06-17 Oppo广东移动通信有限公司 Application data processing method and related apparatus
CN112330519A (en) * 2020-11-17 2021-02-05 珠海大横琴科技发展有限公司 Data processing method and device
WO2022161106A1 (en) * 2021-01-29 2022-08-04 华为技术有限公司 Electronic device, data transmission method between electronic device and another electronic device, and medium
CN113778458A (en) * 2021-08-19 2021-12-10 北京爱芯科技有限公司 Data processor function development system, method and computing equipment
CN113778458B (en) * 2021-08-19 2024-04-05 北京爱芯科技有限公司 Data processor function development system, method and computing device
WO2023123786A1 (en) * 2021-12-28 2023-07-06 北京小米移动软件有限公司 Video data processing method, electronic device, and storage medium
CN116339870A (en) * 2023-05-22 2023-06-27 南京美乐威电子科技有限公司 Method for scheduling hardware interface of equipment by third-party application and audio/video processing equipment

Also Published As

Publication number Publication date
WO2021115038A1 (en) 2021-06-17

Similar Documents

Publication Publication Date Title
CN111061524A (en) Application data processing method and related device
CN108595970B (en) Configuration method and device of processing assembly, terminal and storage medium
CN110995994B (en) Image shooting method and related device
CA2855110A1 (en) Systems, methods and devices for providing visual privacy to messages
CN104967511A (en) Processing method for enciphered data, and apparatus thereof
CN111357255B (en) Building a trusted application common to multiple applications
JP6163610B2 (en) Forgery prevention verification method, apparatus, program, and recording medium
CN110941821A (en) Data processing method, device and storage medium
US20210224784A1 (en) Fare payment
CN109952775B (en) Profile information exchange system and method
CN110991368A (en) Camera scene recognition method and related device
CN113259301A (en) Account data sharing method and electronic equipment
CN110971830B (en) Anti-shake method for video shooting and related device
WO2021129859A1 (en) Two-dimensional code processing method and device
CN113468606A (en) Application program access method and electronic equipment
CN111062025B (en) Application data processing method and related device
CN114637938A (en) Page rendering method, device, equipment and medium
CN110996088B (en) Video processing method and related device
CN113850633B (en) Information pushing method and device
CN110996089B (en) Volume calculation method and related device
KR20160094205A (en) Method for providing ARS service and terminal thereof
CN109933960A (en) Service call control method, service calling method, device and terminal
WO2022242343A1 (en) Cross-device text continuity method and electronic device
CN116419202B (en) Method and device for remotely accessing Subscriber Identity Module (SIM) card
CN114205099B (en) Webpage authentication method, electronic equipment and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424

RJ01 Rejection of invention patent application after publication