CN105868367A - Method, server and system for clearing away root paths in Android device - Google Patents
Method, server and system for clearing away root paths in Android device Download PDFInfo
- Publication number
- CN105868367A CN105868367A CN201610191886.1A CN201610191886A CN105868367A CN 105868367 A CN105868367 A CN 105868367A CN 201610191886 A CN201610191886 A CN 201610191886A CN 105868367 A CN105868367 A CN 105868367A
- Authority
- CN
- China
- Prior art keywords
- root path
- path information
- bag name
- corresponding relation
- application
- 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/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method, server and system for clearing away root paths in an Android device. The method includes the steps that multiple pieces of root path information are collected; multiple application package names are collected; the corresponding relation between the root path information and the application package names is established and stored in a corresponding relation database; a clearing request message sent by a client is received, wherein the clearing request message includes application package names of one or more applications in the Android device where the client is located; root path information corresponding the application package names of one or more applications in the Android device where the client is located is acquired from the corresponding relation database according to the clearing request message and issued to the client, so that the client clears away corresponding root paths according to the received root path information. According to the scheme, in the process of clearing away the root paths in the Android device, the root paths to be cleared way are positioned directly according to the corresponding relation between the root paths and the applications without rescanning the whole system catalog, so that clearing efficiency and accuracy are improved, and demands of a user are met.
Description
Technical field
The present invention relates to, be specifically related to method, server and the system of a kind of root path cleared up in Android device.
Background technology
Along with the fast development of Android system, it has the operating system of extensive power of influence in having become as global range,
It is applied to the Android device such as smart mobile phone, panel computer, wearable device, intelligent television, digital camera more and more widely
On, the quantity of Android user is increasing.The increasing income property of Android system, greatly supports the abundant of Android application and extension,
The Android being installed in Android device apply run during, can generate some ephemeral data files and by generate these
Ephemeral data file is saved under the specified path in memory space bigger in the SD card of Android device or Android device, and this refers to
Determining the root path that path is referred to as applying corresponding to this Android, the long-term accumulated of the content in root path will greatly take Android
The resource of equipment, affects the smooth operation of Android device, needs to clear up in time.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State the method for root path, server and the system in the cleaning Android device of problem.
According to one aspect of the present invention, it is provided that a kind of method of root path cleared up in Android device, wherein, the party
Method includes:
Collect multiple root path information;
Collect multiple application bag name;
Set up the corresponding relation of root path information and application bag name, and store in corresponding relation data base;
Receiving the cleaning request message that client sends, described cleaning request message includes: this client place Android
The application bag name of the one or more application in equipment;
According to described cleaning request message, from corresponding relation data base, obtain in this client place Android device
The root path information that individual or multiple application bag name is corresponding, and it is issued to this client so that this client is according to the root received
Routing information clears up corresponding root path.
Alternatively, described root path information of setting up includes with the corresponding relation applying bag name:
For each root path information, extract each nodename comprised in this root path information;For each node name
Claiming, mated with application bag name by this nodename, if there is the application bag name mated with this nodename, then setting up should
The corresponding relation of the application bag name that root path information is mated with this.
Alternatively, after each nodename comprised in this root path information of described extraction, the method farther includes:
It is lowercase versions by the character unification in each nodename, and multiple nodenames after reunification are carried out duplicate removal;
For each nodename obtained after duplicate removal, this nodename is mated with application bag name.
Alternatively, described collection multiple root path information includes: receive the path scanning daily record that each client sends;Its
In, the path scanning result that each client sends includes: the ID that this client is corresponding, this client place Android sets
Each root path information in Bei;
Described collection multiple application bag name includes: receive the application scanning daily record that each client sends;Wherein, each client
The application scanning daily record that end sends includes: the ID that this client is corresponding, respectively should in this client place Android device
Use bag name.
Alternatively, described root path information of setting up includes with the corresponding relation applying bag name:
According to each path scanning daily record received, set up the corresponding relation of root path information and ID;
According to each application scanning daily record received, set up the corresponding relation of ID and application bag name;
According to root path information and the corresponding relation of ID and ID and the corresponding relation of application bag name, build
Thribble routing information and the corresponding relation applying bag name.
Alternatively, described according to root path information and the corresponding relation of ID and ID and application bag name
Corresponding relation, sets up root path information and includes with the corresponding relation applying bag name:
For each root path information, according to the corresponding relation of root path information and ID and ID with should
With the corresponding relation of bag name, calculate the degree of correlation of described root path information and each application bag name, set up described root path letter
Corresponding relation between breath and the application bag name obtaining the highest degree of correlation.
Alternatively, described calculating described root path information includes with the degree of correlation of each application bag name:
The total quantity of ID is N, and the quantity of the application bag name that i-th ID is corresponding is Ai;
Quantity corresponding to the ID of described root path information is C;
For each application bag name, the quantity corresponding to the ID of this application bag name is A;Both corresponding to this application bag
The quantity of the ID that name corresponds to again described root path information is B;The phase of the most described root path information and this application bag name
Pass degree is:
According to another aspect of the present invention, it is provided that the server of a kind of root path cleared up in Android device, these clothes
Business device includes:
Root path information collection unit, is suitable to collect multiple root path information;
Application message collector unit, is suitable to collect multiple application bag name;
Corresponding relation sets up unit, is adapted to set up the corresponding relation of root path information and application bag name, and stores correspondence
In relational database;
Root path cleaning unit, is suitable to receive the cleaning request message that client sends, wraps in described cleaning request message
Include: the application bag name of the one or more application in this client place Android device;According to described cleaning request message, from right
Answer the root path information that the one or more application bag names obtaining in this client place Android device in relational database are corresponding,
And it being issued to this client so that this client clears up corresponding root path according to the root path information received.
Alternatively, described corresponding relation sets up unit, is suitable to, for each root path information, extract in this root path information
The each nodename comprised;For each nodename, this nodename is mated with application bag name, if there is with this
The application bag name of nodename coupling, then set up the corresponding relation of the application bag name that this root path information is mated with this.
Alternatively, described corresponding relation sets up unit, is further adapted for each joint comprised in extracting this root path information
Call the roll after being referred to as, be lowercase versions by the character unification in each nodename, and multiple nodenames after reunification are gone
Weight;For each nodename obtained after duplicate removal, this nodename is mated with application bag name.
Alternatively, described root path information collection unit, be suitable to receive the path scanning daily record that each client sends;Its
In, the path scanning result that each client sends includes: the ID that this client is corresponding, this client place Android sets
Each root path information in Bei;
Described application message collector unit, is suitable to receive the application scanning daily record that each client sends;Wherein, each client
The application scanning daily record that end sends includes: the ID that this client is corresponding, respectively should in this client place Android device
Use bag name.
Alternatively, described corresponding relation sets up unit, is suitable to, according to each path scanning daily record received, set up root path
Information and the corresponding relation of ID;According to each application scanning daily record received, set up ID and application bag name
Corresponding relation;According to root path information and the corresponding relation of ID and ID and the corresponding relation of application bag name,
Set up the corresponding relation of root path information and application bag name.
Alternatively, described corresponding relation sets up unit, is suitable to for each root path information, according to root path information and use
The corresponding relation of family mark and the corresponding relation of ID and application bag name, calculate described root path information and each application
The degree of correlation of bag name, sets up the corresponding relation between described root path information and the application bag name obtaining the highest degree of correlation.
Alternatively, the total quantity of ID is N, and the quantity of the application bag name that i-th ID is corresponding is Ai;
Quantity corresponding to the ID of described root path information is C;
For each application bag name, the quantity corresponding to the ID of this application bag name is A;Both corresponding to this application bag
The quantity of the ID that name corresponds to again described root path information is B;
The most described corresponding relation sets up unit, is suitable to calculate described root path information and this application bag name according to equation below
Degree of correlation:
Foundation it is still another aspect of the present invention to provide the system of a kind of root path cleared up in Android device, this system
Including: the as above server described in any one, and, multiple clients.
According to technical scheme, the cleaning to the root path in Android device, substantially to being arranged on Android
The cleaning applying the ephemeral data file generated in running in equipment, it is desirable to the application institute in cleaning Android device
The ephemeral data file generated, first to find the root path that this application is corresponding, then clear up the content in this root path.For
Know the root path that each application is corresponding, the technical scheme that the present invention provides in server side collection root path information, one
Application bag name is collected on limit, sets up root path information and the corresponding relation of application bag name;One or more when have in Android device
When application needs cleaning, root path information corresponding for these one or more application are issued to client so that client according to
Corresponding root path is cleared up by root path information.Root path in Android device is being entered by the technical scheme that the present invention provides
During row cleaning, it is not necessary to rescan whole system catalogue, directly position for clearance according to root path with the corresponding relation of application
Root path, more directivity and specific aim, improve cleaning efficiency and accuracy, meet user's request.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can
Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the flow process of a kind of method of root path cleared up in Android device
Figure;
Fig. 2 shows showing of the server of a kind of root path cleared up in Android device
It is intended to;
Fig. 3 shows the signal of the system of a kind of root path cleared up in Android device
Figure.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 shows the flow process of a kind of method of root path cleared up in Android device
Figure.As it is shown in figure 1, the method includes:
Step S110, collects multiple root path information.
Root path described in this step refers to: be installed in Android device applies the nonce generated in running
Store path according to file;Ephemeral data file is stored in different root paths by different application.
Step S120, collects multiple application bag name.
Wherein, application bag name is unique mark of its corresponding Android application.
Step S130, sets up the corresponding relation of root path information and application bag name, and stores in corresponding relation data base.
In this step, root path information refers to the corresponding relation of application bag name: if a root path information is corresponding
Root path as the store path of the ephemeral data file of an application application corresponding to bag name, then this root path information with should
Between bag name, there is corresponding relation.
Step S140, receives the cleaning request message that client sends, and described cleaning request message includes: this client
The application bag name of the one or more application in the Android device of place.
Step S150, according to described cleaning request message, obtains this client place Android from corresponding relation data base
The root path information that one or more application bag names in equipment are corresponding, and be issued to this client so that this client according to
The root path information received clears up corresponding root path.
Visible, to the root path in Android device cleaning, substantially applies in fortune be arranged in Android device
The cleaning of the ephemeral data file generated in row process, it is desirable to the ephemeral data literary composition that the application in cleaning Android device is generated
Part, first to find the root path that this application is corresponding, then clear up the content in this root path.In order to know each application correspondence
Root path, the method shown in Fig. 1 is collected root path information, is collected on one side and apply bag name, set up root road in server side
Footpath information and the corresponding relation of application bag name;When there being the one or more application in Android device to need cleaning, by this
Or root path information corresponding to multiple application is issued to client so that client according to root path information to corresponding root path
Clear up.The technical scheme that the present invention provides is when clearing up the root path in Android device, it is not necessary to rescan whole
Individual system directory, directly positions root path for clearance, more directivity and pin according to the corresponding relation of root path Yu application
To property, improve cleaning efficiency and accuracy, meet user's request.
In one embodiment of the invention, root path information can comprise the bag name of application corresponding to this root path, example
As, some root paths are built-in privately owned catalogue form :/data/data/ [packagename]/files ,/data/data/
[packagename]/cache、/data/data/[packagename]/databases、/data/data/
[packagename]/lib etc., and the form of some root paths is external SD card catalogue form :/storage/emulated/
0/Android/data/[packagename]/cache、/storage/emulated/0/Android/data/
[packagename]/files etc.;It can be seen that these root path information comprise the application bag name of correspondence
, and application bag name is one of nodename in these root path information (packagename).
Feature based on this type of root path information, step S130 of method shown in Fig. 1 sets up root path information and application bag
The corresponding relation of name includes: for each root path information, extract each nodename comprised in this root path information;For often
Individual nodename, mates this nodename with application bag name, if there is the application bag name mated with this nodename,
Then set up the corresponding relation of the application bag name that this root path information is mated with this.Wherein, in this root path information of described extraction
After each nodename comprised, it is lowercase versions by the character unification in each nodename, and to multiple nodes after reunification
Title carries out duplicate removal;Again each nodename after duplicate removal is mated with application bag name.
In another embodiment of the present invention, the multiple root path information of step S110 collection of method shown in Fig. 1 include:
Receive the path scanning daily record that each client sends;Wherein, the path scanning result that each client sends includes: this client
Corresponding ID, each root path information in this client place Android device.
Such as, owing to root path is for storing the ephemeral data file that Android application generates, and the form of root path is general
Built-in privately owned catalogue form or external SD card catalogue form so that the form of root path generally from/data or/SDCard or/
Storage down writes, and each client can storage characteristics based on root path and/or the Form Characteristic Android device to place
Carry out path scanning, ID corresponding with this client for the root path information scanned is uploaded onto the server.
Step S120 of method shown in Fig. 1 is collected multiple application bag names and is included: receive the application scanning that each client sends
Daily record;Wherein, the application scanning daily record that each client sends includes: the ID that this client is corresponding, this client institute
Each application bag name in Android device.
Such as, owing to the application bag name of Android application is configured in the configuration file Manifest.xml of this Android application,
Then client can be by under the Application node inside the Manifest.xml of each application in its place Android device
The packageName in face is identified the application bag name of each application, by corresponding for each application this client of Bao Mingyu recognized
ID upload onto the server.
From the foregoing, owing to each client is feature scanning search root path based on root path self, the most each visitor
The application corresponding to each root path information that family end is uploaded is unknown;Again owing to each client is by ID and scanning
To root path information together upload onto the server side, the path scanning daily record of comprehensive each client upload, then can know institute
There is the corresponding relation between corresponding ID and all root path information uploaded of client.Due to each client be based on
The configuration mode of application bag name self searches application bag name, the root corresponding to each application bag name that the most each client is uploaded
Path is unknown, ID and the application bag name scanned together is uploaded onto the server side due to each client again, combines
Close the application scanning daily record of each client upload, then can know ID corresponding to all clients with all upload should
With the corresponding relation between bag name.
Based on this, step S130 of method shown in Fig. 1 is set up root path information and is included with the corresponding relation applying bag name:
Step S131, according to each path scanning daily record received, sets up root path information pass corresponding with ID
System.
In this step, according to each path scanning daily record received, if the client general that an ID is corresponding
The root path information that this ID and one or more scannings obtain uploads onto the server side, then set up this ID with should
Corresponding relation between one or more root path information, the Android being characterized in the client place corresponding to this ID sets
Standby upper, there is the root path that these one or more root path information are corresponding, further, namely corresponding to this ID
Client place Android device on, be mounted with the store path being ephemeral data file with these one or more root paths
Application.
Step S132, according to each application scanning daily record received, sets up the corresponding relation of ID and application bag name.
In this step, according to each application scanning daily record received, if the client general that an ID is corresponding
The application bag name that this ID and one or more scannings obtain uploads onto the server side, then show that this ID is corresponding
The application that these one or more application bag names are corresponding is installed in the Android device at client place.
Step S133, right according to root path information and the corresponding relation of ID and ID and application bag name
Should be related to, set up the corresponding relation of root path information and application bag name.
Specifically, step S133 is according to root path information and the corresponding relation of ID and ID and application bag
The corresponding relation of name, sets up root path information and includes with the corresponding relation applying bag name: for each root path information, according to root
The corresponding relation of routing information and ID and ID and the corresponding relation of application bag name, calculate described root path letter
Breath and the degree of correlation of each application bag name, set up between described root path information and the application bag name obtaining the highest degree of correlation
Corresponding relation.
The concrete reality of above-mentioned calculating root path information and the degree of correlation of application bag name is described with a specific embodiment
Execute process.If the total quantity of ID is N, in known ID with the corresponding relation applying bag name, by i-th user
The quantity of the application bag name that mark is corresponding is expressed as Ai;For root path information X, according to root path information and ID
Corresponding relation, it is possible to know the quantity of ID corresponding to this root path information X, represent with C;Calculating this root path letter
During the degree of correlation of breath X and application bag name Y, according to the corresponding relation of root path information and ID and ID and
The corresponding relation of application bag name, it is possible to know the number of the ID not only corresponding to apply bag name Y but also corresponding to root path information X
Amount, represents with B;It is to say, C illustrates
The occurrence number of such relation, B illustratesThis
The occurrence number of the relation of sample, B is the subset of C, and the ratio of B with C reflects root path information X and associates with application bag name Y
The probability of (occurring in same Android device), i.e. root path information X and the degree of correlation applying bag name Y.
But, in order to ensure the reasonability of this calculating process further, if this programme is it is considered that application bag name Y is corresponding
Application itself be a most popular application, the Android device at nearly all client place is assembled with this application, then
The value that can cause B is bigger;If the application itself applying bag name Y corresponding is the application of individual very unexpected winner, little client institute
Android device on this application is installed, then the value that can cause B is less;It is to say, application application corresponding to bag name Y is common
Degree can affect the probability that application bag name Y associates with root path information X.
In order to avoid this affects, this programme needs an importance regulation coefficient, is used for weighing corresponding to application bag name
The common degree of application.If the Application comparison unexpected winner that application bag name Y is corresponding, but application bag name Y and root path information X
Association height, then reflect application bag name Y high with the degree of correlation of root path information X.Use statistics language performance, it is simply that above-mentioned
On the basis of the ratio of B Yu C, for application bag name Y one weight of distribution, the size of this weight is common with this application bag name Y
Degree is inversely proportional to, then the weight for application bag name Y distribution is: log (appearance total degree/application bag name Y of all application bag names
Occurrence number+1), if the application applying bag name Y corresponding is the most common, application Bao Mingzhong application bag name Y that ID is corresponding
Occurrence number is the most, and denominator is the biggest, and weight is just closer to 0, and why denominator adds 1, is in order to avoid denominator is 0 (i.e. institute
The application Bao Mingzhong having ID corresponding does not occur applying bag name Y), log represents that the value to obtaining is taken the logarithm.
In the present embodiment, the total quantity of ID is N, at the corresponding relation of known ID with application bag name
In, the quantity of application bag name corresponding for i-th ID is expressed as Ai, all application corresponding to the most all ID
The occurrence number of bag name is:I.e. by obtaining cumulative for the quantity of application bag name corresponding for each ID;Root again
Corresponding relation according to ID with application bag name, it is possible to know that the quantity of ID corresponding to application bag name Y is A, also
That is, corresponding the occurring in that of all IDSecondary application Bao Mingzhong, application bag name Y occurs in that A time.Then for answering
By the weight of bag name Y distribution it is:
Based on described above, in the present embodiment, root path information X is ultimately expressed as with the degree of correlation of application bag name Y:
Fig. 2 shows showing of the server of a kind of root path cleared up in Android device
It is intended to.As in figure 2 it is shown, wherein, the server 200 of the root path in this cleaning Android device includes:
Root path information collection unit 210, is suitable to collect multiple root path information.
Application message collector unit 220, is suitable to collect multiple application bag name.
Corresponding relation sets up unit 230, is adapted to set up the corresponding relation of root path information and application bag name, and storage is to right
Answer in relational database.
Root path cleaning unit 240, is suitable to receive the cleaning request message that client sends, in described cleaning request message
Including: the application bag name of the one or more application in this client place Android device;Message is asked according to described cleaning, from
Corresponding relation data base obtains the root path letter that the one or more application bag names in this client place Android device are corresponding
Breath, and it is issued to this client so that this client clears up corresponding root path according to the root path information received.
Visible, to the root path in Android device cleaning, substantially applies in fortune be arranged in Android device
The cleaning of the ephemeral data file generated in row process, it is desirable to the ephemeral data literary composition that the application in cleaning Android device is generated
Part, first to find the root path that this application is corresponding, then clear up the content in this root path.In order to know each application correspondence
Root path, server shown in Fig. 2 is collected root path information, is collected on one side application bag name, sets up root path information and answer
Corresponding relation by bag name;When there being the one or more application in Android device to need cleaning, by these one or more application
Corresponding root path information is issued to client so that corresponding root path is cleared up by client according to root path information.
The technical scheme that the present invention provides is when clearing up the root path in Android device, it is not necessary to rescan whole system mesh
Record, directly positions root path for clearance, more directivity and specific aim according to the corresponding relation of root path Yu application, improves
Cleaning efficiency and accuracy, meet user's request.
In one embodiment of the invention, corresponding relation sets up unit 230, is suitable to, for each root path information, carry
Take each nodename comprised in this root path information;For each nodename, this nodename is carried out with application bag name
Coupling, if there is the application bag name mated with this nodename, then sets up the application bag name that this root path information is mated with this
Corresponding relation.
Wherein, corresponding relation sets up unit 230, is further adapted for each node name comprised in extracting this root path information
After Cheng Zhiing, it is lowercase versions by the character unification in each nodename, and multiple nodenames after reunification are carried out duplicate removal;Right
The each nodename obtained after duplicate removal, mates this nodename with application bag name.
In another embodiment of the present invention, root path information collection unit 210, be suitable to receive what each client sent
Path scanning daily record;Wherein, the path scanning result that each client sends includes: the ID that this client is corresponding, should
Each root path information in the Android device of client place;Application message collector unit 220, is suitable to receive what each client sent
Application scanning daily record;Wherein, the application scanning daily record that each client sends includes: the ID that this client is corresponding, should
Each application bag name in the Android device of client place.
Then corresponding relation sets up unit 230, be suitable to according to receive each path scanning daily record, set up root path information with
The corresponding relation of ID;According to each application scanning daily record received, set up the corresponding pass of ID and application bag name
System;According to root path information and the corresponding relation of ID and ID and the corresponding relation of application bag name, set up root
Routing information and the corresponding relation applying bag name.
Specifically, described corresponding relation sets up unit 230, is suitable to for each root path information, according to root path information
With the corresponding relation of ID and ID and the corresponding relation of application bag name, calculate described root path information with each
The degree of correlation of application bag name, sets up described root path information and obtains the corresponding pass applied between bag name of the highest degree of correlation
System.
Wherein, the total quantity of ID is N, and the quantity of the application bag name that i-th ID is corresponding is Ai;Correspond to
The quantity of the ID of described root path information is C;For each application bag name, corresponding to the ID of this application bag name
Quantity be A;Not only the quantity corresponding to this application bag name but also corresponding to the ID of described root path information was B;
The most described corresponding relation sets up unit 230, is suitable to calculate described root path information and this application according to equation below
The degree of correlation of bag name:
It should be noted that each embodiment of server shown in Fig. 2 is corresponding identical with each embodiment of method shown in Fig. 1,
The most describe in detail, do not repeat them here.
Fig. 3 shows the signal of the system of a kind of root path cleared up in Android device
Figure.As it is shown on figure 3, the system 300 of the root path in this cleaning Android device includes: the clothes of the root path in cleaning Android device
Business device 310, and, the client 320 of the root path in multiple cleaning Android device.Wherein, cleaning Android device Zhong Gen road
The server 310 in footpath is corresponding with the server shown in figure 2 above identical.
Visible, to the root path in Android device cleaning, substantially applies in fortune be arranged in Android device
The cleaning of the ephemeral data file generated in row process, it is desirable to the ephemeral data literary composition that the application in cleaning Android device is generated
Part, first to find the root path that this application is corresponding, then clear up the content in this root path.In order to know each application correspondence
Root path, the technical scheme that the present invention provides collects root path information in server side, and collection on one side is applied bag name, built
Thribble routing information and the corresponding relation of application bag name;When there being the one or more application in Android device to need cleaning, will
Root path information corresponding to these one or more application are issued to client so that client according to root path information to accordingly
Root path is cleared up.The technical scheme that the present invention provides is when clearing up the root path in Android device, it is not necessary to again
Scanning whole system catalogue, directly positions root path for clearance according to the corresponding relation of root path Yu application, more points to
Property and specific aim, improve cleaning efficiency and accuracy, meet user's request.
It should be understood that
Algorithm and display are not intrinsic to any certain computer, virtual bench or miscellaneous equipment relevant provided herein.
Various fexible units can also be used together with based on teaching in this.As described above, construct required by this kind of device
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint
One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize the root path in cleaning Android device according to embodiments of the present invention
Server and system in the some or all functions of some or all parts.The present invention is also implemented as holding
Part or all equipment of row method as described herein or device program (such as, computer program and computer
Program product).The program of such present invention of realization can store on a computer-readable medium, or can have one or
The form of the multiple signal of person.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or
Person provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
The invention discloses B1, a kind of method of root path cleared up in Android device, wherein, the method includes:
Collect multiple root path information;
Collect multiple application bag name;
Set up the corresponding relation of root path information and application bag name, and store in corresponding relation data base;
Receiving the cleaning request message that client sends, described cleaning request message includes: this client place Android
The application bag name of the one or more application in equipment;
According to described cleaning request message, from corresponding relation data base, obtain in this client place Android device
The root path information that individual or multiple application bag name is corresponding, and it is issued to this client so that this client is according to the root received
Routing information clears up corresponding root path.
B2, method as described in B1, wherein, the described corresponding relation setting up root path information and application bag name includes:
For each root path information, extract each nodename comprised in this root path information;For each node name
Claiming, mated with application bag name by this nodename, if there is the application bag name mated with this nodename, then setting up should
The corresponding relation of the application bag name that root path information is mated with this.
B3, method as described in B2, wherein, after each nodename comprised in this root path information of described extraction,
The method farther includes:
It is lowercase versions by the character unification in each nodename, and multiple nodenames after reunification are carried out duplicate removal;
For each nodename obtained after duplicate removal, this nodename is mated with application bag name.
B4, method as described in B1, wherein,
Described collection multiple root path information includes: receive the path scanning daily record that each client sends;Wherein, Mei Geke
The path scanning result that family end sends includes: the ID that this client is corresponding, each in this client place Android device
Root path information;
Described collection multiple application bag name includes: receive the application scanning daily record that each client sends;Wherein, each client
The application scanning daily record that end sends includes: the ID that this client is corresponding, respectively should in this client place Android device
Use bag name.
B5, method as described in B4, wherein, the described corresponding relation setting up root path information and application bag name includes:
According to each path scanning daily record received, set up the corresponding relation of root path information and ID;
According to each application scanning daily record received, set up the corresponding relation of ID and application bag name;
According to root path information and the corresponding relation of ID and ID and the corresponding relation of application bag name, build
Thribble routing information and the corresponding relation applying bag name.
B6, method as described in B5, wherein, the described corresponding relation according to root path information and ID and user
Mark and the corresponding relation of application bag name, set up root path information and include with the corresponding relation applying bag name:
For each root path information, according to the corresponding relation of root path information and ID and ID with should
With the corresponding relation of bag name, calculate the degree of correlation of described root path information and each application bag name, set up described root path letter
Corresponding relation between breath and the application bag name obtaining the highest degree of correlation.
B7, method as described in B6, wherein, the degree of correlation of described calculating described root path information and each application bag name
Including:
The total quantity of ID is N, and the quantity of the application bag name that i-th ID is corresponding is Ai;
Quantity corresponding to the ID of described root path information is C;
For each application bag name, the quantity corresponding to the ID of this application bag name is A;Both corresponding to this application bag
The quantity of the ID that name corresponds to again described root path information is B;The phase of the most described root path information and this application bag name
Pass degree is:
The invention also discloses C8, the server of a kind of root path cleared up in Android device, wherein, this server bag
Include:
Root path information collection unit, is suitable to collect multiple root path information;
Application message collector unit, is suitable to collect multiple application bag name;
Corresponding relation sets up unit, is adapted to set up the corresponding relation of root path information and application bag name, and stores correspondence
In relational database;
Root path cleaning unit, is suitable to receive the cleaning request message that client sends, wraps in described cleaning request message
Include: the application bag name of the one or more application in this client place Android device;According to described cleaning request message, from right
Answer the root path information that the one or more application bag names obtaining in this client place Android device in relational database are corresponding,
And it being issued to this client so that this client clears up corresponding root path according to the root path information received.
C9, server as described in C8, wherein,
Described corresponding relation sets up unit, be suitable to for each root path information, extracts and comprises in this root path information
Each nodename;For each nodename, this nodename is mated with application bag name, if there is with this node name
Claim the application bag name of coupling, then set up the corresponding relation of the application bag name that this root path information is mated with this.
C10, server as described in C9, wherein,
Described corresponding relation sets up unit, and each node name being further adapted for comprising in extracting this root path information is referred to as
After, it is lowercase versions by the character unification in each nodename, and multiple nodenames after reunification are carried out duplicate removal;For going
The each nodename obtained after Chong, mates this nodename with application bag name.
C11, server as described in C8, wherein,
Described root path information collection unit, is suitable to receive the path scanning daily record that each client sends;Wherein, Mei Geke
The path scanning result that family end sends includes: the ID that this client is corresponding, each in this client place Android device
Root path information;
Described application message collector unit, is suitable to receive the application scanning daily record that each client sends;Wherein, each client
The application scanning daily record that end sends includes: the ID that this client is corresponding, respectively should in this client place Android device
Use bag name.
C12, server as described in C11, wherein,
Described corresponding relation sets up unit, be suitable to according to receive each path scanning daily record, set up root path information with
The corresponding relation of ID;According to each application scanning daily record received, set up the corresponding pass of ID and application bag name
System;According to root path information and the corresponding relation of ID and ID and the corresponding relation of application bag name, set up root
Routing information and the corresponding relation applying bag name.
C13, server as described in C12, wherein,
Described corresponding relation sets up unit, is suitable to for each root path information, according to root path information and ID
Corresponding relation and the corresponding relation of ID and application bag name, calculate described root path information and each application bag name
Degree of correlation, sets up the corresponding relation between described root path information and the application bag name obtaining the highest degree of correlation.
C14, server as described in C13, wherein,
The total quantity of ID is N, and the quantity of the application bag name that i-th ID is corresponding is Ai;
Quantity corresponding to the ID of described root path information is C;
For each application bag name, the quantity corresponding to the ID of this application bag name is A;Both corresponding to this application bag
The quantity of the ID that name corresponds to again described root path information is B;
The most described corresponding relation sets up unit, is suitable to calculate described root path information and this application bag name according to equation below
Degree of correlation:
The invention also discloses D15, the system of a kind of root path cleared up in Android device, wherein, this system includes: as
Server according to any one of C8-C14, and, multiple clients.
Claims (10)
1. the method clearing up root path in Android device, wherein, the method includes:
Collect multiple root path information;
Collect multiple application bag name;
Set up the corresponding relation of root path information and application bag name, and store in corresponding relation data base;
Receiving the cleaning request message that client sends, described cleaning request message includes: this client place Android device
In the application bag name of one or more application;
According to described cleaning request message, obtain from corresponding relation data base one in this client place Android device or
The root path information that multiple application bag names are corresponding, and it is issued to this client so that this client is according to the root path received
Information clears up corresponding root path.
The most described root path information of setting up includes with the corresponding relation applying bag name:
For each root path information, extract each nodename comprised in this root path information;For each nodename, will
This nodename mates with application bag name, if there is the application bag name mated with this nodename, then sets up this root road
The corresponding relation of the application bag name that footpath information is mated with this.
3. method as claimed in claim 2, wherein, each node name comprised in this root path information of described extraction is referred to as
After, the method farther includes:
It is lowercase versions by the character unification in each nodename, and multiple nodenames after reunification are carried out duplicate removal;
For each nodename obtained after duplicate removal, this nodename is mated with application bag name.
The most the method for claim 1, wherein
Described collection multiple root path information includes: receive the path scanning daily record that each client sends;Wherein, each client
The path scanning result sent includes: the ID that this client is corresponding, this Android device Zhong Gegen road, client place
Footpath information;
Described collection multiple application bag name includes: receive the application scanning daily record that each client sends;Wherein, each client is sent out
The application scanning daily record sent includes: the ID that this client is corresponding, respectively applies bag in this client place Android device
Name.
5. method as claimed in claim 4, wherein, described root path information of setting up includes with the corresponding relation applying bag name:
According to each path scanning daily record received, set up the corresponding relation of root path information and ID;
According to each application scanning daily record received, set up the corresponding relation of ID and application bag name;
According to root path information and the corresponding relation of ID and ID and the corresponding relation of application bag name, set up root
Routing information and the corresponding relation applying bag name.
6. method as claimed in claim 5, wherein, described according to root path information and the corresponding relation of ID and use
Family mark and the corresponding relation of application bag name, set up root path information and include with the corresponding relation applying bag name:
For each root path information, according to root path information and the corresponding relation of ID and ID and application bag
Name corresponding relation, calculate the degree of correlation of described root path information and each application bag name, set up described root path information and
Obtain the corresponding relation between the application bag name of the highest degree of correlation.
7. method as claimed in claim 6, wherein, the relevant journey of described calculating described root path information and each application bag name
Degree includes:
The total quantity of ID is N, and the quantity of the application bag name that i-th ID is corresponding is Ai;
Quantity corresponding to the ID of described root path information is C;
For each application bag name, the quantity corresponding to the ID of this application bag name is A;Not only corresponding to this application bag name but also
Quantity corresponding to the ID of described root path information is B;The relevant journey of the most described root path information and this application bag name
Degree is:
8. clearing up a server for root path in Android device, wherein, this server includes:
Root path information collection unit, is suitable to collect multiple root path information;
Application message collector unit, is suitable to collect multiple application bag name;
Corresponding relation sets up unit, is adapted to set up the corresponding relation of root path information and application bag name, and stores corresponding relation
In data base;
Root path cleaning unit, is suitable to receive the cleaning request message that client sends, and described cleaning request message includes: should
The application bag name of the one or more application in the Android device of client place;According to described cleaning request message, close from correspondence
It is that data base obtains the root path information that the one or more application bag names in this client place Android device are corresponding, and under
Send to this client so that this client clears up corresponding root path according to the root path information received.
9. server as claimed in claim 8, wherein,
Described corresponding relation sets up unit, is suitable to, for each root path information, extract each joint comprised in this root path information
Point title;For each nodename, this nodename is mated with application bag name, if there is with this nodename
The application bag name joined, then set up the corresponding relation of the application bag name that this root path information is mated with this.
10. clearing up a system for root path in Android device, wherein, this system includes: as any one of claim 8-9
Described server, and, multiple clients.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610191886.1A CN105868367B (en) | 2016-03-30 | 2016-03-30 | Method, server and the system of a kind of root path in cleaning Android device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610191886.1A CN105868367B (en) | 2016-03-30 | 2016-03-30 | Method, server and the system of a kind of root path in cleaning Android device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105868367A true CN105868367A (en) | 2016-08-17 |
CN105868367B CN105868367B (en) | 2019-06-18 |
Family
ID=56627267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610191886.1A Active CN105868367B (en) | 2016-03-30 | 2016-03-30 | Method, server and the system of a kind of root path in cleaning Android device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105868367B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909646A (en) * | 2017-02-21 | 2017-06-30 | 青岛海信电器股份有限公司 | SD card clears up the method and device of invalid data after changing |
CN109669779A (en) * | 2018-12-25 | 2019-04-23 | 上海碳蓝网络科技有限公司 | For determining the cleaning path of data, the method and apparatus of cleaning data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559276A (en) * | 2013-11-05 | 2014-02-05 | 广东欧珀移动通信有限公司 | Method and device for clearing useless files |
CN103645914A (en) * | 2013-11-26 | 2014-03-19 | 北京奇虎科技有限公司 | Software cleaning method and device |
CN103677880A (en) * | 2012-09-17 | 2014-03-26 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104754002A (en) * | 2013-12-30 | 2015-07-01 | 北京金山网络科技有限公司 | File cleaning method and device, mobile terminal and cloud-side server |
CN105205150A (en) * | 2015-09-23 | 2015-12-30 | 北京金山安全软件有限公司 | Method and device for judging corresponding relation between path and package name and electronic equipment |
-
2016
- 2016-03-30 CN CN201610191886.1A patent/CN105868367B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677880A (en) * | 2012-09-17 | 2014-03-26 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103559276A (en) * | 2013-11-05 | 2014-02-05 | 广东欧珀移动通信有限公司 | Method and device for clearing useless files |
CN103645914A (en) * | 2013-11-26 | 2014-03-19 | 北京奇虎科技有限公司 | Software cleaning method and device |
CN104754002A (en) * | 2013-12-30 | 2015-07-01 | 北京金山网络科技有限公司 | File cleaning method and device, mobile terminal and cloud-side server |
CN105205150A (en) * | 2015-09-23 | 2015-12-30 | 北京金山安全软件有限公司 | Method and device for judging corresponding relation between path and package name and electronic equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909646A (en) * | 2017-02-21 | 2017-06-30 | 青岛海信电器股份有限公司 | SD card clears up the method and device of invalid data after changing |
CN106909646B (en) * | 2017-02-21 | 2020-02-11 | 青岛海信电器股份有限公司 | Method and device for clearing invalid data after SD card changes |
CN109669779A (en) * | 2018-12-25 | 2019-04-23 | 上海碳蓝网络科技有限公司 | For determining the cleaning path of data, the method and apparatus of cleaning data |
Also Published As
Publication number | Publication date |
---|---|
CN105868367B (en) | 2019-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Rahman et al. | Towards a context-aware IDE-based meta search engine for recommendation about programming errors and exceptions | |
CN102567511B (en) | Method and device for automatically recommending application | |
CN109902224A (en) | Source of houses recommended method, device, equipment and medium based on user behavior analysis | |
US20130185294A1 (en) | Recommender system, recommendation method, and program | |
CN103488681A (en) | Slash label | |
US20080140641A1 (en) | Knowledge and interests based search term ranking for search results validation | |
CN105095335A (en) | Ranking system for search results on network | |
CN103744849A (en) | Method and device for automatic recommendation application | |
CN110083762A (en) | Source of houses searching method, device, equipment and computer readable storage medium | |
CN103064852A (en) | Website statistical information processing method and website statistical information processing system | |
CN103699534B (en) | The display methods and device of data object in system directory | |
CN107276842A (en) | Interface test method and device and electronic equipment | |
CN111159563A (en) | Method, device and equipment for determining user interest point information and storage medium | |
CN105721519B (en) | A kind of webpage data acquiring method, apparatus and system | |
CN105868367A (en) | Method, server and system for clearing away root paths in Android device | |
JP2006053616A (en) | Server device, web site recommendation method and program | |
KR20130064447A (en) | Method and appratus for providing search results using similarity between inclinations of users and device | |
CN104820719A (en) | Web service creditworthiness measuring method based on context data of user | |
CN107153690A (en) | Content delivery method and device | |
CN110188277A (en) | A kind of recommended method and device of resource | |
CN103577481A (en) | Advertising data search method and device | |
CN103309900A (en) | Personalized multidimensional document sequencing method and system | |
CN103605735B (en) | website data analysis method and device | |
CN104392000B (en) | Determine the method and apparatus that mobile site captures quota | |
CN110020101B (en) | Method, device and system for restoring real-time search scene |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220720 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |