WO2021115038A1 - Application data processing method and related apparatus - Google Patents

Application data processing method and related apparatus Download PDF

Info

Publication number
WO2021115038A1
WO2021115038A1 PCT/CN2020/129137 CN2020129137W WO2021115038A1 WO 2021115038 A1 WO2021115038 A1 WO 2021115038A1 CN 2020129137 W CN2020129137 W CN 2020129137W WO 2021115038 A1 WO2021115038 A1 WO 2021115038A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
module
media
algorithm
application data
Prior art date
Application number
PCT/CN2020/129137
Other languages
French (fr)
Chinese (zh)
Inventor
杨平平
方攀
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021115038A1 publication Critical patent/WO2021115038A1/en

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

Definitions

  • This application relates to the technical field of electronic equipment, and in particular to an application data processing method and related devices.
  • third-party application software is used more and more widely in electronic devices, and as users have higher and higher requirements for third-party applications to process data, third-party applications need to use stronger enhanced functions Or data processed through algorithms to meet user needs.
  • the embodiments of the present application provide application data processing methods and related devices.
  • an embodiment of the present application provides an application data processing method, which is applied to an electronic device, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; the method includes :
  • the third-party application sends a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application.
  • Target application data wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
  • the third-party application receives the target application data, and implements the target function according to the target application data.
  • an embodiment of the present application provides an application data processing device applied to an electronic device.
  • the application data processing device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; wherein,
  • the third-party application is used to send a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
  • the third-party application is also used to receive the target application data, and implement the target function according to the target application data.
  • an embodiment of the present application provides a chip, including: a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes any of the methods in the first aspect of the embodiments of the present application Step instructions.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs.
  • the one or more programs are stored in the memory and configured to be processed by the above-mentioned memory.
  • the above program includes instructions for executing the steps in any method in the first aspect of the embodiments of the present application.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an application data processing method provided by an embodiment of the present application
  • FIG. 3 is a schematic flowchart of another application data processing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an application data processing apparatus provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 6 is a block diagram of functional units of an application data processing device provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of this application may include various handheld devices (smart phones, tablet computers, etc.) with wireless communication functions, vehicle-mounted devices (navigators, vehicle-mounted refrigerators, vehicle-mounted vacuum cleaners, etc.), wearable devices (smart phones, etc.) Watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (UE), mobile stations (mobile station, MS), terminal device (terminal device) and so on.
  • UE user equipment
  • MS mobile stations
  • terminal device terminal device
  • the embodiments of this application are applied to electronic devices with an operating system.
  • the operating system is a computer program that manages computer hardware and software resources.
  • the operating system can be at least one of the following: Android, Windows, Apple, Symbian, Hongmeng
  • the system, Linux operating system, etc. are not limited here.
  • the embodiments of the present application provide an application data processing method and related devices.
  • the following describes the embodiments of the present application in detail.
  • the third-party application sends a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application.
  • Target application data wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
  • the third-party application receives the target application data, and implements the target function according to the target application data.
  • the 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 to the algorithm management module;
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data, including:
  • 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;
  • the algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data, and obtains the target application data.
  • the 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 to the algorithm management module through the media policy module;
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data, including:
  • 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, uses the algorithm of the target function to process the original application data, and obtains the target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the The algorithm management module;
  • the algorithm of the target function is specifically opened to the third-party application through the following operations:
  • the media strategy module receives first function configuration information from the media service module, where the first function configuration information includes description information of the target function; and converts the first function configuration information into the algorithm management module Recognizable second function configuration information, and sending the second function configuration information to the algorithm management module;
  • the algorithm management module receives the second function configuration information, and opens the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
  • the method further includes:
  • the media service module sends the first function configuration information to the media policy module.
  • the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  • the method further includes:
  • the media service module receives the media platform version acquisition request, verifies the authentication code and the verification passes;
  • the media service module sends the media platform version information to the third-party application.
  • the method further includes:
  • 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, queries the 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 list of application capabilities, queries the list of application capabilities to obtain multiple native Android functions supported by the current media platform for the third-party application; and determines that the multiple native Android functions are selected Open target function.
  • the target function is determined by any of the following methods:
  • the current application scenario is determined by the third-party application, and the target function is determined according to the application scenario;
  • the third-party application determines the current application scenario, and sends the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
  • An embodiment of the present application provides an application data processing device, which is applied to an electronic device, the application data processing device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; wherein,
  • the third-party application is used to send a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
  • the third-party application is also used to receive the target application data, and implement the target function according to the target application data.
  • the 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 to the algorithm management module;
  • the hardware abstraction layer it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
  • the hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module;
  • the algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
  • the 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 to the algorithm management module through the media policy module; wherein ,
  • the hardware abstraction layer it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
  • the hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module through the media policy module;
  • the algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the The algorithm management module; among them,
  • the algorithm of the target function is implemented to be open 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; and convert the first function configuration information into the Second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module;
  • the algorithm management module is configured to receive the second function configuration information, and according to the second function configuration information, open the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system .
  • the media policy module is configured to receive the first function 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.
  • the application layer of the operating system is further provided with a media management module; wherein,
  • the media management module is used to support information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  • the third-party application is used to send a media platform version acquisition request carrying an authentication code to the media service module;
  • the media service module is configured to receive the media platform version acquisition request, verify the authentication code and pass the verification;
  • the media service module is configured to send the media platform version information to the third-party application.
  • the media service module is configured to send the media platform version information to the third-party application:
  • the third-party application is configured to receive the media platform version information, and send a capability acquisition request carrying the media platform version information to the media service module;
  • the media service module is configured to receive the capability acquisition request, query the application capability list of the media platform version information, and send the application capability list to the third-party application;
  • the third-party application is configured to receive the application capability list, query the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple Android native functions The target function that was selected to open in.
  • the third-party application is used to display multiple Android native functions on the application interface of the third-party application, and determine the target function according to the user's selection of the multiple Android native functions; it is also used to determine the current application scenario, according to The application scenario determines the target function; it is also used to determine the current application scenario, and send the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
  • An embodiment of the present application provides a chip, including a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes any of the application data processing methods in the present application.
  • An embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs.
  • the one or more programs are stored in the memory and configured by the processor. Execution, the program includes instructions for executing any of the steps in the application data processing method in this application.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device involved in the embodiment of the present application includes a media service module and an operating system (for example, an Android operating system, which is not uniquely limited here).
  • the application layer of the operating system is provided with third-party applications and media.
  • a management module also called a media interface module
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module (this is an Android native module, such as a native camera hardware abstraction module CameraHAL), a media strategy module, and an algorithm management module.
  • the native architecture of the operating system also includes a framework layer and a driver layer.
  • the framework layer includes application interfaces of various native applications (such as native camera application program interfaces), application services (such as native camera services), and framework layer interfaces (such as Google HAL3 interface),
  • the hardware abstraction layer includes hardware abstraction layer interfaces (for example: HAL3.0), hardware abstraction modules for various native applications (such as camera hardware abstraction modules), and the driver layer includes various drivers (for example, screen Display driver, audio Audio driver, etc.),
  • the driver layer is used to enable various hardware of electronic devices, such as image signal processor ISP+ front-end image sensor sensors and so on.
  • the media service module is independent of operating system settings
  • third-party applications can communicate with the media service module through the media management module
  • the media service module can communicate through application interfaces, application services, framework layer interfaces, hardware abstraction layer interfaces, and hardware abstraction modules.
  • the composed Android native information link communicates with the media strategy module
  • the media strategy module communicates with the algorithm management module.
  • the algorithm management module maintains the Android native algorithm library.
  • the algorithm library includes enhanced functions supported by various native applications, such as native camera applications. , Support it to realize various enhancement functions such as binocular camera, beautification, sharpening, night scene and so on.
  • the media service module can also directly communicate with the media strategy module or the algorithm management module.
  • FIG. 2 is a schematic flowchart of an application data processing method provided by an embodiment of the present application.
  • the application data processing method can be applied to the electronic device shown in FIG. 1, and the electronic device includes a media service module and Operating system, the application layer of the operating system is provided with third-party applications; as shown in the figure, the application data processing method includes the following operations.
  • S201 The third-party application sends a data request to the hardware abstraction layer of the operating system
  • the operating system may be an Android system.
  • the third-party applications may be various applications that need to use the underlying application data of the electronic device, such as camera applications and map applications.
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, and invokes an algorithm for realizing the target function to process the original application data, obtains the target application data, and sends it to the third-party application
  • the target application data wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
  • the hardware abstraction module receives a data request from a third-party application, obtains the original application data of the hardware abstraction layer to be processed according to the data request, and requests the operating system to target the operating system in advance according to the third-party application through the media service module.
  • the algorithm of the target function opened by the third-party application processes the original application data and returns the processed data to the third-party application.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module; the hardware abstraction layer receives the data request, obtains the original application data to be processed, and invokes the The algorithm processes the original application data to obtain target application data, including:
  • the hardware abstraction module receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data.
  • the application data includes at least one of the following: network application data from the network side received by the third-party application; and local application data obtained by the hardware abstraction module calling the driver enabling hardware for information collection.
  • the media service module specifically implements sending the first function configuration information to the media policy module through any communication link: the media service module, the application interface of the framework layer of the operating system, application services, A framework layer interface, a hardware abstraction interface of the hardware abstraction layer of the operating system, a first communication link composed of the hardware abstraction module and the media policy module in series; and, the media service module and the media policy A second communication link composed of modules in series; and a third communication link composed of the media service module, the algorithm management module, and the media strategy module in series.
  • third-party applications can communicate with the media service module through the media management module, and the media service module can pass through the Android native information link composed of application interfaces, application services, framework layer interfaces, hardware abstraction layer interfaces, and hardware abstraction modules.
  • Communicate with the media strategy module the media strategy module communicates with the algorithm management module, and the algorithm management module maintains Android's native algorithm library.
  • the algorithm library includes enhancements supported by various native applications, such as native camera applications that support binocular photography , Beauty, sharpening, night scene and other enhancement functions.
  • the media service module can also directly communicate with the media strategy module or the algorithm management module.
  • S203 The third-party application receives the target application data, and implements the target function according to the target application data.
  • the third-party application realizes the target function according to the processed target application data returned by the hardware abstraction layer.
  • the electronic device includes a media service module and an operating system.
  • the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application
  • the media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data.
  • the 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 to the algorithm management module; the hardware abstraction layer receives the data request and obtains The original application data to be processed, and the algorithm used to realize the target function is called to process the original application data to obtain the target application data, including: the hardware abstraction module receives the data request, obtains the original application data to be processed, and Send the original application data to the algorithm management module; the algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data, and obtains the target application data.
  • the media service module is independent of operating system settings, and the media service module can directly enable the algorithm modules in the algorithm library through the algorithm management module, thereby realizing the enhanced function of opening native application associations for third-party applications.
  • the hardware abstraction layer obtains network application data from a third-party application and/or calls target application data obtained by a driver-enabled sensor.
  • the media service module sends the binder message to the bottom layer HAL, and converts the parameters sent by the upper layer into parameters that can be recognized by the bottom layer.
  • the data request is received by the hardware abstraction module set in the hardware abstraction layer, the original application data to be processed is obtained according to the data request and sent to the algorithm management module, and the algorithm management module then processes the original application data according to the algorithm of the target function , Get the target application data.
  • the hardware abstraction module receives the data request, then obtains the original application data to be processed and sends it to the algorithm management module, and then the algorithm management module uses the algorithm of the target function to process the original application data to obtain the target application data, which is managed by the algorithm
  • the module is pre-configured with the supported data, and can be supported after the three parties meet their needs, which is conducive to third-party applications to obtain the underlying capabilities.
  • the 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 to the algorithm management module through the media policy module;
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls the algorithm for realizing the target function to process the original application data to obtain the target application data, including: the hardware abstraction module receives the data request , Obtain the original application data to be processed, and send the original application data to the algorithm management module through the media strategy module; the algorithm management module receives the original application data, and uses the algorithm of the target function to process all
  • the original application data is described to obtain the target application data.
  • the data request is received by the hardware abstraction module set in the hardware abstraction layer, the original application data to be processed is obtained according to the data request, and the original application data is processed by the media policy module and sent to the algorithm management module.
  • the management module then processes the original application data according to the algorithm of the target function to obtain the target application data.
  • the media service module can enable the algorithm modules in the algorithm library through the Android native information link, the media strategy module, and the algorithm management module, or directly enable the algorithm modules in the algorithm library through the media strategy module and the algorithm management module.
  • the algorithm module or directly enable the algorithm module in the algorithm library through the algorithm management module, so as to realize the enhanced function of opening native application associations for third-party applications.
  • 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 strategy module; the algorithm management module receives the original application data, and uses the algorithm of the target function to process the original application data.
  • Application data to obtain target application data is conducive to the realization of enhanced functions of opening native application associations for third-party applications.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the media policy module.
  • 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, and the first function configuration information includes The description information of the target function; convert the first function configuration information into second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module;
  • the algorithm management module receives the second function configuration information, and opens the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
  • the media strategy module converts the first function configuration information of the target function into the second function configuration information that can be recognized by the algorithm management module, and finally sends it to the algorithm management module.
  • the algorithm management module then opens the use authority of the algorithm of the target function according to the received second configuration information.
  • the media policy module converts the first configuration information of the enhanced function that is selected to be opened into second configuration information that can be recognized by the algorithm management module, and the media policy module sends the second configuration information to the algorithm management module.
  • Intermediate information has a conversion process, instead of directly using the underlying capabilities, preventing third parties from directly coupling to see the underlying capabilities, which helps to ensure the security of the open underlying capabilities.
  • the method before the media policy module receives the first function configuration information from the media service module, the method further includes: the media service module determines all the third-party applications that need to be used.
  • the target function 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.
  • the media service module responds to data requests from three parties, determines the target function that the third-party application needs to use and the corresponding first function configuration information according to the data request, and then transfers the first function configuration information to the bottom layer, that is, the first function configuration
  • the information is sent to the media policy module, and the media policy module then processes the first function configuration information.
  • 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, which can allow the first function configuration information according to the configuration information.
  • Third-party applications use underlying algorithms, which is conducive to third-party applications using underlying enhanced functions or target application data processed through underlying algorithms.
  • the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  • the media management module implements information interaction between third-party applications and the media service module through the SDK binder communication mechanism, and the binder is implemented based on memory mapping.
  • Third-party applications are connected with the media service module through SDK binder messages, and the media service module and third-party applications communicate completely through binder messages, and can obtain each other's service status.
  • the media management module will binder messages to the hardware abstraction layer, convert the data sent by third-party applications into information that can be identified by the bottom layer, and pass the configuration information of the third-party applications to the media service module, and the media service module responds The configuration request of the third-party application enables the configuration information to the bottom layer.
  • the media management module supports information interaction through the SDK binder communication mechanism, which is beneficial to improve the performance, security, and efficiency of third-party applications when they obtain the underlying capabilities.
  • the method further includes: the third-party application sends an authentication code to the media service module The media platform version acquisition request; the media service module receives the media platform version acquisition request, verifies the authentication code and the verification passes; the media service module sends the media platform version to the third-party application information.
  • the media service module receives the media platform version acquisition request, verifies the authentication code and the verification is passed, including: the media platform service module obtains a pre-configured asymmetric private key of a third-party application; media platform services The module uses the asymmetric private key to decrypt the authentication code to obtain the APP signature key, system date, and agreed fields of the third-party application; the media platform service module determines the verification pass according to the APP signature key, system date, and agreed fields. For example, the media service module receives a media platform version acquisition request carrying an authentication code from a third-party application, and then verifies the authentication code. If the verification succeeds, it returns the request to the third-party application. Media platform version information, for example, a string such as "1.1:1.2" can be returned.
  • the APP signature key can be understood as the permission to install a third-party application.
  • the third-party application After downloading the third-party application to the electronic device, the third-party application is given to the internal server, and the internal server is based on the third-party application’s APP signature key and system date.
  • the agreed fields and other information are encrypted with an asymmetric public key to obtain the authentication code.
  • the encrypted information can also be information such as the authorization duration.
  • the media service module receives the authentication code from the third-party application, it will obtain the pre-configured and public authentication code.
  • the key corresponds to the asymmetric private key of the third-party application, and then use this asymmetric private key to decrypt the authentication to obtain the third-party application’s APP signature key, system date, agreed fields and other information, and then the system judges this information , If the information is correct, the verification is passed.
  • 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 the verification passes; the media service module sends Third-party applications send media platform version information, through encryption, authorization, and decryption, which can effectively control security and help ensure the security of the underlying core functions.
  • the method further includes: the third-party application receives the media platform version information, and sends the media platform version information to the third-party application.
  • the media service module sends a capability acquisition request carrying the media platform version information;
  • the media service module receives the capability acquisition request, queries the application capability list of the media platform version information, and sends the third-party application Application capability list;
  • the third-party application receives the application capability list, queries the application capability list to obtain a plurality of Android native functions supported by the current media platform for the third-party application; and determines the plurality of Android native functions The target function selected to be opened in the function.
  • the application capability list can list all the capabilities that the media platform currently in use supports for this third-party application, that is, the capabilities that can be opened to the third-party application to access.
  • the third-party application can determine the capability list according to the media platform version information, determine the selected enhancement function according to the capability list, and then interact with the media management module, media service module, algorithm management module, and hardware abstraction module to finally implement the call
  • the corresponding algorithm module processes the underlying application data, so as to ensure that the enhanced functions are open and safe.
  • the target function is determined in any of the following ways: multiple Android native functions are displayed through the application interface of the third-party application, and according to the user's selection of the multiple Android native functions Determine the target function; and, the third-party application determines the current application scenario, and the target function is determined according to the application scenario; and, the third-party application determines the current application scenario, and sends the application scenario For the media service module, the media service module determines the target function according to the application scenario.
  • the display interface of the electronic device displays the application interface of the third-party application
  • the application interface includes multiple Android native functions
  • the target function is determined according to the user's selection of multiple Android native functions, or the current application scenario determined by the third-party application Determine the target function, or the media service module determines the target function according to the application scenario determined by the third-party application.
  • the display interface of the electronic device displays the application interface of a third-party application
  • the application interface includes multiple native Android functions.
  • multiple native Android camera functions can include filters, beauty, and adjustments. Focus, binocular photography, portrait recognition, sharpening, night scene, etc., and then determine the target function according to the user's choice; determine the target function according to the current application scene determined by the third-party application, for example, the third-party application is a camera and the current application scene is determined to be night scene shooting When the time, it can be determined that the target function is the night scene shooting function of the Android native camera.
  • the target function is determined according to the user's choice to display multiple Android native functions through the application interface of the third-party application, or the third-party application determines the current application scenario to determine the target function, or the media service module determines the target function according to the third-party application.
  • the application determines the current application scenario to determine the target function, and realizes the simplicity and diversity of third-party applications to call the underlying capabilities.
  • FIG. 3 is a schematic flowchart of an application data processing method provided by an embodiment of the present application.
  • the application data processing method can be applied to the electronic device shown in FIG. 1, and the electronic device includes a media service module and Operating system, the application layer of the operating system is provided with third-party applications; as shown in the figure, the application data processing method includes the following operations.
  • S301 The third-party application sends a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, the hardware abstraction module is connected to the algorithm management module, and the hardware abstraction module receives the data request and obtains the original application data to be processed , And send the original application data to the algorithm management module;
  • the algorithm management module receives the original application data, and uses the algorithm of the target function to process the original application data to obtain target application data;
  • S304 The third-party application receives the target application data, and implements the target function according to the target application data.
  • the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application
  • the media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data.
  • FIG. 4 is a schematic structural diagram of an application data processing apparatus provided by an embodiment of the present application; applied to electronic equipment, the application data processing apparatus includes a media service A module and an operating system, the application layer of the operating system is provided with third-party applications; wherein,
  • the third-party application is used to send a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
  • the third-party application is also used to receive the target application data, and implement the target function according to the target application data.
  • the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application
  • the media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data.
  • the 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 to the algorithm management module;
  • the hardware abstraction layer it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
  • the hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module;
  • the algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
  • the 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 to the algorithm management module through the media policy module;
  • the hardware abstraction layer it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
  • the hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module through the media policy module;
  • the algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm Management module; among them,
  • the algorithm of the target function is implemented to be open 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; and convert the first function configuration information into the Second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module;
  • the algorithm management module is configured to receive the second function configuration information, and according to the second function configuration information, open the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system .
  • the media policy module before the media policy module is configured to receive the first function 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.
  • the application layer of the operating system is also provided with a media management module; wherein,
  • the media management module is used to support information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  • the third-party application is used to send a media platform version acquisition request carrying an authentication code to the media service module;
  • the media service module is configured to receive the media platform version acquisition request, verify the authentication code and pass the verification;
  • the media service module is configured to send the media platform version information to the third-party application.
  • the media service module is configured to send the media platform version information to the third-party application:
  • the third-party application is configured to receive the media platform version information, and send a capability acquisition request carrying the media platform version information to the media service module;
  • the media service module is configured to receive the capability acquisition request, query the application capability list of the media platform version information, and send the application capability list to the third-party application;
  • the third-party application is configured to receive the application capability list, query the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple Android native functions The target function that was selected to open in.
  • the third-party application is used to display multiple native Android functions on the application interface of the third-party application, and the target function is determined according to the user's selection of the multiple native Android functions; it is also used to determine the current The application scenario of, determines the target function according to the application scenario; is also used to determine the current application scenario, and sends the application scenario to the media service module, which is determined by the media service module according to the application scenario The target function.
  • FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
  • 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 above-mentioned memory 520 and are configured to be executed by the above-mentioned application processor 510, and the one or more The program 521 includes instructions for performing the following steps;
  • the third-party application sends a data request to the hardware abstraction layer of the operating system
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application.
  • Target application data wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
  • the third-party application receives the target application data, and implements the target function according to the target application data.
  • the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application
  • the media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, the hardware abstraction module is connected to the algorithm management module; the data request is received at the hardware abstraction layer to obtain The original application data to be processed, and the algorithm used to achieve the target function is called to process the original application data to obtain the target application data.
  • the instructions in the program 521 are specifically used to perform the following operations: 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; the algorithm management module receives the original application data, and uses the algorithm of the target function to process the original application Data to get the target application data.
  • the 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 to the algorithm management module through the media policy module;
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls the algorithm used to realize the target function to process the original application data to obtain the target application data.
  • the instructions in the program 521 are specifically used for execution The following operations: 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 The original application data is processed by using the algorithm of the target function to obtain the target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm Management module; in terms of the algorithm of the target function being opened to the third-party application through the following operations, the instructions in the program 521 are specifically used to perform the following operations: the media policy module receives from the media service module
  • the first function configuration information includes the description information of the target function; the first function configuration information is converted into the second function configuration information that can be recognized by the algorithm management module, and the information is sent to all
  • the algorithm management module sends the second function configuration information; the algorithm management module receives the second function configuration information, and opens the third-party application's algorithm library for the operating system according to the second function configuration information The right to use the algorithm of the target function.
  • the program 521 includes instructions for performing the following steps: before the media policy module receives the first function configuration information from the media service module, the media service module determines the first function configuration information The target function required by the three-party application 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.
  • the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  • the program 521 includes instructions for performing the following steps: before the third-party application sends a data request to the hardware abstraction layer of the operating system, the third-party application sends a request to the media service
  • the module sends a media platform version acquisition request carrying an authentication code; the media service module receives the media platform version acquisition request, verifies the authentication code and the verification passes; the media service module sends the third party
  • the application sends the media platform version information.
  • 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, sending a capability acquisition request carrying the media platform version information to the media service module; the media service module receives the capability acquisition request, queries the application capability list of the media platform version information, and sends the The third-party application sends the application capability list; the third-party application receives the application capability list, and queries the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and Determine the selected and open target function among the multiple Android native functions.
  • the program 521 includes instructions for executing the following steps: the target function is determined by any of the following methods: multiple Android native functions are displayed through the application interface of the third-party application , Determine the target function according to the user's selection of the multiple Android native functions; and, determine the current application scenario by the third-party application, and determine the target function according to the application scenario; and, by the third-party application The current application scenario is determined, and the application scenario is sent to the media service module, and the media service module determines the target function according to the application scenario.
  • an electronic device includes hardware structures and/or software modules corresponding to each function.
  • this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiment of the present application may divide the electronic device into functional units according to the foregoing method examples.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 6 is a block diagram of the functional unit composition of the application data processing device 600 involved in an embodiment of the present application.
  • the application data processing device 600 is applied to an electronic device, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application;
  • the application data processing device includes a processing unit 601 and a communication unit 602.
  • the processing unit 601 is configured to perform any step in the above method embodiment, and when performing data transmission such as sending, the communication unit 603 can be selectively invoked to complete the corresponding operation.
  • the detailed description will be given below.
  • the processing unit 601 is configured to control the third-party application to send a data request to the hardware abstraction layer of the operating system; and the hardware abstraction layer receives the data request, obtains the original application data to be processed, and invokes The algorithm for achieving the target function processes the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm for the target function is that the third-party application passes through the media
  • the service module requests in advance that the operating system is open to the third-party application; and the third-party application receives the target application data, and implements the target function according to the target application data.
  • the application data processing apparatus 600 may further include 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 screen or a transceiver
  • the storage unit 603 may be a memory.
  • the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application
  • the media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, the hardware abstraction module is connected to the algorithm management module; the data request is received at the hardware abstraction layer to obtain The original application data to be processed, and the algorithm used to realize the target function is called to process the original application data to obtain the target application data.
  • the processing unit 601 is specifically configured to receive the data request by the hardware abstraction module and obtain the target application data.
  • the original application data to be processed, and send the original application data to the algorithm management module; the algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data to obtain the target application data.
  • the 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 to the algorithm management module through the media policy module;
  • the hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls the algorithm for realizing the target function to process the original application data to obtain the target application data.
  • the processing unit 601 is specifically configured to: 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 strategy module; the algorithm management module receives the original application data, and uses The algorithm of the target function processes the original application data to obtain target application data.
  • the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm Management module; in terms of the algorithm of the target function being opened to the third-party application through the following operations, the processing unit 601 is specifically configured to receive the first function configuration from the media service module by the media policy module Information, the first function configuration information includes description information of the target function; the first function configuration information is converted into second function configuration information that can be recognized by the algorithm management module, and the information is sent to the algorithm management module The second function configuration information; the algorithm management module receives the second function configuration information, and opens the third-party application to the target function in the algorithm library of the operating system according to the second function configuration information Permission to use the algorithm.
  • the processing unit 601 is further configured to: before the media policy module receives the first function configuration information from the media service module, the media service module determines that the third-party application needs to use The target function of, 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.
  • the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  • the processing unit 601 is further configured to: before the third-party application sends a data request to the hardware abstraction layer of the operating system, the third-party application sends an authentication file to the media service module. Request for obtaining the media platform version of the right code; the media service module receives the request for obtaining the media platform version, verifies the authentication code and the verification passes; the media service module sends the media to the third-party application Platform version information.
  • the processing unit 601 is further configured to: 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 The media service module sends a capability acquisition request carrying the media platform version information; the media service module receives the capability acquisition request, queries the application capability list of the media platform version information, and sends it to the third-party application The application capability list; the third-party application receives the application capability list, and queries the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple The target function that is selected to be open among the Android native functions.
  • the processing unit 601 is further configured to determine the target function in any of the following ways: display multiple native Android functions through the application interface of the third-party application, The selection of the multiple Android native functions determines the target function; and the third-party application determines the current application scenario, and the target function is determined according to the application scenario; and the third-party application determines the current application scenario And send the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment ,
  • the above-mentioned computer includes electronic equipment.
  • the embodiments of the present application also provide a computer program product.
  • the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory.
  • a number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An application data processing method and a related apparatus, applied to an electronic device. The electronic device comprises a media service module and an operation system; an application layer of the operation system is provided with a third-party application; the third-party application sends a data request to a hardware abstraction layer of the operation system (S201); the hardware abstraction layer receives the data request, acquires original application data to be processed, calls an algorithm used for achieving 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 the operation system to be available to the third-party application in advance by means of the media service module (S202); and the third-party application receives the target application data and achieves the target function according to the target application data (S203). The method facilitates implementing the simplicity for the third-party application to obtain an algorithm of the bottom layer of the electronic device, and makes a bottom layer function available safely.

