An application resource loading method, an application software package publishing method and a device

CN123011345APending Publication Date: 2026-10-30HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510576227.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

但是,该方式需要开发端电子设备根据应用市场的要求进行分包处理,增加了开发和维护的成本,且用户侧电子设备在将较大的应用软件包下载到本地后,该应用软件包占用较多的存储空间,也会影响用户下载或更新的频次

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123011345A_ABST
    Figure CN123011345A_ABST
Patent Text Reader

Abstract

The application provides an application resource loading method, an application software package publishing method and equipment. In the method, a user terminal electronic device runs a target application, receives a loading request message of the target application, and the loading request message is used to request reading a target resource of the target application. The user terminal electronic device determines that the target resource belongs to at least one first resource, intercepts the loading request message, and the at least one first resource is a resource of the target application stored in a server. The user terminal electronic device sends a resource access request message to the server, the resource access request is used to request obtaining the target resource, and the user terminal electronic device receives the target resource sent by the server and loads the target resource in the target application. Through the scheme, when the user terminal electronic device runs the target application, corresponding resources can be obtained from the server based on the resource access request, on-demand downloading of application resources is realized, and the utilization rate of the local space of the electronic device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to an application resource loading method, an application software package publishing method, and a device. Background Technology

[0002] With the development of mobile internet and cloud computing technologies, applications, mini-programs, and meta-services have become the primary ways for users to obtain information and services. These software programs are typically distributed and deployed in the form of software packages, which may include a large number of images, videos, and other resources required for the application interface to be displayed.

[0003] In some designs, when developers publish their application packages to app stores, they need to upload the application package to the app store's server via their developer's device. The server may impose size limits on the application package, requiring developers to split the application package into multiple smaller packages that meet the server's requirements during development. When users download and install the application, their devices also need to download multiple packages to complete the download and installation. However, this method requires the developer's device to handle package splitting according to the app store's requirements, increasing development and maintenance costs. Furthermore, after downloading a large application package to their local device, the user's device consumes significant storage space, potentially affecting the frequency of downloads or updates. Summary of the Invention

[0004] This application provides an application resource loading method, an application package publishing method, and an apparatus, which provide a more efficient and flexible application development and application resource loading solution to reduce development costs, optimize user experience, and improve resource utilization.

[0005] In a first aspect, this application provides an application resource loading method, which can be executed by a user-end electronic device. The method includes: the user-end electronic device running a target application and receiving a loading request message from the target application, the loading request message being used to request reading a target resource of the target application; the user-end electronic device determining that the target resource belongs to at least one first resource and intercepting the loading request message, the at least one first resource being a resource of the target application stored in a server; the user-end electronic device sending a resource access request message to the server, the resource access request being used to request obtaining the target resource; and the user-end electronic device receiving the target resource sent by the server and loading the target resource into the target application.

[0006] In the above methods, when the user's electronic device runs the target application, it can obtain the corresponding resources from the server based on the resource access request, realize the on-demand download of application resources, and improve the utilization rate of the local space of the electronic device.

[0007] In one possible design, before running the target application, the method further includes: obtaining an application package of the target application from the server, the application package including a resource configuration file and a resource identifier of the at least one first resource, the resource configuration file indicating the at least one first resource; installing the target application according to the application package; allocating a second path for the at least one first resource in the user-end electronic device according to the resource configuration file, the second path of the at least one first resource identifying the file storage location of the at least one first resource in the user-end electronic device; and storing the correspondence between the second path of the at least one first resource and the resource identifier of the at least one first resource. With this design, the application package of the target application installed on the user-end electronic device does not include the first resource stored in the cloud, saving storage space on the user-end electronic device. The user-end electronic device can determine the correspondence between the second path of the local first resource and the resource identifier of the first resource based on the resource identifier of the first resource stored on the server, so that the first electronic device can promptly intercept loading request messages requesting access to the first resource based on the target path in the loading request message.

[0008] In one possible design, the load request message includes the target path of the target resource, and determining that the target resource belongs to at least one first resource includes: determining that the target path is any one of the second paths of the at least one first resource. With this design, the user-end electronic device can determine whether the requested target resource belongs to at least one first resource stored on the server based on the target path in the load request message, thereby promptly intercepting load request messages requesting access to target resources not stored locally and avoiding access errors.

[0009] In one possible design, the resource access request message includes a resource identifier of the target resource. Before sending the resource access request message to the server, the method further includes: determining the resource identifier of the target resource based on the correspondence between the target path of the target resource, the second path of the at least one first resource, and the resource identifiers of the at least one first resource. With this design, the user-end electronic device can request the target resource from the server based on its resource identifier, facilitating the server's search for the target resource and improving the efficiency of resource acquisition.

[0010] In one possible design, before sending the resource access request message to the server, the method further includes: determining that the user-end electronic device does not store the target resource, or determining that the target resource stored by the user-end electronic device has expired. With this design, the user-end electronic device can determine whether it stores a valid target resource locally before requesting it from the server. If no valid target resource is stored locally, it then requests the target resource from the server, reducing unnecessary resource transfers and improving resource utilization.

[0011] Optionally, when the user's electronic device has valid target resources stored locally, the user's electronic device can directly load the target resources, thereby improving resource loading efficiency.

[0012] In one possible design, determining that the user-end electronic device does not store the target resource includes: determining that no data is stored in the file storage location corresponding to the target path of the target resource, or determining that the user-end electronic device does not store the cache identifier corresponding to the target resource, wherein the cache identifier is used to indicate that the user-end electronic device has stored the target resource.

[0013] In one possible design, determining that the target resource stored in the user terminal electronic device has expired includes: obtaining the validity period corresponding to the target resource stored in the user terminal electronic device, and determining that the target resource stored in the user terminal electronic device has expired based on the current time and the validity period corresponding to the target resource.

[0014] In one possible design, the resource access request message also includes authentication information for the target application, which is used by the server to authenticate the target application. With this design, the resource access request message sent by the user's electronic device to the server can also include the target application's authentication information, enabling the server to authenticate the target application based on this information, thereby ensuring the security of the resources stored on the server.

[0015] In one possible design, after receiving the target resource sent by the server, the method further includes: storing the target resource at the file storage location corresponding to the target path of the target resource. With this design, after receiving the target resource sent by the server, the user-end electronic device can promptly store the target resource in the corresponding path in the second electronic device, so that the user-end electronic device can access the resource again, thus improving resource utilization.

[0016] In one possible design, the at least one first resource includes at least one of the following: images, videos, audio, application interface layout files, and control data. Through this design, the at least one first resource indicated by the resource configuration file can include various types of application resources. For example, large resources such as images, videos, and GIFs from the target application's software data can be used as the first resource to effectively reduce the size of the target application's application software package.

[0017] Secondly, this application provides an application resource loading method, which can be executed by a server. The method includes: the server receiving a resource access request message sent by the user terminal electronic device, the resource access request being used to request the acquisition of target resources of a target application; searching for the target resources in the storage area corresponding to the target application according to the resource access request message; and sending the target resources to the user terminal electronic device.

[0018] In the above method, the server can receive resource access request messages from user electronic devices and send the target resource requested by the user electronic device to the user electronic device, thereby saving storage space of the user electronic device and facilitating the server to maintain and update application resources.

[0019] In one possible design, the resource access request includes a resource identifier of the target resource; the step of searching for the target resource in the storage area corresponding to the target application based on the resource access request message includes: searching for the target resource among at least one first resource in the storage area corresponding to the target application based on the resource identifier of the target resource. With this design, the server can search for the target resource in the storage area of ​​the target application based on the resource identifier of the target resource, improving resource search efficiency.

[0020] In one possible design, the resource access request message further includes authentication information of the target application. Before searching for the target resource in the storage area corresponding to the target application based on the resource access request message, the method further includes: authenticating the target application based on the authentication information in the resource access request and the authentication information of the target application stored on the server, and determining that the authentication of the target application is successful. With this design, after receiving the resource access request message, the server can authenticate the target application based on its authentication information. Only after successful authentication can the server search for the target resource, thereby ensuring the security of the resources stored on the server.

[0021] Thirdly, this application provides a method for publishing application software packages, which can be executed by a development-end electronic device. The method includes: the development-end electronic device obtaining a resource configuration file of a target application, the resource configuration file indicating that the target application requests at least one first resource to be stored on a server; the development-end electronic device sending a storage request message to the server, the storage request message requesting the server to store the at least one first resource; the development-end electronic device generating an application software package of the target application based on data in the software data of the target application other than the at least one first resource, and sending the application software package of the target application to the server.

[0022] In the above method, the development-side electronic device can upload the first resource of the target application to the server according to the resource configuration file, so as to store the first resource on the cloud side, thereby reducing the size of the application software package of the target application and making it easier to release and maintain the target application.

[0023] In one possible design, the storage request message further includes a first path and file name of the at least one first resource, where the first path is information used to identify the file storage location of the at least one first resource in the development-end electronic device. After sending the storage request message to the server, the method further includes: receiving a resource identifier of the at least one first resource sent by the server, where the resource identifier of the at least one first resource is generated by the server based on the first path and file name of the at least one first resource; and replacing the access path of the at least one first resource in the development-end electronic device with the resource identifier of the at least one first resource. With this design, the development-end electronic device can receive a resource identifier of at least one first resource generated by the server, and based on this resource identifier, it can distinguish the resources stored on the server by the target application, facilitating the server's search for the corresponding resources.

[0024] In one possible design, the storage request message also includes authentication information for the target application, which is used by the server to authenticate the target application. With this design, the storage request message sent by the developer's electronic device to the server can also include authentication information, which can be used by the server to authenticate the target application, ensuring that the resources requested by the target application for storage are not read by other counterfeit applications, thereby guaranteeing the security of application resources.

[0025] In one possible design, the at least one first resource includes at least one of the following: images, videos, audio, application interface layout files, and control data.

[0026] Fourthly, this application provides a method for publishing application software packages, which can be executed by a server. The method includes: receiving a storage request message sent by a development-end electronic device, the storage request message being used to request the server to store at least one first resource of a target application; creating a storage area corresponding to the target application in the cloud storage service of the server, and storing the at least one first resource in the storage area corresponding to the target application; and receiving an application software package of the target application sent by the development-end electronic device, the application software package of the target application being generated based on data in the software data of the target application other than the at least one first resource.

[0027] In the above method, the server can create a storage area for the target application according to the request of the development device and store at least one first resource of the target application to reduce the size of the application software package of the target application and facilitate the development and maintenance of the target application.

[0028] In one possible design, the storage request message further includes a first path and file name of the at least one first resource, wherein the first path of the at least one first resource is information used to identify the file storage location of the at least one first resource in the development electronic device; after receiving the storage request message sent by the development electronic device, the method further includes: generating a resource identifier of the at least one first resource based on the first path and file name of the at least one first resource; and sending the resource identifier of the at least one first resource to the development electronic device.

[0029] In one possible design, the storage request message may also include authentication information of the target application, which is used by the server to authenticate the target application.

[0030] Fifthly, this application provides an electronic device comprising multiple functional modules; the multiple functional modules interact to implement the methods executed by the user-end electronic device or the development-end electronic device in any of the above aspects and their respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0031] Sixthly, this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the method executed by the user-end electronic device or the development-end electronic device in any of the above aspects and their respective embodiments.

[0032] Seventhly, this application provides a server comprising multiple functional modules; the multiple functional modules interact to implement the methods executed by the server in any of the above aspects and their respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.

[0033] Eighthly, this application provides a server including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the server is running, the at least one processor executes the server execution method of any of the above aspects and embodiments.

[0034] Ninthly, this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the server or electronic device in any of the above aspects and their embodiments.

[0035] In a tenth aspect, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method executed by the server or electronic device in any of the above aspects and their embodiments.

[0036] Eleventhly, this application also provides a chip for reading a computer program stored in a memory and executing the method performed by a server or electronic device in any of the above aspects and their embodiments.

[0037] In a twelfth aspect, this application also provides a chip system including a processor for supporting a computer device in implementing the methods performed by a server or electronic device in any of the above aspects and their embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description

[0038] Figure 1 This application provides a schematic diagram illustrating an application development and usage scenario.

[0039] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0040] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of this application;

[0041] Figure 4A flowchart illustrating an application development method provided in this application embodiment;

[0042] Figure 5 This is a structural example diagram of an application software package provided in an embodiment of this application;

[0043] Figure 6 This is a flowchart of an application resource loading method provided in an embodiment of this application. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.

[0045] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0046] Application packages, mini-programs, and meta-service packages need to be published to the server so that users can request to download the packages from the server via their mobile devices and install the applications, mini-programs, or meta-services locally on their devices. Users can then utilize the functions or services provided by these software programs. The following explanation uses an application as an example; the publication, download, and execution of mini-program or meta-service packages can be implemented with reference to the following embodiments.

[0047] Based on the functionalities or interface requirements of the application, the application package may include a large number of images, videos, and other resources. When developers publish the application package to an app store, they need to upload the application package to the app store's server via their developer's device. The server may impose size limits on the application package, so developers need to split the application package into multiple packages of the same size that meet the server's requirements during development. When user devices download and install the application, they also need to download multiple packages to complete the download and installation. However, this method requires the developer's device to handle package splitting according to the app store's requirements, increasing development and maintenance costs. Furthermore, after the user's device downloads a large application package locally, the application package occupies a significant amount of storage space, which may affect the frequency of user downloads or updates.

[0048] In some implementations, application developers can activate cloud object storage services provided by a cloud platform. During application development, developers can upload the static resources required by the application to the cloud for storage. When a user's electronic device installs the application, if the resources accessed during application execution are not stored locally, the user's electronic device can request the static resources from the cloud platform's server and load them locally. However, this approach requires developers to identify and adjust the resources integrated into the software package and uploaded to cloud storage during development, manually handling the uploading and maintenance of cloud resources. When the application version changes, it may be necessary to readjust the software package and the resources uploaded to cloud storage, and further classification and permission isolation of cloud storage resources are required, resulting in high operational costs.

[0049] To address the aforementioned problems, embodiments of this application provide an application resource loading method and an application software package publishing method. The application resource loading method provided in this application embodiment can be executed by a user-side electronic device and a server, while the application software package publishing method can be executed by a development-side electronic device and a server. For example, Figure 1 This is a schematic diagram illustrating an application development and usage scenario provided in an embodiment of this application. (Refer to...) Figure 1This scenario can include a development-side electronic device, a server, and a user-side electronic device. Optionally, the server can be an application market server, used to receive application packages uploaded by the development-side electronic device, manage and record different versions of the application, and perform permission and security verification on the electronic device. In this embodiment, the development-side electronic device can upload the first resource of the target application to the server according to the resource configuration file. The first resource is the resource corresponding to the target application that needs to be stored on the cloud side, such as multimedia resources such as images, videos, and audio, or it can also include layout files and control data of the application interface. The server is used to receive the first resource uploaded by the development-side electronic device. The server can generate a resource identifier for the first resource based on the first path of the first resource in the development-side electronic device and the file name corresponding to the first resource. The server can store the first resource and send the resource identifier of the first resource to the development-side electronic device. The development-side electronic device can generate an application package for the target application, which does not include the aforementioned first resource. The development-side electronic device uploads the application package of the target application to the server, completing the release of the target application.

[0050] The user-side electronic device can obtain the application package of the target application from the server and install the target application locally. During installation, the user-side electronic device can allocate a second path to the first resource based on the list of first resources in the application package. Since the application package downloaded by the user-side electronic device does not include the first resource at this time, the file content corresponding to the second path is empty. The user-side electronic device can store the correspondence between the second path of the first resource and the resource identifier of the first resource. When the user-side electronic device runs the target application, it can intercept loading request messages for reading the target resource locally based on the correspondence between the second path and the resource identifier of the first resource. Since the target resource belongs to the first resource, the user-side electronic device can send a resource access request message to the server, which may include the resource identifier of the target resource. The server can locate the target resource based on its resource identifier and send the found target resource to the user-side electronic device. The user-side electronic device can store and load the target resource locally.

[0051] Through the above-described solution, this application provides a more efficient and flexible application development and application resource loading scheme to reduce development costs, optimize user experience, and improve resource utilization. In this application embodiment, the development-side electronic device can upload the first resource of the target application to the server according to the resource configuration file for cloud-side storage, thereby reducing the size of the target application's application package and facilitating its release and maintenance. When the user-side electronic device installs the target application, it obtains the application package from the server. Since this application package does not include the first resource stored in the cloud, it saves storage space on the user-side electronic device. When the user-side electronic device runs the target application, it then obtains the corresponding resources from the server based on resource access requests, enabling on-demand resource download and improving the utilization rate of the electronic device's local space.

[0052] It should be noted that the embodiments of this application do not limit the number of development-end electronic devices, servers, and user-end electronic devices. For example, developers can use one electronic device to complete the application development task, or developers can use multiple electronic devices to collaboratively complete the application development task. Figure 1 The server shown can be implemented by a computing device cluster, which may include at least one computing device. When the computing device cluster includes multiple computing devices, each of the multiple computing devices can perform the same task or perform different tasks to collaboratively complete functions such as application software package release and management.

[0053] The following describes an electronic device and embodiments for using such an electronic device. Figure 2 and Figure 3 The electronic devices shown can be the development-end electronic devices or user-end electronic devices in the embodiments of this application. The electronic devices in the embodiments of this application can be tablet computers, mobile phones, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), wearable devices, etc. The embodiments of this application do not impose any restrictions on the specific type of electronic devices.

[0054] In some embodiments of this application, the electronic device may also be a portable terminal device that includes other functions such as a personal digital assistant and / or a music player. Exemplary embodiments of the portable terminal device include, but are not limited to, devices equipped with... Or portable terminal devices with other operating systems.

[0055] Figure 2 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application. Figure 2 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0056] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has recently used or is repeatedly used. If processor 110 needs to reuse an instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.

[0057] USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. Charging management module 140 receives charging input from the charger. Power management module 141 connects battery 142, charging management module 140, and processor 110. Power management module 141 receives input from battery 142 and / or charging management module 140, providing power to processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0058] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0059] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0060] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0061] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0062] The display screen 194 is used to display the display interface of an application, such as the display page of an application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0063] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0064] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of electronic device 100 (e.g., captured images, recorded videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0065] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.

[0066] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0067] The sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.

[0068] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.

[0069] Touch sensor 180C, also known as a "touch panel," can be located on display screen 194. The touch sensor 180C and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180C detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180C may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0070] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, touch operations applied to different applications (such as taking photos, audio playback, etc.) can correspond to different vibration feedback effects. Touch vibration feedback effects can also be customized. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with electronic device 100.

[0071] Understandable, Figure 2The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or have different component arrangements. Furthermore, Figure 2 The combination / connection relationships between the components can also be adjusted and modified.

[0072] Figure 3 This is a software structure block diagram of an electronic device provided in an embodiment of this application. For example... Figure 3 As shown, the software architecture of an electronic device can be a layered architecture. For example, the software can be divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system libraries, and the kernel layer.

[0073] The application layer can include a series of application packages. For example... Figure 3 As shown, the application layer can include camera, settings, skin modules, user interface (UI), third-party applications, etc. Third-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.

[0074] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer can include some predefined functions. For example... Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, and notification manager.

[0075] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0076] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0077] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0078] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0079] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0080] The runtime includes the core libraries and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.

[0081] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the operating system. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0082] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), image processing libraries, etc.

[0083] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0084] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0085] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0086] A 2D graphics engine is a graphics engine for 2D drawing.

[0087] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0088] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, and touch sensors.

[0089] It should be noted that, Figure 2 and Figure 3 The structure shown is merely an example of an electronic device provided in this application embodiment and is not intended to limit the electronic device provided in this application embodiment in any way. In specific implementations, the electronic device may have more than Figure 2 or Figure 3 The structure shown may contain more or fewer devices or modules.

[0090] The application software package publishing method and application resource loading method provided in the embodiments of this application are described below.

[0091] 1. Application package distribution methods

[0092] Figure 4 A flowchart illustrating an application development method provided in this application embodiment, which can be executed by a development-side electronic device and a server, is shown below. Figure 4 The method includes the following steps:

[0093] S401: The development device obtains the resource configuration file of the target application.

[0094] In this embodiment, during the development phase of the target application, developers can set a resource configuration file based on the resources included in the target application. This resource configuration file can be used to indicate the first resource that needs to be uploaded to cloud storage. For example, the resource configuration file can include the name of at least one first resource. The development-side electronic device receives the resource configuration file uploaded by the developer. The development-side electronic device can obtain the identifier of the target application, the resource type of the first resource, the first path of the first resource in the development-side electronic device, and the file name corresponding to the first resource based on the resource configuration file. In some examples, when setting the resource configuration file, developers can use large resources such as images, videos, and GIFs from the software data of the target application as the first resource to effectively reduce the size of the target application's application package.

[0095] S402: The development-side electronic device obtains at least one first resource from the resources of the target application according to the resource configuration file.

[0096] After obtaining the resource configuration file of the target application, the development-side electronic device can obtain at least one first resource from the resources of the target application. This first resource is a resource that needs to be uploaded to the server for storage.

[0097] S403: The server receives a storage request message sent by the development device.

[0098] In this embodiment, the development-side electronic device can send a storage request message to the server. The server receives the storage request message sent by the development-side electronic device. The storage request message is used to request the server to store at least one first resource in the cloud-side storage space. Optionally, the storage request message may include at least one first resource, and may also include a first path of at least one first resource in the development-side electronic device and a file name corresponding to at least one first resource, or may also include the identifier of the target application and the resource type of at least one first resource. The first path of the first resource in the development-side electronic device is used to uniquely identify the file storage location of the first resource in the development-side electronic device.

[0099] Optionally, a resource proxy software development kit (SDK) can be integrated into the development-side electronic device. The resource proxy SDK can automatically obtain at least one first resource of the target application according to the resource configuration file and upload at least one first resource to the server without requiring the user to manually upload resources to the server.

[0100] In some examples, the storage request message sent by the developer's electronic device to the server may also include authentication information. This authentication information can be used by the server to authenticate the target application, ensuring that the resources requested by the target application for storage on the server cannot be read by other counterfeit applications, thereby ensuring the security of application resources. For example, in the embodiments of this application, the authentication information can be JWTToken (JSON Web Token), where JavaScript Object Notation (JSON) is a lightweight data interchange format.

[0101] S404: The server creates a storage area corresponding to the target application in the cloud storage service based on the identifier of the target application, and stores at least one first resource in the storage area corresponding to the target application.

[0102] After receiving a storage request message from the development device, the server can create a storage area corresponding to the target application in the cloud storage service based on the identifier of the target application. The server can store at least one first resource in the storage request message into the storage area corresponding to the target application.

[0103] S405: The server generates a resource identifier for each first resource based on the first path and file name of each first resource.

[0104] The server can generate a resource identifier for the first resource based on the first path of the first resource and the file name corresponding to the first resource. Alternatively, the server can generate a resource identifier for the first resource based on the identifier of the target application corresponding to the first resource, the resource type, the first path of the first resource in the development terminal electronic device, and the file name corresponding to the first resource.

[0105] S406: The server sends the resource identifier of at least one first resource to the development electronic device.

[0106] The server can send the resource identifier of the first resource to the development-side electronic device to complete the process of storing the first resource in the cloud.

[0107] S407: The development-side electronic device replaces the access path of at least one first resource of the target application with a meta path, the value of which is the resource identifier of the first resource.

[0108] Optionally, after receiving at least one resource identifier of a first resource sent by the server, the development-side electronic device can replace the resource identifier of the first resource with the access path of the first resource of the target application. For example, the development-side electronic device can replace the access path of the first resource with a meta path, the value of which is the resource identifier of the first resource.

[0109] S408: Application software package for generating target applications on the development end electronic device.

[0110] The development-side electronic device can generate an application package for the target application based on data from the software data of the target application, excluding at least one first resource. This application package does not include at least one first resource, thereby reducing the size of the application package. When generating the application package, if the development-side electronic device determines that the path of the data to be read is a resource identifier of any of the at least one resources when reading the target application's software data, it can skip that data, thus avoiding packaging at least one first resource in the application package.

[0111] S409: The development-side electronic device sends the application software package of the target application to the server.

[0112] The developer's electronic device can send the application package of the target application to the server. The server receives and stores the application package. The server can then publish the target application in an application marketplace. Users can use their electronic devices to run the application marketplace and trigger the download and installation of the target application.

[0113] The application publishing method provided in the above embodiments allows the development-side electronic device to upload the first resource of the target application to the server according to the resource configuration file, so as to store the first resource on the cloud side, thereby reducing the size of the application software package of the target application and facilitating the publishing and maintenance of the target application.

[0114] For example, Figure 5 This is a structural example diagram of an application software package provided in an embodiment of this application, with reference to... Figure 5 In (a) of this application, the application software package includes source code (SRC), a software development kit (SDK) including library files (lib), and resources. These resources may include, for example, images, videos, files, icons, and other resource files, and the resource size may be 80MB. Based on the application development method provided in this application embodiment, refer to... Figure 5 In (b) of this application, the resource configuration file may include the names of multiple first resources, which include images, videos and files. The development-end electronic device can upload multiple first resources to the server. Then, the application software package of the target application generated by the development-end electronic device includes source code (SRC), software development kit (SDK) including library files (lib), and resources. The resources may include resource configuration files, icons and other resource files. The size of the resources is approximately 2MB. The application development scheme provided by the embodiments of this application can effectively reduce the size of the application software package, thereby saving development and maintenance costs.

[0115] 2. Application resource loading method

[0116] When a user-end electronic device installs a target application, it can obtain the application package of the target application from the server and install the target application locally. In this embodiment, since the application package of the target application does not include the first resource, the application package may include a resource configuration file and a resource identifier of the first resource. The user-end electronic device can allocate storage resources for the first resource in its storage space according to the resource configuration file, thereby determining the second path of the first resource in the user-end electronic device. The user-end electronic device can store the correspondence between the second path of the first resource and the resource identifier of the first resource.

[0117] Figure 6 A flowchart illustrating an application resource loading method provided in this application embodiment is shown. This method can be executed by a user-end electronic device and a server. (Refer to...) Figure 6 The method includes the following steps:

[0118] S601: User-end electronic devices run the target application.

[0119] S602: The user terminal electronic device receives a load request message, determines that the target resource requested in the load request message belongs to at least one first resource, and intercepts the load request message.

[0120] In this embodiment of the application, when a user-end electronic device is running a target application, if it receives a loading request message, the loading request message is used to request reading a target resource stored locally, and the loading request message includes the path of the target resource to be read. The user-end electronic device can determine, based on the correspondence between the second path of at least one first resource stored and the resource identifier of the first resource, that the path of the target resource belongs to the second path of at least one first resource. Therefore, the user-end electronic device determines that the target resource requested by the loading request message belongs to the first resource, and intercepts the loading request message.

[0121] S603: The user terminal electronic device determines whether a valid target resource is stored locally; if yes, proceed to S604; otherwise, proceed to S605.

[0122] S604: The user-end electronic device loads the target resource in the target application.

[0123] S605: The user-end electronic device sends a resource access request message to the server, and the server receives the resource access request message sent by the user-end electronic device.

[0124] Optionally, after intercepting the load request message, the user-end electronic device can determine whether the target resource requested to be read by the load request message is stored locally.

[0125] In one optional implementation, the user-end electronic device can query whether a cache identifier corresponding to the target resource is stored. If the user-end electronic device stores the cache identifier of the target resource, it indicates that the target resource has been stored locally on the user-end electronic device. The cache identifier corresponding to the target resource can be stored in the mapping between the second path of the target resource and the resource identifier of the target resource.

[0126] In another optional implementation, the user terminal electronic device can check whether the content stored in the second path of the target resource is empty. If the content stored in the second path is not empty, it means that the target resource exists locally on the user terminal electronic device.

[0127] In some examples, when the target resource has been stored, the user-end electronic device can also store the validity period corresponding to the target resource. When the user-end electronic device determines that the target resource has been stored locally, it can also determine whether the target resource is valid based on the current time and the validity period corresponding to the target resource. When the target resource is determined to be valid, the target resource is loaded.

[0128] In this embodiment of the application, when the user terminal electronic device determines that the target resource is not stored locally or the stored target resource has expired, it can send a resource access request message to the server. The resource access request may include the identifier of the target application and the resource identifier of the target resource. The resource identifier of the target resource in the resource access request may be determined by the user terminal electronic device according to the correspondence between the second path of the stored first resource and the resource identifier of the first resource.

[0129] It should be noted that S603-S604 are optional steps. The user-end electronic device can also directly execute S605 after intercepting the load request message to request the target resource from the server.

[0130] S606: The server retrieves the target resource from the cloud storage service based on the resource access request message.

[0131] After receiving a resource access request message from a user's electronic device, the server can locate the target resource stored on the server based on the identifier of the target application and the resource identifier of the target resource. For example, the server can locate the storage area corresponding to the target application based on the identifier of the target application, and then locate the target resource from the storage area corresponding to the target application based on the resource identifier of the target resource.

[0132] S607: The server sends the target resource to the user's electronic device.

[0133] The server can send the found target resource to the user's electronic device. Optionally, if the target resource stored on the server has a configured validity period, the server can send the target resource and its validity period to the user's electronic device.

[0134] In some implementations, the resource access request message sent by the user's electronic device to the server may also include authentication information of the target application, such as a JWT token. After receiving the resource access request message, the server can authenticate the target application based on its authentication information. Once authentication is successful, the server can then search for the target resource, thereby ensuring the security of the resources requested by the target application from the server.

[0135] S608: The user-end electronic device loads the target resource in the target application.

[0136] After receiving the target resource sent by the server, the user's electronic device can cache the target resource in the second path corresponding to the target resource and load the target resource in the target application.

