# US 6,954,754 B2 · Apparatus and methods for managing caches on a mobile device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 6,954,754 B2
- Document ID: US6954754B2
- Status: Granted
- Kind: B2
- Application number: 09/836,972
- Filed: 2001-04-16
- Published: 2002-10-17
- Granted: 2005-10-11
- Earliest claimed: 2001-04-16
- Assignees: InnoPath Software, Inc.
- Inventors: Luosheng Peng
- Web page: https://patentgrep.com/patent/US6954754B2

## CPC

- H04M 1/72445: for supporting Internet browser applications
- G06F 16/9574: {of access to content, e.g. by caching}
- H04M 1/72406: by software upgrading or downloading
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An exemplary method for managing a cache on a mobile device comprises the steps of receiving a call for loading a set of files, the set of files including an application or data, searching a database in a database for a matching record to the set of files, determining if the set of files is out-of-date or if a scheduled update is overdue based on the matching record, updating the set of files if it is out-of-date, performing a status check or update if the scheduled update is overdue, and loading the set of files if it is not out-of-date and the scheduled update is not overdue.

## Claims

### Claim 1

A method for managing a cache on a mobile device, comprising the steps of:
receiving a call for loading a set of files at a mobile device, said set of files including an application or data;
searching a local database at said mobile device for a matching record to said set of files;
based on said matching record, determining if said set of files is out-of-date or if a scheduled update is overdue;
updating said set of files if it is out-of-date;
performing a status check or update if said scheduled update is overdue;
loading said set of files if it is not out-of-date and said scheduled update is not overdue;
downloading said set of files if it is out-of-date;
calculating a cache benefit index for said set of files, said cache benefit index indicating a total benefit for caching said set of files; and
determining whether to cache said set of files on said local database based on said cache benefit index.

### Claim 2 (depends on 1)

The method of claim 1, further comprising the step of:
loading an updated set of files after an update or status check is complete.

### Claim 3 (depends on 1)

The method of claim 1, wherein said updating step includes the steps of:
opening a communications session with a gateway or a remote server;
sending an update request to said gateway or said remote server;
receiving an update response, said response including at least one difference file for updating said set of files;
closing said communications session; and
updating a local file system and said database based on said update response.

### Claim 4 (depends on 3)

The method of claim 3, wherein said step of updating a local file system and said database includes the step of:
loading said at least one difference file into a random access memory;
loading a copy of said set of files into said random access memory;
applying said at least one difference file on said set of files in said random access memory to obtain an updated set of files;
copying said updated set of files into said local file system;
removing said set of files from said local file system;
updating said database based on said updated set of files; and
removing said at least one difference file and said set of files from said random access memory.

### Claim 5 (depends on 4)

The method of claim 4, further comprising the steps of:
executing said updated set of files; and
removing said updated set of files from said random access memory.

### Claim 6 (depends on 4)

The method of claim 4, wherein said step of applying said at least one difference file includes the steps of:
parsing said at least one difference file to determine whether to add, modify, or delete a file in said set of files; and
updating said local file system and said database based on said parsing.

### Claim 7 (depends on 3)

The method of claim 3, further comprising the steps of:
parsing said update response for a broadcast message;
accessing and updating said database based on said broadcast message; and
sending a broadcast response to said gateway or said remote server.

### Claim 8 (depends on 7)

The method of claim 7, wherein said accessing and updating steps include the step of:
selectively marking at least one set of files as out-of-date.

### Claim 9 (depends on 1)

The method of claim 1, wherein said step of performing a status check or update includes the steps of:
opening a communications session with a gateway or a remote server;
sending a status check or update request to said gateway or said remote server;
receiving a status check or update response from said gateway or said remote server;
closing said communications session; and
updating a local file system and a database if at least one difference file is included in said status check or update response.

### Claim 10 (depends on 9)

The method of claim 9, wherein said step of updating a local file system and a database includes the steps of:
loading said at least one difference file into a random access memory;
loading a copy of said set of files into said random access memory;
applying said at least one difference file on said set of files in said random access memory to obtain an updated set of files;
copying said updated set of files into said local file system;
removing said set of files from said local file system;
updating said database based on said updated set of files; and
removing said at least one difference file and said set of files from said random access memory.

### Claim 11 (depends on 10)

The method of claim 10, wherein said step of applying said at least one difference file includes the steps of:
parsing said at least one difference file to determine whether to add, modify, or delete a file in said set of files; and
updating said local file system and said database based on said parsing.

### Claim 12 (depends on 9)

The method of claim 9, further comprising the steps of:
parsing said status check or update response for a broadcast message;
selectively marking at least one set of files as out-of-date based on said broadcast message; and
sending a broadcast response to said gateway or said remote server.

### Claim 13

A computer program product, embedded in a computer readable medium, for managing a cache on a mobile device, comprising:
logic code for receiving a call for loading a set of files at a mobile device, said set of files including an application or data;
logic code for searching a local database at said mobile device for a matching record to said set of files;
logic code for determining if said set of files is out-of-date or if a scheduled update is overdue based on said matching record;
logic code for updating said set of files if it is out-of-date;
logic code for performing a status check or update if said scheduled update is overdue;
logic code for loading said set of files if it is not out-of-date and said scheduled update is not overdue;
logic code for downloading said set of files if it is out-of-date;
logic code for calculating a cache benefit index for said set of files, said cache benefit index indicating a total benefit for caching said set of files; and
logic code for determining whether to cache said set of files on said local database based on said cache benefit index.

### Claim 14 (depends on 13)

The computer program product of claim 13, further comprising:
logic code for loading an updated set of files after an update or status check is complete.

### Claim 15 (depends on 13)

The computer program product of claim 13, wherein said logic code for updating includes:
logic code for opening a communications session with a gateway or a remote server;
logic code for sending an update request to said gateway or said remote server;
logic code for receiving an update response, said response including at least one difference file for updating said set of files;
logic code for closing said communications session; and
logic code for updating a local file system and said database based on said update response.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein said logic code for updating a local file system and said database includes:
logic code for loading said at least one difference file into a random access memory;
logic code for loading a copy of said set of files into said random access memory;
logic code for applying said at least one difference file on said set of files in said random access memory to obtain an updated set of files;
logic code for copying said updated set of files into said local file system;
logic code for removing said set of files from said local file system;
logic code for updating said database based on said updated set of files; and
logic code for removing said at least one difference file and said set of files from said random access memory.

### Claim 17 (depends on 16)

The computer program product of claim 16, further comprising:
logic code for executing said updated set of files; and
logic code for removing said updated set of files from said random access memory.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein said logic code for applying said at least one difference file includes:
logic code for parsing said at least one difference file to determine whether to add, modify, or delete a file in said set of files; and
logic code for updating said local file system and said database based on said parsing.

### Claim 19 (depends on 15)

The computer program product of claim 15, further comprising:
logic code for parsing said update response for a broadcast message;
logic code for accessing and updating said database based on said broadcast message; and
logic code for sending a broadcast response to said gateway or said remote server.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein said logic code for accessing and updating include:
logic code for selectively marking at least one set of files as out-of-date.

### Claim 21 (depends on 13)

The computer program product of claim 13, wherein said logic code for performing a status check or update includes:
logic code for opening a communications session with a gateway or a remote server;
logic code for sending a status check or update request to said gateway or said remote server;
logic code for receiving a status check or update response from said gateway or said remote server;
logic code for closing said communications session; and
logic code for updating a local file system and a database if at least one difference file is included in said status check or update response.

### Claim 22 (depends on 21)

The computer program product of claim 21, wherein said logic code for updating a local file system includes:
logic code for loading said at least one difference file into a random access memory;
logic code for loading a copy of said set of files into said random access memory;
logic code for applying said at least one difference file on said set of files in said random access memory to obtain an updated set of files;
logic code for copying said updated set of files into said local file system;
logic code for removing said set of files from said local file system;
logic code for updating said database based on said updated set of files; and
logic code for removing said at least one difference file and said set of files from said random access memory.

### Claim 23 (depends on 22)

The computer program product of claim 22, wherein said logic code for applying said at least one difference file includes:
logic code for parsing said at least one difference file to determine whether to add, modify, or delete a file in said set of files; and
logic code for updating said local file system and said database based on said parsing.

### Claim 24 (depends on 21)

The computer program product of claim 21, further comprising:
logic code for parsing said status check or update response for a broadcast message;
logic code for selectively marking at least one set of files as out-of-date based on said broadcast message; and
logic code for sending a broadcast response to said gateway or said remote server.