Description

一种应用数据处理方法及相关装置Application data processing method and related device 技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种应用数据处理方法及相关装置。This application relates to the technical field of electronic equipment, and in particular to an application data processing method and related devices.
背景技术Background technique
目前,各种各样的第三方应用软件在电子设备中的运用越来越广泛,而随着用户对于第三方应用处理数据的要求越来越高,第三方应用软件需要使用更强的增强功能或者是通过算法处理过的数据,以此来满足用户的需求。At present, a variety of third-party application software is used more and more widely in electronic devices, and as users have higher and higher requirements for third-party applications to process data, third-party applications need to use stronger enhanced functions Or data processed through algorithms to meet user needs.
发明内容Summary of the invention
本申请实施例提供了应用数据处理方法及相关装置。The embodiments of the present application provide application data processing methods and related devices.
第一方面,本申请实施例提供一种应用数据处理方法,应用于电子设备,所述电子设备包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;所述方法包括:In the first aspect, an embodiment of the present application provides an application data processing method, which is applied to an electronic device, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; the method includes :
所述第三方应用向所述操作系统的硬件抽象层发送数据请求;The third-party application sends a data request to the hardware abstraction layer of the operating system;
所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application. Target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application receives the target application data, and implements the target function according to the target application data.
第二方面,本申请实施例提供一种应用数据处理装置,应用于电子设备,所述应用数据处理装置包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;其中,In a second aspect, an embodiment of the present application provides an application data processing device applied to an electronic device. The application data processing device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; wherein,
所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求;The third-party application is used to send a data request to the hardware abstraction layer of the operating system;
所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
所述第三方应用,还用于接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application is also used 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: a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes any of the methods in the first aspect of the embodiments of the present application Step instructions.
第四方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。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. The one or more programs are stored in the memory and configured to be processed by the above-mentioned memory. The above program includes instructions for executing the steps in any method in the first aspect of the embodiments of the present application.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请实施例提供的一种电子设备的架构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图2是本申请实施例提供的一种应用数据处理方法的流程示意图;FIG. 2 is a schematic flowchart of an application data processing method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种应用数据处理方法的流程示意图;FIG. 3 is a schematic flowchart of another application data processing method provided by an embodiment of the present application;
图4是本申请实施例提供的一种应用数据处理装置的结构示意图;FIG. 4 is a schematic structural diagram of an application data processing apparatus provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图6是本申请实施例提供的一种应用数据处理装置的功能单元组成框图。Fig. 6 is a block diagram of functional units of an application data processing device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。The reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备(智能手机、平板电脑等)、车载设备(导航仪、车载冰箱、车载吸尘器等等)、可穿戴设备(智能手表、智能手环、无线耳机、增强现实/虚拟现实设备、智能眼镜)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。本申请实施例应用于具备操作系统的电子设备,操作系统是管理计算机硬件与软件资源的计算机程序,操作系统可以为以下至少一种:安卓系统Android、Windows系统、苹果系统、塞班系统、鸿蒙系统、Linux操作系统等等,在此不做限定。The electronic devices involved in the embodiments of this application may include various handheld devices (smart phones, tablet computers, etc.) with wireless communication functions, vehicle-mounted devices (navigators, vehicle-mounted refrigerators, vehicle-mounted vacuum cleaners, etc.), wearable devices (smart phones, etc.) Watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (UE), mobile stations (mobile station, MS), terminal device (terminal device) and so on. For ease of description, the devices mentioned above are collectively referred to as electronic devices. The embodiments of this application are applied to electronic devices with an operating system. The operating system is a computer program that manages computer hardware and software resources. The operating system can be at least one of the following: Android, Windows, Apple, Symbian, Hongmeng The system, Linux operating system, etc., are not limited here.
目前,以安卓系统为例,Android平台,第三方应用现在通过标准的Android应用程序接口(Application Programming Interface,API)可以访问底层的算法数据,但是若是想使用底层的更多的增强功能或通过算法处理后的数据,却没有相应的标准接口来映射底层的能力给三方访问。以及通过替换现有接口调用底层功能会增加开发维护成本,代码量比较大(2k~3k代码),当SDK增加时,增加功能还需要更新SDK。At present, taking the Android system as an example, on the Android platform, third-party applications can now access the underlying algorithm data through the standard Android Application Programming Interface (API), but if you want to use more underlying enhancements or pass algorithms The processed data does not have a corresponding standard interface to map the underlying capabilities to three parties. And by replacing the existing interface to call the underlying functions will increase the development and maintenance costs, the amount of code is relatively large (2k ~ 3k code), when the SDK is increased, the increase in the function also needs to update the SDK.
针对上述问题,本申请实施例提供一种应用数据处理方法及相关装置,下面对本申请实施例进行详细介绍。In response to the foregoing problems, the embodiments of the present application provide an application data processing method and related devices. The following describes the embodiments of the present application in detail.
一种应用数据处理方法,应用于电子设备,所述电子设备包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;所述方法包括:An application data processing method applied to an electronic device, the electronic device including a media service module and an operating system, the application layer of the operating system is provided with a third-party application; the method includes:
所述第三方应用向所述操作系统的硬件抽象层发送数据请求;The third-party application sends a data request to the hardware abstraction layer of the operating system;
所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application. Target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application receives the target application data, and implements the target function according to the target application data.
其中,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽 象模块连接所述算法管理模块;Wherein, the 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 to the algorithm management module;
所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data, including:
所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;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;
所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data, and obtains the target application data.
在一种可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;In a possible embodiment, the 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 to the algorithm management module through the media policy module;
所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data, including:
所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;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, uses the algorithm of the target function to process the original application data, and obtains the target application data.
在一种可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;In a possible embodiment, the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the The algorithm management module;
所述目标功能的算法具体通过如下操作实现对所述第三方应用开放:The algorithm of the target function is specifically opened to the third-party application through the following operations:
所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息,所述第一功能配置信息包括所述目标功能的描述信息;将所述第一功能配置信息转换为所述算法管理模块能够识别的第二功能配置信息,并向所述算法管理模块发送所述第二功能配置信息;The media strategy module receives first function configuration information from the media service module, where the first function configuration information includes description information of the target function; and converts the first function configuration information into the algorithm management module Recognizable second function configuration information, and sending the second function configuration information to the algorithm management module;
所述算法管理模块接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。The algorithm management module receives the second function configuration information, and opens the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
进一步的,所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息之前,所述方法还包括:Further, before the media policy module receives the first function configuration information from the media service module, the method further includes:
所述媒体服务模块确定所述第三方应用所需要使用的所述目标功能,根据所述目标功能生成所述第一功能配置信息;Determining, by the media service module, the target function that the third-party application needs to use, and generating 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.
其中,所述操作系统的应用层还设置有媒体管理模块,所述媒体管理模块支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。Wherein, the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
进一步的,所述第三方应用向所述操作系统的硬件抽象层发送数据请求之前,所述方法还包括:Further, before the third-party application sends a data request to the hardware abstraction layer of the operating system, the method further includes:
所述第三方应用向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;Sending, by the third-party application, 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 the verification passes;
所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息。The media service module sends the media platform version information to the third-party application.
进一步的,所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息之后,所述方法还包括:Further, after the media service module sends the media platform version information to the third-party application, the method further includes:
所述第三方应用接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;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, queries the 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 list of application capabilities, queries the list of application capabilities to obtain multiple native Android functions supported by the current media platform for the third-party application; and determines that the multiple native Android functions are selected Open target function.
进一步的,所述目标功能是通过以下任意一种方式确定的:Further, the target function is determined by any of the following methods:
通过所述第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;以及,Display a plurality of Android native functions through the application interface of the third-party application, and determine the target function according to the user's selection of the plurality of Android native functions; and,
由所述第三方应用确定当前的应用场景,根据所述应用场景确定所述目标功能;以及,The current application scenario is determined by the third-party application, and the target function is determined according to the application scenario; and,
由所述第三方应用确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。The third-party application determines the current application scenario, and sends the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
本申请实施例提供一种应用数据处理装置,应用于电子设备,所述应用数据处理装置包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;其中,An embodiment of the present application provides an application data processing device, which is applied to an electronic device, the application data processing device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; wherein,
所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求;The third-party application is used to send a data request to the hardware abstraction layer of the operating system;
所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
所述第三方应用,还用于接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application is also used to receive the target application data, and implement the target function according to the target application data.
在一种可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;其中,In a possible embodiment, the 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 to the algorithm management module; wherein,
针对所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据:For the hardware abstraction layer, it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
所述硬件抽象模块,用于接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;The hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module;
所述算法管理模块,用于接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
在一种可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;其中,In a possible embodiment, the 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 to the algorithm management module through the media policy module; wherein ,
针对所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据:For the hardware abstraction layer, it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
所述硬件抽象模块,用于接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;The hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module through the media policy module;
所述算法管理模块,用于接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
在一种可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;其中,In a possible embodiment, the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the The algorithm management module; among them,
所述目标功能的算法具体通过如下模块实现对所述第三方应用开放:The algorithm of the target function is implemented to be open 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; and convert the first function configuration information into the Second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module;
所述算法管理模块,用于接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。The algorithm management module is configured to receive the second function configuration information, and according to the second function configuration information, open the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system .
进一步的,所述媒体策略模块,用于接收来自所述媒体服务模块的第一功能配置信息之前:Further, before the media policy module is configured to receive the first function 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 a possible embodiment, the application layer of the operating system is further provided with a media management module; wherein,
所述媒体管理模块,用于支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。The media management module is used to support information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
其中,所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求之前:Wherein, before the third-party application is used to send a data request to the hardware abstraction layer of the operating system:
所述第三方应用,用于向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;The third-party application is used to send a media platform version acquisition request carrying an authentication code to the media service module;
所述媒体服务模块,应用于接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过;The media service module is configured to receive the media platform version acquisition request, verify the authentication code and pass the verification;
所述媒体服务模块,用于向所述第三方应用发送所述媒体平台版本信息。The media service module is configured to send the media platform version information to the third-party application.
在一个可能的实施例中,所述媒体服务模块,用于向所述第三方应用发送所述媒体平台版本信息之后:In a possible embodiment, the media service module is configured to send the media platform version information to the third-party application:
所述第三方应用,用于接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;The third-party application is configured to receive the media platform version information, and send a capability acquisition request carrying the media platform version information to the media service module;
所述媒体服务模块,用于接收所述能力获取请求,查询所述媒体平台版本信息的应用能力列表,向所述第三方应用发送所述应用能力列表;The media service module is configured to receive the capability acquisition request, query the application capability list of the media platform version information, and send the application capability list to the third-party application;
所述第三方应用,用于接收所述应用能力列表,查询所述应用能力列表以获取当前媒体平台针对所述第三方应用所支持的多个安卓原生功能;以及确定所述多个安卓原生功能中被选择开放的目标功能。The third-party application is configured to receive the application capability list, query the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple Android native functions The target function that was selected to open in.
其中,所述第三方应用,用于在第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;还用于确定当前的应用场景,根据所述应用场景确定所述目标功能;还用于确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。Wherein, the third-party application is used to display multiple Android native functions on the application interface of the third-party application, and determine the target function according to the user's selection of the multiple Android native functions; it is also used to determine the current application scenario, according to The application scenario determines the target function; it is also used to determine the current application scenario, and send the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
本申请实施例提供了一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行本申请中的任一项应用数据处理方法。An embodiment of the present application provides a chip, including a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes any of the application data processing methods in the present application.
本申请实施例提供了一种电子设备,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行本申请中的任一项应用数据处理方法中的步骤的指令。An embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured by the processor. Execution, the program includes instructions for executing any of the steps in the application data processing method in this application.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the application in detail.
请参阅图1,图1是本申请实施例提供的一种电子设备的架构示意图。如图1所示,本申请实施例所涉及的电子设备包括媒体服务模块和操作系统(例如安卓操作系统,此处不做唯一限定),所述操作系统的应用层设置有第三方应用和媒体管理模块(又称为媒体接口模块),所述操作系统的硬件抽象层设置有硬件抽象模块(此为安卓原生模块,如原生相机硬件抽象模块CameraHAL)、媒体策略模块和算法管理模块,此外,操作系统原生架构还包括框架层、驱动层,框架层包括各种原生应用的应用接口(如原生相机应用程序接口)、应用服务(如原生相机服务)、框架层接口(如Google HAL3 interface),硬件抽象层包括硬件抽象层接口(例如:HAL3.0)、各种原生应用的硬件抽象模块(如相机硬件抽象模块),驱动层包括各种驱动(例如屏幕Display驱动、音频Audio驱动等),该驱动层用于使能电子设备的各种硬件,例如图像信号处理器ISP+前端图像传感器sensors等。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in FIG. 1, the electronic device involved in the embodiment of the present application includes a media service module and an operating system (for example, an Android operating system, which is not uniquely limited here). The application layer of the operating system is provided with third-party applications and media. A management module (also called a media interface module), the hardware abstraction layer of the operating system is provided with a hardware abstraction module (this is an Android native module, such as a native camera hardware abstraction module CameraHAL), a media strategy module, and an algorithm management module. In addition, The native architecture of the operating system also includes a framework layer and a driver layer. The framework layer includes application interfaces of various native applications (such as native camera application program interfaces), application services (such as native camera services), and framework layer interfaces (such as Google HAL3 interface), The hardware abstraction layer includes hardware abstraction layer interfaces (for example: HAL3.0), hardware abstraction modules for various native applications (such as camera hardware abstraction modules), and the driver layer includes various drivers (for example, screen Display driver, audio Audio driver, etc.), The driver layer is used to enable various hardware of electronic devices, such as image signal processor ISP+ front-end image sensor sensors and so on.
其中,媒体服务模块独立于操作系统设置,第三方应用可以通过媒体管理模块与媒体服务模块进行通信,媒体服务模块可以通过由应用接口、应用服务、框架层接口、硬件抽象层接口以及硬件抽象模块组成的安卓原生信息链路与媒体策略模块通信,媒体策略模块 与算法管理模块通信,算法管理模块维护安卓原生的算法库,算法库包括各种原生应用所支持的增强功能,如针对原生相机应用,支持其实现双目拍照、美颜、锐化、夜景等各类增强功能。此外,媒体服务模块也可以与媒体策略模块或者算法管理模块直连通信。Among them, the media service module is independent of operating system settings, third-party applications can communicate with the media service module through the media management module, and the media service module can communicate through application interfaces, application services, framework layer interfaces, hardware abstraction layer interfaces, and hardware abstraction modules. The composed Android native information link communicates with the media strategy module, and the media strategy module communicates with the algorithm management module. The algorithm management module maintains the Android native algorithm library. The algorithm library includes enhanced functions supported by various native applications, such as native camera applications. , Support it to realize various enhancement functions such as binocular camera, beautification, sharpening, night scene and so on. In addition, the media service module can also directly communicate with the media strategy module or the algorithm management module.
请参阅图2,图2是本申请实施例提供了一种应用数据处理方法的流程示意图,该应用数据处理方法可以应用于如图1所示的电子设备,所述电子设备包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;如图所示,本应用数据处理方法包括以下操作。Please refer to FIG. 2. FIG. 2 is a schematic flowchart of an application data processing method provided by an embodiment of the present application. The application data processing method can be applied to the electronic device shown in FIG. 1, and the electronic device includes a media service module and Operating system, the application layer of the operating system is provided with third-party applications; as shown in the figure, the application data processing method includes the following operations.
S201,所述第三方应用向所述操作系统的硬件抽象层发送数据请求;S201: The third-party application sends a data request to the hardware abstraction layer of the operating system;
其中,所述操作系统可以为安卓系统。所述第三方应用可以是相机应用、地图应用等各类需要使用电子设备的底层应用数据的应用。Wherein, the operating system may be an Android system. The third-party applications may be various applications that need to use the underlying application data of the electronic device, such as camera applications and map applications.
S202,所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;S202. The hardware abstraction layer receives the data request, obtains the original application data to be processed, and invokes an algorithm for realizing the target function to process the original application data, obtains the target application data, and sends it to the third-party application The target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
其中,所述硬件抽象模块接收第三方应用的数据请求,根据所述数据请求获取待处理的硬件抽象层的原始应用数据,并根据第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的目标功能的算法处理原始应用数据,并将处理后的数据返回给第三方应用。Wherein, the hardware abstraction module receives a data request from a third-party application, obtains the original application data of the hardware abstraction layer to be processed according to the data request, and requests the operating system to target the operating system in advance according to the third-party application through the media service module. The algorithm of the target function opened by the third-party application processes the original application data and returns the processed data to the third-party application.
其中,基于上述图1所示,所述操作系统的硬件抽象层设置有硬件抽象模块;所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:Among them, based on the above-mentioned Figure 1, the hardware abstraction layer of the operating system is provided with a hardware abstraction module; the hardware abstraction layer receives the data request, obtains the original application data to be processed, and invokes the The algorithm processes the original application data to obtain target application data, including:
所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据。所述应用数据包括以下至少一种:所述第三方应用接收的来自网络侧的网络应用数据;以及,所述硬件抽象模块调用驱动使能硬件进行信息采集得到的本地应用数据。The hardware abstraction module receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data. The application data includes at least one of the following: network application data from the network side received by the third-party application; and local application data obtained by the hardware abstraction module calling the driver enabling hardware for information collection.
所述媒体服务模块具体通过任意一种通信链路实现向所述媒体策略模块发送所述第一功能配置信息:由所述媒体服务模块、所述操作系统的框架层的应用接口、应用服务、框架层接口、所述操作系统的硬件抽象层的硬件抽象接口、所述硬件抽象模块、所述媒体策略模块串联组成的第一通信链路;以及,由所述媒体服务模块、所述媒体策略模块串联组成的第二通信链路;以及,由所述媒体服务模块、所述算法管理模块、所述媒体策略模块串联组成的第三通信链路。The media service module specifically implements sending the first function configuration information to the media policy module through any communication link: the media service module, the application interface of the framework layer of the operating system, application services, A framework layer interface, a hardware abstraction interface of the hardware abstraction layer of the operating system, a first communication link composed of the hardware abstraction module and the media policy module in series; and, the media service module and the media policy A second communication link composed of modules in series; and a third communication link composed of the media service module, the algorithm management module, and the media strategy module in series.
具体实现中,第三方应用可以通过媒体管理模块与媒体服务模块进行通信,媒体服务模块可以通过由应用接口、应用服务、框架层接口、硬件抽象层接口以及硬件抽象模块组成的安卓原生信息链路与媒体策略模块通信,媒体策略模块与算法管理模块通信,算法管理模块维护安卓原生的算法库,算法库包括各种原生应用所支持的增强功能,如针对原生相机应用,支持其实现双目拍照、美颜、锐化、夜景等各类增强功能。此外,媒体服务模块也可以与媒体策略模块或者算法管理模块直连通信。In specific implementation, third-party applications can communicate with the media service module through the media management module, and the media service module can pass through the Android native information link composed of application interfaces, application services, framework layer interfaces, hardware abstraction layer interfaces, and hardware abstraction modules. Communicate with the media strategy module, the media strategy module communicates with the algorithm management module, and the algorithm management module maintains Android's native algorithm library. The algorithm library includes enhancements supported by various native applications, such as native camera applications that support binocular photography , Beauty, sharpening, night scene and other enhancement functions. In addition, the media service module can also directly communicate with the media strategy module or the algorithm management module.
S203,所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。S203: The third-party application receives the target application data, and implements the target function according to the target application data.
其中,第三方应用根据硬件抽象层返回的经处理得到的目标应用数据实现目标功能。Among them, the third-party application realizes the target function according to the processed target application data returned by the hardware abstraction layer.
可以看出,本申请实施例中,电子设备包括媒体服务模块和操作系统,操作系统的应用层设置有第三方应用;第三方应用向操作系统的硬件抽象层发送数据请求;硬件抽象层接收数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理原始应用数据,得到目标应用数据,以及向第三方应用发送目标应用数据,其中,目标功能的算 法是第三方应用通过媒体服务模块预先请求操作系统针对第三方应用开放的;第三方应用接收目标应用数据,根据目标应用数据实现目标功能。可见,通过第三方应用向硬件抽象层发送数据请求,并获取由硬件抽象层返回的目标应用数据实现目标功能,有利于实现第三方应用获取电子设备底层的算法的简便性,以及安全的开放底层功能。It can be seen that in this embodiment of the application, the electronic device includes a media service module and an operating system. The application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application The media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data. It can be seen that sending data requests to the hardware abstraction layer through a third-party application and obtaining the target application data returned by the hardware abstraction layer to achieve the target function is conducive to the convenience of third-party applications to obtain the underlying algorithm of the electronic device, as well as a safe and open bottom layer. Features.
在一个可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。In a possible embodiment, the 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 to the algorithm management module; the hardware abstraction layer receives the data request and obtains The original application data to be processed, and the algorithm used to realize the target function is called to process the original application data to obtain the target application data, including: the hardware abstraction module receives the data request, obtains the original application data to be processed, and Send the original application data to the algorithm management module; the algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data, and obtains the target application data.
其中,媒体服务模块独立于操作系统设置,所述媒体服务模块可以直接通过算法管理模块使能算法库中的算法模块,从而实现针对第三方应用开放原生应用关联的增强功能。Wherein, the media service module is independent of operating system settings, and the media service module can directly enable the algorithm modules in the algorithm library through the algorithm management module, thereby realizing the enhanced function of opening native application associations for third-party applications.
其中,所述硬件抽象层从第三方应用获取的网络应用数据和/或调用驱动使能传感器获取的目标应用数据。Wherein, the hardware abstraction layer obtains network application data from a third-party application and/or calls target application data obtained by a driver-enabled sensor.
其中,媒体服务模块会binder消息到底层HAL,将上层下发的参数转换成底层可以认识的参数。通过设置在硬件抽象层的硬件抽象模块接收所述数据请求,根据所述数据请求获取待处理的原始应用数据并发送到算法管理模块,算法管理模块再根据目标功能的算法处理所述原始应用数据,得到目标应用数据。Among them, the media service module sends the binder message to the bottom layer HAL, and converts the parameters sent by the upper layer into parameters that can be recognized by the bottom layer. The data request is received by the hardware abstraction module set in the hardware abstraction layer, the original application data to be processed is obtained according to the data request and sent to the algorithm management module, and the algorithm management module then processes the original application data according to the algorithm of the target function , Get the target application data.
可见,本示例中,硬件抽象模块接收数据请求,再获取待处理的原始应用数据并发送到算法管理模块,然后算法管理模块利用目标功能的算法处理原始应用数据,得到目标应用数据,通过算法管理模块预先配置好支持的数据,待三方满足需求即可以支持,有利于第三方应用获取底层能力。It can be seen that in this example, the hardware abstraction module receives the data request, then obtains the original application data to be processed and sends it to the algorithm management module, and then the algorithm management module uses the algorithm of the target function to process the original application data to obtain the target application data, which is managed by the algorithm The module is pre-configured with the supported data, and can be supported after the three parties meet their needs, which is conducive to third-party applications to obtain the underlying capabilities.
在一个可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。In a possible embodiment, the 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 to the algorithm management module through the media policy module; The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls the algorithm for realizing the target function to process the original application data to obtain the target application data, including: the hardware abstraction module receives the data request , Obtain the original application data to be processed, and send the original application data to the algorithm management module through the media strategy module; the algorithm management module receives the original application data, and uses the algorithm of the target function to process all The original application data is described to obtain the target application data.
其中,通过设置在硬件抽象层的硬件抽象模块接收所述数据请求,根据所述数据请求获取待处理的原始应用数据并将所述原始应用数据经过媒体策略模块处理后发送到算法管理模块,算法管理模块再根据目标功能的算法处理所述原始应用数据,得到目标应用数据。Wherein, the data request is received by the hardware abstraction module set in the hardware abstraction layer, the original application data to be processed is obtained according to the data request, and the original application data is processed by the media policy module and sent to the algorithm management module. The management module then processes the original application data according to the algorithm of the target function to obtain the target application data.
具体实现中,所述媒体服务模块可以通过安卓原生信息链路、媒体策略模块、算法管理模块使能算法库中的算法模块,或者,直接通过媒体策略模块和算法管理模块使能算法库中的算法模块,或者,直接通过算法管理模块使能算法库中的算法模块,从而实现针对第三方应用开放原生应用关联的增强功能。In specific implementation, the media service module can enable the algorithm modules in the algorithm library through the Android native information link, the media strategy module, and the algorithm management module, or directly enable the algorithm modules in the algorithm library through the media strategy module and the algorithm management module. The algorithm module, or directly enable the algorithm module in the algorithm library through the algorithm management module, so as to realize the enhanced function of opening native application associations for third-party applications.
可见,本示例中,硬件抽象模块接收数据请求,获取待处理的原始应用数据,并通过媒体策略模块向算法管理模块发送原始应用数据;算法管理模块接收原始应用数据,利用目标功能的算法处理原始应用数据,得到目标应用数据,有利于实现针对第三方应用开放原生应用关联的增强功能。It can be seen that 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 strategy module; the algorithm management module receives the original application data, and uses the algorithm of the target function to process the original application data. Application data to obtain target application data is conducive to the realization of enhanced functions of opening native application associations for third-party applications.
在一个可能的实施例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;所述目标功能的算法具体通过如下操作实现对所述第三方应用开放:所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息,所述第一功能配置信 息包括所述目标功能的描述信息;将所述第一功能配置信息转换为所述算法管理模块能够识别的第二功能配置信息,并向所述算法管理模块发送所述第二功能配置信息;所述算法管理模块接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。In a possible embodiment, the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the media policy module. 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, and the first function configuration information includes The description information of the target function; convert the first function configuration information into second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module; The algorithm management module receives the second function configuration information, and opens the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
其中,将被选择开放的能力设置到媒体策略模块之后,媒体策略模块再将该目标功能的第一功能配置信息转换为算法管理模块能识别的第二功能配置信息,最后再发送给算法管理模模块,算法管理模块再根据接收的第二配置信息开放目标功能的算法的使用权限。Among them, after setting the selected open capability to the media strategy module, the media strategy module converts the first function configuration information of the target function into the second function configuration information that can be recognized by the algorithm management module, and finally sends it to the algorithm management module. Module, the algorithm management module then opens the use authority 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 that is selected to be opened into second configuration information that can be recognized by the algorithm management module, and the media policy module sends the second configuration information to the algorithm management module. , Intermediate information has a conversion process, instead of directly using the underlying capabilities, preventing third parties from directly coupling to see the underlying capabilities, which helps to ensure the security of the open underlying capabilities.
在一个可能的实施例中,所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息之前,所述方法还包括:所述媒体服务模块确定所述第三方应用所需要使用的所述目标功能,根据所述目标功能生成所述第一功能配置信息;所述媒体服务模块向所述媒体策略模块发送所述第一功能配置信息。In a possible embodiment, before the media policy module receives the first function configuration information from the media service module, the method further includes: the media service module determines all the third-party applications that need to be used. The target function 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 specific implementation, the media service module responds to data requests from three parties, determines the target function that the third-party application needs to use and the corresponding first function configuration information according to the data request, and then transfers the first function configuration information to the bottom layer, that is, the first function configuration The information is sent to the media policy module, and the media policy module then processes the first function configuration information.
可见,本示例中,媒体服务模块确定第三方应用所需要使用的目标功能,根据目标功能生成第一功能配置信息;媒体服务模块向媒体策略模块发送第一功能配置信息,可以根据配置信息允许第三方应用使用底层的算法,有利于第三方应用使用底层的增强功能或通过底层算法处理后的目标应用数据。It can be seen that in this example, 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, which can allow the first function configuration information according to the configuration information. Third-party applications use underlying algorithms, which is conducive to third-party applications using underlying enhanced functions or target application data processed through underlying algorithms.
在一个可能的实施例中,所述操作系统的应用层还设置有媒体管理模块,所述媒体管理模块支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。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 information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
其中,媒体管理模块通过SDK binder通信机制实现第三方应用与媒体服务模块的信息交互,Binder是基于内存映射来实现的。第三方应用通过SDK binder消息和媒体服务模块联系在一起,媒体服务模块和第三方应用完全通过binder消息沟通,可以获取彼此的服务状态。Among them, the media management module implements information interaction between third-party applications and the media service module through the SDK binder communication mechanism, and the binder is implemented based on memory mapping. Third-party applications are connected with the media service module through SDK binder messages, and the media service module and third-party applications communicate completely through binder messages, and can obtain each other's service status.
具体实现中,媒体管理模块会binder消息到硬件抽象模层,将第三方应用下发的数据转换成底层可以识别的信息,并将第三方应用的配置信息传给媒体服务模块,媒体服务模块响应第三方应用的配置请求,使能配置信息到底层。In specific implementation, the media management module will binder messages to the hardware abstraction layer, convert the data sent by third-party applications into information that can be identified by the bottom layer, and pass the configuration information of the third-party applications to the media service module, and the media service module responds The configuration request of the third-party application enables the configuration information to the bottom layer.
可见,本示例中,媒体管理模块支持通过SDK binder通信机制实现信息交互有利于提高第三方应用获取底层能力时的性能、安全性和效率。It can be seen that in this example, the media management module supports information interaction through the SDK binder communication mechanism, which is beneficial to improve the performance, security, and efficiency of third-party applications when they obtain the underlying capabilities.
在一个可能的实施例中,所述第三方应用向所述操作系统的硬件抽象层发送数据请求之前,所述方法还包括:所述第三方应用向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;所述媒体服务模块接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过;所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息。In a possible embodiment, before the third-party application sends a data request to the hardware abstraction layer of the operating system, the method further includes: the third-party application sends an authentication code to the media service module The media platform version acquisition request; the media service module receives the media platform version acquisition request, verifies the authentication code and the verification passes; the media service module sends the media platform version to the third-party application information.
其中,所述媒体服务模块接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过,包括:媒体平台服务模块获取预配置的第三方应用的非对称私钥;媒体平台服务模块使用非对称私钥解密鉴权码得到第三方应用的APP签名key、系统日期、约定字段;媒体平台服务模块根据APP签名key、系统日期、约定字段确定校验通过。举例来说,媒体服务模块接收来自第三方应用的携带有鉴权码的媒体平台版本获取请求,会对这个鉴权码进行校验,如果校验成功通过,就会向该第三方应用返回该媒体平台版本信息,例如可以返回例如“1.1:1.2”这种字符串。Wherein, the media service module receives the media platform version acquisition request, verifies the authentication code and the verification is passed, including: the media platform service module obtains a pre-configured asymmetric private key of a third-party application; media platform services The module uses the asymmetric private key to decrypt the authentication code to obtain the APP signature key, system date, and agreed fields of the third-party application; the media platform service module determines the verification pass according to the APP signature key, system date, and agreed fields. For example, the media service module receives a media platform version acquisition request carrying an authentication code from a third-party application, and then verifies the authentication code. If the verification succeeds, it returns the request to the third-party application. Media platform version information, for example, a string such as "1.1:1.2" can be returned.
具体实现中,APP签名key可以理解为安装第三方应用的许可,下载第三方应用到电子设备之后,将第三方应用给到内部的服务器,内部服务器根据该第三方应用的APP签名key、系统日期、约定字段等信息使用非对称公钥加密得到鉴权码,加密的信息还可以是授权时长等信息,媒体服务模块在收到来自第三方应用的鉴权码之后,会获取预先配置的与公钥对应的该第三方应用的非对称私钥,然后用这个非对称私钥对鉴权解密,得到该第三方应用的APP签名key、系统日期、约定字段等信息,然后系统对这些信息进行判断,如果信息无误校验通过。In specific implementation, the APP signature key can be understood as the permission to install a third-party application. After downloading the third-party application to the electronic device, the third-party application is given to the internal server, and the internal server is based on the third-party application’s APP signature key and system date. , The agreed fields and other information are encrypted with an asymmetric public key to obtain the authentication code. The encrypted information can also be information such as the authorization duration. After the media service module receives the authentication code from the third-party application, it will obtain the pre-configured and public authentication code. The key corresponds to the asymmetric private key of the third-party application, and then use this asymmetric private key to decrypt the authentication to obtain the third-party application’s APP signature key, system date, agreed fields and other information, and then the system judges this information , If the information is correct, the verification is passed.
可见,本示例中,第三方应用向媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;媒体服务模块接收媒体平台版本获取请求,校验鉴权码且校验通过;媒体服务模块向第三方应用发送媒体平台版本信息,通过进行加密授权、解密,能够有效的控制安全,有利于保证底层核心功能开放的安全性。It can be seen that 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 the media platform version acquisition request, verifies the authentication code and the verification passes; the media service module sends Third-party applications send media platform version information, through encryption, authorization, and decryption, which can effectively control security and help ensure the security of the underlying core functions.
在一个可能的实施例中,所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息之后,所述方法还包括:所述第三方应用接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;所述媒体服务模块接收所述能力获取请求,查询所述媒体平台版本信息的应用能力列表,向所述第三方应用发送所述应用能力列表;所述第三方应用接收所述应用能力列表,查询所述应用能力列表以获取当前媒体平台针对所述第三方应用所支持的多个安卓原生功能;以及确定所述多个安卓原生功能中被选择开放的目标功能。In a possible embodiment, after the media service module sends the media platform version information to the third-party application, the method further includes: the third-party application receives the media platform version information, and sends the media platform version information to the third-party application. The media service module sends a capability acquisition request carrying the media platform version information; the media service module receives the capability acquisition request, queries the application capability list of the media platform version information, and sends the third-party application Application capability list; the third-party application receives the application capability list, queries the application capability list to obtain a plurality of Android native functions supported by the current media platform for the third-party application; and determines the plurality of Android native functions The target function selected to be opened in the function.
其中,该应用能力列表中可以列出现在正在使用的媒体平台针对这个第三方应用所支持的所有的能力,即可以开放给这个第三方应用访问的能力。Among them, the application capability list can list all the capabilities that the media platform currently in use supports for this third-party application, that is, the capabilities that can be opened to the third-party application to access.
可见,本示例中,第三方应用能够根据媒体平台版本信息确定能力列表,根据能力列表确定被选择的增强功能,然后与媒体管理模块、媒体服务模块、算法管理模块、硬件抽象模块交互最终实现调用对应的算法模块处理底层应用数据,从而实现保证增强功能开放也能够安全。It can be seen that in this example, the third-party application can determine the capability list according to the media platform version information, determine the selected enhancement function according to the capability list, and then interact with the media management module, media service module, algorithm management module, and hardware abstraction module to finally implement the call The corresponding algorithm module processes the underlying application data, so as to ensure that the enhanced functions are open and safe.
在一个可能的实施例中,所述目标功能是通过以下任意一种方式确定的:通过所述第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;以及,由所述第三方应用确定当前的应用场景,根据所述应用场景确定所述目标功能;以及,由所述第三方应用确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。In a possible embodiment, the target function is determined in any of the following ways: multiple Android native functions are displayed through the application interface of the third-party application, and according to the user's selection of the multiple Android native functions Determine the target function; and, the third-party application determines the current application scenario, and the target function is determined according to the application scenario; and, the third-party application determines the current application scenario, and sends the application scenario For the media service module, the media service module determines the target function according to the application scenario.
其中,电子设备的显示界面显示第三方应用的应用界面,该应用界面包括多个安卓原生功能,然后根据用户针对多个安卓原生功能的选择确定目标功能,或者根据第三方应用确定的当前应用场景确定目标功能,或者由媒体服务模块根据第三方应用确定的应用场景确定目标功能。Wherein, the display interface of the electronic device displays the application interface of the third-party application, the application interface includes multiple Android native functions, and then the target function is determined according to the user's selection of multiple Android native functions, or the current application scenario determined by the third-party application Determine the target function, or the media service module determines the target function according to the application scenario determined by the third-party application.
具体实现中,电子设备的显示界面显示第三方应用的应用界面,该应用界面包括多个安卓原生功能,例如第三方应用为相机时,多个安卓原生相机功能可包括滤镜、美颜、调焦、双目拍照、人像识别、锐化、夜景等,然后根据用户选择确定目标功能;根据第三方应用确定的当前应用场景确定目标功能,例如第三方应用为相机且确定当前应用场景为夜景拍摄时,即可确定目标功能为安卓原生相机的夜景拍摄功能。In specific implementation, the display interface of the electronic device displays the application interface of a third-party application, and the application interface includes multiple native Android functions. For example, when the third-party application is a camera, multiple native Android camera functions can include filters, beauty, and adjustments. Focus, binocular photography, portrait recognition, sharpening, night scene, etc., and then determine the target function according to the user's choice; determine the target function according to the current application scene determined by the third-party application, for example, the third-party application is a camera and the current application scene is determined to be night scene shooting When the time, it can be determined that the target function is the night scene shooting function of the Android native camera.
可见,本示例中,根据用户针对通过第三方应用的应用界面显示多个安卓原生功能的选择确定目标功能,或由第三方应用确定当前的应用场景确定目标功能,或由媒体服务模块根据第三方应用确定当前的应用场景确定目标功能,实现了第三方应用调用底层能力的简便性和多样性。It can be seen that in this example, the target function is determined according to the user's choice to display multiple Android native functions through the application interface of the third-party application, or the third-party application determines the current application scenario to determine the target function, or the media service module determines the target function according to the third-party application. The application determines the current application scenario to determine the target function, and realizes the simplicity and diversity of third-party applications to call the underlying capabilities.
请参阅图3,图3是本申请实施例提供了一种应用数据处理方法的流程示意图,该应用数据处理方法可以应用于如图1所示的电子设备,所述电子设备包括媒体服务模块和操 作系统,所述操作系统的应用层设置有第三方应用;如图所示,本应用数据处理方法包括以下操作。Please refer to FIG. 3. FIG. 3 is a schematic flowchart of an application data processing method provided by an embodiment of the present application. The application data processing method can be applied to the electronic device shown in FIG. 1, and the electronic device includes a media service module and Operating system, the application layer of the operating system is provided with third-party applications; as shown in the figure, the application data processing method includes the following operations.
S301,所述第三方应用向所述操作系统的硬件抽象层发送数据请求;S301: The third-party application sends a data request to the hardware abstraction layer of the operating system;
S302,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块,所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;S302: The hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, the hardware abstraction module is connected to the algorithm management module, and the hardware abstraction module receives the data request and obtains the original application data to be processed , And send the original application data to the algorithm management module;
S303,所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据;S303: The algorithm management module receives the original application data, and uses the algorithm of the target function to process the original application data to obtain target application data;
S304,所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。S304: The third-party application receives the target application data, and implements the target function according to the target application data.
可以看出,本申请实施例中,电子设备包括媒体服务模块和操作系统,操作系统的应用层设置有第三方应用;第三方应用向操作系统的硬件抽象层发送数据请求;硬件抽象层接收数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理原始应用数据,得到目标应用数据,以及向第三方应用发送目标应用数据,其中,目标功能的算法是第三方应用通过媒体服务模块预先请求操作系统针对第三方应用开放的;第三方应用接收目标应用数据,根据目标应用数据实现目标功能。可见,通过第三方应用向硬件抽象层发送数据请求,并获取由硬件抽象层返回的目标应用数据实现目标功能,有利于实现第三方应用获取电子设备底层的算法的简便性,以及安全的开放底层功能。It can be seen that in this embodiment of the application, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application The media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data. It can be seen that sending data requests to the hardware abstraction layer through a third-party application and obtaining the target application data returned by the hardware abstraction layer to achieve the target function is conducive to the convenience of third-party applications to obtain the underlying algorithm of the electronic device, as well as a safe and open bottom layer. Features.
与上述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种应用数据处理装置的结构示意图;应用于电子设备,所述应用数据处理装置包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;其中,Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of an application data processing apparatus provided by an embodiment of the present application; applied to electronic equipment, the application data processing apparatus includes a media service A module and an operating system, the application layer of the operating system is provided with third-party applications; wherein,
所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求;The third-party application is used to send a data request to the hardware abstraction layer of the operating system;
所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
所述第三方应用,还用于接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application is also used to receive the target application data, and implement the target function according to the target application data.
可以看出,本申请实施例中,电子设备包括媒体服务模块和操作系统,操作系统的应用层设置有第三方应用;第三方应用向操作系统的硬件抽象层发送数据请求;硬件抽象层接收数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理原始应用数据,得到目标应用数据,以及向第三方应用发送目标应用数据,其中,目标功能的算法是第三方应用通过媒体服务模块预先请求操作系统针对第三方应用开放的;第三方应用接收目标应用数据,根据目标应用数据实现目标功能。可见,通过第三方应用向硬件抽象层发送数据请求,并获取由硬件抽象层返回的目标应用数据实现目标功能,有利于实现第三方应用获取电子设备底层的算法的简便性,以及安全的开放底层功能。It can be seen that in this embodiment of the application, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application The media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data. It can be seen that sending data requests to the hardware abstraction layer through a third-party application and obtaining the target application data returned by the hardware abstraction layer to achieve the target function is conducive to the convenience of third-party applications to obtain the underlying algorithm of the electronic device, as well as a safe and open bottom layer. Features.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;其中,In a possible example, the 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 to the algorithm management module; wherein,
针对所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据:For the hardware abstraction layer, it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
所述硬件抽象模块,用于接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;The hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module;
所述算法管理模块,用于接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;其中,In a possible example, the 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 to the algorithm management module through the media policy module; wherein,
针对所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据:For the hardware abstraction layer, it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
所述硬件抽象模块,用于接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;The hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module through the media policy module;
所述算法管理模块,用于接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;其中,In a possible example, the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm Management module; among them,
所述目标功能的算法具体通过如下模块实现对所述第三方应用开放:The algorithm of the target function is implemented to be open 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; and convert the first function configuration information into the Second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module;
所述算法管理模块,用于接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。The algorithm management module is configured to receive the second function configuration information, and according to the second function configuration information, open the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system .
在一个可能的示例中,所述媒体策略模块,用于接收来自所述媒体服务模块的第一功能配置信息之前:In a possible example, before the media policy module is configured to receive the first function 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 a possible example, the application layer of the operating system is also provided with a media management module; wherein,
所述媒体管理模块,用于支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。The media management module is used to support information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
在一个可能的示例中,所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求之前:In a possible example, before the third-party application is used to send a data request to the hardware abstraction layer of the operating system:
所述第三方应用,用于向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;The third-party application is used to send a media platform version acquisition request carrying an authentication code to the media service module;
所述媒体服务模块,应用于接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过;The media service module is configured to receive the media platform version acquisition request, verify the authentication code and pass the verification;
所述媒体服务模块,用于向所述第三方应用发送所述媒体平台版本信息。The media service module is configured to send the media platform version information to the third-party application.
在一个可能的示例中,所述媒体服务模块,用于向所述第三方应用发送所述媒体平台版本信息之后:In a possible example, the media service module is configured to send the media platform version information to the third-party application:
所述第三方应用,用于接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;The third-party application is configured to receive the media platform version information, and send a capability acquisition request carrying the media platform version information to the media service module;
所述媒体服务模块,用于接收所述能力获取请求,查询所述媒体平台版本信息的应用能力列表,向所述第三方应用发送所述应用能力列表;The media service module is configured to receive the capability acquisition request, query the application capability list of the media platform version information, and send the application capability list to the third-party application;
所述第三方应用,用于接收所述应用能力列表,查询所述应用能力列表以获取当前媒体平台针对所述第三方应用所支持的多个安卓原生功能;以及确定所述多个安卓原生功能中被选择开放的目标功能。The third-party application is configured to receive the application capability list, query the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple Android native functions The target function that was selected to open in.
在一个可能的示例中,所述第三方应用,用于在第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;还用于确定当前的 应用场景,根据所述应用场景确定所述目标功能;还用于确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。In a possible example, the third-party application is used to display multiple native Android functions on the application interface of the third-party application, and the target function is determined according to the user's selection of the multiple native Android functions; it is also used to determine the current The application scenario of, determines the target function according to the application scenario; is also used to determine the current application scenario, and sends the application scenario to the media service module, which is determined by the media service module according to the application scenario The target function.
与上述图2所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令;Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. 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 above-mentioned memory 520 and are configured to be executed by the above-mentioned application processor 510, and the one or more The program 521 includes instructions for performing the following steps;
所述第三方应用向所述操作系统的硬件抽象层发送数据请求;The third-party application sends a data request to the hardware abstraction layer of the operating system;
所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application. Target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application receives the target application data, and implements the target function according to the target application data.
可以看出,本申请实施例中,电子设备包括媒体服务模块和操作系统,操作系统的应用层设置有第三方应用;第三方应用向操作系统的硬件抽象层发送数据请求;硬件抽象层接收数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理原始应用数据,得到目标应用数据,以及向第三方应用发送目标应用数据,其中,目标功能的算法是第三方应用通过媒体服务模块预先请求操作系统针对第三方应用开放的;第三方应用接收目标应用数据,根据目标应用数据实现目标功能。可见,通过第三方应用向硬件抽象层发送数据请求,并获取由硬件抽象层返回的目标应用数据实现目标功能,有利于实现第三方应用获取电子设备底层的算法的简便性,以及安全的开放底层功能。It can be seen that in this embodiment of the application, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application The media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data. It can be seen that sending data requests to the hardware abstraction layer through a third-party application and obtaining the target application data returned by the hardware abstraction layer to achieve the target function is conducive to the convenience of third-party applications to obtain the underlying algorithm of the electronic device, as well as a safe and open bottom layer. Features.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;在所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据方面,所述程序521中的指令具体用于执行以下操作:所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。In a possible example, the hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, the hardware abstraction module is connected to the algorithm management module; the data request is received at the hardware abstraction layer to obtain The original application data to be processed, and the algorithm used to achieve the target function is called to process the original application data to obtain the target application data. In terms of obtaining target application data, the instructions in the program 521 are specifically used to perform the following operations: 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; the algorithm management module receives the original application data, and uses the algorithm of the target function to process the original application Data to get the target application data.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;在所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据方面,所述程序521中的指令具体用于执行以下操作:所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。In a possible example, the 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 to the algorithm management module through the media policy module; The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls the algorithm used to realize the target function to process the original application data to obtain the target application data. In terms of obtaining the target application data, the instructions in the program 521 are specifically used for execution The following operations: 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 The original application data is processed by using the algorithm of the target function to obtain the target application data.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;在所述目标功能的算法具体通过如下操作实现对所述第三方应用开放方面,所述程序521中的指令具体用于执行以下操作:所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息,所述第一功能配置信息包括所述目标功能的描述信息;将所述第一功能配置信息转换为所述算法管理模块能够识别的第二功能配置信息,并向所述算法管理模块发送所述第二功能配置信息;所述算法管理模块接收所述第二功能配置信息, 根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。In a possible example, the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm Management module; in terms of the algorithm of the target function being opened to the third-party application through the following operations, the instructions in the program 521 are specifically used to perform the following operations: the media policy module receives from the media service module The first function configuration information includes the description information of the target function; the first function configuration information is converted into the second function configuration information that can be recognized by the algorithm management module, and the information is sent to all The algorithm management module sends the second function configuration information; the algorithm management module receives the second function configuration information, and opens the third-party application's algorithm library for the operating system according to the second function configuration information The right to use the algorithm of the target function.
在一个可能的示例中,所述程序521中包括用于执行以下步骤的指令:所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息之前,所述媒体服务模块确定所述第三方应用所需要使用的所述目标功能,根据所述目标功能生成所述第一功能配置信息;所述媒体服务模块向所述媒体策略模块发送所述第一功能配置信息。In a possible example, the program 521 includes instructions for performing the following steps: before the media policy module receives the first function configuration information from the media service module, the media service module determines the first function configuration information The target function required by the three-party application 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.
在一个可能的示例中,所述操作系统的应用层还设置有媒体管理模块,所述媒体管理模块支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。In a possible example, the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
在一个可能的示例中,所述程序521中包括用于执行以下步骤的指令:所述第三方应用向所述操作系统的硬件抽象层发送数据请求之前,所述第三方应用向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;所述媒体服务模块接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过;所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息。In a possible example, the program 521 includes instructions for performing the following steps: before the third-party application sends a data request to the hardware abstraction layer of the operating system, the third-party application sends a request to the media service The module sends a media platform version acquisition request carrying an authentication code; the media service module receives the media platform version acquisition request, verifies the authentication code and the verification passes; the media service module sends the third party The application sends the media platform version information.
在一个可能的示例中,所述程序521中包括用于执行以下步骤的指令:所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息之后,所述第三方应用接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;所述媒体服务模块接收所述能力获取请求,查询所述媒体平台版本信息的应用能力列表,向所述第三方应用发送所述应用能力列表;所述第三方应用接收所述应用能力列表,查询所述应用能力列表以获取当前媒体平台针对所述第三方应用所支持的多个安卓原生功能;以及确定所述多个安卓原生功能中被选择开放的目标功能。In a 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, sending a capability acquisition request carrying the media platform version information to the media service module; the media service module receives the capability acquisition request, queries the application capability list of the media platform version information, and sends the The third-party application sends the application capability list; the third-party application receives the application capability list, and queries the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and Determine the selected and open target function among the multiple Android native functions.
在一个可能的示例中,所述程序521中包括用于执行以下步骤的指令:所述目标功能是通过以下任意一种方式确定的:通过所述第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;以及,由所述第三方应用确定当前的应用场景,根据所述应用场景确定所述目标功能;以及,由所述第三方应用确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。In a possible example, the program 521 includes instructions for executing the following steps: the target function is determined by any of the following methods: multiple Android native functions are displayed through the application interface of the third-party application , Determine the target function according to the user's selection of the multiple Android native functions; and, determine the current application scenario by the third-party application, and determine the target function according to the application scenario; and, by the third-party application The current application scenario is determined, and the application scenario is sent to the media service module, and the media service module determines the target function according to the application scenario.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that, in order to implement the above-mentioned functions, an electronic device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments provided herein, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the electronic device into functional units according to the foregoing method examples. 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 above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
图6是本申请实施例中所涉及的应用数据处理装置600的功能单元组成框图。该应用数据处理装置600应用于电子设备,所述电子设备包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;,所述应用数据处理装置包括处理单元601和通信单元602,其中,所述处理单元601,用于执行如上述方法实施例中的任一步骤,且在执行诸如发送等数据传输时,可选择的调用所述通信单元603来完成相应操作。下面进行详细说明。FIG. 6 is a block diagram of the functional unit composition of the application data processing device 600 involved in an embodiment of the present application. The application data processing device 600 is applied to an electronic device, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with a third-party application; the application data processing device includes a processing unit 601 and a communication unit 602. The processing unit 601 is configured to perform any step in the above method embodiment, and when performing data transmission such as sending, the communication unit 603 can be selectively invoked to complete the corresponding operation. The detailed description will be given below.
所述处理单元601,用于控制所述第三方应用向所述操作系统的硬件抽象层发送数据 请求;以及所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;以及所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The processing unit 601 is configured to control the third-party application to send a data request to the hardware abstraction layer of the operating system; and the hardware abstraction layer receives the data request, obtains the original application data to be processed, and invokes The algorithm for achieving the target function processes the original application data to obtain target application data, and sends the target application data to the third-party application, wherein the algorithm for the target function is that the third-party application passes through the media The service module requests in advance that the operating system is open to the third-party application; and the third-party application receives the target application data, and implements the target function according to the target application data.
其中,所述应用数据处理装置600还可以包括存储单元603,用于存储电子设备的程序代码和数据。所述处理单元601可以是处理器,所述通信单元602可以是触控显示屏或者收发器,存储单元603可以是存储器。Wherein, the application data processing apparatus 600 may further include 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 screen or a transceiver, and the storage unit 603 may be a memory.
可以看出,本申请实施例中,电子设备包括媒体服务模块和操作系统,操作系统的应用层设置有第三方应用;第三方应用向操作系统的硬件抽象层发送数据请求;硬件抽象层接收数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理原始应用数据,得到目标应用数据,以及向第三方应用发送目标应用数据,其中,目标功能的算法是第三方应用通过媒体服务模块预先请求操作系统针对第三方应用开放的;第三方应用接收目标应用数据,根据目标应用数据实现目标功能。可见,通过第三方应用向硬件抽象层发送数据请求,并获取由硬件抽象层返回的目标应用数据实现目标功能,有利于实现第三方应用获取电子设备底层的算法的简便性,以及安全的开放底层功能。It can be seen that in this embodiment of the application, the electronic device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; the third-party application sends data requests to the hardware abstraction layer of the operating system; the hardware abstraction layer receives data Request, obtain the original application data to be processed, and call the algorithm used to achieve the target function to process the original application data, obtain the target application data, and send the target application data to the third-party application, where the algorithm of the target function is passed by the third-party application The media service module requests in advance that the operating system is open to third-party applications; the third-party applications receive target application data and implement target functions based on the target application data. It can be seen that sending data requests to the hardware abstraction layer through a third-party application and obtaining the target application data returned by the hardware abstraction layer to achieve the target function is conducive to the convenience of third-party applications to obtain the underlying algorithm of the electronic device, as well as a safe and open bottom layer. Features.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;在所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据方面,所述处理单元601具体用于,所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。In a possible example, the hardware abstraction layer of the operating system is provided with a hardware abstraction module and an algorithm management module, the hardware abstraction module is connected to the algorithm management module; the data request is received at the hardware abstraction layer to obtain The original application data to be processed, and the algorithm used to realize the target function is called to process the original application data to obtain the target application data. The processing unit 601 is specifically configured to receive the data request by the hardware abstraction module and obtain the target application data. The original application data to be processed, and send the original application data to the algorithm management module; the algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data to obtain the target application data.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;在所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据方面,所述处理单元601具体用于,所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。In a possible example, the 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 to the algorithm management module through the media policy module; The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls the algorithm for realizing the target function to process the original application data to obtain the target application data. The processing unit 601 is specifically configured to: 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 strategy module; the algorithm management module receives the original application data, and uses The algorithm of the target function processes the original application data to obtain target application data.
在一个可能的示例中,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;在所述目标功能的算法具体通过如下操作实现对所述第三方应用开放方面,所述处理单元601具体用于,所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息,所述第一功能配置信息包括所述目标功能的描述信息;将所述第一功能配置信息转换为所述算法管理模块能够识别的第二功能配置信息,并向所述算法管理模块发送所述第二功能配置信息;所述算法管理模块接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。In a possible example, the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media policy module is connected to the algorithm Management module; in terms of the algorithm of the target function being opened to the third-party application through the following operations, the processing unit 601 is specifically configured to receive the first function configuration from the media service module by the media policy module Information, the first function configuration information includes description information of the target function; the first function configuration information is converted into second function configuration information that can be recognized by the algorithm management module, and the information is sent to the algorithm management module The second function configuration information; the algorithm management module receives the second function configuration information, and opens the third-party application to the target function in the algorithm library of the operating system according to the second function configuration information Permission to use the algorithm.
在一个可能的示例中,所述处理单元601还用于,所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息之前,所述媒体服务模块确定所述第三方应用所需要使用的所述目标功能,根据所述目标功能生成所述第一功能配置信息;所述媒体服务模块向所述媒体策略模块发送所述第一功能配置信息。In a possible example, the processing unit 601 is further configured to: before the media policy module receives the first function configuration information from the media service module, the media service module determines that the third-party application needs to use The target function of, 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.
在一个可能的示例中,所述操作系统的应用层还设置有媒体管理模块,所述媒体管理 模块支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。In a possible example, the application layer of the operating system is further provided with a media management module, and the media management module supports information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
在一个可能的示例中,所述处理单元601还用于,所述第三方应用向所述操作系统的硬件抽象层发送数据请求之前,所述第三方应用向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;所述媒体服务模块接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过;所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息。In a possible example, the processing unit 601 is further configured to: before the third-party application sends a data request to the hardware abstraction layer of the operating system, the third-party application sends an authentication file to the media service module. Request for obtaining the media platform version of the right code; the media service module receives the request for obtaining the media platform version, verifies the authentication code and the verification passes; the media service module sends the media to the third-party application Platform version information.
在一个可能的示例中,所述处理单元601还用于,所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息之后,所述第三方应用接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;所述媒体服务模块接收所述能力获取请求,查询所述媒体平台版本信息的应用能力列表,向所述第三方应用发送所述应用能力列表;所述第三方应用接收所述应用能力列表,查询所述应用能力列表以获取当前媒体平台针对所述第三方应用所支持的多个安卓原生功能;以及确定所述多个安卓原生功能中被选择开放的目标功能。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, the third-party application receives the media platform version information, and sends The media service module sends a capability acquisition request carrying the media platform version information; the media service module receives the capability acquisition request, queries the application capability list of the media platform version information, and sends it to the third-party application The application capability list; the third-party application receives the application capability list, and queries the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple The target function that is selected to be open among the Android native functions.
在一个可能的示例中,所述处理单元601还用于,所述目标功能是通过以下任意一种方式确定的:通过所述第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;以及,由所述第三方应用确定当前的应用场景,根据所述应用场景确定所述目标功能;以及,由所述第三方应用确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。In a possible example, the processing unit 601 is further configured to determine the target function in any of the following ways: display multiple native Android functions through the application interface of the third-party application, The selection of the multiple Android native functions determines the target function; and the third-party application determines the current application scenario, and the target function is determined according to the application scenario; and the third-party application determines the current application scenario And send the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
可以理解的是,由于方法实施例与装置实施例为相同技术构思的不同呈现形式,因此,本申请中方法实施例部分的内容应同步适配于装置实施例部分,此处不再赘述。It is understandable that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part of this application should be synchronized to the device embodiment part, and will not be repeated here.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment , The above-mentioned computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。The embodiments of the present application also provide a computer program product. The above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program. The above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order or at the same time. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application. The aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the application are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the application; at the same time, for Those of ordinary skill in the art, based on the ideas of the application, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as limiting the application.

Claims (20)

  1. 一种应用数据处理方法,其特征在于,应用于电子设备,所述电子设备包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;所述方法包括:An application data processing method, characterized in that it is applied to an electronic device, the electronic device includes a media service module and an operating system, the application layer of the operating system is provided with a third-party application; the method includes:
    所述第三方应用向所述操作系统的硬件抽象层发送数据请求;The third-party application sends a data request to the hardware abstraction layer of the operating system;
    所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer receives the data request, obtains the original application data to be processed, calls the algorithm for realizing the target function to process the original application data, obtains the target application data, and sends the data to the third-party application. Target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to open for the third-party application in advance through the media service module;
    所述第三方应用接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application receives the target application data, and implements the target function according to the target application data.
  2. 根据权利要求1所述的方法,其特征在于,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;The method according to claim 1, wherein the 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 to the algorithm management module;
    所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data, including:
    所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;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;
    所述算法管理模块接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module receives the original application data, uses the algorithm of the target function to process the original application data, and obtains the target application data.
  3. 根据权利要求1所述的方法,其特征在于,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;The method according to claim 1, wherein the 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 to the algorithm through the media policy module Management module;
    所述硬件抽象层接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,包括:The hardware abstraction layer receives the data request, obtains the original application data to be processed, and calls an algorithm for realizing the target function to process the original application data to obtain the target application data, including:
    所述硬件抽象模块接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;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, uses the algorithm of the target function to process the original application data, and obtains the target application data.
  4. 根据权利要求1所述的方法,其特征在于,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所 述媒体策略模块连接所述算法管理模块;The method according to claim 1, wherein the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media The strategy module is connected to the algorithm management module;
    所述目标功能的算法具体通过如下操作实现对所述第三方应用开放:The algorithm of the target function is specifically opened to the third-party application through the following operations:
    所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息,所述第一功能配置信息包括所述目标功能的描述信息;将所述第一功能配置信息转换为所述算法管理模块能够识别的第二功能配置信息,并向所述算法管理模块发送所述第二功能配置信息;The media strategy module receives first function configuration information from the media service module, where the first function configuration information includes description information of the target function; and converts the first function configuration information into the algorithm management module Recognizable second function configuration information, and sending the second function configuration information to the algorithm management module;
    所述算法管理模块接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。The algorithm management module receives the second function configuration information, and opens the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system according to the second function configuration information.
  5. 根据权利要求4所述的方法,其特征在于,所述媒体策略模块接收来自所述媒体服务模块的第一功能配置信息之前,所述方法还包括:The method according to claim 4, wherein before the media policy module receives the first function configuration information from the media service module, the method further comprises:
    所述媒体服务模块确定所述第三方应用所需要使用的所述目标功能,根据所述目标功能生成所述第一功能配置信息;Determining, by the media service module, the target function that the third-party application needs to use, and generating 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. 根据权利要求1-5任一项所述的方法,其特征在于,所述操作系统的应用层还设置有媒体管理模块,所述媒体管理模块支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。The method according to any one of claims 1-5, wherein the application layer of the operating system is further provided with a media management module, and the media management module supports the realization of the third-party application and the third-party application through the SDK binder communication mechanism. Information interaction of the media service module.
  7. 根据权利要求6所述的方法,其特征在于,所述第三方应用向所述操作系统的硬件抽象层发送数据请求之前,所述方法还包括:The method according to claim 6, wherein before the third-party application sends a data request to the hardware abstraction layer of the operating system, the method further comprises:
    所述第三方应用向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;Sending, by the third-party application, 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 the verification passes;
    所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息。The media service module sends the media platform version information to the third-party application.
  8. 根据权利要求7所述的方法,其特征在于,所述媒体服务模块向所述第三方应用发送所述媒体平台版本信息之后,所述方法还包括:The method according to 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, queries the 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 list of application capabilities, queries the list of application capabilities to obtain multiple native Android functions supported by the current media platform for the third-party application; and determines that the multiple native Android functions are selected Open target function.
  9. 根据权利要求8所述的方法,其特征在于,所述目标功能是通过以下任意一种方式确定的:The method according to claim 8, wherein the target function is determined by any one of the following methods:
    通过所述第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;以及,Display a plurality of Android native functions through the application interface of the third-party application, and determine the target function according to the user's selection of the plurality of Android native functions; and,
    由所述第三方应用确定当前的应用场景,根据所述应用场景确定所述目标功能;以及,The current application scenario is determined by the third-party application, and the target function is determined according to the application scenario; and,
    由所述第三方应用确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。The third-party application determines the current application scenario, and sends the application scenario to the media service module, and the media service module determines the target function according to the application scenario.
  10. 一种应用数据处理装置,其特征在于,应用于电子设备,所述应用数据处理装置包括媒体服务模块和操作系统,所述操作系统的应用层设置有第三方应用;其中,An application data processing device, characterized in that it is applied to electronic equipment, the application data processing device includes a media service module and an operating system, and the application layer of the operating system is provided with third-party applications; wherein,
    所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求;The third-party application is used to send a data request to the hardware abstraction layer of the operating system;
    所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据,以及向所述第三方应用发送所述目标应用数据,其中,所述目标功能的算法是所述第三方应用通过所述媒体服务模块预先请求操作系统针对所述第三方应用开放的;The hardware abstraction layer is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data, obtain the target application data, and send the data to the third-party application Sending the target application data, wherein the algorithm of the target function is that the third-party application requests the operating system to be open to the third-party application in advance through the media service module;
    所述第三方应用,还用于接收所述目标应用数据,根据所述目标应用数据实现所述目标功能。The third-party application is also used to receive the target application data, and implement the target function according to the target application data.
  11. 根据权利要求10所述的装置,其特征在于,所述操作系统的硬件抽象层设置有硬件抽象模块和算法管理模块,所述硬件抽象模块连接所述算法管理模块;其中,The device according to claim 10, wherein the 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 to the algorithm management module; wherein,
    针对所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据:For the hardware abstraction layer, it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
    所述硬件抽象模块,用于接收所述数据请求,获取待处理的原始应用数据,并向所述算法管理模块发送所述原始应用数据;The hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module;
    所述算法管理模块,用于接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
  12. 根据权利要求10所述的装置,其特征在于,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块通过所述媒体策略模块连接所述算法管理模块;其中,The device according to claim 10, wherein the 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 to the algorithm through the media policy module Management module; among them,
    针对所述硬件抽象层,用于接收所述数据请求,获取待处理的原始应用数据,并调用用于实现目标功能的算法处理所述原始应用数据,得到目标应用数据:For the hardware abstraction layer, it is used to receive the data request, obtain the original application data to be processed, and call the algorithm for realizing the target function to process the original application data to obtain the target application data:
    所述硬件抽象模块,用于接收所述数据请求,获取待处理的原始应用数据,并通过所述媒体策略模块向所述算法管理模块发送所述原始应用数据;The hardware abstraction module is configured to receive the data request, obtain the original application data to be processed, and send the original application data to the algorithm management module through the media policy module;
    所述算法管理模块,用于接收所述原始应用数据,利用所述目标功能的算法处理所述原始应用数据,得到目标应用数据。The algorithm management module is configured to receive the original application data, and process the original application data using the algorithm of the target function to obtain target application data.
  13. 根据权利要求10所述的装置,其特征在于,所述操作系统的硬件抽象层设置有硬件抽象模块、媒体策略模块和算法管理模块,所述硬件抽象模块连接所述媒体策略模块,所述媒体策略模块连接所述算法管理模块;其中,The device according to claim 10, wherein the hardware abstraction layer of the operating system is provided with a hardware abstraction module, a media policy module, and an algorithm management module, the hardware abstraction module is connected to the media policy module, and the media The strategy module is connected to the algorithm management module; wherein,
    所述目标功能的算法具体通过如下模块实现对所述第三方应用开放:The algorithm of the target function is implemented to be open 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; and convert the first function configuration information into the Second function configuration information that can be identified by the algorithm management module, and send the second function configuration information to the algorithm management module;
    所述算法管理模块,用于接收所述第二功能配置信息,根据所述第二功能配置信息开放所述第三方应用针对所述操作系统的算法库中的所述目标功能的算法的使用权限。The algorithm management module is configured to receive the second function configuration information, and according to the second function configuration information, open the third-party application's use authority for the algorithm of the target function in the algorithm library of the operating system .
  14. 根据权利要求13所述的装置,其特征在于,所述媒体策略模块,用于接收来自所述媒体服务模块的第一功能配置信息之前:The apparatus according to claim 13, wherein the media policy module is configured to: before receiving the first function 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. 根据权利要求10-14任一项所述的装置,其特征在于,所述操作系统的应用层还设置有媒体管理模块;其中,The device 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,
    所述媒体管理模块,用于支持通过SDK binder通信机制实现所述第三方应用与所述媒体服务模块的信息交互。The media management module is used to support information interaction between the third-party application and the media service module through the SDK binder communication mechanism.
  16. 根据权利要求15所述的装置,其特征在于,所述第三方应用,用于向所述操作系统的硬件抽象层发送数据请求之前:The device according to claim 15, wherein before the third-party application is used to send a data request to the hardware abstraction layer of the operating system:
    所述第三方应用,用于向所述媒体服务模块发送携带有鉴权码的媒体平台版本获取请求;The third-party application is used to send a media platform version acquisition request carrying an authentication code to the media service module;
    所述媒体服务模块,应用于接收所述媒体平台版本获取请求,校验所述鉴权码且校验通过;The media service module is configured to receive the media platform version acquisition request, verify the authentication code and pass the verification;
    所述媒体服务模块,用于向所述第三方应用发送所述媒体平台版本信息。The media service module is configured to send the media platform version information to the third-party application.
  17. 根据权利要求16所述的装置,其特征在于,所述媒体服务模块,用于向所述第三方应用发送所述媒体平台版本信息之后:The apparatus according to claim 16, wherein the media service module is configured to send the media platform version information to the third-party application:
    所述第三方应用,用于接收所述媒体平台版本信息,向所述媒体服务模块发送携带有所述媒体平台版本信息的能力获取请求;The third-party application is configured to receive the media platform version information, and send a capability acquisition request carrying the media platform version information to the media service module;
    所述媒体服务模块,用于接收所述能力获取请求,查询所述媒体平台版本信息的应用能力列表,向所述第三方应用发送所述应用能力列表;The media service module is configured to receive the capability acquisition request, query the application capability list of the media platform version information, and send the application capability list to the third-party application;
    所述第三方应用,用于接收所述应用能力列表,查询所述应用能力列表以获取当前媒体平台针对所述第三方应用所支持的多个安卓原生功能;以及确定所述多个安卓原生功能中被选择开放的目标功能。The third-party application is configured to receive the application capability list, query the application capability list to obtain multiple Android native functions supported by the current media platform for the third-party application; and determine the multiple Android native functions The target function that was selected to open in.
  18. 根据权利要求17所述的装置,其特征在于,所述第三方应用,用于在第三方应用的应用界面显示多个安卓原生功能,根据用户针对所述多个安卓原生功能的选择确定目标功能;还用于确定当前的应用场景,根据所述应用场景确定所述目标功能;还用于确定当前的应用场景,并将所述应用场景发给所述媒体服务模块,由所述媒体服务模块根据所述应用场景确定所述目标功能。The device according to claim 17, wherein the third-party application is used to display a plurality of Android native functions on the application interface of the third-party application, and the target function is determined according to the user's selection of the plurality of Android native functions ; Is also used to determine the current application scenario, and determine the target function according to the application scenario; also used to determine the current application scenario, and send the application scenario to the media service module, and the media service module The target function is determined according to the application scenario.
  19. 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1-9中任一项所述的方法。A chip, characterized by comprising: a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the method according to any one of claims 1-9.
  20. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。An electronic device, characterized by comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, The program includes instructions for performing the steps in the method according to any one of claims 1-9.
PCT/CN2020/129137 2019-12-09 2020-11-16 Application data processing method and related apparatus WO2021115038A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2021115038A1 true WO2021115038A1 (en) 2021-06-17

Family

ID=70300495

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112330519A (en) * 2020-11-17 2021-02-05 珠海大横琴科技发展有限公司 Data processing method and device
CN114827514B (en) * 2021-01-29 2023-11-17 华为技术有限公司 Electronic device, data transmission method and medium for electronic device and other electronic devices
CN113778458B (en) * 2021-08-19 2024-04-05 北京爱芯科技有限公司 Data processor function development system, method and computing device
CN116366914A (en) * 2021-12-28 2023-06-30 北京小米移动软件有限公司 Video data processing method, electronic device and storage medium
CN116339870B (en) * 2023-05-22 2023-08-01 南京美乐威电子科技有限公司 Method for scheduling hardware interface of equipment by third-party application and audio/video processing equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200913A (en) * 2011-06-20 2011-09-28 奇瑞汽车股份有限公司 Layered design method of model-based automatic transmission software development platform
CN104657956A (en) * 2015-03-16 2015-05-27 龙旗电子(惠州)有限公司 Method for realizing smart phone picture beautifying function
CN110177218A (en) * 2019-06-28 2019-08-27 广州鲁邦通物联网科技有限公司 A kind of image processing method of taking pictures of Android device
CN110933275A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Photographing method and related equipment
CN110933313A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Dark light photographing method and related equipment
CN110941821A (en) * 2019-12-09 2020-03-31 Oppo广东移动通信有限公司 Data processing method, device and storage medium
CN110990088A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Data processing method and related equipment
CN110991368A (en) * 2019-12-09 2020-04-10 上海瑾盛通信科技有限公司 Camera scene recognition method and related device
CN110991369A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Image data processing method and related device
CN111045518A (en) * 2019-12-09 2020-04-21 上海瑾盛通信科技有限公司 Method for acquiring attitude data and related device
CN111061524A (en) * 2019-12-09 2020-04-24 Oppo广东移动通信有限公司 Application data processing method and related device

Family Cites Families (3)

* 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
CN109101352B (en) * 2018-08-30 2021-08-06 Oppo广东移动通信有限公司 Image processing algorithm architecture, algorithm calling method, device, storage medium and mobile terminal
CN114666435B (en) * 2019-04-19 2023-03-28 华为技术有限公司 Method for using enhanced function of electronic device, chip and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200913A (en) * 2011-06-20 2011-09-28 奇瑞汽车股份有限公司 Layered design method of model-based automatic transmission software development platform
CN104657956A (en) * 2015-03-16 2015-05-27 龙旗电子(惠州)有限公司 Method for realizing smart phone picture beautifying function
CN110177218A (en) * 2019-06-28 2019-08-27 广州鲁邦通物联网科技有限公司 A kind of image processing method of taking pictures of Android device
CN110933275A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Photographing method and related equipment
CN110933313A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Dark light photographing method and related equipment
CN110941821A (en) * 2019-12-09 2020-03-31 Oppo广东移动通信有限公司 Data processing method, device and storage medium
CN110990088A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Data processing method and related equipment
CN110991368A (en) * 2019-12-09 2020-04-10 上海瑾盛通信科技有限公司 Camera scene recognition method and related device
CN110991369A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Image data processing method and related device
CN111045518A (en) * 2019-12-09 2020-04-21 上海瑾盛通信科技有限公司 Method for acquiring attitude data and related device
CN111061524A (en) * 2019-12-09 2020-04-24 Oppo广东移动通信有限公司 Application data processing method and related device

