CN105868367B - Method, server and the system of a kind of root path in cleaning Android device - Google Patents
Method, server and the system of a kind of root path in cleaning Android device Download PDFInfo
- Publication number
- CN105868367B CN105868367B CN201610191886.1A CN201610191886A CN105868367B CN 105868367 B CN105868367 B CN 105868367B CN 201610191886 A CN201610191886 A CN 201610191886A CN 105868367 B CN105868367 B CN 105868367B
- Authority
- CN
- China
- Prior art keywords
- root path
- path information
- packet name
- client
- 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.)
- Active
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)
- Stored Programmes (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses method, server and the systems of the root path in a kind of cleaning Android device, this method comprises: collecting multiple root path information;Collect multiple application packet names;The corresponding relationship of root path information and application packet name is established, and is stored into corresponding relation database;The cleaning request message of client transmission is received, includes: one or more applications where the client in Android device in the cleaning request message using packet name;According to the cleaning request message, from the corresponding root path information of one or more application packet name obtained in corresponding relation database where the client in Android device, and it is issued to the client, so that the client clears up corresponding root path according to the root path information received.This programme, without rescaning whole system catalogue, root path for clearance is directly positioned according to root path and the corresponding relationship of application, improves cleaning efficiency and accuracy, meets user demand when clearing up the root path in Android device.
Description
Technical field
The present invention relates to, and in particular to a kind of method, server and system for clearing up the root path in Android device.
Background technique
With the fast development of Android system, it has become the operating system in global range with extensive influence power,
It is applied to the Android devices such as smart phone, tablet computer, wearable device, smart television, digital camera more and more widely
On, the quantity of Android user is increasing.The open source of Android system greatly supports the abundant and extension of Android application,
It is installed on Android application in Android device in the process of running, some ephemeral data files and these by generation can be generated
Ephemeral data file is stored under the specified path in the SD card or Android device of Android device in biggish memory space, this refers to
Determine path to be referred to as corresponding to the root path of Android application, the long-term accumulated of the content in root path will greatly occupy Android
The resource of equipment influences the smooth operation of Android device, needs to be cleared up in time.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State method, server and the system of the root path in the cleaning Android device of problem.
According to one aspect of the present invention, a kind of method for clearing up the root path in Android device is provided, wherein the party
Method includes:
Collect multiple root path information;
Collect multiple application packet names;
The corresponding relationship of root path information and application packet name is established, and is stored into corresponding relation database;
The cleaning request message that client is sent is received, includes: Android where the client in the cleaning request message
What the one or more in equipment was applied applies packet name;
According to the cleaning request message, from obtained in corresponding relation database where the client in Android device one
The corresponding root path information of a or multiple application packet names, and it is issued to the client, so that the client is according to the root received
Routing information clears up corresponding root path.
Optionally, described to establish root path information and include: using the corresponding relationship of packet name
For each root path information, each nodename for including in the root path information is extracted;For each node name
Claim, which matched with using packet name, if there is with the matched application packet name of the nodename, then establish this
The corresponding relationship of root path information and the matched application packet name.
Optionally, after each nodename for including in described extraction root path information, this method further comprises:
Character in each nodename is unified for lowercase versions, and duplicate removal is carried out to multiple nodenames after reunification;
For each nodename obtained after duplicate removal, which is matched with using packet name.
Optionally, described to collect the path scanning log that multiple root path information include: each client transmission of reception;Its
In, the path scanning result that each client is sent includes: the corresponding user identifier of the client, and Android where the client is set
Each root path information in standby;
It is described to collect the application scanning log that multiple application packet names include: each client transmission of reception;Wherein, each client
The application scanning log that end is sent includes: the corresponding user identifier of the client, respectively answering in Android device where the client
With packet name.
Optionally, described to establish root path information and include: using the corresponding relationship of packet name
Log is scanned according to each path received, establishes the corresponding relationship of root path information and user identifier;
According to each application scanning log received, the corresponding relationship of user identifier and application packet name is established;
According to the corresponding relationship of the corresponding relationship and user identifier of root path information and user identifier and application packet name, build
The corresponding relationship of thribble routing information and application packet name.
Optionally, the corresponding relationship and user identifier according to root path information and user identifier and application packet name
Corresponding relationship, establishes root path information and the corresponding relationship of application packet name includes:
For each root path information, according to the corresponding relationship and user identifier of root path information and user identifier with answer
With the corresponding relationship of packet name, the degree of correlation of the root path information Yu each application packet name is calculated, establishes the root path letter
Breath and obtain highest degree of correlation using the corresponding relationship between packet name.
Optionally, the degree of correlation for calculating the root path information and each application packet name includes:
The total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;
The quantity of user identifier corresponding to the root path information is C;
For each application packet name, the quantity corresponding to the user identifier using packet name is A;Both the application packet had been corresponded to
The quantity that name corresponds to the user identifier of the root path information again is B;Then the root path information applies the phase of packet name with this
Pass degree are as follows:
According to another aspect of the invention, a kind of server for clearing up the root path in Android device, the clothes are provided
Business device include:
Root path information collection unit is suitable for collecting multiple root path information;
Application message collector unit is suitable for collecting multiple application packet names;
Correspondence relationship establishing unit, is adapted to set up the corresponding relationship of root path information and application packet name, and stores to correspondence
In relational database;
Root path clears up unit, the cleaning request message sent suitable for receiving client, wraps in the cleaning request message
Include: what the one or more where the client in Android device was applied applies packet name;According to the cleaning request message, from right
The corresponding root path information of one or more application packet name where obtaining the client in relational database in Android device is answered,
And it is issued to the client, so that the client clears up corresponding root path according to the root path information received.
Optionally, the correspondence relationship establishing unit is suitable for extracting in the root path information each root path information
Each nodename for including;For each nodename, which is matched with using packet name, if there is with this
The matched application packet name of nodename, then establish the corresponding relationship of the root path information Yu the matched application packet name.
Optionally, the correspondence relationship establishing unit is further adapted for each section for including in extracting the root path information
It calls the roll after being referred to as, the character in each nodename is unified for lowercase versions, and go to multiple nodenames after reunification
Weight;For each nodename obtained after duplicate removal, which is matched with using packet name.
Optionally, the root path information collection unit scans log suitable for receiving the path that each client is sent;Its
In, the path scanning result that each client is sent includes: the corresponding user identifier of the client, and Android where the client is set
Each root path information in standby;
The application message collector unit, the application scanning log sent suitable for receiving each client;Wherein, each client
The application scanning log that end is sent includes: the corresponding user identifier of the client, respectively answering in Android device where the client
With packet name.
Optionally, the correspondence relationship establishing unit establishes root path suitable for scanning log according to each path received
The corresponding relationship of information and user identifier;According to each application scanning log received, user identifier is established and using packet name
Corresponding relationship;According to the corresponding relationship and user identifier of root path information and user identifier and application packet name corresponding relationship,
Establish the corresponding relationship of root path information and application packet name.
Optionally, the correspondence relationship establishing unit is suitable for according to root path information and using each root path information
The corresponding relationship and user identifier of family mark and the corresponding relationship of application packet name, calculate the root path information and each application
The degree of correlation of packet name, establish the root path information and obtain highest degree of correlation using the corresponding relationship between packet name.
Optionally, the total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;
The quantity of user identifier corresponding to the root path information is C;
For each application packet name, the quantity corresponding to the user identifier using packet name is A;Both the application packet had been corresponded to
The quantity that name corresponds to the user identifier of the root path information again is B;
The then correspondence relationship establishing unit applies packet name with this suitable for calculating the root path information according to the following formula
Degree of correlation:
Another aspect according to the present invention provides a kind of system for clearing up the root path in Android device, the system
It include: described in any item servers as above, and, multiple client.
According to the technique and scheme of the present invention, to the cleaning of the root path in Android device, substantially to being mounted on Android
The cleaning using ephemeral data file generated in the process of running in equipment, it is desirable to clear up the application institute in Android device
The ephemeral data file of generation will first find this using corresponding root path, then clear up the content in the root path.For
Know the corresponding root path of each application, technical solution provided by the invention collects root path information in server side on one side, and one
Side, which is collected, applies packet name, establishes the corresponding relationship of root path information and application packet name;When there is one or more of Android device
When using needing to clear up, the corresponding root path information of the one or more application is issued to client so that client according to
Root path information clears up corresponding root path.Technical solution provided by the invention to the root path in Android device into
When row cleaning, without rescaning whole system catalogue, directly positioned according to root path and the corresponding relationship of application for clearance
Root path, more directive property and specific aim improve cleaning efficiency and accuracy, meet user demand.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the process of the method for the root path in a kind of cleaning Android device according to an embodiment of the invention
Figure;
Fig. 2 shows a kind of showing for server for the root path cleared up in Android device according to an embodiment of the invention
It is intended to;
Fig. 3 shows the signal of the system of the root path in a kind of cleaning Android device according to an embodiment of the invention
Figure.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1 shows the process of the method for the root path in a kind of cleaning Android device according to an embodiment of the invention
Figure.As shown in Figure 1, this method comprises:
Step S110 collects multiple root path information.
Root path described in this step refers to: the nonce that the application being installed in Android device generates in the process of running
According to the store path of file;Ephemeral data file is stored in different root paths by different applications.
Step S120 collects multiple application packet names.
It wherein, is the unique identification of Android application corresponding to it using packet name.
Step S130, establishes the corresponding relationship of root path information and application packet name, and stores into corresponding relation database.
In this step, root path information refers to the corresponding relationship of application packet name: if a root path information is corresponding
Store path of the root path as the ephemeral data file of the corresponding application of an application packet name, then the root path information is answered with this
With between packet name have corresponding relationship.
Step S140 receives the cleaning request message that client is sent, includes: the client in the cleaning request message
What the one or more in the Android device of place was applied applies packet name.
Step S150 obtains Android where the client according to the cleaning request message from corresponding relation database
The corresponding root path information of one or more application packet name in equipment, and be issued to the client so that the client according to
The root path information received clears up corresponding root path.
As it can be seen that the cleaning to the root path in Android device, substantially transporting to being mounted on applying in Android device
The cleaning of ephemeral data file generated during row, it is desirable to clear up in Android device using ephemeral data text generated
Part will first find this using corresponding root path, then clear up the content in the root path.In order to know that each application is corresponding
Root path, method shown in FIG. 1 collects root path information in server side on one side, collects apply packet name on one side, establish root road
The corresponding relationship of diameter information and application packet name;When there is one or more applications in Android device to need to clear up, by this
Or the corresponding root path information of multiple applications is issued to client, so that client is according to root path information to corresponding root path
It is cleared up.Technical solution provided by the invention is whole without rescaning when clearing up the root path in Android device
A system directory directly positions root path for clearance, more directive property and needle according to root path and the corresponding relationship of application
To property, cleaning efficiency and accuracy are improved, meets user demand.
It in one embodiment of the invention, can include the packet name of the corresponding application of the root path, example in root path information
Such 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/
The form of [packagename]/lib etc. and some root paths is external SD card catalogue form :/storage/emulated/
0/Android/data/[packagename]/cache、/storage/emulated/0/Android/data/
[packagename]/files etc.;As can be seen that including corresponding application packet name in these root path information
It (packagename), is and using packet name one of the nodename in these root path information.
The characteristics of based on such root path information, the step S130 of method shown in Fig. 1 establishes root path information and application is wrapped
The corresponding relationship of name includes: to extract each nodename for including for each root path information in the root path information;For every
A nodename matches the nodename with using packet name, if there is with the matched application packet name of the nodename,
Then establish the corresponding relationship of the root path information Yu the matched application packet name.Wherein, in described extraction root path information
After each nodename for including, the character in each nodename is unified for lowercase versions, and to multiple nodes after reunification
Title carries out duplicate removal;Each nodename after duplicate removal is matched with using packet name again.
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 log that each client is sent;Wherein, the path scanning result that each client is sent includes: the client
Corresponding user identifier, each root path information where the client in Android device.
For example, since root path is used to store 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 usually from/data or/SDCard or/
Storage writes down, each client can storage characteristics based on root path and/or Form Characteristic to the Android device at place
Path scanning is carried out, the root path information scanned user identifier corresponding with the client is uploaded to server.
It includes: the application scanning for receiving each client and sending that the step S120 of method shown in Fig. 1, which collects multiple application packet names,
Log;Wherein, the application scanning log that each client is sent includes: the corresponding user identifier of the client, the client institute
Each application packet name in Android device.
For example, being configured in the configuration file Manifest.xml of Android application using packet name due to Android application,
Then client can be by under the Application node inside the Manifest.xml respectively applied in Android device where it
The packageName in face applies packet name identify each application, and each application Bao Mingyu client recognized is corresponding
User identifier be uploaded to server.
It can be seen from the above, due to the characteristics of each client is based on root path itself scanning search root path, then each visitor
Application is unknown corresponding to each root path information that family end is uploaded;Again since each client by user identifier and scans
To root path information be uploaded to server side together, log is scanned in the path that comprehensive each client uploads, then can know institute
There is the corresponding relationship between the corresponding user identifier of client and the root path information of all uploads.Since each client is to be based on
It searches using the configuration mode of packet name itself using packet name, then root corresponding to each application packet name that each client is uploaded
Path is unknown, but due to each client by user identifier with scan application packet name together be uploaded to server side, it is comprehensive
The application scanning log that each client uploads is closed, then can know answering for the corresponding user identifier of all clients and all uploads
With the corresponding relationship between packet name.
Based on this, the step S130 of method shown in Fig. 1 establishes root path information and the corresponding relationship of application packet name includes:
Step S131 scans log according to each path received, establishes root path information pass corresponding with user identifier
System.
In this step, log is scanned according to each path received, if the corresponding client of a user identifier will
The root path information that the user identifier and one or more scannings obtain is uploaded to server side, then establishes the user identifier and be somebody's turn to do
Corresponding relationship between one or more root path information, the Android where being characterized in client corresponding to the user identifier are set
Standby upper, there are the corresponding root paths of one or more root path information, further, that is, corresponding to the user identifier
Client where Android device on, be mounted with using the one or more root path as the store path of ephemeral data file
Using.
Step S132 establishes the corresponding relationship of user identifier and application packet name according to each application scanning log received.
In this step, according to each application scanning log received, if the corresponding client of a user identifier will
What the user identifier and one or more scannings obtained is uploaded to server side using packet name, then shows that the user identifier is corresponding
The one or more application packet name corresponding application is installed in the Android device where client.
Step S133, according to pair of the corresponding relationship and user identifier of root path information and user identifier and application packet name
It should be related to, establish the corresponding relationship of root path information and application packet name.
Specifically, step S133 is wrapped according to the corresponding relationship and user identifier and application of root path information and user identifier
The corresponding relationship of name, the corresponding relationship for establishing root path information and application packet name includes: for each root path information, according to root
The corresponding relationship and user identifier of routing information and user identifier and the corresponding relationship of application packet name, calculate the root path letter
The degree of correlation of breath and each application packet name is established between the root path information and the application packet name for obtaining highest degree of correlation
Corresponding relationship.
With a specific embodiment come illustrate above-mentioned calculating root path information with application packet name degree of correlation it is specific
Implementation process.If the total quantity of user identifier is N, in the corresponding relationship of known user identifier and application packet name, by i-th
The quantity of the corresponding application packet name of user identifier is expressed as Ai;For a root path information X, according to root path information and user
The corresponding relationship of mark can know the quantity of the user identifier corresponding to root path information X, be indicated with C;It should calculating
When the degree of correlation of root path information X and an application packet name Y, according to the corresponding relationship of root path information and user identifier and
The corresponding relationship of user identifier and application packet name, can know the use for not only corresponding to using packet name Y but also corresponding to root path information X
The quantity of family mark, is indicated with B;That is, C is illustrated The frequency of occurrence of such relationship, B are illustratedThe frequency of occurrence of such relationship, B are the sons of C
Collection, what B and the ratio of C reflected that root path information X and application packet name Y be associated with and (occur in the same Android device) can
It can property, i.e. root path information X and the degree of correlation using packet name Y.
However, the reasonability in order to further ensure the calculating process, this programme is it is considered that if corresponding using packet name Y
Using itself being a very popular application, be assembled with the application in the Android device where nearly all client, then
The value that will lead to B is larger;If using the corresponding application of packet name Y being in itself the application of a very unexpected winner, seldom client institute
Android device on the application is installed, then the value that will lead to B is smaller;That is, using the common of the corresponding application of packet name Y
Degree will affect a possibility that being associated with using packet name Y with root path information X.
In order to avoid this influence, this programme needs an importance regulation coefficient, for measuring using corresponding to packet name
Application common degree.If comparing unexpected winner using the corresponding application of packet name Y, but apply packet name Y's and root path information X
Association is high, then reflects high using the degree of correlation of packet name Y and root path information X.It is expressed with statistics language, is exactly above-mentioned
On the basis of the ratio of B and C, a weight is distributed for application packet name Y, the size of the weight is with this using the common of packet name Y
Degree is inversely proportional, then is the weight of application packet name Y distribution are as follows: and log (the appearance total degree of all application packet names/using packet name Y's
Frequency of occurrence+1), if more common using the corresponding application of packet name Y, user identifier is corresponding using Bao Mingzhong application packet name Y's
Frequency of occurrence is more, and denominator is bigger, and for weight just closer to 0, why denominator will add 1, be in order to avoid denominator is 0 (i.e. institute
There is the corresponding application Bao Mingzhong of user identifier not occur using packet name Y), log expression takes logarithm to obtained value.
In the present embodiment, the total quantity of user identifier is N, in the corresponding relationship of known user identifier and application packet name
In, the quantity of the corresponding application packet name of i-th of user identifier is expressed as Ai, then all applications corresponding to all user identifiers
The frequency of occurrence of packet name is:Obtained by the way that the quantity of the corresponding application packet name of each user identifier adds up;Root again
According to the corresponding relationship of user identifier and application packet name, it can know that corresponding to using the quantity of the user identifier of packet name Y is A,
Occur that is all user identifiers are correspondingSecondary applies Bao Mingzhong, occurs A times using packet name Y.It is then to answer
The weight distributed with packet name Y are as follows:
Based on above description, root path information X and the degree of correlation of application packet name Y are ultimately expressed as in the present embodiment:
Fig. 2 shows a kind of showing for server for the root path cleared up in Android device according to an embodiment of the invention
It is intended to.As shown in Figure 2, wherein the server 200 of the root path in the cleaning Android device includes:
Root path information collection unit 210 is suitable for collecting multiple root path information.
Application message collector unit 220 is suitable for collecting multiple application packet names.
Correspondence relationship establishing unit 230, be adapted to set up root path information and application packet name corresponding relationship, and store to pair
It answers in relational database.
Root path clears up unit 240, the cleaning request message sent suitable for receiving client, in the cleaning request message
It include: one or more applications where the client in Android device using packet name;According to the cleaning request message, from
The corresponding root path letter of one or more application packet name where obtaining the client in corresponding relation database in Android device
Breath, and it is issued to the client, so that the client clears up corresponding root path according to the root path information received.
As it can be seen that the cleaning to the root path in Android device, substantially transporting to being mounted on applying in Android device
The cleaning of ephemeral data file generated during row, it is desirable to clear up in Android device using ephemeral data text generated
Part will first find this using corresponding root path, then clear up the content in the root path.In order to know that each application is corresponding
Root path, server shown in Fig. 2 collects root path information on one side, collects apply packet name on one side, establishes root path information and answers
With the corresponding relationship of packet name;When there is one or more applications in Android device to need to clear up, by the one or more application
Corresponding root path information is issued to client, so that client clears up corresponding root path according to root path information.
Technical solution provided by the invention is when clearing up the root path in Android device, without rescaning whole system mesh
Record, directly positions root path for clearance, more directive property and specific aim according to root path and the corresponding relationship of application, improves
Cleaning efficiency and accuracy, meet user demand.
In one embodiment of the invention, correspondence relationship establishing unit 230 are suitable for proposing each root path information
Take each nodename for including in the root path information;For each nodename, the nodename and application packet name are carried out
Matching, if there is with the matched application packet name of the nodename, then establish the root path information and the matched application packet name
Corresponding relationship.
Wherein, correspondence relationship establishing unit 230 are further adapted for each node name for including in extracting the root path information
After referred to as, the character in each nodename is unified for lowercase versions, and duplicate removal is carried out to multiple nodenames after reunification;It is right
The each nodename obtained after duplicate removal matches the nodename with using packet name.
In another embodiment of the present invention, root path information collection unit 210, suitable for receiving each client transmission
Scan log in path;Wherein, the path scanning result that each client is sent includes: the corresponding user identifier of the client, should
Each root path information where client in Android device;Application message collector unit 220, suitable for receiving each client transmission
Application scanning log;Wherein, the application scanning log that each client is sent includes: the corresponding user identifier of the client, should
Each application packet name where client in Android device.
Then correspondence relationship establishing unit 230, suitable for scanning log according to each path for receiving, establish root path information with
The corresponding relationship of user identifier;According to each application scanning log received, corresponding pass of the user identifier with application packet name is established
System;According to the corresponding relationship of the corresponding relationship and user identifier of root path information and user identifier and application packet name, root is established
The corresponding relationship of routing information and application packet name.
Specifically, the correspondence relationship establishing unit 230 is suitable for for each root path information, according to root path information
With the corresponding relationship of the corresponding relationship and user identifier of user identifier and application packet name, the root path information and each is calculated
Using the degree of correlation of packet name, the root path information is established with acquirement highest degree of correlation using the corresponding pass between packet name
System.
Wherein, the total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;Correspond to
The quantity of the user identifier of the root path information is C;For each application packet name, the user identifier of packet name is applied corresponding to this
Quantity be A;Not only this had been corresponded to using packet name but also the quantity for corresponding to the user identifier of the root path information is B;
The then correspondence relationship establishing unit 230, suitable for calculating the root path information and the application according to the following formula
The degree of correlation of packet name:
It should be noted that each embodiment of server shown in Fig. 2 and each embodiment of method shown in Fig. 1 are corresponding identical,
It has above been described in detail, details are not described herein.
Fig. 3 shows the signal of the system of the root path in a kind of cleaning Android device according to an embodiment of the invention
Figure.As shown in figure 3, the system 300 of the root path in the cleaning Android device includes: the clothes for the root path cleared up in Android device
Business device 310, and, the clients 320 of the root path in multiple cleaning Android devices.Wherein, the road Android device Zhong Gen is cleared up
The server 310 of diameter is corresponding identical as server shown in figure 2 above.
As it can be seen that the cleaning to the root path in Android device, substantially transporting to being mounted on applying in Android device
The cleaning of ephemeral data file generated during row, it is desirable to clear up in Android device using ephemeral data text generated
Part will first find this using corresponding root path, then clear up the content in the root path.In order to know that each application is corresponding
Root path, technical solution provided by the invention collects root path information in server side on one side, collects apply packet name on one side, build
The corresponding relationship of thribble routing information and application packet name;It, will when there is one or more applications in Android device to need to clear up
The corresponding root path information of the one or more application is issued to client, so that client is according to root path information to corresponding
Root path is cleared up.Technical solution provided by the invention is when clearing up the root path in Android device, without again
Whole system catalogue is scanned, root path for clearance is directly positioned according to root path and the corresponding relationship of application, is more directed toward
Property and specific aim, improve cleaning efficiency and accuracy, meet user demand.
It should be understood that
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein.
Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the root path in cleaning Android device according to an embodiment of the present invention
Server and system in some or all components some or all functions.The present invention is also implemented as holding
Some or all device or device programs of row method as described herein are (for example, computer program and computer
Program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one or
The form of the multiple signals of person.Such signal can be downloaded from an internet website to obtain, or be provided on the carrier signal, or
Person is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention discloses a kind of methods of the root path in B1, cleaning Android device, wherein this method comprises:
Collect multiple root path information;
Collect multiple application packet names;
The corresponding relationship of root path information and application packet name is established, and is stored into corresponding relation database;
The cleaning request message that client is sent is received, includes: Android where the client in the cleaning request message
What the one or more in equipment was applied applies packet name;
According to the cleaning request message, from obtained in corresponding relation database where the client in Android device one
The corresponding root path information of a or multiple application packet names, and it is issued to the client, so that the client is according to the root received
Routing information clears up corresponding root path.
B2, the method as described in B1, wherein described to establish root path information and include: using the corresponding relationship of packet name
For each root path information, each nodename for including in the root path information is extracted;For each node name
Claim, which matched with using packet name, if there is with the matched application packet name of the nodename, then establish this
The corresponding relationship of root path information and the matched application packet name.
B3, the method as described in B2, wherein after each nodename for including in described extraction root path information,
This method further comprises:
Character in each nodename is unified for lowercase versions, and duplicate removal is carried out to multiple nodenames after reunification;
For each nodename obtained after duplicate removal, which is matched with using packet name.
B4, the method as described in B1, wherein
It is described to collect the path scanning log that multiple root path information include: each client transmission of reception;Wherein, Mei Geke
The path scanning result that family end is sent includes: the corresponding user identifier of the client, each in Android device where the client
Root path information;
It is described to collect the application scanning log that multiple application packet names include: each client transmission of reception;Wherein, each client
The application scanning log that end is sent includes: the corresponding user identifier of the client, respectively answering in Android device where the client
With packet name.
B5, the method as described in B4, wherein described to establish root path information and include: using the corresponding relationship of packet name
Log is scanned according to each path received, establishes the corresponding relationship of root path information and user identifier;
According to each application scanning log received, the corresponding relationship of user identifier and application packet name is established;
According to the corresponding relationship of the corresponding relationship and user identifier of root path information and user identifier and application packet name, build
The corresponding relationship of thribble routing information and application packet name.
B6, the method as described in B5, wherein the corresponding relationship and user according to root path information and user identifier
The corresponding relationship of mark and application packet name, establishes root path information and the corresponding relationship of application packet name includes:
For each root path information, according to the corresponding relationship and user identifier of root path information and user identifier with answer
With the corresponding relationship of packet name, the degree of correlation of the root path information Yu each application packet name is calculated, establishes the root path letter
Breath and obtain highest degree of correlation using the corresponding relationship between packet name.
B7, the method as described in B6, wherein the degree of correlation for calculating the root path information and each application packet name
Include:
The total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;
The quantity of user identifier corresponding to the root path information is C;
For each application packet name, the quantity corresponding to the user identifier using packet name is A;Both the application packet had been corresponded to
The quantity that name corresponds to the user identifier of the root path information again is B;Then the root path information applies the phase of packet name with this
Pass degree are as follows:
The invention also discloses a kind of servers of the root path in C8, cleaning Android device, wherein the server packet
It includes:
Root path information collection unit is suitable for collecting multiple root path information;
Application message collector unit is suitable for collecting multiple application packet names;
Correspondence relationship establishing unit, is adapted to set up the corresponding relationship of root path information and application packet name, and stores to correspondence
In relational database;
Root path clears up unit, the cleaning request message sent suitable for receiving client, wraps in the cleaning request message
Include: what the one or more where the client in Android device was applied applies packet name;According to the cleaning request message, from right
The corresponding root path information of one or more application packet name where obtaining the client in relational database in Android device is answered,
And it is issued to the client, so that the client clears up corresponding root path according to the root path information received.
C9, the server as described in C8, wherein
The correspondence relationship establishing unit is suitable for that each root path information is extracted in the root path information and includes
Each nodename;For each nodename, which is matched with using packet name, if there is with the node name
Claim matched application packet name, then establishes the corresponding relationship of the root path information Yu the matched application packet name.
C10, the server as described in C9, wherein
The correspondence relationship establishing unit, each node name for being further adapted for including in extracting the root path information are referred to as
Afterwards, the character in each nodename is unified for lowercase versions, and duplicate removal is carried out to multiple nodenames after reunification;For going
The each nodename obtained after weight matches the nodename with using packet name.
C11, the server as described in C8, wherein
The root path information collection unit scans log suitable for receiving the path that each client is sent;Wherein, Mei Geke
The path scanning result that family end is sent includes: the corresponding user identifier of the client, each in Android device where the client
Root path information;
The application message collector unit, the application scanning log sent suitable for receiving each client;Wherein, each client
The application scanning log that end is sent includes: the corresponding user identifier of the client, respectively answering in Android device where the client
With packet name.
C12, the server as described in C11, wherein
The correspondence relationship establishing unit, suitable for scanning log according to each path for receiving, establish root path information with
The corresponding relationship of user identifier;According to each application scanning log received, corresponding pass of the user identifier with application packet name is established
System;According to the corresponding relationship of the corresponding relationship and user identifier of root path information and user identifier and application packet name, root is established
The corresponding relationship of routing information and application packet name.
C13, the server as described in C12, wherein
The correspondence relationship establishing unit is suitable for for each root path information, according to root path information and user identifier
Corresponding relationship and user identifier and application packet name corresponding relationship, calculate the root path information and each application packet name
Degree of correlation, establish the root path information and obtain highest degree of correlation using the corresponding relationship between packet name.
C14, the server as described in C13, wherein
The total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;
The quantity of user identifier corresponding to the root path information is C;
For each application packet name, the quantity corresponding to the user identifier using packet name is A;Both the application packet had been corresponded to
The quantity that name corresponds to the user identifier of the root path information again is B;
The then correspondence relationship establishing unit applies packet name with this suitable for calculating the root path information according to the following formula
Degree of correlation:
The invention also discloses D15, it is a kind of cleaning Android device in root path system, wherein the system include: as
Server described in any one of C8-C14, and, multiple client.
Claims (15)
1. a kind of method of the root path in cleaning Android device, wherein this method comprises:
Collect multiple root path information;
Collect multiple application packet names;
Establish root path information and application packet name corresponding relationship, and store into corresponding relation database, root path information with
Corresponding relationship using packet name refers to: if the corresponding root path of a root path information is answered as one using packet name is corresponding
The store path of ephemeral data file, then the root path information and this using having corresponding relationship between packet name;
The cleaning request message that client is sent is received, includes: Android device where the client in the cleaning request message
In one or more applications apply packet names;
According to the cleaning request message, from one obtained in corresponding relation database where the client in Android device or
The corresponding root path information of multiple application packet names, and it is issued to the client, so that the client is according to the root path received
Information clears up corresponding root path.
2. the method for claim 1, wherein described establish root path information and include: using the corresponding relationship of packet name
For each root path information, each nodename for including in the root path information is extracted;It, will for each nodename
The nodename is matched with using packet name, if there is with the matched application packet name of the nodename, then establish the root road
The corresponding relationship of diameter information and the matched application packet name.
3. method according to claim 2, wherein each node name for including in described extraction root path information is referred to as
Afterwards, this method further comprises:
Character in each nodename is unified for lowercase versions, and duplicate removal is carried out to multiple nodenames after reunification;
For each nodename obtained after duplicate removal, which is matched with using packet name.
4. the method for claim 1, wherein
It is described to collect the path scanning log that multiple root path information include: each client transmission of reception;Wherein, each client
The path scanning result of transmission includes: the corresponding user identifier of the client, the road Android device Zhong Gegen where the client
Diameter information;
It is described to collect the application scanning log that multiple application packet names include: each client transmission of reception;Wherein, each client hair
The application scanning log sent includes: the corresponding user identifier of the client, each application packet where the client in Android device
Name.
5. method as claimed in claim 4, wherein described to establish root path information and include: using the corresponding relationship of packet name
Log is scanned according to each path received, establishes the corresponding relationship of root path information and user identifier;
According to each application scanning log received, the corresponding relationship of user identifier and application packet name is established;
According to the corresponding relationship of the corresponding relationship and user identifier of root path information and user identifier and application packet name, root is established
The corresponding relationship of routing information and application packet name.
6. method as claimed in claim 5, wherein the corresponding relationship and use according to root path information and user identifier
The corresponding relationship of family mark and application packet name, establishes root path information and the corresponding relationship of application packet name includes:
For each root path information, wrapped according to the corresponding relationship and user identifier of root path information and user identifier and application
Name corresponding relationship, calculate the degree of correlation of the root path information Yu each application packet name, establish the root path information and
Obtain highest degree of correlation using the corresponding relationship between packet name.
7. method as claimed in claim 6, wherein the related journey for calculating the root path information and each application packet name
Degree includes:
The total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;
The quantity of user identifier corresponding to the root path information is C;
For each application packet name, the quantity corresponding to the user identifier using packet name is A;Not only corresponded to this using packet name but also
The quantity of user identifier corresponding to the root path information is B;Then the root path information applies the related journey of packet name to this
Degree are as follows:
8. a kind of server of the root path in cleaning Android device, wherein the server includes:
Root path information collection unit is suitable for collecting multiple root path information;
Application message collector unit is suitable for collecting multiple application packet names;
Correspondence relationship establishing unit, is adapted to set up the corresponding relationship of root path information and application packet name, and stores and arrive corresponding relationship
In database, root path information refers to the corresponding relationship of application packet name: if the corresponding root path of a root path information is made
For the store path of the ephemeral data file of a corresponding application of application packet name, then the root path information and this using packet name it
Between have corresponding relationship;
Root path clears up unit, the cleaning request message sent suitable for receiving client, includes: this in the cleaning request message
What the one or more where client in Android device was applied applies packet name;According to the cleaning request message, closed from corresponding
It is the corresponding root path information of one or more application packet name in Android device where obtaining the client in database, and under
It is sent to the client, so that the client clears up corresponding root path according to the root path information received.
9. server as claimed in claim 8, wherein
The correspondence relationship establishing unit is suitable for extracting each section for including in the root path information for each root path information
Point title;For each nodename, which is matched with using packet name, if there is with the nodename
That matches applies packet name, then establishes the corresponding relationship of the root path information Yu the matched application packet name.
10. server as claimed in claim 9, wherein
The correspondence relationship establishing unit is further adapted for after each nodename for including in extracting the root path information,
Character in each nodename is unified for lowercase versions, and duplicate removal is carried out to multiple nodenames after reunification;For duplicate removal
The each nodename obtained afterwards matches the nodename with using packet name.
11. server as claimed in claim 8, wherein
The root path information collection unit scans log suitable for receiving the path that each client is sent;Wherein, each client
The path scanning result of transmission includes: the corresponding user identifier of the client, the road Android device Zhong Gegen where the client
Diameter information;
The application message collector unit, the application scanning log sent suitable for receiving each client;Wherein, each client hair
The application scanning log sent includes: the corresponding user identifier of the client, each application packet where the client in Android device
Name.
12. server as claimed in claim 11, wherein
The correspondence relationship establishing unit establishes root path information and user suitable for scanning log according to each path received
The corresponding relationship of mark;According to each application scanning log received, the corresponding relationship of user identifier and application packet name is established;Root
According to the corresponding relationship and user identifier of root path information and user identifier and the corresponding relationship of application packet name, root path letter is established
The corresponding relationship of breath and application packet name.
13. server as claimed in claim 12, wherein
The correspondence relationship establishing unit is suitable for for each root path information, according to pair of root path information and user identifier
It should be related to and user identifier is with using the corresponding relationship of packet name, it is related to each application packet name to calculate the root path information
Degree, establish the root path information and obtain highest degree of correlation using the corresponding relationship between packet name.
14. server as claimed in claim 13, wherein
The total quantity of user identifier is N, and the quantity of the corresponding application packet name of i-th of user identifier is Ai;
The quantity of user identifier corresponding to the root path information is C;
For each application packet name, the quantity corresponding to the user identifier using packet name is A;Not only corresponded to this using packet name but also
The quantity of user identifier corresponding to the root path information is B;
The then correspondence relationship establishing unit, suitable for calculate according to the following formula the root path information with this apply packet name phase
Pass degree:
15. a kind of system of the root path in cleaning Android device, wherein the system includes: as any in claim 8-14
Server described in, and, multiple client.
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 CN105868367A (en) | 2016-08-17 |
CN105868367B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909646B (en) * | 2017-02-21 | 2020-02-11 | 青岛海信电器股份有限公司 | Method and device for clearing invalid data after SD card changes |
CN109669779B (en) * | 2018-12-25 | 2023-05-26 | 上海碳蓝网络科技有限公司 | Method and device for determining cleaning path of data and 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 |
Also Published As
Publication number | Publication date |
---|---|
CN105868367A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11500875B2 (en) | Multi-partitioning for combination operations | |
US10262045B2 (en) | Application representation for application editions | |
CN102667761B (en) | Scalable cluster database | |
US8484191B2 (en) | On-line social search | |
Rahman et al. | Towards a context-aware IDE-based meta search engine for recommendation about programming errors and exceptions | |
CN107861981B (en) | Data processing method and device | |
CN102521257A (en) | Method and device for providing corresponding on-line picture according to thumbnail | |
US11379670B1 (en) | Automatically populating responses using artificial intelligence | |
CN105471968B (en) | A kind of method for interchanging data, system and data platform server | |
CN102902717A (en) | Method, system and device for organizing a plurality of applications in app store | |
CN107885873A (en) | Method and apparatus for output information | |
CN104657437B (en) | Promote the monitoring method and device of situation data | |
Vesdapunt et al. | Identifying users in social networks with limited information | |
CN110750433A (en) | Interface test method and device | |
CN110083762A (en) | Source of houses searching method, device, equipment and computer readable storage medium | |
CN109033404A (en) | Daily record data processing method, device and system | |
CN105868367B (en) | Method, server and the system of a kind of root path in cleaning Android device | |
US11792157B1 (en) | Detection of DNS beaconing through time-to-live and transmission analyses | |
CN104156375B (en) | A kind of information distribution method and system based on crowdsourcing | |
CN105721519A (en) | Webpage data acquisition method, device and system | |
CN109710861A (en) | A kind of system and method generating URL | |
CN109359087A (en) | Instant file index and searching method, apparatus and system | |
CN105468758B (en) | Data retrieval method and device | |
CN117009430A (en) | Data management method, device, storage medium and electronic equipment | |
CN114765599A (en) | Sub-domain name acquisition method and device |
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 |