WO2021238376A1 - Procédé et appareil de chargement d'ensemble de fonctions, et serveur et dispositif électronique - Google Patents

Procédé et appareil de chargement d'ensemble de fonctions, et serveur et dispositif électronique Download PDF

Info

Publication number
WO2021238376A1
WO2021238376A1 PCT/CN2021/083177 CN2021083177W WO2021238376A1 WO 2021238376 A1 WO2021238376 A1 WO 2021238376A1 CN 2021083177 W CN2021083177 W CN 2021083177W WO 2021238376 A1 WO2021238376 A1 WO 2021238376A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
package
information
electronic device
matching
Prior art date
Application number
PCT/CN2021/083177
Other languages
English (en)
Chinese (zh)
Inventor
李国强
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021238376A1 publication Critical patent/WO2021238376A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the embodiments of the present application relate to the technical field of smart terminals, and in particular to a method, device, server, and electronic equipment for loading a function package.
  • the design of applications is becoming more and more complicated, which leads to more and more App installation packages.
  • the App will use redundant lib libraries (x86, arm32 and/ (Or arm64, etc.) files and/or resource files are packaged in an application installation package.
  • the user has to download a complete installation package when using a certain function of the App, redundant functions, redundant lib libraries and/or resource files will cause a waste of user traffic, and the waiting time for users to download and install the App is longer Long, the App installation package takes up more storage space.
  • the existing related technology provides an on-demand resource download solution, that is, according to the specific conditions of the operating device, only the resources required to run the App on the device are downloaded.
  • the embodiment of the application provides a method, device, server, and electronic device for loading a function package.
  • the embodiment of the application also provides a computer-readable storage medium to implement the description of the functions required by the electronic device according to the currently running application. Information download function package.
  • the present application provides a method for loading a function package, including: the electronic device detects the first operation information of the user in the interface displayed by the first application program currently running; wherein, the above-mentioned first operation information may be The user's click, double-click, long-press or draw a specific graphic in the interface displayed by the first application, or the above-mentioned first operation information may be the user's click, double-click or long-click on a specific icon in the interface displayed by the first application. In terms of operation, this embodiment does not limit the operation form of the first operation information.
  • the electronic device displays the function selection interface in response to the above-mentioned first operation information.
  • the electronic device detects the second operation information for the user to select the first function, where the second operation information may be the user's click, double-click, or long-press operation on the function icon in the function selection interface.
  • the operation form of the second operation information is not limited.
  • the second operation information is the user's clicking operation of the function icon as an example for description.
  • the electronic device obtains the description information of the first function in response to the foregoing second operation information; in specific implementation, the electronic device may obtain the description information of the first function selected by the user from the local data of the first application.
  • the electronic device searches for a function package whose matching identifier matches the description information among the function packages that have been installed on the above-mentioned electronic device.
  • the description information is sent to the server, and the download information sent by the server is received.
  • the download information includes the information of the function package and the information of the dependency package of the function package.
  • the function package includes the matching identifier and the above The function package that matches the description information.
  • the electronic device downloads the above-mentioned function package and the dependency package of the above-mentioned function package, silently installs and loads the above-mentioned function package.
  • the information of the above-mentioned function package may include the matching identifier and download address of the above-mentioned function package.
  • the information of the above-mentioned function package may also include other information, such as version information and/or manufacturer information of the function package. This is not limited.
  • the information of the dependent package of the above-mentioned function package may include the matching identifier and download address of the dependent package of the above-mentioned function package.
  • the function selection interface is displayed; the user selection is detected
  • the description information of the first function is obtained, and then, among the function packages installed in the above electronic device, the function package whose matching identifier matches the above description information is searched for, When it is not found, send the above description information to the server, and receive the download information sent by the above server.
  • the above download information includes the information of the function package whose matching identifier matches the above description information and the information of the dependency package of the above function package.
  • the electronic device downloads the above-mentioned function package and the dependency package of the above-mentioned function package, silently installs and loads the above-mentioned function package, so that the electronic device can download the function package according to the description information of the function required by the currently running application.
  • the storage space is small, so the waiting time for users to download and install the function package can be shortened, and the storage space of the electronic device can be saved.
  • downloading the above-mentioned function package and the dependency package of the above-mentioned function package, silently installing and loading the above-mentioned function package includes: the electronic device determines which to download according to the above-mentioned download information and the function package installed by the above-mentioned electronic device The dependent package, and then the electronic device downloads the above-mentioned function package and the above-mentioned dependent package to be downloaded, silently installs and loads the above-mentioned function package. Specifically, the electronic device may obtain the dependent package that is not installed in the download information according to the matching identifier of the dependent package in the download information and the functional package that the electronic device has installed, and the uninstalled dependent package is the dependent package to be downloaded.
  • the electronic device can determine the dependent package to be downloaded based on the download information and the functional package that the electronic device has installed, and then only need to download the functional package and the dependent package to be downloaded, and load the functional package, thereby further reducing
  • the installation package required to be downloaded by the electronic device is further shortened, and the waiting time of the user is further shortened, and the storage space of the electronic device is saved.
  • the description information includes: the function category code of the function corresponding to the function icon, and the matching identifier includes: the function category code of the function provided by the function package;
  • searching for the function package whose matching identifier matches the above description information includes: in the function package installed in the above electronic device, search according to the function category code in the above description information, and obtain the function category code and the function category code in the matching identifier.
  • the function package that matches the function category code in the above description information includes: the function category code of the function corresponding to the function icon, and the matching identifier includes: the function category code of the function provided by the function package;
  • the above-mentioned matching function package is loaded in the above-mentioned first application, and the above-mentioned matching function package is the function package that has been installed by the second application, and the above-mentioned second application is installed in In the above-mentioned electronic equipment.
  • the function package whose matching identifier found by the electronic device matches the above description information may be a function package installed by the second application program, and it is not restricted that the function package found must be a function package in the first application program , And after finding the matching function package, you can directly load the matching function package in the first application without jumping to the second application.
  • the description information also includes the manufacturer information and/or version information of the first application;
  • the matching identifier also includes the manufacturer information and/or version information of the function package;
  • the found matching function package includes at least two function packages installed in the above-mentioned electronic device, then according to the above-mentioned manufacturer information and/or version information, Determining the degree of matching between the matching function package and the first application program; in this way, loading the matching function package in the first application program may be: loading the function package with the highest matching degree in the first application program.
  • searching for a function package whose matching identifier matches the description information may be: in the installed function list of the electronic device, searching for the matching identifier and The function package that matches the description information; wherein, in the installed function list, an entry corresponding to the application program installed by the electronic device is stored, and the entry includes a matching identifier of the function package installed by the application program.
  • the download information includes the application to which the function package belongs, downloads the function package and the dependent package of the function package, silently installs and loads the function package, and can also download the function package in the electronic device.
  • the installed function list the entry corresponding to the application to which the loaded function package belongs is obtained, and the matching identifier of the loaded function package is added to the obtained entry.
  • an embodiment of the present application provides a method for loading a function package, including: a server receives description information sent by an electronic device, where the description information is the description information of the first function selected by the user by the electronic device, and the electronic device In the installed function package, it is sent after the function package whose matching identifier matches the above description information is not found; in the function package matching table, the information of the function package whose matching identifier matches the above description information is searched; The device sends download information, and the download information includes the information of the function package and the information of the dependency package of the function package, so that the electronic device downloads the function package and the dependency package of the function package according to the download information.
  • the server after receiving the description information sent by the electronic device, the server searches the function package matching table for the information of the function package whose matching identifier matches the description information, and then sends the download information to the electronic device.
  • the download information includes the information of the matching function package and the information of the dependent package of the matching function package, so that the electronic device can download the matching function package and the dependent package of the matching function package according to the above download information, thereby realizing electronic
  • the device downloads the function package according to the description information of the function required by the currently running application. Since the storage space occupied by the function package is small, the waiting time for the user to download and install the function package can be shortened, and the storage space of the electronic device can be saved.
  • the server before the server searches the function package matching table for the information of the function package whose matching identifier matches the above description information, it also includes: the server receives the application package uploaded by the developer; Split to obtain the function package included in the above application package; parse each function package included in the above application package to obtain the matching identifier of the dependent package of the above function package and the matching identifier of the above function package; record the above in the above function package matching table The application package to which the function package belongs, and the matching identifier of the above-mentioned function package and the matching identifier of the above-mentioned function package's dependent package.
  • the above-mentioned matching identifier includes: the function category code of the function provided by the function package; the above-mentioned function package matching table records the application package to which the function package belongs, the matching identifier of the above-mentioned function package, the information of the function package, and The above-mentioned function package dependent package information; the above-mentioned description information includes: the function category code of the function corresponding to the above-mentioned function icon; in this way, in the function package matching table, the information of the function package whose matching identifier matches the above-mentioned description information includes: In the function package matching table, search is performed according to the function category code in the above description information to obtain the function package whose function category code in the matching identifier matches the function category code in the above description information.
  • the description information further includes: manufacturer information and/or version information of the first application; the matching identifier also includes manufacturer information and/or version information of the function package;
  • the package matching table after searching for the information of the function package whose matching identifier matches the above description information, it also includes: if the found matching function package includes at least two in the above function package matching table, the server will act according to the above Manufacturer information and/or version information to determine the degree of matching between the above-mentioned matching function package and the above-mentioned first application; then the above-mentioned download information includes the information of the function package with the highest matching degree and the dependency package of the above-mentioned function package with the highest matching degree Information.
  • an embodiment of the present application provides a device for loading a function package.
  • the device is included in an electronic device, and the device has the function of realizing the behavior of the electronic device in the first aspect and the possible implementation of the first aspect.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a receiving module or unit, a processing module or unit, a sending module or unit, and so on.
  • an embodiment of the present application provides a device for loading a function package, the device is included in a server, and the device has a function of realizing the server behavior in the second aspect and possible implementation manners of the second aspect.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a receiving module or unit, a processing module or unit, a sending module or unit, and so on.
  • an electronic device including:
  • the function package includes the function package whose matching identifier matches the description information
  • the electronic device when the above instruction is executed by the above electronic device, the electronic device is caused to download the above function package and the dependent package of the above function package.
  • the step of loading the above function package includes: according to the above download information and the above electronic device. For the functional packages that have been installed on the device, determine the dependent packages to be downloaded; download the above functional packages and the dependent packages to be downloaded, silently install and load the above functional packages.
  • the description information includes: the function category code of the function corresponding to the function icon, and the matching identifier includes: the function category code of the function provided by the function package; when the instruction is executed by the electronic device , Causing the electronic device to execute the function package that has been installed in the above-mentioned electronic device, and the step of searching for a function package whose matching identifier matches the above-mentioned description information includes: in the function package that has been installed in the above-mentioned electronic device, according to the function in the above-mentioned description information The category code is searched, and a function package whose function category code in the matching identifier matches the function category code in the description information is obtained.
  • the electronic device when the above instructions are executed by the above electronic device, the electronic device is caused to execute after the step of searching for a function package whose matching identifier matches the above description information among the function packages installed in the above electronic device, The following steps are also performed: if a function package with a matching identifier that matches the description information is found among the function packages that have been installed on the above electronic device, then the above-mentioned matching function package is loaded in the above-mentioned first application, and the above-mentioned matching function package is matched.
  • the function package of is a function package that has been installed by the second application, and the second application is installed in the electronic device.
  • the description information also includes the manufacturer information and/or version information of the first application;
  • the matching identifier also includes the manufacturer information and/or version information of the function package; when the instruction When executed by the above-mentioned electronic device, before the electronic device executes the step of loading the above-mentioned matching function package in the above-mentioned first application, the following steps are also performed:
  • the matching function package includes at least two, then the matching degree between the matching function package and the first application program is determined according to the manufacturer information and/or version information; then the matching function package is loaded into the first application program.
  • the function package includes: loading the function package with the highest matching degree in the above-mentioned first application.
  • the above electronic device when the above instruction is executed by an electronic device, the above electronic device is caused to execute in the function package installed in the above electronic device, and the step of searching for a function package whose matching identifier matches the above description information may be : In the installed function list of the above electronic device, search for the function package whose matching identifier matches the above description information; wherein, the above installed function list saves the entry corresponding to the application installed on the above electronic device, the above entry Include the matching identifiers of the feature packs installed by the above-mentioned application.
  • the download information includes the application to which the function package belongs, and when the instruction is executed by the electronic device, the electronic device is made to download the function package and the dependent package of the function package, and load the function After the package step, the following steps are also performed: in the installed function list of the above electronic device, obtain the entry corresponding to the application to which the loaded function package belongs, and add the above loaded function package to the obtained entry The matching ID.
  • an embodiment of the present application provides a server, including: one or more processors; a memory; multiple application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory
  • the above-mentioned one or more computer programs include instructions.
  • the server executes the following steps: receiving the description information sent by the electronic device.
  • the function package matching table the function package whose matching identifier matches the above description information is searched
  • the above-mentioned download information includes the information of the above-mentioned function package and the information of the dependency package of the above-mentioned function package, so that the above-mentioned electronic device downloads according to the above-mentioned download information and the function package installed by the above-mentioned electronic device.
  • the server executes the following steps before the step of searching for the information of the function package whose matching identifier matches the above description information in the function package matching table : Receive the application package uploaded by the developer; split the above application package to obtain the function package included in the above application package; parse each function package included in the above application package to obtain the matching identifier of the dependent package of the above function package and the above function
  • the matching identifier of the package; the application package to which the function package belongs, and the matching identifier of the function package and the matching identifier of the dependent package of the function package are recorded in the function package matching table.
  • the above-mentioned matching identifier includes: the function category code of the function provided by the function package; the above-mentioned function package matching table records the application package to which the function package belongs, the matching identifier of the above-mentioned function package, the information of the function package, and The dependency package information of the above function package; the above description information includes: the function category code of the function corresponding to the above function icon; when the above instruction is executed by the above server, the server executes the above function package matching table, searching for the matching identifier and the above
  • the step of describing the information of the function package that matches the description information includes: in the function package matching table, searching according to the function category code in the above description information, and obtaining the function category code in the matching identifier and the function category code in the above description information. Matching function package.
  • the description information further includes: manufacturer information and/or version information of the first application; the matching identifier also includes manufacturer information and/or version information of the function package;
  • the server executes the step of searching for the information of the function package whose matching identifier matches the above-mentioned description information in the function package matching table, and then executes the following steps: If in the above-mentioned function package matching table, search The received matching function package includes at least two, then the matching degree between the matching function package and the first application program is determined based on the manufacturer information and/or version information; then the download information includes the highest matching degree The information of the function package and the information of the dependency package of the above-mentioned function package with the highest matching degree.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, which when running on a computer, causes the computer to execute the method provided in the first aspect.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, which when run on a computer, causes the computer to execute the method provided in the second aspect.
  • this application provides a computer program, which is used to execute the method provided in the first aspect when the computer program is executed by a computer.
  • this application provides a computer program, which is used to execute the method provided in the second aspect when the computer program is executed by a computer.
  • the programs in the ninth aspect and the tenth aspect may be stored in whole or in part on a storage medium that is packaged with the processor, or may be stored in part or all in a storage medium that is not packaged with the processor. On the memory.
  • Figure 1 is a schematic diagram of a file uploaded by a developer in the related art
  • Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 provided by an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of a server provided by an embodiment of this application.
  • FIG. 5 is a schematic diagram of adding a matching identifier to a function package according to an embodiment of the application
  • FIG. 6 is a schematic diagram of a server unpacking a full application package according to an embodiment of the application
  • FIG. 7 is a schematic diagram of an electronic device search function package provided by an embodiment of the application.
  • FIG. 8 is a flowchart of a method for loading a function package provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of an interface displayed by a first application program provided by an embodiment of this application.
  • FIG. 10 is a schematic diagram of a function selection interface provided by an embodiment of this application.
  • FIG. 11 is a flowchart of a method for loading a function package provided by another embodiment of the application.
  • FIG. 12 is a flowchart of a method for loading a function package provided by still another embodiment of the application.
  • FIG. 13 is a flowchart of a method for loading a function package provided by another embodiment of this application.
  • FIG. 14 is a flowchart of another embodiment of a method for loading a function package of this application.
  • 15 is a schematic structural diagram of an electronic device provided by another embodiment of this application.
  • FIG. 16 is a schematic structural diagram of a server provided by another embodiment of this application.
  • the App installation package becomes larger and larger, and the user has to download the complete installation package when using a certain function of the App, which leads to a waste of user traffic, and the user downloads and installs the App
  • the waiting time is longer, and the App installation package takes up more storage space.
  • the App Bundle is a step further than the above solution. It not only solves the problems of redundant resources and redundant lib libraries, but also proposes a subcontracting solution that allows App developers to follow
  • the function module splits the App into multiple sub-function packages. When users download and install the App, they can only install some high-frequency function packages, specific lib libraries and resource packages, thereby reducing the data size of the first download of the App and reducing the waste of user traffic. Other function packages can be downloaded and installed according to user needs.
  • Step 1 The developer creates a project in Android Studio and references the dependency package (com.google.android.play:core:xxx) of Google Mobile Service (GMS), and determines to dynamically install and download the sub-module development
  • the function module Foo is written in the main function module Base to download the logic code of the function module Foo, which can trigger the download in the user interface C; then, the above logic code is compiled to generate the bundle.aab file.
  • Step 2 The developer uploads the bundle.aab file to the Google Play application market.
  • Figure 1 is a schematic diagram of a file uploaded by a developer in the existing related technology. As shown in Figure 1, the file uploaded by the developer is bundle.aab.
  • the application contains two functional modules, Base and Foo. Foo needs to be dynamically loaded on demand Module.
  • the Play application market uses tools to split the application into multiple Android application packages (Apk), where the execution logic code of Base is in base_master.apk, and the execution logic code of Foo is in foo_master.apk.
  • Step 3 The user downloads the application in the Play Store and runs the main function Base, and triggers the download of the code of the package foo_master.apk corresponding to the function module Foo in the user interface C in the Base.
  • the logic of downloading and installing Foo is done together on the client side of GMS and the Play Store.
  • an embodiment of the present application provides a method for loading a function package, which can realize that the electronic device downloads the function package according to the description information of the function required by the currently running application program.
  • the method for loading function packages provided by the embodiments of the present application can be applied to electronic devices, where the above-mentioned electronic devices can be smart phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (virtual reality).
  • AR augmented reality
  • VR virtual reality
  • laptops laptops
  • ultra-mobile personal computers UMPC
  • netbooks personal digital assistants
  • PDAs personal digital assistants
  • FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, and a universal serial bus (universal serial bus).
  • serial bus universal serial bus
  • USB universal serial bus
  • charging management module 140 power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, Earphone interface 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (DCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may couple the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device 100 through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), and the quasi-zenith satellite system (quasi). -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called a "handset" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation intensities can correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and be used in applications such as horizontal and vertical screen switching, pedometers and so on.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be provided on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 provided by an embodiment of the application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, and so on.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompt text information in the status bar sound a prompt sound, electronic device vibration, flashing indicator light, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a graphics engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the implementation of the method for loading the function package provided by the embodiments of the present application not only involves the electronic device side, but also involves the server side and the App development side.
  • the above-mentioned server may be a cloud server, for example, a server in the cloud application market, and the embodiment of the present application does not impose any restriction on the specific type of the server.
  • FIG. 4 is a schematic structural diagram of a server provided by an embodiment of this application.
  • the server 400 includes a processor 410 and a communication interface 420.
  • the server 400 may further include a memory 430.
  • the processor 410, the communication interface 420, and the memory 430 can communicate with each other through an internal connection path to transfer control and/or data signals.
  • the memory 430 is used to store computer programs, and the processor 410 is used to download from the memory 430 Call and run the computer program.
  • the above-mentioned processor 410 and the memory 430 may be integrated into a processing device, and more commonly, they are components independent of each other.
  • the processor 410 is configured to execute program codes stored in the memory 430.
  • the memory 430 may also be integrated in the processor 410, or independent of the processor 410.
  • the server 400 may further include one or more of the input unit 460 and the display unit 470.
  • the aforementioned server 400 may further include a power supply 450 for providing power to various devices or circuits in the server 400.
  • processor 410 in the server 400 shown in FIG. 4 may be a system-on-chip SOC, and the processor 410 may include a central processing unit (CPU), and may further include other types of processors, for example :Image processor (graphics processing unit, GPU), etc.
  • CPU central processing unit
  • GPU graphics processing unit
  • FIG. 5 is a schematic diagram of adding a matching identifier to a function package according to an embodiment of the application.
  • an App developer adds a matching identifier to a function package when developing an application.
  • the matching identifier of each function package is used for Indicates the type of function provided by the corresponding function package.
  • the matching identifier of function package 1 is used to indicate the type of function provided by function package 1
  • the matching identifier of function package 2 is used to indicate the type of function provided by function package 2.
  • the matching identifier of each function package may include the function category code of the function provided by the corresponding function package; the above function category code is set according to the predetermined function classification code; of course, the above matching identifier may also include Corresponding to one or more of the function description, manufacturer information, and version information of the function package, this embodiment does not limit the information included in the above-mentioned matching identifier.
  • classification code of the function can be as follows:
  • xxx can include subcategories: 01: xx; 02: xx;
  • the App developer uploads the full application package to the cloud application market.
  • the server 400 of the cloud application market can unpack the above-mentioned full application package, and then analyze the function package obtained by the unpacking to obtain the matching identifier of each function package.
  • the matching identifier of each function package is recorded in the function package matching table, and at the same time, the dependent package of each function package is recorded in the function package matching table.
  • FIG. 6 FIG. Schematic diagram of unpacking the application package.
  • the function package matching table recorded by the server 400 may be as follows:
  • manufacturer 1 belonging to application package 1, quality rate (evaluation index): xx%, function description: xx, download address: url1;
  • Manufacturer 4 belonging to application package 3, quality rate (evaluation index): xx%, function description: xx, download address: url4;
  • the download address includes the download address of each function package and the dependent package of the function package.
  • the server 400 may implement the aforementioned unpacking, parsing, and recording operations through the processor 410.
  • Figure 7 is a schematic diagram of an electronic device search function package provided by an embodiment of the application.
  • the first App in the electronic device 100 is running. If the electronic device 100 detects that the user is in the interface displayed by the first App First operation information, the electronic device 100 may display the function selection interface in response to the above-mentioned first operation information, and then the electronic device 100 detects that the user selects the second operation information of the function F, and in response to the second operation information, obtains the function F Descriptive information, where the function F may be a function developed by the developer of the running first App but not currently downloaded, or may be a function included in other apps installed on the electronic device 100.
  • function F the description information of function F can be as follows:
  • the first App sends the description information of the function F through the universal interface I.
  • the resident background service of the electronic device 100 After the resident background service of the electronic device 100 receives the description information, it searches for the matching identifier and the description of the function F in the function package installed in the electronic device 100 If the information matches the function package, if the local match is not successful, the electronic device 100 sends the description information of the function F to the server 400 of the cloud application market, and the server 400 uses the same method to match, and after the match is successful, the electronic device 100 Send download information.
  • the download information includes the download address of the function package corresponding to function F and its dependent package.
  • the background resident service in the electronic device 100 corresponds to the download information and the function package installed by the electronic device 100
  • the download function F corresponds to The function package and its dependent package, and load the function package corresponding to function F.
  • searching for a function package with a matching identifier that matches the description information of the function F may be: in the installed function list of the electronic device 100, searching for the matching identifier and the function F The function package with matching description information; wherein, the entry corresponding to the application program installed by the electronic device 100 is stored in the above installed function list, and the above entry includes the matching identifier of the function package installed by the above application program.
  • the installed function list of the electronic device 100 may be as shown in Table 1.
  • the download information sent by the server 400 includes the application to which the function package corresponding to function F belongs.
  • the download information sent by the server 400 includes the application to which the function package corresponding to function F belongs.
  • obtaining the entry corresponding to the application to which the loaded function package belongs may be: if the installed function list of the electronic device 100 exists with the loaded function package The entry corresponding to the application belongs to, you can directly add the matching identifier of the loaded function package to the above entry; if the installed function list of the electronic device 100 does not exist in the list of installed functions corresponding to the application to which the loaded function package belongs Entries, it is necessary to create an entry corresponding to the application to which the loaded function package belongs in the installed function list of the electronic device 100, and add the matching identifier of the loaded function package to the above entry.
  • the server 400 finds that the function package with the matching identifier 000203 belongs to application package 3, and the application package 3 becomes the third App after being installed on the electronic device 100, so After the electronic device 100 downloads the function package corresponding to function F and its dependent packages, and loads the function package corresponding to function F, it needs to obtain the entry corresponding to the third App from the installed function list of the electronic device 100, and Add the matching identifier 000203 to the obtained entry, as shown in Table 2.
  • the electronic device 100 can realize the operation of detecting the first operation information and the second operation information through the processor 110 and the touch sensor 180K; the processor 110 and the display screen 194 can realize the display interface Operation; through the processor 110, the antenna 1, and the mobile communication module 150, and/or, through the processor 110, the antenna 2, and the wireless communication module 160, the sending and receiving of information with the server 400 is realized.
  • the server 400 may send and receive information with the electronic device 100 through the processor 410 and the communication interface 420.
  • an embodiment of the present application provides a method for loading a function package.
  • the implementation of the method involves the side of the electronic device 100 and the server 400 side.
  • the flowchart of the loading method as shown in Fig. 8, the loading method of the above-mentioned function package may include:
  • Step 801 The electronic device detects the first operation information of the user in the interface displayed by the first application program currently running.
  • the electronic device 100 may implement the operation of detecting the first operation information through the processor 110 and the touch sensor 180K.
  • the above-mentioned first operation information may be an operation of clicking, double-clicking, long-pressing, or drawing a specific graphic by the user in the interface displayed by the first application program, or the above-mentioned first operation information may be an interface displayed by the user on the first application program
  • this embodiment does not limit the operation form of the first operation information.
  • the above-mentioned first operation information is an example of a user's click operation on a specific icon in the interface displayed by the first application program.
  • FIG. 9 is a display of the first application program provided by an embodiment of the application. A schematic diagram of the interface.
  • the first operation information is a click operation on the icon 91.
  • Step 802 In response to the above-mentioned first operation information, a function selection interface is displayed.
  • the electronic device 100 may implement the operation of displaying the function selection interface through the processor 110 and the display screen 194.
  • FIG. 10 is a schematic diagram of a function selection interface provided by an embodiment of this application.
  • interface 1001 is a function selection interface.
  • Step 803 It is detected that the above-mentioned user selects the second operation information of the first function.
  • the electronic device 100 can implement the operation of detecting the second operation information through the processor 110 and the touch sensor 180K.
  • the above-mentioned second operation information may be a user's click, double-click, or long-press operation on the function icon in the function selection interface.
  • This embodiment does not limit the operation form of the second operation information, and the second operation information is used in this embodiment as The user's click operation of the function icon is described as an example.
  • Step 804 In response to the foregoing second operation information, obtain description information of the first function.
  • the electronic device 100 may implement the operation of obtaining description information through the processor 110.
  • the processor 110 may obtain the description information of the function corresponding to the above function icon from the local data of the first application program according to the above function icon.
  • step 805 among the function packages that have been installed in the above electronic device, search for a function package whose matching identifier matches the above description information.
  • the process of searching for the function package by the electronic device 100 may be as shown in FIG. 7, which will not be repeated here.
  • the electronic device 100 may implement the above-mentioned search operation through the processor 110.
  • Step 806 When it is not found, the above description information is sent to the server.
  • Step 807 Receive download information sent by the server.
  • the download information includes the information of the function package and the information of the dependency package of the function package.
  • the function package includes a function package whose matching identifier matches the description information.
  • the information of the above-mentioned function package may include the matching identifier and download address of the above-mentioned function package.
  • the information of the above-mentioned function package may also include other information, such as version information and/or manufacturer information of the function package. This is not limited.
  • the information of the dependent package of the above-mentioned function package may include the matching identifier and download address of the dependent package of the above-mentioned function package.
  • Step 808 download the above-mentioned function package and the dependency package of the above-mentioned function package, silently install and load the above-mentioned function package.
  • silent installation includes installation in the background without prompts or user operations to disturb the user.
  • the user experience is better.
  • the silent installation in the embodiments of this application can also be replaced with a non-silent installation method. , Including the ability to prompt the user for installation progress or installation results during installation, or to request installation confirmation instructions from the user.
  • the electronic device 100 can send and receive information with the server 400 through the processor 110, the antenna 1, and the mobile communication module 150, and/or through the processor 110, the antenna 2, and the wireless communication module 160.
  • the function selection interface is displayed; the user is detected After selecting the second operation information of the first function, in response to the second operation information, obtain the description information of the first function, and then search for the function package whose matching identifier matches the description information among the function packages installed in the electronic device 100 When it is not found, the description information is sent to the server, and the download information sent by the server is received.
  • the download information includes the information of the function package whose matching identifier matches the description information and the dependent package information of the function package.
  • the electronic device 100 downloads the above-mentioned function package and the dependency package of the above-mentioned function package, silently installs and loads the above-mentioned function package, so that the electronic device 100 can download the function package according to the description information of the functions required by the currently running application.
  • the function package occupies a small storage space, so the waiting time for the user to download and install the function package can be shortened, and the storage space of the electronic device 100 can be saved.
  • FIG. 11 is a flowchart of a method for loading a function package provided by another embodiment of this application. As shown in FIG. 11, in the embodiment shown in FIG. 8 of this application, step 808 may include:
  • Step 1101 Determine the dependent package to be downloaded based on the download information and the function package installed on the electronic device.
  • the electronic device 100 may obtain a dependent package that is not installed in the download information according to the matching identifier of the dependent package in the download information and the function package that the electronic device 100 has installed.
  • the uninstalled dependent package is the dependent package to be downloaded.
  • the electronic device 100 may implement the operation of determining the dependent package to be downloaded through the processor 110.
  • Step 1102 download the above-mentioned function package and the above-mentioned dependent package to be downloaded, silently install and load the above-mentioned function package.
  • the electronic device 100 can determine the dependency package to be downloaded based on the download information and the function package that the electronic device has installed, and then only need to download the function package and the dependency package to be downloaded, install and load the function package silently. , Thereby further reducing the installation package to be downloaded by the electronic device 100, further shortening the waiting time of the user, and saving the storage space of the electronic device.
  • silent installation includes installation in the background without prompt or User operations disturb the user, and the user experience is better. It is understandable that the silent installation in the embodiments of this application can also be replaced with a non-silent installation method, including the ability to prompt the user of the installation progress or installation result during the installation, or to inform the user Request installation confirmation instructions.
  • Figure 12 is a flowchart of a method for loading a function package according to another embodiment of the application.
  • the above description information may include: the function category code of the function corresponding to the above function icon, and the above matching identifier may include: the above function
  • the function category code of the function provided by the package; as shown in Figure 12, step 805 may include:
  • Step 1201 among the function packages that have been installed in the electronic device, search according to the function category code in the above description information, and obtain a function package whose function category code in the matching identifier matches the function category code in the above description information.
  • the electronic device 100 can search in the installed function package according to 000102, and obtain the function category code in the matching identifier as The feature pack of 000102.
  • step 1201 it may further include:
  • Step 1202 If a function package with a matching identifier that matches the description information is found among the function packages that have been installed in the above electronic device, load the above-mentioned matching function package in the first application program, and the above-mentioned matching function package is loaded into the first application program. It is a function package installed by the second application program, and the second application program is installed in the above-mentioned electronic device.
  • the function package whose matching identifier found by the electronic device 100 matches the above description information may be a function package installed by the second application program, and it is not restricted that the function package found must be a function in the first application program. After finding the matching function package, you can directly load the matching function package in the first application without jumping to the second application.
  • the above description information may also include the manufacturer information and/or version information of the first application; the above matching identifier may also include the manufacturer information and/or version information of the above function package; in this way, in the first application Before loading the matching function package, if there are at least two matching function packages found in the installed function packages of the electronic device, then the above-mentioned matching function package is determined according to the above-mentioned manufacturer information and/or version information The matching degree with the above-mentioned first application program; then the function package with the highest matching degree is loaded in the first application program.
  • the electronic device 100 finds the function packages with the function category code 000102 in the two matching identifiers in the installed function packages according to 000102, which are respectively function packages. 1 and feature pack 2.
  • the description information includes the manufacturer information and version information of the first application.
  • the manufacturer information is manufacturer 1, and the version information is 1.0
  • the matching identifier of function package 1 is manufacturer 2 and version information 1.0.
  • the manufacturer information is manufacturer 1, and the version information is 2.0.
  • the electronic device 100 can obtain the matching degree 1 between function package 1 and the first application according to the above manufacturer information and version information, and obtain function package 2 and The matching degree 2 of the first application program, assuming that the matching degree 1 is 85% and the matching degree 2 is 90%, then the electronic device 100 loads the function package 2 in the first application program.
  • the electronic device 100 may implement the operations of step 1201 and step 1202 through the processor 110.
  • FIG. 13 is a flowchart of a method for loading a function package according to another embodiment of the application. As shown in FIG. 13, the method for loading a function package may include:
  • Step 1301 The server receives the description information sent by the electronic device.
  • the description information is the description information of the first function selected by the user by the electronic device. In the function package that the electronic device has installed, no matching identifier is found that matches the description information. Sent after the matched function package.
  • Step 1302 in the function package matching table, search for the information of the function package whose matching identifier matches the above description information.
  • the matching identifier may include: the function category code of the function provided by the function package; the application package to which the function package belongs is recorded in the function package matching table, and the matching identifier of the function package, the information of the function package, and the information of the function package Dependent package information; the above description information can include: the function category code of the function corresponding to the above function icon; in this way, in the function package matching table, the information of the function package whose matching identifier matches the above description information can be: In the package matching table, search is performed according to the function category code in the above description information, and a function package whose function category code in the matching identifier matches the function category code in the above description information is obtained.
  • Step 1303 Send download information to the electronic device, where the download information includes the information about the function package and the dependency package of the function package, so that the electronic device downloads the function package and the dependency package of the function package according to the download information. .
  • manufacturer 1 belonging to application package 1, quality rate (evaluation index): xx%, function description: xx, download address: url1;
  • Manufacturer 4 belonging to application package 3, quality rate (evaluation index): xx%, function description: xx, download address: url4;
  • the download address includes the download address of each function package and the dependent package of the function package.
  • the server 400 can search in the function package matching table according to the function category code 000201 in the above description information, and obtain the function package whose function category code in the matching identifier matches 000201. Then, the download address url3 of the manufacturer 3 is sent to the electronic device 100.
  • the url3 includes the function package whose function category code is 000201 in the matching identifier and the download address of the dependent package of the function package.
  • the description information may also include: manufacturer information and/or version information of the first application; the matching identifier may also include manufacturer information and/or version information of the function package; in this way, after step 1302, If in the function package matching table, the found matching function packages include at least two, then according to the manufacturer information and/or version information, the degree of matching between the matching function package and the first application is determined. In this way, the download information sent by the server 400 to the electronic device 100 includes the information of the function package with the highest matching degree and the package-dependent information of the above-mentioned function package with the highest matching degree.
  • the description information sent by the electronic device 100 is:
  • the server 400 can search in the function package matching table according to the function category code 000102 in the above description information, and obtain the function package whose function category code in the matching identifier matches 000102.
  • the description information includes the manufacturer information of the first application, the manufacturer information is manufacturer 1, and the manufacturer information in the matching identifier of function package 1 is manufacturer 1, and the manufacturer information in the matching identifier of function package 2 is manufacturer 1, then
  • the electronic device 100 can obtain, according to the above manufacturer information, that the matching degree between the function package 1 and the first application is 100%, and the matching degree between the function package 2 and the first application is 90%, and the server 400 downloads the manufacturer 1’s
  • the address url1 is sent to the electronic device 100, and the url1 includes the download addresses of the function package 1 whose function category code is 000102 in the matching identifier and the dependent package of the function package 1.
  • the function package whose matching identifier matches the above description information found by the server 400 is a function package with exactly the same function category code.
  • the function package whose matching identifier matches the above description information may also include the function category code. Feature packages that are identical, but belong to the same functional category.
  • the description information sent by the electronic device 100 is:
  • the server 400 can search in the function package matching table according to the function category code 000202 in the description information. If the function package whose function category code is 000202 in the matching identifier is not found, then the server 400 can find the same as 000202 The function package in the function category (0002). At this time, the server 400 finds two function packages, and the function category codes in the matching identifier are 000201 and 000203 respectively. Then, the server 400 can, according to the above-mentioned manufacturer information and/or version information, Determine the degree of matching between the function package with the function category code of 000201 and the first application, and the degree of matching between the function package with the function category code of 000203 and the first application.
  • the server 400 sends the download address url4 of the manufacturer 4 to the electronic device 100.
  • the url4 includes the function package whose function category code is 000203 in the matching identifier and the download address of the dependent package of the function package.
  • the server 400 may implement the operations of step 1301 and step 1303 through the processor 410 and the communication interface 420, and implement the operation of step 1302 through the processor 410.
  • the server 400 After the server 400 receives the description information sent by the electronic device 100, it searches the function package matching table for the information of the function package whose matching identifier matches the description information, and then sends the download to the electronic device 100.
  • Information the download information includes the information of the matching function package and the information of the dependent package of the matching function package, so that the electronic device 100 can download the matching function according to the download information and the function package that the electronic device 100 has installed
  • the package and the dependent package of the matching function package enable the electronic device 100 to download the function package according to the description information of the function required by the currently running application. Since the above function package occupies a small storage space, the user download and installation can be shortened The waiting time of the function package saves the storage space of the electronic device 100.
  • Fig. 14 is a flowchart of another embodiment of a method for loading a function package of this application. As shown in Fig. 14, in the embodiment shown in Fig. 13 of this application, before step 1302, it may further include:
  • Step 1401 Receive the application package uploaded by the developer
  • Step 1402 Split the above-mentioned application package to obtain the function packages included in the above-mentioned application package.
  • Step 1403 Analyze each function package included in the above-mentioned application package, and obtain the matching identifier of the dependent package of the above-mentioned function package and the matching identifier of the above-mentioned function package.
  • Step 1404 Record in the function package matching table the application package to which the function package belongs, and the matching identifier of the function package and the matching identifier of the dependent package of the function package.
  • the process in which the server 400 splits the application package uploaded by the developer may be as shown in FIG. 6, which will not be repeated here.
  • an electronic device in order to implement the above-mentioned functions, includes hardware 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. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
  • the electronic device may be divided into functional modules according to the foregoing method embodiments.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by another embodiment of the application. In the case of dividing each functional module corresponding to each function, FIG. 15 shows a possible composition of the electronic device 1500 involved in the foregoing embodiment.
  • the electronic device 1500 may include: a receiving unit 1501, a processing unit 1502, and a sending unit 1503;
  • the receiving unit 1501 can be used to support the electronic device 1500 to perform step 808, step 809, step 1102, etc., and/or used in other processes of the technical solutions described in the embodiments of the present application;
  • the processing unit 1502 may be used to support the electronic device 1500 to perform steps 801 to 806, steps 1101, 1201, and 1202, etc., and/or other processes used in the technical solutions described in the embodiments of the present application;
  • the sending unit 1503 may be used to support the electronic device 1500 to execute step 807, etc., and/or used in other processes of the technical solutions described in the embodiments of the present application.
  • the electronic device 1500 provided in this embodiment is used to execute the above-mentioned method for loading the function package, and therefore can achieve the same effect as the above-mentioned method.
  • the electronic device 1500 may correspond to the electronic device 100 shown in FIG. 1.
  • the functions of the receiving unit 1501 and the sending unit 1503 may be implemented by the processor 110, the antenna 1 and the mobile communication module 150 in the electronic device 100 shown in FIG. 1, and/or, by the processor 110, the antenna 2 and the wireless communication module 160 Implementation;
  • the function of the processing unit 1502 can be implemented by the processor 110 and the touch sensor 180K in the electronic device 100 shown in FIG. 1.
  • the electronic device 1500 may include a processing module, a storage module, and a communication module.
  • the processing module can be used to control and manage the actions of the electronic device 1500, for example, can be used to support the electronic device 1500 to execute the steps performed by the receiving unit 1501, the processing unit 1502, and the sending unit 1503.
  • the storage module can be used to support the electronic device 1500 to store program codes and data.
  • the communication module can be used to support the communication between the electronic device 1500 and other devices.
  • the processing module may be a processor or a controller, which may implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and/or a Wi-Fi chip.
  • the electronic device 1500 involved in this embodiment may be a device having the structure shown in FIG. 1.
  • the server includes hardware 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. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
  • the server may be divided into functional modules according to the foregoing method embodiments.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 16 is a schematic structural diagram of a server provided by another embodiment of the application. In the case of dividing each functional module corresponding to each function, FIG. 16 shows a schematic diagram of a possible composition of the server 1600 involved in the foregoing embodiment. As shown in FIG. 16, the server 1600 may include: a receiving unit 1601, a processing unit 1602, and a sending unit 1603;
  • the receiving unit 1601 may be used to support the server 1600 to perform step 1301 and step 1401, etc., and/or used in other processes of the technical solutions described in the embodiments of the present application;
  • the processing unit 1602 may be used to support the server 1600 to perform step 1302, step 1402, step 1403, step 1404, etc., and/or other processes used in the technical solutions described in the embodiments of the present application;
  • the sending unit 1603 may be used to support the server 1600 to perform step 1303, etc., and/or used in other processes of the technical solutions described in the embodiments of the present application.
  • the server 1600 provided in this embodiment is used to execute the above-mentioned method for loading the function package, so the same effect as the above-mentioned method can be achieved.
  • the server 1600 may correspond to the server 400 shown in FIG. 4.
  • the server 1600 may include a processing module, a storage module, and a communication module.
  • the processing module can be used to control and manage the actions of the server 1600. For example, it can be used to support the server 1600 to execute the steps performed by the receiving unit 1601, the processing unit 1602, and the sending unit 1603.
  • the storage module can be used to support the server 1600 to store program codes and data.
  • the communication module can be used to support the communication between the server 1600 and other devices.
  • the processing module may be a processor or a controller, which may implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and/or a Wi-Fi chip.
  • the server 1600 involved in this embodiment may be a device having the structure shown in FIG. 4.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when it runs on a computer, the computer executes the functions provided by the embodiments shown in Figs. 8 to 12 of the present application. method.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when it runs on a computer, the computer executes the functions provided by the embodiments shown in Figs. 13 to 14 of the present application. method.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided by the embodiments shown in FIG. 8 to FIG. 12 of the present application.
  • the embodiments of the present application also provide a computer program product, which includes a computer program, which when running on a computer, causes the computer to execute the method provided by the embodiments shown in FIG. 13 to FIG. 14 of the present application.
  • At least one refers to one or more
  • multiple refers to two or more.
  • And/or describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • the following at least one item” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single, or There can be more than one.
  • any function 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 storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .

Abstract

L'invention concerne un procédé et un appareil de chargement d'ensemble de fonctions, ainsi qu'un serveur et un dispositif électronique. Le procédé de chargement d'ensemble de fonctions consiste : après détection, par un dispositif électronique, de premières informations d'opération, d'un utilisateur, dans une interface affichée par un premier programme d'application en cours d'exécution, en réponse aux premières informations d'opération, à afficher une interface de sélection de fonction ; après détection de la sélection par l'utilisateur de secondes informations d'opération d'une première fonction, en réponse aux secondes informations d'opération, à acquérir des informations de description de la première fonction ; puis à rechercher dans des ensembles de fonctions installés du dispositif électronique un ensemble de fonctions dont un identifiant correspondant correspond aux informations de description ; quand l'ensemble de fonctions n'est pas trouvé, à envoyer les informations de description à un serveur ; à recevoir des informations de téléchargement envoyées par le serveur, les informations de téléchargement comprenant des informations de l'ensemble de fonctions dont l'identifiant correspondant correspond aux informations de description et des informations d'un ensemble dépendant de l'ensemble de fonctions ; et enfin, à télécharger, par le dispositif électronique, l'ensemble de fonctions et l'ensemble dépendant de l'ensemble de fonctions, et à installer et charger en mode silencieux l'ensemble de fonctions.
PCT/CN2021/083177 2020-05-29 2021-03-26 Procédé et appareil de chargement d'ensemble de fonctions, et serveur et dispositif électronique WO2021238376A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010477876.0A CN113741911A (zh) 2020-05-29 2020-05-29 功能包的加载方法、装置、服务器和电子设备
CN202010477876.0 2020-05-29

Publications (1)

Publication Number Publication Date
WO2021238376A1 true WO2021238376A1 (fr) 2021-12-02

Family

ID=78724996

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083177 WO2021238376A1 (fr) 2020-05-29 2021-03-26 Procédé et appareil de chargement d'ensemble de fonctions, et serveur et dispositif électronique

Country Status (2)

Country Link
CN (1) CN113741911A (fr)
WO (1) WO2021238376A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338652B (zh) * 2021-12-30 2023-10-20 北京欧珀通信有限公司 安装包的分发方法、下载方法及相关产品

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281325A (zh) * 2011-06-30 2011-12-14 杭州斯凯网络科技有限公司 一种移动应用分包下载方法
CN102932441A (zh) * 2012-10-26 2013-02-13 北京小米科技有限责任公司 一种下载应用的方法、终端、服务器及系统
CN103473080A (zh) * 2012-06-07 2013-12-25 腾讯科技(深圳)有限公司 软件安装方法、终端及系统
CN107809491A (zh) * 2017-11-30 2018-03-16 北京小米移动软件有限公司 安装包的下载方法及装置
CN108287722A (zh) * 2018-01-09 2018-07-17 北京大学 一种安卓应用的解耦方法
US20190369977A1 (en) * 2018-06-05 2019-12-05 Microsoft Technology Licensing, Llc On-demand installer for resource packages

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281325A (zh) * 2011-06-30 2011-12-14 杭州斯凯网络科技有限公司 一种移动应用分包下载方法
CN103473080A (zh) * 2012-06-07 2013-12-25 腾讯科技(深圳)有限公司 软件安装方法、终端及系统
CN102932441A (zh) * 2012-10-26 2013-02-13 北京小米科技有限责任公司 一种下载应用的方法、终端、服务器及系统
CN107809491A (zh) * 2017-11-30 2018-03-16 北京小米移动软件有限公司 安装包的下载方法及装置
CN108287722A (zh) * 2018-01-09 2018-07-17 北京大学 一种安卓应用的解耦方法
US20190369977A1 (en) * 2018-06-05 2019-12-05 Microsoft Technology Licensing, Llc On-demand installer for resource packages

Also Published As

Publication number Publication date
CN113741911A (zh) 2021-12-03

Similar Documents

Publication Publication Date Title
WO2021083378A1 (fr) Procédé pour accélérer le démarrage d'une application et dispositif électronique
WO2020108356A1 (fr) Procédé d'affichage d'application et dispositif électronique
US20220308899A1 (en) Application Start Method and Electronic Device
WO2020103764A1 (fr) Procédé de commande vocale et dispositif électronique
WO2021017901A1 (fr) Procédé d'affichage d'écran et dispositif électronique
WO2021159746A1 (fr) Procédé et système de partage de fichiers et dispositif associé
WO2021115112A1 (fr) Procédé de téléchargement de progiciel d'installation, procédé de distribution de progiciel d'installation, dispositif terminal, serveur et système
WO2021253975A1 (fr) Procédé et appareil de gestion d'autorisation pour application, et dispositif électronique
WO2021093626A1 (fr) Procédé de gestion de mémoire et dispositif électronique
CN113805797B (zh) 网络资源的处理方法、电子设备及计算机可读存储介质
WO2021218429A1 (fr) Procédé de gestion d'une fenêtre d'application, dispositif terminal et support de stockage lisible par ordinateur
WO2021073337A1 (fr) Procédé et appareil pour installer un module d'extension, et support de stockage
WO2022253158A1 (fr) Procédé et appareil de protection de la confidentialité d'un utilisateur
CN113741993B (zh) 编译插件dex文件的方法及装置
WO2021104117A1 (fr) Procédé de construction d'un paquet de ressources de programme d'application, appareil de construction et dispositif terminal
WO2021238376A1 (fr) Procédé et appareil de chargement d'ensemble de fonctions, et serveur et dispositif électronique
WO2022100141A1 (fr) Procédé, système et appareil de gestion de module d'extension
WO2022033355A1 (fr) Procédé de traitement de courrier et dispositif électronique
CN114828098B (zh) 数据传输方法和电子设备
CN112783418B (zh) 一种存储应用程序数据的方法及移动终端
WO2020233581A1 (fr) Procédé de mesure de hauteur et dispositif électronique
CN114816973A (zh) 调试代码的方法、装置、电子设备和可读存储介质
CN113590346A (zh) 处理业务请求的方法和电子设备
CN114398108A (zh) 电子设备及其驱动加载方法、介质
CN114168115B (zh) 通信系统、应用下载方法及设备

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: 21813428

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: 21813428

Country of ref document: EP

Kind code of ref document: A1