IP Library Granted Patent US 9,152,480
Granted Patent B2
US 9,152,480 · App. 14/141,775 · Granted Oct 6, 2015

Method for storing application data and terminal device

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,152,480
App. No.
14/141,775
Granted
Oct 6, 2015
Kind
B2
Abstract

Embodiments of the present disclosure provide a method for storing application data and a terminal device, and relate to the field of communications, so that installation of an application having a default specified path and storage of data that is generated after the application is run are enabled to be located in the same storage space. The method includes: receiving an instruction for running a local application, wherein the instruction is triggered by a user; determining an actual path of a storage space in which the application is installed; running the application, and acquiring data that is generated after the application is run; and storing the data that is generated after the application is run in the actual path of the storage space in which the application is installed. The embodiments of the present disclosure are applied to use of a mobile phone.

Claims (34)

1. A method performed by a terminal device for storing application data, wherein the terminal device has a first physical storage device and a second physical storage device, comprising:

receiving an instruction from a user to an application;

determining that the application is installed in the first physical storage device and that the application has a setting parameter indicating that data generated by the application is to be stored in the second physical storage device;

running the application, and acquiring data by running the application; and

storing the data generated by running the application in the first physical storage device instead of the second physical storage device.

2. The method according to claim 1 , wherein the determining that the application is installed in the first physical storage device comprises:

acquiring an application identification of the application;

searching, according to the application identification, a database containing information indicating a mapping of the application identification to the first physical storage device.

3. The method according to claim 1 , wherein before receiving the instruction from the user to run the application the method further comprises:

installing the application in the first physical storage device in response to a user instruction; and

storing, in a database, information indicating a mapping of an application identification of the application to the first physical storage device.

4. The method according to claim 1 , wherein:

a root directory of the first physical storage device is set as same as a root directory of the second physical storage device.

5. The method according to claim 4 , wherein,

the root directory is “/sdcard”.

6. A terminal device, comprising:

a first physical storage device and a second physical storage device;

computer-executable program code stored in the first physical storage device or the second physical storage device;

a processor executing the computer-executable program code to perform operations comprising:

receiving an instruction from a user to run an application;

determining that the application is installed in the first physical storage device and that the application has a setting parameter indicating that data generated by the application is to be stored in the second physical storage device;

running the application;

acquiring data generated by running the application; and

storing the data generated by running the application in the first physical storage device instead of the second physical storage device.

7. The terminal device of claim 6 , wherein the operation of determining that the application is installed in the first physical storage device comprises:

acquiring an application identification of the application;

searching, according to the application identification, a database containing information indicating a mapping of the application identification to the first physical storage device.

8. The terminal device according to claim 6 , wherein before the operation of receiving the instruction from the user to run the application, the processor performs the operations of:

installing the application in the first physical storage device in response to a user instruction; and

storing, in a database, information indicating a mapping of an application identification of the application to the first physical storage device.

9. The terminal device according to claim 6 , wherein:

a root directory of the first physical storage device is set as same as a root directory of the second physical storage device.

10. The terminal device according to claim 9 , wherein,

the root directory is “/sdcard.”

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI DEVICE CO.,LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 056413/0883 →
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 27, 2013
From: CHEN, LEI
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 031852/0774 →