CN104484212A - Method and device for installing and deleting external storage files - Google Patents

Method and device for installing and deleting external storage files Download PDF

Info

Publication number
CN104484212A
CN104484212A CN201410840659.8A CN201410840659A CN104484212A CN 104484212 A CN104484212 A CN 104484212A CN 201410840659 A CN201410840659 A CN 201410840659A CN 104484212 A CN104484212 A CN 104484212A
Authority
CN
China
Prior art keywords
data
soft link
link symbol
application program
storage
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.)
Pending
Application number
CN201410840659.8A
Other languages
Chinese (zh)
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.)
Fuzhou Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201410840659.8A priority Critical patent/CN104484212A/en
Publication of CN104484212A publication Critical patent/CN104484212A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method and a device for installing and deleting external storage files. The method is characterized in that data is searched by an application program through soft link symbols; the soft link symbols are stored in an external memory; the data pointed by the soft link symbols can be stored in an internal memory. The problems in the prior art that as the data stored in the external memory can not be completely deleted, disk fragmentation residue is formed, the running efficiency of the system is influenced, and the like can be solved.

Description

The method that exterior storage file is installed and removed and device
Technical field
This programme relates to field of data storage, particularly relates to a kind of method that exterior storage file is installed and removed.
Background technology
Operating system is the window that the mankind and electronic product are talked with.The function of enriching of operating system be unable to do without diversified application program.In the process of user installation application program with these application programs of use, application program can create a large amount of files in systems in which, but when these application programs are when unloading, has this class file a lot of not deleted, still preserve in systems in which, can garbage files be referred to as.A large amount of garbage files is together with system file and be stored in the storage space of subscriber equipment, and disk fragments is serious, and subscriber equipment travelling speed can slow down, and makes the operational efficiency of system low.For android system, constantly perfect along with its ecological chain, number of applications presents rapid growth.User can install many application programs to meet daily demand in android system.Current android system self provides the method for cleaning for this class file; Such as, when application program is run, application program can the temporary file that produces to delete self-operating of the interface that provides of calling system.Or when application program unloading, system can delete the file that this application program creates in systems in which.But, for the file that application program creates on External memory equipment, because system cannot know its path stored, so when application program unloads time, this part file just remains among External memory equipment.In the course of time, the file on external memory storage is residual will get more and more, and impact normally uses.
Summary of the invention
For this reason, need a kind of method providing exterior storage file to install and remove, under solving prior art, sordid problem deleted by outside storage file.
For achieving the above object, a kind of method that exterior storage file is installed and removed is inventor provided: application program finds data by soft link symbol; Described soft link symbol is stored on external memory storage, and the data that described soft link symbol is pointed to are on internal storage.
Further, when application program creates data, external memory storage creates soft link symbol, saves the data in internal storage.
Concrete, the data that described soft link symbol is pointed to are under the installation root directory of application program.
Further, to needing the data of protection to scan, will the data batchmove of protection be needed to outside the installation root directory of described application program.
Further, external memory storage is scanned, delete the soft link symbol lost efficacy.
The device that external memory storage file is installed and removed, comprises data and finds module, and described data look for module for when receiving application program and finding the request of data, find data by soft link symbol; Described soft link symbol is stored on external memory storage, and the data that described soft link symbol is pointed to are on internal storage.
Further, comprise creating and preserve module, described establishment is preserved module and is used for, when receiving application program and creating the request of data, external memory storage creating soft link symbol, saving the data in internal storage.
Further, the data of described soft link symbol sensing are under the installation root directory of application program.
Further, comprise scanning shift module, described scanning shift module is used for needing the file of protection to scan, and under the file that the file of needs protection is transferred to beyond root directory.
Further, comprise and expand exterior storage scan module, described exterior storage scan module is used for scanning external memory storage, and deletes the soft link symbol lost efficacy.
Be different from prior art, technique scheme is by saving the data in storage inside, exterior storage preserves the soft link symbol that is pointed to these data, and when application program deleted by needs, then the data be kept in exterior storage are deleted owing to being kept at storage inside thereupon in the lump originally; The soft link symbol of exterior storage is deleted and lost efficacy owing to pointing to target, and then does not take up room, and also more detectedly deletes.Reach and reduce disk fragments, effectively prevent garbage files from producing, improve the effect of running efficiency of system.
Accompanying drawing explanation
Fig. 1 is the inventive method process flow diagram;
Fig. 2 is apparatus of the present invention module diagram;
Fig. 3 is specific embodiment of the invention electronic apparatus functions schematic diagram.
Description of reference numerals:
201, data find module;
202, preservation module is created;
203, shift module is scanned;
204, exterior storage scan module.
Embodiment
By describe in detail technical scheme technology contents, structural attitude, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
The method that a kind of exterior storage file provided by the invention is installed and removed, exterior storage is the concept relative to storage inside, exterior storage is generally that the memory interface by being connected with controller is connected with controller, by plugging External memory equipment artificially on memory interface, External memory equipment can be realized and be connected with controller or disconnect.Internal storage is generally the storer storing operating system, and for handheld mobile device, internal storage is generally be fixedly welded on circuit board.The medium (i.e. external memory storage) of described exterior storage includes but not limited to after the power-off such as floppy disk, hard disk, CD, USB still can the medium of storage data, and in certain embodiments of the present invention, described external memory storage is for SD memory card.This method is applicable to the electronic product that operating system is housed arbitrarily needing to call exterior storage, clears up sordid problem to solve external memory storage files.Some embodiment of the present invention is described for Android system.This method is achieved in that application program finds data by soft link symbol; Described soft link symbol is stored on external memory storage, and the data that described soft link symbol is pointed to are on internal storage.Refer to Fig. 3, external memory storage has the soft link symbol pointing to certain data.Described soft link symbol contains the pathname of another file, and we claim this file to be the source file of soft link symbol.Any file or catalogue can be pointed in this path.Soft chained file is a mark of its source file, concrete example can shortcut under analogy windows operating system, after deleting source file, soft link symbol will lose efficacy, although still retain this soft link symbol, the content of the path point that soft link symbol comprises can not be checked.Described data can be files, also can be files.When application program needs to call these data, Android ccf layer (Android-framework) will externally store searching data, and find a soft link symbol, then call the data that soft link symbol is pointed to.Because some application programs need to call some particular data on external memory storage, and store data on external memory storage and be not easy to delete clean problem by producing.Therefore in certain embodiments, these data can be stored in internal storage when producing electronic product by producer, and prestore on external memory storage one and point to the soft link symbol of these data.When user carries out brush machine (i.e. popular being commonly called as " replacing system ") time, then the data on internal storage can be deleted in the lump; The soft link symbol of exterior storage is deleted and lost efficacy owing to pointing to target, and then does not take up room.By such scheme, both can not producing mistake during data on the outside storage of application call, and remove in the lump these data when deleting again.Solve the deletion caused because these data are stored in external memory storage in prior art unclean, disk fragments remains, the problems such as influential system operational efficiency.
In practical application, application program has the flow process creating data in external memory storage in operational process, and therefore this method also comprises step, when application program creates data, external memory storage creates soft link symbol, saves the data in internal storage.In the embodiment shown in fig. 1, when application program needs in outside memory stores data, Android ccf layer can carry out step S101 and store data in internal storage, then carry out the place that step S102 originally needs to create data in external memory storage, create a soft link symbol and point to data in above-mentioned internal storage.In further embodiments, application program also can be carried out step S101 and store data in internal storage, then carry out the place that step S102 originally needs to create data in external memory storage, create a soft link symbol and point to data in above-mentioned internal storage.Such as, the video/audio image file that video application is downloaded or recorded, application program has the flow process be stored in external memory storage, at this moment just these video/audio image files can be stored in internal storage, then in external memory storage, a soft link symbol is created, when brush machine, these files just can complete deletion, and the soft link symbol of exterior storage is also by inefficacy and then do not take up room.By designing a step allowing application program to create soft link symbol in exterior storage, make the normal use neither affecting application program, that also can delete when deleting data is cleaner.
In fact most of user constantly can't carry out brush machine in order to some file of complete deletion.In order to clear up the needs of fragment file when meeting in the actual use of user and add delete program more neatly, in some specific embodiment, under the data that described soft link symbol is pointed to can also be arranged on the installation root directory of application program.As shown in Figure 3, multiple application program such as A, B, C is had in system, when application A needs to carry out exterior storage, Android ccf layer stores data by under the installation root directory of application A, when Android ccf layer receive user delete the operational order of application A time, the installation root directory of direct deletion application A, and belong to the data of application A, then in the lump deleted fall.In certain embodiments, when application A needs to carry out exterior storage, also can store data under the installation root directory of oneself, when Android ccf layer receive user delete the operational order of application A time, directly delete the installation root directory of application A.Such user, without the need to carrying out system conversion operation, as long as just directly can delete the crumb data that originally can be stored in exterior storage according to the operation of common deletion application program, and does not affect the file of other application programs such as application program B and C.Reach saving user time, improve the effect of user's experience.
Of the present invention some further in embodiment, step S103 can also be carried out and scan needing the data of protection, and then carry out step S104 the data batchmove of protection will be needed to outside the installation root directory of described application program.The described data of protection that need can need the file of setting unit form to be the data that will protect according to user, and described transfer includes but not limited to shear, copy.In some specific embodiment, also can eject information, whether inquiry user retains these data.Or for video application, wherein some audio files is that user needs to retain, then the file that video/audio form is set can be needed to be the file that will protect according to user, when scanning file (file namely will protected) of these forms, eject inquiry window, when receiving user and determining the feedback needing to retain, a new folder is created outward at the installation root directory of this video application, the above-mentioned file that will protect is transferred in this new folder, when receiving user and determining the feedback not needing to retain, then the file that these will be protected is not shifted.In further embodiments, fail-safe software is if desired encrypted protection to some file, then in the outer newly-built hidden folder of the installation root directory of fail-safe software, can transfer to needing the file being encrypted protection in this hidden folder.By to needing the data of protection to scan and shift, further increase Consumer's Experience, loss preventing some capsule information from causing because of improper operation etc.
In some specific embodiment, also comprise step S106 and external memory storage is scanned, delete the soft link symbol lost efficacy.The soft link symbol lost efficacy takes up room hardly, but carrying out deleting still contributes to improving disk utilization.This S106 step can be deleted application program with step S105 and successively be arranged in pairs or groups and arranges, also can regularly (such as week about, two weeks) carry out.No matter when carry out step S106, all reach the effect of all application program fragments of complete deletion, greatly improve disk utilization, further increase the operational efficiency of system.
The device that external memory storage file is installed and removed, comprises data and finds module 201, and described data are found module and are used for, when receiving application program and finding the request of data, finding data by soft link symbol; Described soft link symbol is stored on external memory storage, and the data that described soft link symbol is pointed to are on internal storage.Find module 201 by design data, making device both can not produce mistake during data on the outside storage of application call, remove in the lump these data when deleting again.Solve the deletion caused because these data are stored in external memory storage in prior art unclean, disk fragments remains, the problems such as influential system operational efficiency.
In certain embodiments, also comprise creating and preserve module 202, described establishment preserves module for when receiving application program and creating the request of data, external memory storage creates soft link symbol, saves the data in internal storage.Create preservation module by designing one, make application program can create soft link symbol in exterior storage, neither affect the normal use of application program, that also can delete when deleting data is cleaner.
In certain embodiments, the data of described soft link symbol sensing are under the installation root directory of application program.Under data being stored in installation root directory, user, without the need to carrying out system conversion operation, as long as just directly can delete the crumb data that originally can be stored in exterior storage according to the operation of common deletion application program, and does not affect other application programs.Reach saving user time, improve the effect of user's experience.
In further embodiments, comprise scanning shift module 203, described scanning shift module is used for needing the file of protection to scan, and under the file that the file of needs protection is transferred to beyond root directory.By to needing the data of protection to scan and shift, further increasing Consumer's Experience, preventing the loss that some capsule information causes because of improper operation.
In some specific embodiment, also comprise exterior storage scan module 204, described exterior storage scan module is used for scanning external memory storage, and deletes the soft link symbol lost efficacy.Design exterior storage scan module 204 reaches the effect of all application program fragments of complete deletion, greatly improves disk utilization, further increases the operational efficiency of system.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, multi-purpose computer, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the process flow diagram of method, equipment (system) and computer program according to embodiment and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.

