Mobile OS Upgrade Compilation Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The process of upgrading the Android operating system on mobile terminals is excessively time-consuming due to the compilation of numerous APK files, which can take tens of minutes on devices with low hardware configurations, affecting user experience.
Innovation Solution
A method and apparatus that determine the processing attribute of application installation packages during system upgrades, compiling only those with an 'upgrade compilation attribute' while skipping compilation for those with an 'idle compilation attribute, based on usage time, importance level, and operational conditions, thereby optimizing the compilation process.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all APK files are compiled during system upgrade, then application execution efficiency is improved, but upgrade time becomes excessively long
Solution Approach 1:
The patent segments the compilation process into two distinct phases: upgrade compilation for critical system applications and idle compilation for non-critical applications. This segmentation allows the system to prioritize compilation of essential APKs during upgrade while deferring less critical compilations to idle periods, thereby resolving the contradiction between ensuring application execution efficiency and minimizing upgrade time.
Solution Approach 2:
The patent applies preliminary action by identifying and compiling critical system applications during the upgrade process before user interaction is needed, while non-critical applications are compiled in advance during idle periods detected before the upgrade. This ensures that essential applications are ready for immediate execution while reducing the perceived upgrade time for users.
2Productivity
If compilation is performed during upgrade, then application performance is improved, but user experience deteriorates due to long waiting time
Solution Approach 1:
The patent implements periodic action by performing compilation during idle periods detected before the upgrade process. The system monitors device idle states and schedules compilation tasks to execute during these periods, then performs upgrade compilation only for critical applications during the actual upgrade. This periodic approach maintains high compilation efficiency while improving user experience by minimizing waiting time during upgrade.
3Reliability
If critical applications are compiled during upgrade, then system reliability is improved, but resource consumption increases
Solution Approach 1:
The patent applies local quality by differentiating between critical and non-critical applications and assigning different compilation strategies to each category. Critical system applications receive upgrade compilation during the upgrade process to ensure system reliability, while non-critical applications are compiled during idle periods when device resources are available. This localized approach ensures system reliability is maintained for essential applications while optimizing resource consumption overall.
Data Source
Figure 1
Figure 2
Figure 3A~3B
AI summary
The present disclosure discloses a method and an apparatus for processing an application installation package, belonging to the field of mobile terminals. The method includes: acquiring (102) a processing attribute of the application installation package when it is monitored that an operating system is being upgraded, the processing attribute being an upgrade compilation attribute or an idle compilation attribute; and during upgrade of the operating system, compiling (104) the application installation package whose processing attribute is the upgrade compilation attribute. In the present disclosure, necessary application installation packages are compiled during upgrade, which solves the problem that the upgrade process takes too long time, so as to greatly shorten time-consuming of the upgrade and meanwhile guarantee the user's normal use of the application installation packages, and improve the user experience.