[0137] For example, a user's electronic device downloads and installs a target application. The application package includes resources related to the target application's main interface. When the user's electronic device runs the target application, it can render and display the main interface based on these resources. In response to the user's action on the main interface, the target application needs to switch to display a first interface, which includes a video. When rendering the first interface, the target application triggers a load request message to request the reading of locally stored video resources. Based on the correspondence between the second path of the first resource stored in the target application and the resource identifier of the first resource, the user's electronic device determines that the second path of the video resource in the load request message belongs to the second path of the first resource stored on the user's device. At this point, the user's electronic device can intercept the load request message. If the user's electronic device determines that the video resource in the first interface is not stored locally, it can send a resource access request message to the server. This resource access request message can include the target application's identifier and the video resource's resource identifier. After receiving the resource access request message, the server can search for the video resource in the storage area corresponding to the target application based on the target application's identifier and the video resource's resource identifier, and then send the found video resource to the user's electronic device. The user-end electronic device can receive video resources and cache them in the second path corresponding to the video resources. The user-end electronic device can then load the video resources and display the first interface.

[0138] The application resource loading method provided in this application embodiment allows a user-end electronic device to obtain the application package of a target application from a server when installing the target application. Since this application package does not include the first resource stored in the cloud, it saves storage space on the user-end electronic device. When the user-end electronic device runs the target application, it then obtains the corresponding resources from the server based on resource access requests, enabling on-demand downloading of resources and improving the utilization rate of the device's local space. Furthermore, when the target application version is updated or resources such as videos and images in the target application's display interface are updated, the developer can update the first resource stored on the server. The user-end electronic device can then request resources from the server when needed, ensuring that the resources displayed in the target application are the latest. This allows for resource updates without updating the application package, providing a more efficient application resource update solution while saving local storage space on the user-end electronic device.

[0139] Based on the above embodiments, this application also provides a server, including multiple functional modules; the multiple functional modules interact to implement the functions performed by the server in the methods described in the embodiments of this application. For example, [the following is an example of the server's functionality]. Figure 4 The server in the illustrated embodiment executes S403-S406, or executes... Figure 6 The server executes S605-S607 in the illustrated embodiment. The multiple functional modules can be implemented based on software, hardware, or a combination of both, and these modules can be arbitrarily combined or divided based on specific implementations.

[0140] Based on the above embodiments, this application also provides a server, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the server is running, the at least one processor executes the functions performed by the server in the various methods described in the embodiments of this application. For example, ... Figure 4 The server in the illustrated embodiment executes S403-S406, or executes... Figure 6 The server executes S605-S607 in the illustrated embodiment.

[0141] Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the electronic device in the methods described in the embodiments of this application. For example, [the following is an example of implementation]. Figure 4 In the illustrated embodiment, the development-side electronic device executes S401-S403, S406-S408, or executes... Figure 6 The user-end electronic device in the illustrated embodiment executes S601-S605 and S607-S608. These multiple functional modules can be implemented based on software, hardware, or a combination of both, and can be arbitrarily combined or divided based on specific implementations.

[0142] Based on the above embodiments, this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the electronic device is running, the at least one processor executes the functions performed by the electronic device in the various methods described in the embodiments of this application. For example, when executing... Figure 4 In the illustrated embodiment, the electronic device executes S401-S403, S406-S408, or executes... Figure 6 The user terminal electronic device executes S601-S605 and S607-S608 in the illustrated embodiment.

[0143] Based on the above embodiments, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.

[0144] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.

[0145] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.

[0146] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices.

[0147] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0148] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0149] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0150] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0151] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. An application resource loading method, characterized in that, Applied to user-end electronic devices, the method includes: Run the target application and receive a loading request message from the target application, the loading request message being used to request to read the target resources of the target application; Determine that the target resource belongs to at least one first resource, and intercept the loading request message, wherein the at least one first resource is a resource of the target application stored in the server; Send a resource access request message to the server, the resource access request being used to request the acquisition of the target resource; Receive the target resource sent by the server and load the target resource into the target application.

2. The method as described in claim 1, characterized in that, Before running the target application, the method further includes: The application package of the target application is obtained from the server. The application package includes a resource configuration file and a resource identifier of the at least one first resource. The resource configuration file is used to indicate the at least one first resource. Install the target application according to the application software package; According to the resource configuration file, a second path is allocated in the user terminal electronic device for the at least one first resource, and the second path of the at least one first resource is used to identify the file storage location of the at least one first resource in the user terminal electronic device; The correspondence between the second path of the at least one first resource and the resource identifier of the at least one first resource is stored.

3. The method as described in claim 2, characterized in that, The load request message includes the target path of the target resource, and determining that the target resource belongs to at least one first resource includes: The target path is determined to be any one of the second paths of the at least one first resource.

4. The method as described in claim 3, characterized in that, The resource access request message includes a resource identifier of the target resource. Before sending the resource access request message to the server, the method further includes: The resource identifier of the target resource is determined based on the correspondence between the target path of the target resource, the second path of the at least one first resource, and the resource identifier of the at least one first resource.

5. The method according to any one of claims 1-4, characterized in that, Before sending the resource access request message to the server, the method further includes: It is determined that the target resource is not stored in the user terminal electronic device, or that the target resource stored in the user terminal electronic device has expired.

6. The method as described in claim 5, characterized in that, The step of determining that the user-end electronic device does not store the target resource includes: It is determined that no data is stored in the file storage location corresponding to the target path of the target resource, or It is determined that the user-end electronic device does not store the cache identifier corresponding to the target resource, and the cache identifier is used to indicate that the user-end electronic device has stored the target resource.

7. The method as described in claim 5 or 6, characterized in that, The determination that the target resource stored in the user terminal electronic device has expired includes: Obtain the validity period corresponding to the target resource stored in the user terminal electronic device, and determine that the target resource stored in the user terminal electronic device has expired based on the current time and the validity period corresponding to the target resource.

8. The method according to any one of claims 1-7, characterized in that, The resource access request message also includes authentication information for the target application, which is used by the server to authenticate the target application.

9. The method according to any one of claims 2-4, characterized in that, After receiving the target resource sent by the server, the method further includes: The target resource is stored in the file storage location corresponding to the target path of the target resource.

10. The method according to any one of claims 1-9, characterized in that, The at least one first resource includes at least one of the following: images, videos, audio, application interface layout files, and control data.

11. An application resource loading method, characterized in that, Applied to a server, the method includes: Receive a resource access request message sent by the user terminal electronic device, wherein the resource access request is used to request the acquisition of the target resource of the target application; Based on the resource access request message, the target resource is located in the storage area corresponding to the target application, and the target resource is sent to the user terminal electronic device.

12. The method as described in claim 11, characterized in that, The resource access request includes the resource identifier of the target resource; the step of searching for the target resource in the storage area corresponding to the target application based on the resource access request message includes: The target resource is searched for in at least one first resource in the storage area corresponding to the target application based on the resource identifier of the target resource.

13. The method as described in claim 11 or 12, characterized in that, The resource access request message also includes authentication information for the target application. Before searching for the target resource in the storage area corresponding to the target application based on the resource access request message, the method further includes: The target application is authenticated based on the authentication information in the resource access request and the authentication information of the target application stored on the server, and the authentication of the target application is confirmed to be successful.

14. A method for distributing application software packages, characterized in that, The method, applied to development-side electronic devices, includes: Obtain the resource configuration file of the target application, the resource configuration file being used to indicate that the target application requests at least one first resource stored on the server; Send a storage request message to the server, the storage request message being used to request the server to store the at least one first resource; The application software package of the target application is generated based on the data in the software data of the target application, excluding the at least one first resource, and the application software package of the target application is sent to the server.

15. The method as described in claim 14, characterized in that, The storage request message also includes a first path and file name of the at least one first resource, wherein the first path of the at least one first resource is information used to identify the file storage location of the at least one first resource in the development-end electronic device; After sending the storage request message to the server, the method further includes: The server receives the resource identifier of the at least one first resource, which is generated by the server based on the first path and file name of the at least one first resource. Replace the access path of at least one first resource in the development terminal electronic device with the resource identifier of the at least one first resource.

16. The method as described in claim 14 or 15, characterized in that, The storage request message also includes authentication information for the target application, which is used by the server to authenticate the target application.

17. The method according to any one of claims 14-16, characterized in that, The at least one first resource includes at least one of the following: images, videos, audio, application interface layout files, and control data.

18. A method for distributing application software packages, characterized in that, Applied to a server, the method includes: The server receives a storage request message sent by the development terminal electronic device, the storage request message being used to request the server to store at least one first resource of the target application; Create a storage area corresponding to the target application in the cloud storage service of the server, and store the at least one first resource in the storage area corresponding to the target application; The application software package of the target application is received from the development terminal electronic device. The application software package of the target application is generated based on the data in the software data of the target application, excluding the at least one first resource.

19. The method as described in claim 18, characterized in that, The storage request message also includes a first path and file name of the at least one first resource, wherein the first path of the at least one first resource is information used to identify the file storage location of the at least one first resource in the development-end electronic device; After receiving the storage request message sent by the development-side electronic device, the method further includes: Generate a resource identifier for the at least one first resource based on the first path and file name of the at least one first resource; Send the resource identifier of the at least one first resource to the development-side electronic device.

20. The method as described in claim 18 or 19, characterized in that, The storage request message also includes authentication information for the target application, which is used by the server to authenticate the target application.

21. An electronic device, characterized in that, It includes at least one processor coupled to at least one memory, the at least one processor being configured to read a program stored in the at least one memory to perform the method as claimed in any one of claims 1-10, or to perform the method as claimed in any one of claims 14-17.

22. A server, characterized in that, It includes at least one processor coupled to at least one memory, the at least one processor being configured to read a program stored in the at least one memory to perform the method as claimed in any one of claims 11-13, or to perform the method as claimed in any one of claims 18-20.

23. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-10, or the method as described in any one of claims 14-17, or the method as described in any one of claims 11-13, or the method as described in any one of claims 18-20.