Claims (10)

1. a method for the installation of exterior storage file and removing, is characterized in that: application program finds data by soft link symbol; Described soft link symbol is stored on external memory storage, and the data that described soft link symbol is pointed to are on internal storage.
2. the method for exterior storage file installation according to claim 1 and removing, is characterized in that, when application program creates data, external memory storage creates soft link symbol, saves the data in internal storage.
3. the method for exterior storage file installation according to claim 1 and removing, is characterized in that, the data that described soft link symbol is pointed to are under the installation root directory of application program.
4. the method for exterior storage file installation according to claim 3 and removing, is characterized in that, to needing the data of protection to scan, the data batchmove protected will be needed to outside the installation root directory of described application program.
5. the method for exterior storage file installation according to claim 1 and removing, is characterized in that, scan external memory storage, delete the soft link symbol lost efficacy.
6. a device for the installation of external memory storage file and removing, is characterized in that: comprise data and find module, and described data look for module for when receiving application program and finding the request of data, find data by soft link symbol; Described soft link symbol is stored on external memory storage, and the data that described soft link symbol is pointed to are on internal storage.
7. the device of exterior storage file installation according to claim 6 and removing, it is characterized in that, comprise creating and preserve module, described establishment preserves module for when receiving application program and creating the request of data, external memory storage creates soft link symbol, saves the data in internal storage.
8. the device of exterior storage file installation according to claim 6 and removing, is characterized in that, the data that described soft link symbol is pointed to are under the installation root directory of application program.
9. the device of exterior storage file installation according to claim 8 and removing; it is characterized in that; comprise scanning shift module, described scanning shift module is used for needing the file of protection to scan, and under the file that the file of needs protection is transferred to beyond root directory.
10. the device of exterior storage file installation according to claim 6 and removing, is characterized in that, comprise and expand exterior storage scan module, and described exterior storage scan module is used for scanning external memory storage, and deletes the soft link symbol of inefficacy.
CN201410840659.8A 2014-12-30 2014-12-30 Method and device for installing and deleting external storage files Pending CN104484212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410840659.8A CN104484212A (en) 2014-12-30 2014-12-30 Method and device for installing and deleting external storage files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410840659.8A CN104484212A (en) 2014-12-30 2014-12-30 Method and device for installing and deleting external storage files

