Application distribution method and device, electronic equipment and storage medium
By obtaining Android device information on the server and extracting adaptive APK files from the Android application bundle file, the problem of large amount of data when installing applications by Android devices is solved, and traffic and storage space is saved. It is suitable for a variety of Android devices. and application market.
Patent Information
- Application Number
- CN202310618874.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2024-11-29
AI Technical Summary
When installing applications, Android devices have large data volumes of full installation packages, resulting in waste of traffic and storage space. The existing technology is difficult to effectively solve this problem, especially in scenarios in non-Google Play markets.
By obtaining device information of Android devices on the server, using bundling tools to extract the adapted APK files from the Android application bundle file, and sending them to the device in the form of a compressed package, reducing the amount of downloaded data and improving installation efficiency.
It effectively reduces the amount of data that Android devices need to download when installing applications, saves traffic and storage space, and does not require full installation of native Android applications. It is suitable for a variety of Android devices and application markets.
Smart Images

Figure CN119052222A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of application distribution based on Android devices, and in particular to an application distribution method and device, an electronic device and a storage medium. Background Art
[0002] In the domestic application market, the Android application package (APK) corresponding to the Android application is released in the form of a full installation package, which is compatible with almost all mainstream Android devices in the market. Because it needs to meet the needs of Android devices with different configurations, such as Android devices with different screen sizes and densities, languages, C processor architectures, etc., the data volume of the full installation package is very large.
[0003] The large data volume of the full installation package will directly lead to a large data volume of the APK file that needs to be downloaded when the Android device installs the application, wasting the traffic and storage space of the Android device. Summary of the invention
[0004] The present disclosure provides an application distribution method and device, an electronic device and a storage medium.
[0005] According to a first aspect of the present disclosure, there is provided an application distribution method, which is applied to a server, and the method includes:
[0006] Send a device information acquisition request to the Android device;
[0007] Receiving device information sent by the Android device based on a device information acquisition request; the device information is used to indicate at least one Android application program package APK file in an Android application bundle file that is compatible with the Android device;
[0008] Extracting the at least one APK file adapted for the Android device from the Android application bundle file using a bundling tool according to the device information;
[0009] In response to the installation request of the Android device, the at least one APK file is sent to the Android device.
[0010] In some embodiments, sending the at least one APK file to the Android device includes:
[0011] Compressing the at least one APK file into a compressed package file;
[0012] Send the compressed package file to the Android device.
[0013] In some embodiments, the method further comprises:
[0014] Receive and save the Android application bundle file uploaded by the developer.
[0015] According to a second aspect of the present disclosure, there is provided an application distribution method, which is applied to an Android device, and the method comprises:
[0016] In response to a device information acquisition request from the server, the device information is sent to the server; the device information is used to indicate at least one Android application package APK file in the Android application bundle AAB file that is compatible with the Android device;
[0017] Sending an installation request to the server;
[0018] Receive the at least one APK file sent by the server based on the installation request.
[0019] In some embodiments, the receiving the at least one APK file sent by the server includes:
[0020] Receive the at least one APK file sent by the server, or a compressed package file compressed by the at least one APK file.
[0021] In some embodiments, if a compressed package file compressed from the at least one APK file and sent by the server is received, the method further includes:
[0022] Decompress the compressed file.
[0023] According to a third aspect of the present disclosure, there is provided an application distribution device, which is applied to a server, and includes:
[0024] A first sending unit, used to send a device information acquisition request to the Android device;
[0025] A first receiving unit is configured to receive device information sent by the Android device based on a device information acquisition request; the device information is used to indicate at least one Android application package APK file in the Android application bundle file that is compatible with the Android device;
[0026] an extraction unit, configured to extract, according to the device information, the at least one APK file adapted for the Android device from the Android application bundle file using a bundling tool;
[0027] The second sending unit is used to send the at least one APK file to the Android device in response to the installation request of the Android device.
[0028] According to a fourth aspect of the present disclosure, there is provided an application distribution device, applied to an Android device, the device comprising:
[0029] A third sending unit is used to send the device information to the server in response to the device information acquisition request of the server; the device information is used to indicate at least one Android application package APK file adapted to the Android device in the Android application bundle file;
[0030] A fourth sending unit, configured to send an installation request to the server;
[0031] The second receiving unit is used to receive the at least one APK file sent by the server based on the installation request.
[0032] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:
[0033] at least one processor architecture; and
[0034] a memory communicatively connected to the at least one processor architecture; wherein,
[0035] The memory stores instructions that can be executed by the at least one processor architecture, and the instructions are executed by the at least one processor architecture to enable the at least one processor architecture to perform the method described in the first aspect or the second aspect.
[0036] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect or the second aspect.
[0037] The present disclosure provides an application distribution method, device, electronic device and storage medium. The method includes: a server sends a device information acquisition request to an Android device, and the Android device responds to the device information acquisition request of the server and sends the device information to the server; the server obtains the device information sent by the Android device; the device information is used to indicate at least one APK file adapted to the Android device in the Android application bundle file; the server extracts the at least one APK file adapted to the Android device from the Android application bundle file using a bundling tool according to the device information; the Android device sends an installation request to the server, and the server responds to the installation request of the Android device and sends the at least one APK file to the Android device, and the Android device receives the at least one APK file sent by the server. According to the scheme of the present disclosure, the server can obtain the device information of the Android device through the device request information, and extract at least one APK file adapted to the device information of the Android device from the Android application bundle file based on the device information, without installing the Android application bundle file in full, which effectively reduces the amount of data that needs to be downloaded when the Android device installs the application, and effectively saves the traffic and storage space of the Android device.
[0038] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0040] Figure 1 A schematic diagram of the composition of an Android application bundle AAB file provided in an embodiment of the present disclosure;
[0041] Figure 2 A flowchart of a first application distribution method provided in an embodiment of the present disclosure;
[0042] Figure 3 A flowchart of a second application distribution method provided in an embodiment of the present disclosure;
[0043] Figure 4 A flowchart of an application distribution method provided for an application example of the present disclosure;
[0044] Figure 5 A schematic diagram of the structure of a first application distribution device provided in an embodiment of the present disclosure;
[0045] Figure 6 A schematic diagram of the structure of a second application distribution device provided in an embodiment of the present disclosure;
[0046] Figure 7 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0048] The following describes the application distribution method, device, electronic device, and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
[0049] In the domestic application market, the Android application package (APK) corresponding to the application is released in the form of a full installation package, which is compatible with almost all mainstream Android devices in the market. Because it needs to meet the needs of Android devices with different configurations, such as Android devices with different screen sizes and densities, languages, CPUs, etc., the data volume of the full installation package is very large.
[0050] The large data volume of the full installation package will directly lead to a large amount of APK data that needs to be downloaded when the Android device installs the application, wasting the traffic and storage space of the Android device.
[0051] The method for solving the above problems in the related art is such as the method adopted by Google Play:
[0052] Google Play will soon require developers to publish new apps in the format of Android App Bundle (AAB) files. AAB files will replace APK files as the standard Android app publishing format. In an AAB file, the full package of an app is split into multiple APK files, and each APK file usually only contains a part of the app's functions. For example, Figure 1As shown in the figure, an AAB file usually contains a base module (Base Module) directory, multiple dynamic feature (Dynamic Feature) directories and multiple asset pack (Asset Pack) directories. Among them, the files under the Base Module directory are Base APK. Base APK is the APK installed for the first time when an Android device installs an application. It contains the common code and resources of the application. Other modules are based on Base APK. The files under the DynamicFeature directory are dynamic feature sub-packages (Dynamic feature APKS). Dynamic feature APKS are sub-packages (APKS) split out using the Split APK application packaging technology, and developers can deliver them on demand.
[0053] When distributing applications, Google Play can split the full APK files uploaded by developers and repackage them into Android application bundle AAB files. The multiple APKS under the Dynamic Feature directory and the Asset Pack directory are automatically split and generated based on the device information of the Android device using the Google Play market, such as the language information used, the size and density of the screen, and the processor architecture information. When distributing to Android devices by reference, the Google Play market only distributes the APKS adapted to it in the Android application bundle AAB file to Android devices based on the API of Google Mobile Services GMS (Google Mobile Services, GMS for short). Therefore, the amount of data that Android devices need to download is greatly reduced, saving the traffic and storage space of Android devices.
[0054] However, there are many third-party application markets in China, and there are also multiple manufacturers that produce Android devices. Many Android devices are not compatible with the Google Play market. In addition, users have different needs, and the third-party application markets they use are also different. It is even more impossible to distribute all applications through the Google Play market.
[0055] In order to solve at least one of the above problems, the present disclosure provides an application distribution method. Figure 2 As shown, the execution subject is a server, and the server is a server of an application market. The application distribution method includes the following steps:
[0056] Step 201: Send a device information acquisition request to the Android device;
[0057] In one embodiment, after the Android device installs the application market corresponding to the server, the server sends a device information acquisition request to the Android device, and the Android device responds to the device information acquisition request and sends the device information to the server. Alternatively, when the Android device installs the application market corresponding to the server, the server obtains the device information of the Android device through the installation protocol.
[0058] In one embodiment, before step 201, the method further includes:
[0059] Receive and save the Android application bundle file uploaded by the developer;
[0060] In one embodiment, the developer can use the Android Studio tool to package the native Android application into an AAB file. Among them, Android Studio is an Android integrated development tool launched by Google, and Android Studio can be used for the development and debugging of Android applications. Android Studio can run on Linux, Windows, and macOS, and supports development in languages such as Java, Kotlin, and Flutter. It should be noted that when the developer uses the Build module in Android Studio to package the Android application bundle AAB file, it is necessary to fill in the signature. Correspondingly, the Android application bundle AAB file generated by the native Android application packaging contains the developer's signature file, which is convenient for the developer to modify or replace the file later.
[0061] In one embodiment, the device information includes processor architecture information, language information, and key information such as screen size and screen density of the Android device.
[0062] Step 202: receiving device information sent by the Android device based on a device information acquisition request; the device information is used to indicate at least one Android application package APK file in the Android application bundle AAB file that is compatible with the Android device;
[0063] Step 203: extracting the at least one APK file adapted for the Android device from the Android application bundle file using a bundling tool according to the device information;
[0064] In one embodiment, the bundling tool bundletool is an underlying tool used by Android Studio, Android Gradle plug-in, and Google Play to build Android App Bundles and convert App Bundles into various APKs to be deployed to devices. The server can extract at least one APK file adapted to the Android device from the AAB file based on the acquired device information of the Android device, and put it into a collection, and the suffix of the collection can be .apks. For example, when the Android application bundle AAB file of a native Android application contains both APK files adapted to English and APK files adapted to Chinese, if the device information indicates that the Android device is adapted to Chinese APK files, the bundletool only extracts the APK files adapted to Chinese from the Android application bundle AAB file, thereby effectively reducing the amount of data that the Android device needs to download and saving the traffic and storage space of the Android device.
[0065] Step 204: In response to the installation request of the Android device, send the at least one APK file to the Android device.
[0066] In one embodiment, the installation request of the Android device may be triggered based on the installation operation of the user of the Android device, or based on the installation protocol defined by the developer. For example, when the application detects that the version of the application installed on the Android device needs to be updated, it may be updated autonomously or according to the needs of the user. The version update may be an update of a module in the application.
[0067] In one embodiment, the sending of the at least one APK file to the Android device may be based on a serial manner, sending each APK file in the at least one APK file to the Android device in sequence, or may be sending a compressed package file containing each APK file to the Android device in the form of a compressed package.
[0068] In summary, with the application distribution method provided by the embodiments of the present disclosure, the server can obtain the device information of the Android device through the device request information, and based on the device information, extract at least one APK file adapted to the device information of the Android device from the AAB file, without having to fully install the files adapted to all mainstream Android devices in the native Android application, which effectively reduces the amount of data that needs to be downloaded when the Android device installs the application, and saves the traffic and storage space of the Android device.
[0069] In one embodiment, because each APK file in the at least one APK file is sent to the Android device in sequence based on a serial manner, it is difficult for the server to connect with the Android device, and the data volume is large and the download speed is slow. Therefore, a compressed package file containing each APK file can be sent to the Android device in the form of a compressed package to further reduce the volume of downloaded data and speed up the download speed.
[0070] Based on this, in one embodiment, sending the at least one APK file to the Android device includes:
[0071] Compressing the at least one APK file into a compressed package file;
[0072] Send the compressed package file to the Android device.
[0073] like Figure 3 As shown, the embodiment of the present disclosure also provides an application distribution method, the execution subject of which is an Android device, and the application distribution method includes the following steps:
[0074] Step 301: In response to a device information acquisition request from a server, the device information is sent to the server; the device information is used to indicate at least one Android application package APK file in an Android application bundle AAB file that is compatible with the Android device;
[0075] In one embodiment, after the Android device installs the application market corresponding to the server, the server sends a device information acquisition request to the Android device, and the Android device responds to the device information acquisition request and sends the device information to the server. Alternatively, when the Android device installs the server, the server obtains the device information of the Android device through an installation protocol.
[0076] In one embodiment, the device information includes the processor architecture information, language information, and key information such as screen size and screen density of the Android device. For example, when the Android application bundle AAB file of a native Android application contains both an APK file adapted for English and an APK file adapted for Chinese, if the device information indicates that the Android device is adapted for the APK file adapted for Chinese, the bundletool only extracts the APK file adapted for Chinese from the Android application bundle AAB file, thereby effectively reducing the amount of data that the Android device needs to download and saving the traffic and storage space of the Android device.
[0077] Step 302: Send an installation request to the server;
[0078] In one embodiment, the installation request may be triggered based on an installation operation by a user of the Android device, or based on an installation protocol defined by a developer. For example, when the application detects that the version of the application installed on the Android device needs to be updated, it may be updated autonomously or according to user needs. The version update may be an update of a module in the application.
[0079] Step 303: Receive the at least one APK file sent by the server based on the installation request.
[0080] In one embodiment, the receiving of the at least one APK file sent by the server may be based on a serial manner, receiving each APK file in the at least one APK file sent by the server in sequence, or the server may send a compressed package file in the form of a compressed package containing each APK file.
[0081] Since the Android device receives an APK file, the Android system's native PackageInstaller API can be used to install the APK file, thus avoiding the problem that the Android application bundle AAB file cannot be directly installed.
[0082] In one embodiment, since each APK file in the at least one APK file sent by the server is received in sequence in a serial manner, it is difficult to connect the server and the Android device, and the data volume is large and the download speed is slow.
[0083] Based on this, in one embodiment, the receiving the at least one APK file sent by the server includes:
[0084] Receive the at least one APK file sent by the server, or a compressed package file compressed by the at least one APK file.
[0085] Since the native PackageInstaller API of the Android system is not compatible with a compressed package containing multiple APK files, only APK files can be installed. Based on this, in one embodiment, if a compressed package file compressed by the at least one APK file sent by the server is received, the method further includes:
[0086] Decompress the compressed file.
[0087] The application distribution method disclosed in the present disclosure is further illustrated below with reference to specific application examples.
[0088] like Figure 4 As shown, the application distribution method provided in the application example of the present disclosure includes:
[0089] Step 401: The server receives and saves the Android application bundle file uploaded by the developer using Android Studio;
[0090] Step 402: The server sends a device information acquisition request to the Android device;
[0091] Step 403: The Android device responds to the device information acquisition request of the server and sends the device information to the server;
[0092] Step 404: The server obtains the device information sent by the Android device; the device information is used to indicate at least one APK file in the Android application bundle file that is compatible with the Android device;
[0093] Step 405: The server extracts the at least one APK file adapted for the Android device from the Android application bundle file using a bundle tool bundletool according to the device information;
[0094] Step 406: The Android device sends an installation request to the server;
[0095] Step 407: The server sends the at least one APK file to the Android device in response to the installation request of the Android device;
[0096] Step 408: The Android device receives the at least one APK file sent by the server;
[0097] Step 409: The Android device installs each APK file in the at least one APK file using the PackageInstaller API.
[0098] The application distribution method provided in this public application example:
[0099] First, the server can obtain the device information of the Android device through the device request information, and based on the device information, extract at least one APK file that is compatible with the device information of the Android device from the AAB file, without having to fully install the files in the native Android application that are compatible with all mainstream Android devices, effectively reducing the amount of data that needs to be downloaded when the Android device installs the application, saving traffic and storage space of the Android device.
[0100] Secondly, the open source Android Studio can be used to build the AAB file corresponding to the native Android application, and then the open source bundletool can be used to extract the at least one APK file adapted for the Android device from the Android application bundle AAB file without using Google Play. The interface realizes the function of application sub-packaging and distribution.
[0101] Thirdly, since developers can use the open source Android Studio to separately package the DynamicFeature of the application, they can update individual modules in the application.
[0102] Again, the Android device can use the native PackageInstaller API of the Android device to install each APK file in the at least one APK file without relying on the GMS service of Google Play.
[0103] Corresponding to the above-mentioned application distribution method applied to the server, the present invention further proposes an application distribution device, which is applied to the server. Since the device embodiment of the present invention applied to the server corresponds to the above-mentioned method embodiment applied to the server, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0104] like Figure 5 As shown, the application distribution device 500 applied to the server includes:
[0105] The first sending unit 501 is used to send a device information acquisition request to the Android device;
[0106] The first receiving unit 502 is used to receive the device information sent by the Android device based on the device information acquisition request; the device information is used to indicate at least one Android application package APK file adapted to the Android device in the Android application bundle package AAB file;
[0107] An extraction unit 503 is used to extract the at least one APK file adapted for the Android device from the Android application bundle file using a bundling tool according to the device information;
[0108] The second sending unit 504 is configured to send the at least one APK file to the Android device in response to the installation request of the Android device.
[0109] In one embodiment, the second sending unit 504 is specifically configured to:
[0110] Compressing the at least one APK file into a compressed package file;
[0111] Send the compressed package file to the Android device.
[0112] In one embodiment, the application distribution device 500 further includes a third receiving unit, configured to receive and save the Android application bundle file uploaded by the developer.
[0113] Corresponding to the above-mentioned application distribution method applied to the Android device, the present invention also proposes an application distribution device, which is applied to the Android device. Since the device embodiment of the present invention applied to the Android device corresponds to the above-mentioned method embodiment applied to the Android device, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0114] like Figure 6 As shown, the application distribution device 600 applied to the Android device includes:
[0115] The third sending unit 601 is used to send the device information to the server in response to the device information acquisition request of the server; the device information is used to indicate at least one Android application package APK file adapted to the Android device in the Android application bundle package AAB file;
[0116] The fourth sending unit 602 is used to send an installation request to the server;
[0117] The second receiving unit 603 is used to receive the at least one APK file sent by the server based on the installation request.
[0118] In one embodiment, the second receiving unit 603 is specifically configured to:
[0119] Receive the at least one APK file sent by the server, or a compressed package file compressed by the at least one APK file.
[0120] In one embodiment, if a compressed package file compressed from the at least one APK file and sent by the server is received, the device 600 further includes:
[0121] The decompression unit is used to decompress the compressed file.
[0122] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.
[0123] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a non-transitory computer-readable storage medium storing computer instructions, and a computer program product.
[0124] Specifically, an embodiment of the present disclosure provides an electronic device, including:
[0125] at least one processor architecture; and
[0126] a memory communicatively connected to the at least one processor architecture; wherein,
[0127] The memory stores instructions that can be executed by the at least one processor architecture, and the instructions are executed by the at least one processor architecture so that the at least one processor architecture can perform the steps of the application distribution method as applied to the server or Android device as described above.
[0128] An embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the steps of the application distribution method as applied to a server or an Android device as described above.
[0129] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, vehicle-mounted devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0130] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 702 or a computer program loaded from a storage unit 708 to a RAM (Random Access Memory) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An I / O (Input / Output) interface 705 is also connected to the bus 704.
[0131] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 704, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0132] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSP (Digital Signal Processor, digital signal processor architecture), and any appropriate processor architecture, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as the application distribution method. For example, in some embodiments, the application distribution method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the aforementioned application distribution method in any other appropriate manner (eg, by means of firmware).
[0133] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system that includes at least one programmable processor architecture that may be a dedicated or general-purpose programmable processor architecture that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0134] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor architecture or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor architecture or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0135] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0136] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0137] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An application distribution method, applied to a server, characterized in that: include: Send a device information acquisition request to the Android device; Receiving device information sent by the Android device based on a device information acquisition request; The device information is used to indicate at least one Android application package APK file in the Android application bundle file that is compatible with the Android device; Extracting the at least one APK file adapted for the Android device from the Android application bundle file using a bundling tool according to the device information; In response to the installation request of the Android device, the at least one APK file is sent to the Android device.
2. The method according to claim 1, characterized in that The sending the at least one APK file to the Android device comprises: Compressing the at least one APK file into a compressed package file; Send the compressed package file to the Android device.
3. The method according to claim 1 or 2, characterized in that: Also includes: Receive and save the Android application bundle file uploaded by the developer.
4. An application distribution method, applied to an Android device, characterized in that: include: In response to a device information acquisition request from a server, sending the device information to the server; The device information is used to indicate at least one Android application package APK file in the Android application bundle file that is compatible with the Android device; Sending an installation request to the server; Receive the at least one APK file sent by the server based on the installation request.
5. The method according to claim 4, characterized in that The receiving the at least one APK file sent by the server includes: Receive the at least one APK file sent by the server, or a compressed package file compressed by the at least one APK file.
6. The method according to claim 4, characterized in that If a compressed package file compressed from the at least one APK file and sent by the server is received, the method further includes: Decompress the compressed file.
7. An application distribution device, applied to a server, characterized in that: include: A first sending unit, used to send a device information acquisition request to the Android device; A first receiving unit, configured to receive device information sent by the Android device based on a device information acquisition request; The device information is used to indicate at least one Android application package APK file in the Android application bundle file that is compatible with the Android device; an extraction unit, configured to extract, according to the device information, the at least one APK file adapted for the Android device from the Android application bundle file using a bundling tool; The second sending unit is used to send the at least one APK file to the Android device in response to the installation request of the Android device.
8. An application distribution device, applied to an Android device, characterized in that: include: A third sending unit, configured to send the device information to the server in response to the device information acquisition request of the server; The device information is used to indicate at least one Android application package APK file in the Android application bundle AAB file that is adapted to the Android device; A fourth sending unit, configured to send an installation request to the server; The second receiving unit is used to receive the at least one APK file sent by the server based on the installation request.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 3 or claims 4 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method of any one of claims 1 to 3 or claims 4 to 6.
