Android APK Parsing Optimization for Handheld Startup Speed

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The startup speed of wireless handheld devices with Android operating systems slows down due to increasing application installations, and improving hardware configuration alone does not adequately address this issue.

Innovation Solution

A method that involves scanning file names, creation times, and sizes of Android installation package files during startup, updating a database with this information, and decompressing library files for installation or updating APKs, thereby optimizing the startup process by reducing the need for repeated parsing of APK files and synchronizing database records.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If hardware configuration is improved to increase startup speed, then processing capability is enhanced, but device complexity and cost increase

Engineering Contradiction:
Improvestartup speedVSAvoidhardware configuration
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-parsing APK files during device operation or installation phases, and storing the parsed information in a database. During startup, the system directly retrieves pre-parsed data from the database rather than parsing APK files in real-time, thus improving startup speed without requiring hardware upgrades.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates copies of APK file information by parsing and storing essential data (manifests, permissions, services) into a database structure. This copied information is then used during startup instead of reading and parsing the original APK files, significantly reducing startup time while maintaining system functionality.

Inventive Principle:
Principle #26Copying

2Loss of information

If all APK files are parsed during every startup to ensure complete application information, then information completeness is improved, but startup time increases

Engineering Contradiction:
Improveapplication information completenessVSAvoidstartup time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The system performs APK file parsing in advance during normal operation or application installation, storing the parsed information in a database. During startup, it only needs to retrieve and synchronize this pre-parsed data, ensuring information completeness while minimizing startup time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements local quality by selectively parsing and storing only essential APK information (manifests, permissions, services, receivers) in the database during normal operation. During startup, the system retrieves only the necessary portions of data needed for boot completion, avoiding unnecessary processing of all APK files while ensuring critical information is available.

Inventive Principle:
Principle #3Local quality

3Reliability

If library files are decompressed for all installed applications during startup to ensure availability, then resource accessibility is improved, but processing time increases

Engineering Contradiction:
Improveresource availabilityVSAvoiddecompression time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-decompressing library files from APK packages during application installation or idle periods, and storing them in a dedicated library directory. During startup, the system only needs to verify and load necessary libraries that are already decompressed, significantly reducing the time required compared to decompressing all libraries during startup.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system performs partial decompression of library files by identifying and decompressing only the essential libraries needed for system operation and currently installed applications. This partial action approach ensures critical resources are available while avoiding the excessive time cost of decompressing all possible library files.

Inventive Principle:
Principle #16Partial or excessive action

4Measurement precision

If APK file information is re-parsed during each startup to synchronize with current state, then data accuracy is improved, but processing overhead increases

Engineering Contradiction:
Improvedata synchronization accuracyVSAvoidstartup processing efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent implements feedback by comparing the stored database information with the actual APK files during startup. The system checks for modifications (using file timestamps or hashes) and only re-parses APK files that have changed since the last synchronization, maintaining data accuracy while minimizing unnecessary processing.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs preliminary synchronization by retrieving and verifying pre-parsed APK information from the database before proceeding with full startup operations. This preliminary check ensures data accuracy is maintained through periodic synchronization without requiring complete re-parsing of all APK files at every startup.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9778935B2System and method for improving a startup speed of a wireless handheld device
Publication Date: 2017.10.03 HUAWEI DEVICE CO LTD
  • US9778935B2 patent drawing
  • US9778935B2 patent drawing
  • US9778935B2 patent drawing

AI summary

The present disclosure discloses a startup method and a wireless handheld device. The present disclosure relates to the field of communications technologies. The startup method includes: when a wireless handheld device is started, if it is detected that a Kth Android installation package file in a data application directory is undergoing installation or updating, decompressing a library file of the Kth Android installation package file to a preset subdirectory in the data application directory, where K is an integer greater than zero. A corresponding wireless handheld device is further provided. By adopting the present disclosure, a startup speed of the wireless handheld device can be improved.