Publications (1)

Publication Number Publication Date
CN104484212A true CN104484212A (en) 2015-04-01

Family

ID=52758756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410840659.8A Pending CN104484212A (en) 2014-12-30 2014-12-30 Method and device for installing and deleting external storage files

Country Status (1)

Country Link
CN (1) CN104484212A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389181A (en) * 2015-10-29 2016-03-09 福建天晴数码有限公司 Method and system for upgrading website by means of soft link
CN106202551A (en) * 2016-07-27 2016-12-07 广东欧珀移动通信有限公司 A kind of file management method, device and mobile terminal
CN107423300A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 A kind of method, device and mobile terminal of terminal document processing
CN112286543A (en) * 2020-11-06 2021-01-29 广州锦行网络科技有限公司 Application service deployment method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103577567A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method for uninstalling application and deleting garbage file in Android system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103577567A (en) * 2013-10-29 2014-02-12 广东欧珀移动通信有限公司 Method for uninstalling application and deleting garbage file in Android system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389181A (en) * 2015-10-29 2016-03-09 福建天晴数码有限公司 Method and system for upgrading website by means of soft link
CN105389181B (en) * 2015-10-29 2018-12-18 福建天晴数码有限公司 Pass through the method and system of soft link upgrading website
CN107423300A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 A kind of method, device and mobile terminal of terminal document processing
CN107423300B (en) * 2016-05-24 2021-12-28 中兴通讯股份有限公司 Terminal file processing method and device and mobile terminal
CN106202551A (en) * 2016-07-27 2016-12-07 广东欧珀移动通信有限公司 A kind of file management method, device and mobile terminal
CN112286543A (en) * 2020-11-06 2021-01-29 广州锦行网络科技有限公司 Application service deployment method and device
CN112286543B (en) * 2020-11-06 2021-11-02 广州锦行网络科技有限公司 Application service deployment method and device

