Android System Library File Update via User Partition Search

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In Android terminals, system application upgrades fail to load upgraded library files due to the read-only system partition, leading to increased system overhead and hindered user experience, as the system searches for library files only in the /system/lib directory and not in the /data/app-lib directory.

Innovation Solution

A method that determines the package name of an upgrade installation package is recorded in system properties, allowing the terminal to search the user partition for an upgraded library file, replace the original library file in the system partition with the upgraded one, and delete the package name from system attributes, ensuring the upgraded library file is loaded correctly.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Stability of the object's composition

If the system partition is made read-only to ensure system stability, then system stability is improved, but the ability to update library files is worsened

Engineering Contradiction:
Improvesystem stabilityVSAvoidlibrary file update capability
Core Design Contradiction:
Stability of the object's compositionVSAdaptability or versatility

Solution Approach 1:

The patent segments the library file storage into two distinct locations: the read-only system partition (/system/lib) for original library files and the readable-writable user partition (/data/app-lib) for upgraded library files. This segmentation allows the system to maintain stability from the read-only system partition while enabling update capability through the writable user partition, thus resolving the contradiction between system stability and update capability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a library file naming mechanism as an intermediary, where upgraded library files in the user partition are assigned names that include the package name (e.g., libname-package_name.so), allowing the system to distinguish between original and upgraded library files. This intermediary naming convention enables the system to load the correct upgraded library files without compromising the read-only system partition, thus resolving the contradiction between system stability and update capability.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If the entire system is upgraded to update library files, then library file updates are achieved, but system overhead increases

Engineering Contradiction:
Improvelibrary file update capabilityVSAvoidsystem overhead
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent extracts the library file update process from the entire system upgrade process. By allowing library files to be updated independently in the user partition without requiring a full system partition rewrite, the invention separates the update of library files from the update of the entire system, thus reducing system overhead while maintaining update capability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent implements partial action by updating only the necessary library files in the user partition rather than performing a complete system upgrade. This partial update approach updates only the specific library files that need modification, leaving the rest of the system unchanged, thereby significantly reducing system overhead and update time while achieving the desired library file updates.

Inventive Principle:
Principle #16Partial or excessive action

3Speed

If the system searches for library files only in the system partition, then search speed is improved, but the ability to load upgraded library files is worsened

Engineering Contradiction:
Improvelibrary file search speedVSAvoidupgraded library file loading success
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent implements preliminary action by pre-configuring the library file search mechanism to first check the system partition for original library files and then check the user partition for upgraded library files. This preliminary setup of the search path ensures that the system can quickly find library files in the read-only system partition while also having the capability to load upgraded versions from the user partition, thus resolving the contradiction between search speed and upgraded file loading success.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9454356B2Method of and terminal for updating library file in system application
Publication Date: 2016.09.27 HISENSE BROADBAND MULTIMEDIA TECH
  • US9454356B2 patent drawing
  • US9454356B2 patent drawing
  • US9454356B2 patent drawing

AI summary

The invention discloses a method of upgrading a library the of a system application and a terminal, where when it is determined that the package name of an upgrade installation package is recorded in system properties, a user partition is searched by the package name of the upgrade installation package for an upgraded library file corresponding to the upgrade installation package, where the package name of the upgrade installation package is recorded in the system properties when it is determined that an application corresponding to the upgrade installation package is a system application; an original library file stored in a system partition is replaced with the found upgraded library file; and the package name of the upgrade installation package recorded in the system properties is deleted.