Shared Function Package Referencing for Smaller App Installs
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The installation packages of applications are excessively large due to multiple function packages, leading to prolonged download times and poor user experience.
Innovation Solution
Implement a shared implementation package that can be used by multiple applications, reducing the size of installation packages and improving download speed by allowing different applications to share the same function package.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple function packages are included in each application installation package, then application functionality is enriched, but installation package size becomes excessively large
Solution Approach 1:
The patent introduces a shared implementation package that can be universally used by multiple applications. Instead of each application containing its own copy of common function packages, the system creates a single shared package that serves multiple applications, thereby reducing overall package size while maintaining functional richness.
Solution Approach 2:
The patent merges common function packages into a single shared implementation package that is referenced by multiple applications. This combining approach consolidates redundant code and resources, reducing the total quantity of data that needs to be stored and downloaded while preserving the functionality of individual applications.
2Speed
If installation package size is reduced by removing redundant function packages, then download speed is improved, but application functionality may be compromised
Solution Approach 1:
The patent introduces a reference mechanism that acts as an intermediary between applications and the shared implementation package. This reference system allows applications to access shared functions without physically containing them, enabling fast downloads of only the application-specific packages while maintaining full functionality through the shared package.
Solution Approach 2:
The shared implementation package is designed to be universal, serving multiple applications simultaneously. This ensures that functionality is not lost when packages are shared, as the same code base can be accessed by different applications through reference mechanisms, maintaining adaptability while reducing download size.
3Quantity of substance
If different applications share the same function package, then installation package size is reduced, but package management complexity increases
Solution Approach 1:
The patent segments the application package into two parts: the application-specific code and the shared implementation package reference. This segmentation allows the system to manage only the application-specific portions individually while the shared package is managed as a single unit, reducing overall management complexity despite the sharing arrangement.
Solution Approach 2:
Instead of physically copying shared function packages into each application directory, the patent uses reference mechanisms that point to the shared package location. This eliminates the need for multiple physical copies and simplifies management, as the shared package needs to be updated and managed only once while all applications access it through references.
Data Source
Figure 1~2
Figure 3(a)~3(b)
Figure 4A
AI summary
This application provides an application running method, an electronic device, and a storage medium. The method includes: In response to a start operation performed by a user on a first application, an electronic device obtains a first storage path of an installation package of the first application and a second storage path of a shared implementation package on which the first application depends, where the first application and the shared implementation package are installed on the electronic device, the shared implementation package is used to implement a preset function, and the first storage path is different from the second storage path. The electronic device obtains the installation package of the first application based on the first storage path, where reference information to the shared implementation package is configured for the installation package of the first application. The electronic device runs the first application based on the first storage path, the reference information, and the second storage path. According to the method, different applications can share a same function package, a size of an installation package of an application is reduced, and a download speed of the installation package of the application is improved.