CN106484779B - File operation method and device - Google Patents

File operation method and device Download PDF

Info

Publication number
CN106484779B
CN106484779B CN201610825679.7A CN201610825679A CN106484779B CN 106484779 B CN106484779 B CN 106484779B CN 201610825679 A CN201610825679 A CN 201610825679A CN 106484779 B CN106484779 B CN 106484779B
Authority
CN
China
Prior art keywords
file
application
target
read
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610825679.7A
Other languages
Chinese (zh)
Other versions
CN106484779A (en
Inventor
陆天洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610825679.7A priority Critical patent/CN106484779B/en
Publication of CN106484779A publication Critical patent/CN106484779A/en
Priority to PCT/CN2017/092244 priority patent/WO2018049883A1/en
Application granted granted Critical
Publication of CN106484779B publication Critical patent/CN106484779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a file operation method, which comprises the following steps: detecting file read-write operation of an installed application, and acquiring an application identifier of the installed application and a file corresponding to the file read-write operation; correspondingly storing the application identification and the file corresponding to the file read-write operation into a preset database; receiving an application migration instruction, and acquiring a target application and a target terminal corresponding to the application migration instruction; and searching a corresponding target file in the database according to the identifier of the target application, and migrating the target file to the target terminal. In addition, the embodiment of the invention also discloses a file operating device. By adopting the embodiment of the invention, the accuracy and the integrity of the file to be migrated can be determined in the application migration process.

Description

File operation method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a file operation method and device.
Background
With the development of terminal technology, functions integrated on a terminal are increasing, for example, creating a file or reading and writing or modifying a file. Generally, the read-write permission of an application may be configured in system settings, for example, the read-write permission of all files except system files and the like in a read-write terminal with complete application may be configured.
Each application installed in the terminal can read and write other files except the system file or the application file, that is, in the using process, for a certain file, each application installed in the terminal can create the file or modify or otherwise operate the file. For example, when an application is uninstalled, it is uncertain which files in the terminal are created or modified by the application, so that when the application is uninstalled, the files corresponding to the application still remain in the system, and as the usage time of the terminal increases, a large amount of redundant files remain in the terminal.
That is to say, in the file operation method, since there is no relevant record in the system or the file for the operations such as the bedstead, the modification, or the reading of the file, all files corresponding to the corresponding applications cannot be determined in the process of the operations such as the application data migration, the application uninstallation, and the like, so that the data migration is incomplete or a large number of redundant files exist in the system.
Disclosure of Invention
Therefore, in order to solve the technical problem that the accuracy is insufficient when a file corresponding to one application is determined because operations such as creating, modifying or reading the file do not have any relevant records in a system or the file in the prior art, a file operation method is specially provided.
A file operation method, comprising:
detecting file read-write operation of an installed application, and acquiring a first application identifier of the installed application and a file corresponding to the file read-write operation;
correspondingly storing the first application identifier and a file corresponding to the file read-write operation into a preset database;
receiving an application migration instruction, and acquiring a target application and a target terminal corresponding to the application migration instruction;
and searching a corresponding target file in the database according to the application identifier of the target application, and migrating the target file to the target terminal.
Optionally, in an embodiment, the step of receiving the application migration instruction further includes before the step of receiving the application migration instruction;
detecting installation operation of an application, and acquiring a second application identifier corresponding to the installation operation and a file written by the installation operation;
storing the second application identifier and the file written by the installation operation into a preset database;
executing the step of receiving the application migration instruction.
Optionally, in an embodiment, the step of obtaining the first application identifier of the installed application and the file corresponding to the file read-write operation further includes;
predefining a system file read-write interface, wherein the installed application carries out read-write file operation through the system file read-write interface;
and acquiring the first application identifier of the installed application and a file corresponding to the file read-write operation through the system file read-write interface.
Optionally, in an embodiment, the step of obtaining the first application identifier of the installed application and the file corresponding to the file read-write operation further includes:
and only acquiring the file corresponding to the file writing operation.
Optionally, in an embodiment, the method further includes:
receiving an application uninstalling instruction, and acquiring a target uninstalling application corresponding to the application uninstalling instruction;
and searching a target unloading file corresponding to the target unloading application in the database according to the application identifier of the target unloading application, and deleting the target unloading file according to the application unloading instruction.
In addition, in order to solve the technical problem that the accuracy in determining the file corresponding to one application is not enough due to the fact that operations such as creating, modifying or reading the file do not have any relevant records in a system or the file in the prior art, a file operating device is further provided.
A file handling apparatus comprising:
the file read-write operation detection module is used for detecting the file read-write operation of the installed application and acquiring a first application identifier of the installed application and a file corresponding to the file read-write operation;
the record storage module is used for correspondingly storing the first application identifier and the file corresponding to the file read-write operation into a preset database;
the application migration instruction receiving module is used for receiving an application migration instruction and acquiring a target application and a target terminal corresponding to the application migration instruction;
and the file migration module is used for searching a corresponding target file in the database according to the application identifier of the target application and migrating the target file to the target terminal.
Optionally, in an embodiment, the apparatus further includes an application installation module, configured to detect an installation operation of an application, and obtain a second application identifier corresponding to the installation operation and a file written by the installation operation; storing the second application identifier and the file written by the installation operation into a preset database; and calling the application migration instruction receiving module.
Optionally, in an embodiment, the file read-write operation detection module is further configured to predefine a system file read-write interface, and the installed application performs a file read-write operation through the system file read-write interface; and acquiring the first application identifier of the installed application and a file corresponding to the file read-write operation through the system file read-write interface.
Optionally, in an embodiment, the file read-write operation detection module is further configured to obtain only a file corresponding to the file write operation.
Optionally, in an embodiment, the apparatus further includes an application uninstalling module, configured to receive an application uninstalling instruction, and obtain a target uninstalled application corresponding to the application uninstalling instruction; and searching a target unloading file corresponding to the target unloading application in the database according to the application identifier of the target unloading application, and deleting the target unloading file according to the application unloading instruction.
The embodiment of the invention has the following beneficial effects:
after the file operation method and the device are adopted, a database for recording operation records of file creation, reading, writing, modification and the like is created in a system, and when the application in the terminal detects that the file is subjected to related operations, the corresponding operation record is recorded in the database; and then, in the application migration process, searching all operated files corresponding to the application in the database, and migrating the searched files to the target terminal along with the migration of the application. That is to say, through the monitoring and recording of the operation records of all the files in the terminal, all the corresponding files can be accurately determined in the application migration process, the accuracy of the application to the file matching is improved, the integrity and the accuracy of the migrated files in the application migration process are improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flowchart illustrating a file manipulation method according to an embodiment;
FIG. 2 is a schematic diagram of a file handling device according to an embodiment;
FIG. 3 is a schematic structural diagram of a computer device for executing the file operation method in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problem in the prior art that the accuracy of determining a file corresponding to an application is not sufficient due to the fact that operations such as creating, modifying or reading the file do not have any relevant records in the system or the file, in this embodiment, a file operation method is particularly provided, and the method can be implemented by depending on a computer program which can run on a computer system based on the von neumann system, wherein the computer program can be a file management program based on an Android system or an IOS system, such as a file management program in a mobile phone moving application or a data backup migration and restoration application. The computer system may be a terminal device such as a smart phone, a tablet computer, or the like, running the computer program.
Specifically, as shown in fig. 1, the file operation method includes the following steps:
step S102: and detecting the file read-write operation of the installed application, and acquiring a first application identifier of the installed application and a file corresponding to the file read-write operation.
In specific implementation, an application process corresponding to an application installed in the terminal may perform read-write operation within a right limit on a file in the terminal, for example, a photo PS application may read a picture file in the terminal and perform modification operation on the corresponding picture file, or a WPS application may read a file in a dox format in the terminal and may edit the file.
A process is started in the system for monitoring read-write operations of all files in the terminal, for example, when an application installed in the terminal performs read operations or write operations on any file in the terminal, the process detects a corresponding operation and monitors the operation. Specifically, when detecting a file read-write operation of an installed application in a terminal, an application identifier of the installed application corresponding to the detected file read-write operation, that is, a first application identifier, is obtained, and a file corresponding to the file read-write operation is also obtained.
That is to say, as long as the read-write operation of the installed file in the terminal is detected, that is, the application identifier of the corresponding application performing the read operation or the write operation is obtained, and the specific file is obtained, in an embodiment, the corresponding specific operation needs to be obtained, for example, the read operation or the write operation or the copy operation or the create operation, and the like.
Step S104: and correspondingly storing the first application identifier and the file corresponding to the file read-write operation into a preset database.
In this embodiment, a database is created in the terminal, which database has been created when the terminal was first used. After the read-write operation of any installed file in the terminal is detected, the corresponding application identifier for performing the read-write operation and the corresponding file are stored in the database. It should be noted that, in the database, a related record of each read-write operation for an arbitrary file in the terminal is stored, and each record includes an application identifier, a file name, a specific operation, and the like, that is, in the database, a file corresponding to all operations corresponding to the application may be determined according to the application identifier, and all applications that have performed related operations on the file may also be determined according to the file name.
It should be noted that, if an application only reads a certain file but does not perform any writing operation, modification operation, or editing operation on the file, it is indicated that the relationship applied to the file may not be very tight, and the file does not need to be considered in the process of application uninstallation or application data migration.
Specifically, in an embodiment, the step of obtaining the first application identifier of the installed application and the file corresponding to the file read-write operation further includes: and only acquiring the file corresponding to the file writing operation.
It should be noted that, in this embodiment, the monitoring of the read-write operation of the file in the system may be implemented by an interface function of a system file read-write interface. Specifically, the step of obtaining the first application identifier of the installed application and the file corresponding to the file read-write operation further includes: predefining a system file read-write interface, wherein the installed application carries out read-write file operation through the system file read-write interface; and acquiring the first application identifier of the installed application and a file corresponding to the file read-write operation through the system file read-write interface.
That is to say, the interface function of the system file read-write interface is modified, and all the installed applications in the terminal must be implemented through the interface function of the system file read-write interface when implementing read-write operation on files in the terminal, that is, the corresponding application process obtains the first application identifier corresponding to the installed application and files thereof that need to be read-write operated by calling the interface function of the system file read-write interface.
Step S106: and receiving an application migration instruction, and acquiring a target application and a target terminal corresponding to the application migration instruction.
In this embodiment, application data may be migrated between the terminals, that is, all data related to one application in the migration source terminal may be migrated to the migration terminal and stored. In this embodiment, the migration of the application data may be implemented through a communication connection between the migration terminal and the migration source terminal, and may be based on an application program installed on the terminal, such as mobile phone data backup and migration of mobile phone moving.
For example, after a data migration application such as moving a mobile phone is started in the migration terminal and the migration source terminal, a user may input an application migration instruction for a certain target application in the migration source terminal. After an application migration instruction input by a book is detected, a target application corresponding to the application migration instruction and a corresponding target terminal are obtained, and the target terminal is a migration terminal.
Step S108: and searching a corresponding target file in the database according to the application identifier of the target application, and migrating the target file to the target terminal.
In this embodiment, in the application migration process, not only the corresponding application file but also the file related to the application are migrated, and therefore, after the target application is determined, all files corresponding to the target application, that is, all files that the target application has performed read-write operation, that is, the target files, are determined in the preset database according to the application identifier of the target application. And after the target is determined, migrating the target file to a migration terminal according to the detected application migration instruction, namely migrating the target file to the target terminal.
Optionally, in other application scenarios, for example, in an application scenario of application uninstallation, a file that needs to be uninstalled in the application uninstalling process may also be determined according to the method for determining all files corresponding to one application in the method.
Specifically, the method further comprises: receiving an application uninstalling instruction, and acquiring a target uninstalling application corresponding to the application uninstalling instruction; and searching a target unloading file corresponding to the target unloading application in the database according to the application identifier of the target unloading application, and deleting the target unloading file according to the application unloading instruction.
That is, when the application is uninstalled, the target uninstall file corresponding to the target uninstall application is determined in the database according to the corresponding target uninstall application that needs to be uninstalled, and is deleted. Further, a certain file may not only be read and written by one application, if the target uninstalled application is only one of the applications, in such a case, it is directly deleted, which may cause the data integrity of other applications to be affected, therefore, in an embodiment, it is further required to consider whether the target uninstalled file is also read and written by other applications, that is, before deleting the corresponding target uninstalled file, the application corresponding to the file is searched in the database, if there are other applications except the target uninstalled application, the target uninstalled file is not deleted, and if there are no other applications except the target uninstalled application, the step of deleting the target uninstalled file is performed.
Optionally, in an embodiment, the step of receiving the application migration instruction further includes before the step of receiving the application migration instruction; detecting installation operation of an application, and acquiring a second application identifier corresponding to the installation operation and a file written by the installation operation; storing the second application identifier and the file written by the installation operation into a preset database; executing the step of receiving the application migration instruction.
That is, a new application can be installed in the terminal, and when an application is installed, a part of files on the terminal needs to be modified, that is, corresponding settings or configurations are written into corresponding system files. When a new application is installed, acquiring an application identifier corresponding to a corresponding installation operation and a written file corresponding to the installation operation, and then storing the application identifier and the written file corresponding to the installation operation in the database. Then when determining the file corresponding to the application, the determined file comprises the file written by the installation operation; when application data migration is performed, the migrated data further includes a file written by the installation operation.
In addition, in order to solve the technical problem in the prior art that the accuracy in determining the file corresponding to an application is not sufficient because operations such as creating, modifying, or reading the file do not have any relevant records in the system or the file, in an embodiment, a file operating apparatus is further provided, as shown in fig. 2, the apparatus includes a file read-write operation detecting module 102, a record storing module 104, an application migration instruction receiving module 106, and a file migration module 108, where:
the file read-write operation detection module 102 is configured to detect a file read-write operation of an installed application, and acquire a first application identifier of the installed application and a file corresponding to the file read-write operation;
a record storage module 104, configured to correspondingly store the first application identifier and the file corresponding to the file read-write operation in a preset database;
an application migration instruction receiving module 106, configured to receive an application migration instruction, and obtain a target application and a target terminal corresponding to the application migration instruction;
the file migration module 108 is configured to search a corresponding target file in the database according to the application identifier of the target application, and migrate the target file to the target terminal.
Optionally, in an embodiment, as shown in fig. 2, the apparatus further includes an application installation module 110, configured to detect an installation operation of an application, and obtain a second application identifier corresponding to the installation operation and a file written by the installation operation; storing the second application identifier and the file written by the installation operation into a preset database; the application migration instruction receiving module 106 is invoked.
Optionally, in an embodiment, the file read-write operation detection module 102 is further configured to predefine a system file read-write interface, and the installed application performs a file read-write operation through the system file read-write interface; and acquiring the first application identifier of the installed application and a file corresponding to the file read-write operation through the system file read-write interface.
Optionally, in an embodiment, the file read-write operation detecting module 102 is further configured to obtain only a file corresponding to the file write operation.
Optionally, in an embodiment, as shown in fig. 2, the apparatus further includes an application uninstalling module 112, configured to receive an application uninstalling instruction, and obtain a target uninstalled application corresponding to the application uninstalling instruction; and searching a target unloading file corresponding to the target unloading application in the database according to the application identifier of the target unloading application, and deleting the target unloading file according to the application unloading instruction.
The embodiment of the invention has the following beneficial effects:
after the file operation method and the device are adopted, a database for recording operation records of file creation, reading, writing, modification and the like is created in a system, and when the application in the terminal detects that the file is subjected to related operations, the corresponding operation record is recorded in the database; and then, in the application migration process, searching all operated files corresponding to the application in the database, and migrating the searched files to the target terminal along with the migration of the application. That is to say, through the monitoring and recording of the operation records of all the files in the terminal, all the corresponding files can be accurately determined in the application migration process, the accuracy of the application to the file matching is improved, the integrity and the accuracy of the migrated files in the application migration process are improved, and the user experience is improved.
In one embodiment, as shown in fig. 3, fig. 3 illustrates a terminal of a computer system based on von neumann architecture running the above-described file manipulation method. The computer system can be terminal equipment such as a smart phone, a tablet computer, a palm computer and the like. Specifically, an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included. The external input interface 1001 may optionally include at least a network interface 10012. Memory 1003 can include external memory 10032 (e.g., a hard disk, optical or floppy disk, etc.) and internal memory 10034. The output interface 1004 may include at least a display 10042 or the like.
In this embodiment, the method is executed based on a computer program, program files of the computer program are stored in the external memory 10032 of the computer system based on the von neumann system, and are loaded into the internal memory 10034 at the time of execution, and then are compiled into machine code and then transferred to the processor 1002 for execution, so that the logical file read-write operation detection module 102, the recording storage module 104, the application migration instruction receiving module 106, the file migration module 108, the application installation module 110, and the application uninstallation module 112 are formed in the computer system based on the von neumann system. In the execution process of the file operation method, the input parameters are received through the external input interface 1001, transferred to the memory 1003 for caching, and then input to the processor 1002 for processing, and the processed result data is cached in the memory 1003 for subsequent processing or transferred to the output interface 1004 for outputting.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs. The terminal provided by the embodiment of the invention comprises but is not limited to a carrier
Figure BDA0001114754030000091
Or other operating system such as a mobile phone. Other terminals are also possible, such as a laptop or tablet computer or desktop computer with a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a terminal comprising a display and a touch-sensitive surface is presented. It should be understood, however, that the terminal may include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.
Terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disc editing application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications executable on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or varied from one application to the next and/or within the corresponding application. In this way, a common physical architecture of the terminals (such as a touch-sensitive surface) can support various applications with a user interface that is intuitive and clear to the user.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method of file manipulation, comprising:
starting a process in the system for monitoring the read-write operation of all files in the terminal;
the method comprises the steps that a predefined system file read-write interface is obtained by modifying an interface function of the system file read-write interface, so that the installed application can read and write files through the predefined system file read-write interface;
detecting file read-write operation of an installed application, and acquiring a first application identifier of the installed application and a file corresponding to the file read-write operation through the predefined system file read-write interface;
correspondingly storing the first application identifier and a file corresponding to the file read-write operation into a preset database; the database stores relevant records of read-write operation of any file in the terminal every time, and each record comprises an application identifier, a file name and specific operation; the preset database is a database which is created when the terminal is used for the first time and is used for storing the corresponding application identification for performing the read-write operation and the corresponding file after the read-write operation is performed on any installed file in the terminal;
receiving an application migration instruction, and acquiring a target application and a target terminal corresponding to the application migration instruction;
and searching a corresponding target file in the database according to the application identifier of the target application, and migrating the target file to the target terminal, wherein the target file comprises all files of which the target application executes file reading and writing operations.
2. The file operation method according to claim 1, wherein the step of receiving an application migration instruction further comprises;
detecting installation operation of an application, and acquiring a second application identifier corresponding to the installation operation and a file written by the installation operation;
storing the second application identifier and the file written by the installation operation into a preset database;
executing the step of receiving the application migration instruction.
3. The file operating method according to claim 1, wherein the step of obtaining the first application identifier of the installed application and the file corresponding to the file read-write operation further comprises:
and only acquiring the file corresponding to the file writing operation.
4. The file manipulation method of claim 1, wherein the method further comprises:
receiving an application uninstalling instruction, and acquiring a target uninstalling application corresponding to the application uninstalling instruction;
and searching a target unloading file corresponding to the target unloading application in the database according to the application identifier of the target unloading application, and deleting the target unloading file according to the application unloading instruction.
5. A file operating apparatus, comprising:
the file read-write operation detection module is used for starting a process in the system, monitoring the read-write operation of all files in the terminal, and obtaining a predefined system file read-write interface by modifying an interface function of the system file read-write interface so that the installed application can read and write the files through the predefined system file read-write interface; the file reading and writing operation detection module is used for detecting file reading and writing operation of the installed application and acquiring a first application identifier of the installed application and a file corresponding to the file reading and writing operation through the predefined system file reading and writing interface;
the record storage module is used for correspondingly storing the first application identifier and the file corresponding to the file read-write operation into a preset database; the database stores relevant records of read-write operation of any file in the terminal every time, and each record comprises an application identifier, a file name and specific operation; the preset database is a database which is created when the terminal is used for the first time and is used for storing the corresponding application identification for performing the read-write operation and the corresponding file after the read-write operation is performed on any installed file in the terminal;
the application migration instruction receiving module is used for receiving an application migration instruction and acquiring a target application and a target terminal corresponding to the application migration instruction;
and the file migration module is used for searching a corresponding target file in the database according to the application identifier of the target application and migrating the target file to the target terminal, wherein the target file comprises all files of which the target application executes file reading and writing operations.
6. The file operation device according to claim 5, wherein the device further comprises an application installation module, configured to detect an installation operation of an application, and obtain a second application identifier corresponding to the installation operation and a file written by the installation operation; storing the second application identifier and the file written by the installation operation into a preset database; and calling the application migration instruction receiving module.
7. The file operating apparatus according to claim 5, wherein the file read/write operation detecting module is further configured to obtain only a file corresponding to the file write operation.
8. The file operating apparatus according to claim 5, wherein the apparatus further includes an application uninstalling module, configured to receive an application uninstalling instruction, and obtain a target uninstalled application corresponding to the application uninstalling instruction; and searching a target unloading file corresponding to the target unloading application in the database according to the application identifier of the target unloading application, and deleting the target unloading file according to the application unloading instruction.
9. A terminal, characterized in that the terminal comprises:
a memory storing program instructions; and
a processor for executing the file manipulation method of any one of claims 1 to 4 upon invoking the program instructions.
10. A computer-readable storage medium, in which program instructions are stored, the program instructions being for causing a computer, when invoked, to perform the file manipulation method according to any one of claims 1 to 4.
CN201610825679.7A 2016-09-14 2016-09-14 File operation method and device Active CN106484779B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610825679.7A CN106484779B (en) 2016-09-14 2016-09-14 File operation method and device
PCT/CN2017/092244 WO2018049883A1 (en) 2016-09-14 2017-07-07 File operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610825679.7A CN106484779B (en) 2016-09-14 2016-09-14 File operation method and device

Publications (2)

Publication Number Publication Date
CN106484779A CN106484779A (en) 2017-03-08
CN106484779B true CN106484779B (en) 2020-05-05

Family

ID=58273602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610825679.7A Active CN106484779B (en) 2016-09-14 2016-09-14 File operation method and device

Country Status (2)

Country Link
CN (1) CN106484779B (en)
WO (1) WO2018049883A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484779B (en) * 2016-09-14 2020-05-05 Oppo广东移动通信有限公司 File operation method and device
CN109558749B (en) * 2018-11-28 2021-06-01 Oppo广东移动通信有限公司 Data storage method, terminal and computer storage medium
CN109710571B (en) * 2018-12-27 2023-06-23 腾讯音乐娱乐科技(深圳)有限公司 File analysis method, device and storage medium
CN109977040B (en) * 2019-03-27 2023-11-14 努比亚技术有限公司 File read-write permission control method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092664A (en) * 2013-02-07 2013-05-08 珠海市君天电子科技有限公司 Processing method and device of data file of android system
CN104133641A (en) * 2014-07-24 2014-11-05 深圳市同洲电子股份有限公司 External storage equipment file deleting method and device
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file
CN105630587A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Method, device and system for migrating application program data between terminals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484779B (en) * 2016-09-14 2020-05-05 Oppo广东移动通信有限公司 File operation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092664A (en) * 2013-02-07 2013-05-08 珠海市君天电子科技有限公司 Processing method and device of data file of android system
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file
CN104133641A (en) * 2014-07-24 2014-11-05 深圳市同洲电子股份有限公司 External storage equipment file deleting method and device
CN105630587A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Method, device and system for migrating application program data between terminals

Also Published As

Publication number Publication date
CN106484779A (en) 2017-03-08
WO2018049883A1 (en) 2018-03-22

Similar Documents

Publication Publication Date Title
WO2018049888A1 (en) Application data migration method and device
CN111596863B (en) Data reading method, device and equipment and readable storage medium
CN106484779B (en) File operation method and device
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
WO2015013348A1 (en) Virtual synchronization with on-demand data delivery
WO2015131804A1 (en) Call stack relationship acquiring method and apparatus
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
US11232066B2 (en) Method for data migration and terminal
US20180341426A1 (en) Method and device for clearing data and electronic device
CN106775445B (en) Data migration method and device
CN108228611B (en) Document information copying method and device
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN111782474A (en) Log processing method and device, electronic equipment and medium
US9262304B2 (en) Methods and systems for testing interactions between mobile applications
EP2813947B1 (en) Electronic device and method for mounting file system using virtual block device
CN107608827B (en) Backup method and terminal for package configuration file and related medium product
CN110750521A (en) Data migration method, device and equipment and computer readable storage medium
CN114356290A (en) Data processing method and device and computer readable storage medium
CN111198830B (en) Identification method and device of mobile storage equipment, electronic equipment and storage medium
CN109542531B (en) File layout adjustment method and device
CN112667502A (en) Page testing method, device and medium
CN112036133A (en) File saving method and device, electronic equipment and storage medium
CN110795389A (en) Storage snapshot based copying method, user equipment, storage medium and device
US7702890B2 (en) Information processing apparatus and program
CN109918122B (en) White list maintenance method and device and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant