Android Patch Package Generation via Selective Differential APK Extraction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current patch package generation methods result in large data volumes, leading to significant air interface resource and traffic consumption during Android terminal upgrades, especially when fixing application framework layer issues, as they include unnecessary differential packages of preinstalled applications.

Innovation Solution

A method that identifies target applications with only changes in check values, timestamps, or constants within the Android operating system source code, generating differential packages only for these applications, reducing the overall patch package size and focusing on necessary updates.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If differential packages of all preinstalled applications are included in the patch package, then the completeness of the update is improved, but the data volume of the patch package increases significantly

Engineering Contradiction:
Improvecompleteness of updateVSAvoiddata volume of patch package
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent extracts only the necessary differential packages from the set of all preinstalled applications. By analyzing which applications are actually affected by the framework layer update, it removes unnecessary applications from the patch package, keeping only those that require updates.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent segments the update process into two parts: first identifying the framework layer changes, then selectively determining which application layer components need updating. This segmentation allows the system to create a minimal patch package containing only the essential updates rather than a comprehensive but bulky package.

Inventive Principle:
Principle #1Segmentation

2Reliability

If a comprehensive patch package including all application differential packages is generated, then the update coverage is improved, but the air interface resource consumption increases

Engineering Contradiction:
Improveupdate coverageVSAvoidair interface resource consumption
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent extracts and includes only the differential packages of applications that are actually affected by the framework layer update. By analyzing the dependency relationships between the framework layer and application layer, it removes unnecessary applications from the patch package, thereby reducing air interface resource consumption during transmission.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If the terminal processes a large patch package, then the completeness of the update is improved, but the computational load on the terminal increases

Engineering Contradiction:
Improvecompleteness of updateVSAvoidcomputational load on terminal
Core Design Contradiction:
ReliabilityVSPower

Solution Approach 1:

The patent extracts and includes only the necessary differential packages in the patch package by analyzing which applications are affected by framework layer updates. This reduces the size of the patch package that the terminal needs to process, thereby reducing the computational load on the terminal while maintaining update completeness.

Inventive Principle:
Principle #2Taking out (Extraction)

4Reliability

If differential packages of all applications are packaged, then the thoroughness of the update is improved, but the traffic consumption increases

Engineering Contradiction:
Improvethoroughness of updateVSAvoidtraffic consumption
Core Design Contradiction:
ReliabilityVSLoss of substance

Solution Approach 1:

The patent extracts and includes only the differential packages of applications that are actually affected by the framework layer update. By analyzing the relationships between framework layer changes and application layer components, it removes unnecessary applications from the patch package, thereby reducing traffic consumption during download and installation.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11321080B2Patch package generation method and device
Publication Date: 2022.05.03 HUAWEI TECH CO LTD
  • US11321080B2 patent drawing
  • US11321080B2 patent drawing
  • US11321080B2 patent drawing

AI summary

This application provides a patch package generation method and a device, which includes: when code of an application framework layer in Android operating system source code is updated, obtaining, by a server, a compilation result; determining, by the server, an Android package (APK) of a target application from the APK of the preinstalled applications by, determining, by the server, an application including code in which only one or more of a check value, a timestamp, and a register corresponding to a constant change; and differentiating, by the server, an APK of an application other than the target application in the preinstalled applications after the code of the application framework layer is updated and an APK of the application other than the target application in the preinstalled applications before the code of the application framework layer is updated, to generate a first differential package. The first differential package is relatively small, therefore reducing computation amount in the terminal and air interface consumption.