Similar Documents

Publication Publication Date Title
US10509701B2 (en) Performing data backups using snapshots
CN107016123B (en) File management method and terminal device
CN104699423B (en) The method and apparatus that drive is bound in linux system
CN105373419A (en) Background application operation method and system
CN104484212A (en) Method and device for installing and deleting external storage files
CN105740425A (en) File storage method and apparatus
CN104021159B (en) Client file cleaning method and device
CN103473277A (en) Snapshot method and device for file systems
US10509767B2 (en) Systems and methods for managing snapshots of a file system volume
CN104035842A (en) Method for deleting and recovering built-in application program
CN104778222A (en) Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment
CN102141926A (en) Application program management method, device and digital television set top box
CN102819442A (en) Method and system for programming programs into embedded equipment program
CN103699673A (en) Mobile terminal, picture processing method and picture processing device for mobile terminal
CN102799575B (en) A kind of form processing method and device
CN103713972A (en) Incremental backup system and method
CN103902562A (en) Method and device for upgrading terminal databases
CN104331343A (en) File backup method and system
WO2015027902A1 (en) Method, computing device, and computer program product for storing file index
US10558566B2 (en) Garbage collection of non-pinned objects within heap
CN110209736A (en) Device, method and the storage medium of block chain data processing
CN103713926A (en) Method and system for updating software of client in advance
CN103995706A (en) Method and device for displaying picture thumbnail
JP2014071904A (en) Computing system and data management method of computing system
CN103049561B (en) A kind of data compression method, storage engines and storage system

Legal Events

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

Address after: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150401