Also Published As

Publication number Publication date
CN111061524A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
WO2021115038A1 (en) Application data processing method and related apparatus
CN108595970B (en) Configuration method and device of processing assembly, terminal and storage medium
EP3772700A1 (en) Method and device for encrypting model of neural network, and storage medium
US10275581B2 (en) Method and apparatus for sharing content between electronic devices
WO2020047710A1 (en) Login method, token sending method, and device
KR102122476B1 (en) Apparatas and method for controlling a rotation of screen in an electronic device
WO2021115113A1 (en) Data processing method and device, and storage medium
WO2021159765A1 (en) Account data sharing method and electronic device
US20170201378A1 (en) Electronic device and method for authenticating identification information thereof
CN110991368B (en) Camera scene recognition method and related device
US10999501B2 (en) Electronic device and method for controlling display of panorama image
EP3817322A1 (en) Method for upgrading service application range of electronic identity card, and terminal device
US9756674B2 (en) Method of transmitting and receiving data of electronic device and electronic device using the method
CN111357255B (en) Building a trusted application common to multiple applications
KR20150075140A (en) Message control method of electronic apparatus and electronic apparatus thereof
KR102213429B1 (en) Apparatus And Method For Providing Sound
WO2019192128A1 (en) Webpage access method and apparatus
US10178087B2 (en) Trusted pin management
CN112995322B (en) Information transmission channel establishment method, device, storage medium and terminal
US20170048292A1 (en) Electronic device and method for providing content
WO2020133477A1 (en) Data display method
CN109933960A (en) Service call control method, service calling method, device and terminal
WO2022242343A1 (en) Cross-device text continuity method and electronic device
CN110996088B (en) Video processing method and related device
CN111062025B (en) Application data processing method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20900572

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20900572

Country of ref document: EP

Kind code of ref document: A1