CN106909646A - SD card clears up the method and device of invalid data after changing - Google Patents
SD card clears up the method and device of invalid data after changing Download PDFInfo
- Publication number
- CN106909646A CN106909646A CN201710093891.3A CN201710093891A CN106909646A CN 106909646 A CN106909646 A CN 106909646A CN 201710093891 A CN201710093891 A CN 201710093891A CN 106909646 A CN106909646 A CN 106909646A
- Authority
- CN
- China
- Prior art keywords
- card
- application
- equipment
- mark
- data file
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The application provides the method and device that invalid data is cleared up after a kind of SD card changes, and methods described includes:The mark of the current SD card of testing equipment identifies whether identical with locally stored SD card;If differing, the application message of the application being arranged in the SD card corresponding with the locally stored SD card mark is read;The corresponding data file of the application is obtained in the data subregions of the equipment according to the application message and is deleted.Using the method, it is possible to achieve after the SD card in Android intelligent equipment changes, the invalid data file that can be cleared up therewith in the data subregions of Android intelligent equipment, so as to lift the speed of service of Android intelligent equipment, lifts Consumer's Experience.
Description
Technical field
The side of invalid data is cleared up after the application is related to technical field of data processing, more particularly to a kind of SD card changes
Method and device.
Background technology
SD (Secure Digital Memory Card, safe digital card) cards are a kind of based on semiconductor fast-flash memory device
Memory device of new generation, be widely used in the Android intelligent equipments such as smart mobile phone, intelligent television.User is in Android intelligence
When installation is applied in energy equipment, can select application in the SD card in the Android intelligent equipment.When in the SD card
When installation is applied, can be produced in the data subregions of Android system and run the required data file of the application, however, by the SD card
After being extracted from Android intelligent equipment, above-mentioned data file can't be cleared up therewith, so as to will cause with Android intelligence
The application installed in equipment is more, and the data file in the data subregions of Android system is more, and the speed of service of Android system is got over
Come slower, influence Consumer's Experience.
The content of the invention
In view of this, the application provides the method and device that invalid data is cleared up after a kind of SD card changes, to realize
After SD card in Android intelligent equipment changes, can therewith clear up invalid in the data subregions of Android intelligent equipment
Data file, so as to lift the speed of service of Android intelligent equipment, lifts Consumer's Experience.
Specifically, the application is achieved by the following technical solution:
According to the first aspect of the embodiment of the present application, there is provided a kind of SD card clears up invalid data method after changing,
Methods described includes:
The mark of the current SD card of testing equipment identifies whether identical with locally stored SD card;
If differing, the application being arranged in the SD card corresponding with the locally stored SD card mark is read
Application message;
The corresponding data file of the application is obtained in the data subregions of the equipment according to the application message and is deleted
Remove.
According to the second aspect of the embodiment of the present application, there is provided a kind of SD card clears up the device of invalid data after changing,
Described device includes:
Detection module, for the current SD card of testing equipment mark and locally stored SD card identify whether it is identical;
Read module, if for differing, reading and being arranged on corresponding with the locally stored SD card mark
SD card on application application message;
Removing module, it is corresponding for obtaining the application in the data subregions of the equipment according to the application message
Data file is simultaneously deleted.
As seen from the above-described embodiment, Android intelligent television by the mark of the current SD card of testing equipment with it is locally stored
SD card identify whether it is identical, it may be determined that whether the SD card of equipment changes;When differing, i.e., as the SD of determination equipment
When card changes, Android intelligent television has been arranged in the corresponding SD card of locally stored SD card mark by reading
The application message of application, obtains using corresponding data file and deletes according to the application message in the data subregions of equipment,
It is achieved thereby that detecting after SD card changes, the data text corresponding to the application in the SD card before being arranged on change is deleted
Part, it is achieved thereby that detecting after SD card changes, the invalid data file in cleaning data subregions, effectively prevent with
The application for installation in Android intelligent equipment is more, and the data file in the data subregions of Android system is more, Android system
The occurrence of speed of service is more and more slower, to lift Consumer's Experience.
Brief description of the drawings
Fig. 1 is one embodiment flow chart of the method that invalid data is cleared up after the application SD card changes;
Fig. 2 is a kind of application scenarios schematic diagram that Android intelligent television sends prompting message to user;
Fig. 3 is a kind of hardware of Android intelligent equipment where the device that invalid data is cleared up after the application SD card changes
Structure chart;
Fig. 4 is one embodiment block diagram of the device that invalid data is cleared up after the application SD card changes.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 is referred to, is one embodiment flow chart of the method that invalid data is cleared up after the application SD card changes,
The method can be applied in Android intelligent equipment, such as on Android intelligent television, by taking Android intelligent television as an example, and the Android intelligence
SD card draw-in groove can be provided with the fuselage of TV, a SD card is can be inserted into the SD card draw-in groove, the method can include following
Step:
Step S101:The mark of the current SD card of testing equipment identifies whether identical with locally stored SD card.
Firstly, it is necessary to illustrate, equipment mentioned here is Android intelligent television in itself.
In one embodiment, Android intelligent television can be in its own system start-up course, the SD card card with detection machine
Whether SD card is inserted in groove, when SD card has been inserted in detecting the SD card draw-in groove, Android intelligent television can read currently
SD card mark.
In one embodiment, Android intelligent television can monitor whether SD card insertion in its own system running
Event, when SD card insertion event is monitored, Android intelligent television can read the mark of current SD card.
Android intelligent television is read after the mark of current SD card, detect the mark of the current SD card with locally
The SD card of storage identifies whether identical.
Additionally, in this application, after application is installed in the current SD card of Android intelligent television, Android intelligence electricity
Depending on can be locally stored the current SD card mark and install the application application message between corresponding relation, here
Described application message can include the mark of application, bag name of application etc., and application message can be represented uniquely using i.e.
Can, the application is not restricted to this.
By taking the mark that application message includes application as an example, mark and the application that is arranged on the SD card in of the table 1 below for SD card
Application message between corresponding relation a kind of example:
Table 1
The mark of SD card | Application message |
SD1 | APP1、APP2 |
SD2 | APP3、APP4、APP5 |
… | … |
In table 1 above, the quantity of the application message corresponding to the mark of SD card, i.e., the installable application in SD card
Quantity as just citing, in actual applications, can be according to the setting of the capacity of SD card and SD card, it is determined that SD can be arranged on
The quantity applied on card, the application is not restricted to this.
Subsequently, in this application, Android intelligent television can realize the application according to the corresponding relation exemplified by above-mentioned table 1
How the SD card of offer clears up invalid data method after changing, specifically realize, may refer to following step S102
In description, herein first do not describe in detail.
Step S102:If differing, read and be arranged on the SD corresponding with the locally stored SD card mark
The application message of the application on card.
As execution of step S101, detection draws the mark of the current SD card of equipment with locally stored SD card mark not
When identical, Android intelligent television can according to the corresponding relation exemplified by above-mentioned table 1, read be arranged on it is locally stored
The application message of the application in the corresponding SD card of SD card mark.
Step S103:Obtain using corresponding data file and delete in the data subregions of equipment according to application message.
After installation application in the SD card on Android intelligent television, meeting in the data subregions of the Android intelligent television
The data file required for running the application is produced, and, it is generally the case that the directory path bag corresponding to these data files
" the bag name of/data/data/ applications " and " the bag name of/data/dalvik-cache/ applications " is included, so that, Android intelligent television
The bag name of application can be read according to application message first, then the bag name according to the application can be read using corresponding data
The directory path of file.
In one embodiment, it is assumed that the bag of application is entitled " com.test.hello ", then, Android intelligent television can be with root
It is respectively combined according to the default Fixed CPs of the Bao Mingyu of the application "/data/data/ " and "/data/dalvik-cache/ ", from
And read using the directory path of corresponding data file, for example, the directory path includes "/data/data/
Com.test.hello " and "/data/dalvik-cache/com.test.hello ".
In one embodiment, being locally stored with for Android intelligent television apply corresponding data file including each
The list of destination path, afterwards, Android intelligent television then can search the list according to the bag of application name, read including the bag
The directory path for including, that is, read using the directory path of corresponding data file.
Afterwards, Android intelligent television then can get application correspondence according to two directory paths in data subregions
Data file, and delete the data file.
Additionally, being obtained in the data subregions of equipment using corresponding data file according to application message and deleting the number
Before file, can be sent for pointing out whether to clear up using the prompting of corresponding data file to user on the intelligent television
Message, for example, as shown in Fig. 2 sending a kind of application scenarios schematic diagram of prompting message to user for Android intelligent television.
Subsequently, in the application scenarios exemplified by Fig. 2, if user passes through Remote equipment choice "Yes" button, then,
Android intelligent television can be received for indicating the cleaning of the cleaning corresponding data file of application to instruct.
After Android intelligent television receives cleaning instruction, can perform it is above-mentioned it is described according to application message in equipment
Data subregions in obtain using corresponding data file and the step of delete.
Additionally, in this application, Android intelligent television is obtaining application according to application message in the data subregions of equipment
After corresponding data file and deletion, locally stored SD can also be updated according to the mark of equipment SD card current in itself
Card mark, so as to subsequently realize that the mark of the current SD card of testing equipment and locally stored SD card identify whether that identical is walked
Suddenly.
As seen from the above-described embodiment, Android intelligent television by the mark of the current SD card of testing equipment with it is locally stored
SD card identify whether it is identical, it may be determined that whether the SD card of equipment changes;When differing, i.e., as the SD of determination equipment
When card changes, Android intelligent television has been arranged in the corresponding SD card of locally stored SD card mark by reading
The application message of application, obtains using corresponding data file and deletes according to the application message in the data subregions of equipment,
It is achieved thereby that detecting after SD card changes, the data text corresponding to the application in the SD card before being arranged on change is deleted
Part, it is achieved thereby that detecting after SD card changes, the invalid data file in cleaning data subregions, effectively prevent with
The application for installation in Android intelligent equipment is more, and the data file in the data subregions of Android system is more, Android system
The occurrence of speed of service is more and more slower, to lift Consumer's Experience.
Embodiment with aforementioned data method for cleaning is corresponding, present invention also provides the embodiment of data scrubbing device.
The embodiment of the application data scrubbing device can be applied on smart machine.Device embodiment can be by software
Realize, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software, as on a logical meaning
Device, be to be read corresponding computer program instructions in nonvolatile memory by the processor of smart machine where it
Run what is formed in internal memory.From for hardware view, as shown in figure 3, clearing up invalid number after being changed for the application SD card
According to device where Android intelligent equipment a kind of hardware structure diagram, except the processor 31 shown in Fig. 3, internal memory 32, network connect
Outside mouth 33 and nonvolatile memory 34, the smart machine in embodiment where device is generally according to the smart machine
Actual functional capability, can also include other hardware, and this is repeated no more.
Fig. 4 is refer to, is one embodiment block diagram of the device that invalid data is cleared up after the application SD card changes, should
Device can include:Detection module 41, read module 42, removing module 43.
Wherein, the detection module 41, can be used for the mark of the current SD card of testing equipment and locally stored SD card
Identify whether identical;
The read module 42, if can be used for differing, reads and has been arranged on and the locally stored SD card mark
Know the application message of the application in corresponding SD card;
The removing module 43, can be used for should according to the application message is obtained in the data subregions of the equipment
With corresponding data file and delete.
In one embodiment, the device can also include (not showed that in Fig. 4):
Update module, can be used for updating the locally stored SD card according to the mark of the current SD card of the equipment
Mark.
In one embodiment, the device can also include (not showed that in Fig. 4):
Memory module, can be used in the current SD card of the equipment after installation application, and described setting is being locally stored
Corresponding relation between the mark of standby current SD card and the application message of the application installed;
The read module 42 specifically for:
The application message corresponding with the locally stored SD card mark is read according to the corresponding relation.
In one embodiment, the device can also include (not showed that in Fig. 4):
Whether sending module, can be used for being sent for pointing out to clear up carrying for the corresponding data file of the application to user
Show message;
Receiver module, can be used for receiving the literary for the corresponding data of the instruction cleaning application of user's transmission
The cleaning instruction of part.
In one embodiment, the removing module 43 can include (not showed that in Fig. 4):
Path reading submodule, can be used for being read according to the application message mesh of the corresponding data file of the application
Record path;
Submodule is deleted, can be used for obtaining the data in the data subregions of the equipment according to the directory path
File is simultaneously deleted.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.
Claims (10)
1. a kind of method that invalid data is cleared up after SD card changes, it is characterised in that methods described includes:
The mark of the current SD card of testing equipment identifies whether identical with locally stored SD card;
If differing, read and be arranged on answering for the application identified with the locally stored SD card in corresponding SD card
Use information;
The corresponding data file of the application is obtained in the data subregions of the equipment according to the application message and is deleted.
2. method according to claim 1, it is characterised in that it is described according to the application message in the equipment
Obtained in data subregions after the corresponding data file of the application and deletion, methods described also includes:
Mark according to the current SD card of the equipment updates the locally stored SD card mark.
3. method according to claim 2, it is characterised in that methods described also includes:
After installation application in the current SD card of the equipment, the mark and peace of the current SD card of the equipment is being locally stored
Corresponding relation between the application message of the application of dress;
The reading has been arranged on the application message of the application in the SD card corresponding with the locally stored SD card mark
Including:
The application message corresponding with the locally stored SD card mark is read according to the corresponding relation.
4. method according to claim 1, it is characterised in that it is described according to the application message in the equipment
Before the corresponding data file of the application and deletion are obtained in data subregions, methods described also includes:
The prompting message that whether the corresponding data file of the application is cleared up for prompting is sent to user;
Receive the cleaning instruction for indicating the corresponding data file of the cleaning application that the user sends.
5. the method according to claim 1 or 4, it is characterised in that it is described according to the application message in the equipment
The corresponding data file of the application and deletion are obtained in data subregions to be included:
The directory path of the corresponding data file of the application is read according to the application message;
The data file is obtained in the data subregions of the equipment according to the directory path and is deleted.
6. the device of invalid data is cleared up after a kind of SD card changes, it is characterised in that described device includes:
Detection module, for the current SD card of testing equipment mark and locally stored SD card identify whether it is identical;
Read module, if for differing, reading and being arranged on the SD corresponding with the locally stored SD card mark
The application message of the application on card;
Removing module, for obtaining the corresponding data of the application in the data subregions of the equipment according to the application message
File is simultaneously deleted.
7. device according to claim 6, it is characterised in that described device also includes:
Update module, for updating the locally stored SD card mark according to the mark of the current SD card of the equipment.
8. device according to claim 7, it is characterised in that described device also includes:
Memory module, for after installation application in the current SD card of the equipment, the equipment to be current being locally stored
Corresponding relation between the mark of SD card and the application message of the application installed;
The read module specifically for:
The application message corresponding with the locally stored SD card mark is read according to the corresponding relation.
9. device according to claim 6, it is characterised in that described device also includes:
Whether sending module, the prompting message of the corresponding data file of the application is cleared up for being sent to user for prompting;
Receiver module, for receiving the cleaning for indicating the corresponding data file of the cleaning application that the user sends
Instruction.
10. the device according to claim 6 or 9, it is characterised in that the removing module includes:
Path reading submodule, the directory path for reading the corresponding data file of the application according to the application message;
Submodule is deleted, for obtaining the data file in the data subregions of the equipment according to the directory path and deleting
Remove.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710093891.3A CN106909646B (en) | 2017-02-21 | 2017-02-21 | Method and device for clearing invalid data after SD card changes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710093891.3A CN106909646B (en) | 2017-02-21 | 2017-02-21 | Method and device for clearing invalid data after SD card changes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106909646A true CN106909646A (en) | 2017-06-30 |
CN106909646B CN106909646B (en) | 2020-02-11 |
Family
ID=59207849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710093891.3A Active CN106909646B (en) | 2017-02-21 | 2017-02-21 | Method and device for clearing invalid data after SD card changes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106909646B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170478A (en) * | 2017-11-27 | 2018-06-15 | 拉卡拉支付股份有限公司 | Data clearing method, device, wearable device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092938A (en) * | 2013-01-07 | 2013-05-08 | 浙江鸿程计算机系统有限公司 | Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone |
CN103500116A (en) * | 2013-10-29 | 2014-01-08 | 中科创达软件股份有限公司 | Method and system for clearing data generated by application program |
CN104951507A (en) * | 2015-05-21 | 2015-09-30 | 北京奇虎科技有限公司 | Method and device for clearing up files in mobile terminal applications |
CN105868367A (en) * | 2016-03-30 | 2016-08-17 | 北京奇虎科技有限公司 | Method, server and system for clearing away root paths in Android device |
-
2017
- 2017-02-21 CN CN201710093891.3A patent/CN106909646B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092938A (en) * | 2013-01-07 | 2013-05-08 | 浙江鸿程计算机系统有限公司 | Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone |
CN103500116A (en) * | 2013-10-29 | 2014-01-08 | 中科创达软件股份有限公司 | Method and system for clearing data generated by application program |
CN104951507A (en) * | 2015-05-21 | 2015-09-30 | 北京奇虎科技有限公司 | Method and device for clearing up files in mobile terminal applications |
CN105868367A (en) * | 2016-03-30 | 2016-08-17 | 北京奇虎科技有限公司 | Method, server and system for clearing away root paths in Android device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170478A (en) * | 2017-11-27 | 2018-06-15 | 拉卡拉支付股份有限公司 | Data clearing method, device, wearable device and computer readable storage medium |
CN108170478B (en) * | 2017-11-27 | 2020-07-24 | 拉卡拉支付股份有限公司 | Data clearing method and device, wearable device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106909646B (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634337B (en) | Page recovery, device and mobile terminal | |
CN101809540A (en) | Network context triggers for activating virtualized computer applications | |
CN101876914A (en) | Method for deleting files and mobile terminal | |
CN110460509A (en) | The creation method and device of mail group | |
CN105224421B (en) | Data backup method and device and electronic equipment | |
CN104965731B (en) | A kind of data processing method and electric terminal | |
CN104881279B (en) | A kind of method and device of pocket transmission news | |
CN106325879A (en) | Method and device for installing driver and electronic equipment | |
CN107239311A (en) | Using deployment method and device | |
CN106155746A (en) | Installation file processing method and device and server | |
CN104239091A (en) | File cleaning method and device and terminal | |
CN104615662A (en) | Data processing method and device and terminal device | |
CN106547868A (en) | A kind of file management method and terminal | |
CN106776908A (en) | Data clearing method, device and terminal | |
CN108900441B (en) | Network switching method, first electronic device and readable storage medium | |
CN102831179B (en) | web page processing method and device | |
CN105988776A (en) | Information card processing method and device | |
CN106909646A (en) | SD card clears up the method and device of invalid data after changing | |
CN113328973B (en) | Method and device for detecting invalid Access Control List (ACL) rule | |
CN105827739B (en) | Contact information synchronous method, device, server and system | |
CN105721664A (en) | Short message processing method and apparatus | |
CN105939203A (en) | Table entry synchronization method and device | |
CN108829455A (en) | A kind of device identification acquisition methods, device and equipment | |
CN108920328A (en) | It was found that the method and device of terminal applies change | |
CN107249021A (en) | Method of data synchronization, device, storage medium, computer equipment and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Patentee after: Hisense Video Technology Co.,Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Patentee before: HISENSE ELECTRIC Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |