CN104317574A - Method and device for identifying application program type - Google Patents
Method and device for identifying application program type Download PDFInfo
- Publication number
- CN104317574A CN104317574A CN201410522641.3A CN201410522641A CN104317574A CN 104317574 A CN104317574 A CN 104317574A CN 201410522641 A CN201410522641 A CN 201410522641A CN 104317574 A CN104317574 A CN 104317574A
- Authority
- CN
- China
- Prior art keywords
- application
- type
- application program
- identified
- package name
- 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
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000011218 segmentation Effects 0.000 description 8
- 238000000638 solvent extraction Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004140 cleaning Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method and a device for identifying application program types, wherein the method for identifying the application program types comprises the steps of acquiring a first group of application programs, wherein the first group of application programs are the application programs belonging to the same group as the application program to be identified; judging whether an application program with a known type and a package name similar to that of the application program to be identified exists in the first group of application programs; and if so, determining the type of the application program to be identified according to the type of the application program with the similarity. The method can realize the identification of the type of the application program.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for identifying an application type.
Background
In the current mobile phone storage of a user, due to the fact that the development specification of application is not proper, a large amount of storage space is occupied by useless data, the storage space of the mobile phone is insufficient, the stored data is disordered, more useless data need to be cleared, and more storage space is released. When the useless data are cleaned up, the application programs of unknown types need to be identified so as to be cleaned up by adopting corresponding means.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, it is an object of the invention to propose a method for identifying an application type, which allows identification of an application type.
Another object of the present invention is to provide an apparatus for identifying the type of an application.
In order to achieve the above object, in one aspect, a method for identifying an application type according to an embodiment of the present invention includes: acquiring a first group of application programs, wherein the first group of application programs belong to the same group as the application program to be identified; judging whether an application program with a known type and a package name similar to that of the application program to be identified exists in the first group of application programs; and if so, determining the type of the application program to be identified according to the type of the application program with the similarity.
The method for identifying the type of the application program, provided by the embodiment of the invention, can realize the identification of the type of the application program by acquiring the application programs which belong to the same group as the application program to be identified and determining the category of the application program to be identified according to the package name of the application program with known type in the application program of the same group.
In order to achieve the above object, in another aspect, an apparatus for identifying an application type according to an embodiment of the present invention includes: the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first group of application programs, and the first group of application programs are application programs belonging to the same group with the application program to be identified; the first judging module is used for judging whether the first group of application programs have application programs with known types and package names which have similarity with the package names of the application programs to be identified; and the first determining module is used for determining the type of the application program to be identified according to the type of the application program with the similarity if the judgment result obtained by the first judging module is that the application program exists.
The device for identifying the type of the application program, provided by the embodiment of the invention, can identify the type of the application program by acquiring the application programs belonging to the same group as the application program to be identified and determining the type of the application program to be identified according to the package name of the application program with known type in the application programs of the same group.
In order to achieve the above object, in another aspect, an embodiment of the present invention provides a mobile device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of: acquiring a first group of application programs, wherein the first group of application programs belong to the same group as the application program to be identified; judging whether an application program with a known type and a package name similar to that of the application program to be identified exists in the first group of application programs; and if so, determining the type of the application program to be identified according to the type of the application program with the similarity.
The mobile device provided by the embodiment of the invention can identify the type of the application program by acquiring the application programs belonging to the same group as the application program to be identified and determining the type of the application program to be identified according to the package name of the application program with known type in the application programs of the same group.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating an embodiment of a method for identifying an application type according to the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a method for identifying an application type according to the present invention;
FIG. 3 is a block diagram of an embodiment of an apparatus for identifying types of applications;
fig. 4 is a schematic structural diagram of another embodiment of the apparatus for identifying an application type according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating an embodiment of a method for identifying an application type according to the present invention, where the method includes:
s11: a first set of applications is obtained, the first set of applications being applications belonging to the same group as the application to be identified.
The package name of the application program can be obtained, then the first part in the package name of the application program is determined, and the application programs with the same first part are determined to be the same group of application programs.
Optionally, the acquiring the first group of applications includes:
determining a first part in a package name of an application, wherein the first part is used for grouping;
determining the application program with the first part identical to the first part of the application program to be identified as the first group of application programs.
Optionally, the determining the first part of the package name includes:
determining the number of segments of the package name separated by separators;
selecting a first segment of the package name separated by the separator as the first portion if the number of segments is less than or equal to a preset threshold; or,
selecting a first segment and a second segment of the package name separated by the separator as the first portion if the number of segments is greater than the preset threshold.
Optionally, the separator is a dot number.
Optionally, the preset threshold is 2.
For example, each piece of data is acquired from a package name-application type database, the package name therein is sliced by a point number (') and if the number of segments after slicing is less than or equal to 2 segments, a first segment of the'. quadrature..
Specifically, the read package name includes: apinverter ai _ fcatalar, apinverter ai _ estimcc and apinverter ai _ esethac, since the number of segments separated by the '. lam' is 2, the first segment, i.e. the segment before the '. lam' is taken as the first part, and since the first parts (i.e. apinverters) of the three packet names are the same, the three packet names are the same group of application programs.
As another example, the package names read include: am, andriddukkan, hsn and bm, since the number of segments separated by '. prime' is 3, the first and second segments, i.e., the first two segments before '. prime', are taken as the first part, and since the first parts (i.e., am, andriddukkan) of the three package names are the same, the three package names are the same group of applications.
S12: and judging whether the first group of application programs exist application programs with known types and package names having similarity with the package names of the application programs to be identified.
The package name, the application name and the application type are correspondingly recorded in each piece of data read from the package name-application type database, if the application type corresponding to one package name is known, the type of the application program indicated by the package name is known, otherwise, if the application type corresponding to the package name is blank, the type of the application program indicated by the package name is unknown.
Optionally, the application having similarity with the package name of the application to be identified includes:
the second part has sequentially the same characters as a second part of the package name of the application to be identified, the second part being a part of the package name other than the first part.
For example, assuming that the packet name of the application to be identified is apinventitor ai _ esethac, according to the above-described partitioning manner, the second part refers to the segment after' ″, since the second part of apinventitor ai _ estimeccc (i.e., ai _ estimecc) has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), and the second part of apinventitor ai _ fcatalar (i.e., ai _ fcatalar) also has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), the application indicated by apinventitor ai _ estimecc and the application indicated by apinventitor ai _ fcatalar are both similar to the application indicated by apinventitor.
S13: and if so, determining the type of the application program to be identified according to the type of the application program with the similarity.
Optionally, the determining the type of the application program to be identified according to the type of the application program with the similarity includes:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
For example, assuming that the application types corresponding to apping ventor.
On the other hand, if the application programs with the similarity do not exist, acquiring the application programs of known types in the first group of application programs;
determining the type of the application program to be identified according to the application program of the known type.
Optionally, the determining the type of the application to be identified according to the application of the known type includes:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
For example, the package name of the application to be recognized is avm. android dukkan.mhm, and the package names of the applications of the known types belonging to the same group as the application to be recognized are avm. android dukkan.hsn, avm. android dukkan.bsn and avm. android dukkan.bsp, respectively, in accordance with the above-described division manner, since none of the second parts of the avm. android dukkan.hsn, the avm. android dukkan.bsn and the avm. android dukkan.bsp has the same character in order as the avm. android.
The embodiment can realize the identification of the application program type by acquiring the application programs belonging to the same group as the application program to be identified and determining the category of the application program to be identified according to the package names of the application programs with known types in the application programs of the same group. Furthermore, after the type of the application program is identified, corresponding processing can be carried out, so that more useless data can be cleared, and more storage space can be released.
FIG. 2 is a flow chart illustrating another embodiment of the method for identifying the type of the application program according to the present invention, wherein the method comprises:
s21: reading a piece of data in the package name-application type database.
Taking a mobile phone as an example, a storage space of the mobile phone may correspondingly record a package name, an application name and an application type of an application program, the database correspondingly recording the parameters may be referred to as a package name-application type database, and a piece of data read from the database includes the package name, the application name and the application type of an application program.
S22: when the type of the data is unknown, determining that the application program corresponding to the data is the application program to be identified.
The three parameters may exist in one piece of read data, and when the value of the application type is blank, it indicates that the application type of the application program corresponding to the package name is unknown, and it may be determined that the application program is the application program to be identified.
S23: and judging whether the package name of the application program to be recognized has a vocabulary with the identification type, if so, executing S24, otherwise, executing S25.
The word of the identification type is a word of which the type can be directly determined according to the word, for example, the word of the identification type is: mp3 or film, etc.
S24: and determining the type of the vocabulary identification as the type of the application program to be recognized. And then S29 is executed.
For example, when a package name contains '. mp 3', it can be determined that its type is music type.
S25: a first set of applications is obtained, the first set of applications being applications belonging to the same group as the application to be identified.
For example, the package name is sliced according to 'the', if the number of segments after segmentation is less than or equal to 2, the application program belonging to the same group as the application program to be identified is obtained according to the first segment after segmentation, and if the number of segments after segmentation is less than or equal to 2, the application program belonging to the same group as the application program to be identified is obtained according to the first two segments after segmentation.
Specifically, the read package name includes: apinverter ai _ fcatalar, apinverter ai _ estimcc and apinverter ai _ esethac, since the number of segments separated by the '. lam' is 2, the first segment, i.e. the segment before the '. lam' is taken as the first part, and since the first parts (i.e. apinverters) of the three packet names are the same, the three packet names are the same group of application programs.
As another example, the package names read include: am, andriddukkan, hsn and bm, since the number of segments separated by '. prime' is 3, the first and second segments, i.e., the first two segments before '. prime', are taken as the first part, and since the first parts (i.e., am, andriddukkan) of the three package names are the same, the three package names are the same group of applications.
S26: and judging whether the first group of application programs have application programs with known types and package names with similarity to the package name of the application program to be identified, if so, executing S27, otherwise, executing S28.
The package name, the application name and the application type are correspondingly recorded in each piece of data read from the package name-application type database, if the application type corresponding to one package name is known, the type of the application program indicated by the package name is known, otherwise, if the application type corresponding to the package name is blank, the type of the application program indicated by the package name is unknown.
Optionally, the application having similarity with the package name of the application to be identified includes:
the second part has sequentially the same characters as a second part of the package name of the application to be identified, the second part being a part of the package name other than the first part.
For example, assuming that the packet name of the application to be identified is apinventitor ai _ esethac, according to the above-described partitioning manner, the second part refers to the segment after' ″, since the second part of apinventitor ai _ estimeccc (i.e., ai _ estimecc) has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), and the second part of apinventitor ai _ fcatalar (i.e., ai _ fcatalar) also has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), the application indicated by apinventitor ai _ estimecc and the application indicated by apinventitor ai _ fcatalar are both similar to the application indicated by apinventitor.
S27: and determining the type of the application program to be identified according to the type of the application program with the similarity. And then S29 is executed.
Optionally, the determining the type of the application program to be identified according to the type of the application program with the similarity includes:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
For example, assuming that the application types corresponding to apping ventor.
S28: and acquiring the application programs with known types in the first group of application programs, and determining the type of the application program to be identified according to the application programs with known types.
Optionally, the determining the type of the application to be identified according to the application of the known type includes:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
For example, the package name of the application to be recognized is avm. android dukkan.mhm, and the package names of the applications of the known types belonging to the same group as the application to be recognized are avm. android dukkan.hsn, avm. android dukkan.bsn and avm. android dukkan.bsp, respectively, in accordance with the above-described division manner, since none of the second parts of the avm. android dukkan.hsn, the avm. android dukkan.bsn and the avm. android dukkan.bsp has the same character in order as the avm. android.
S29: reading the next piece of data, execution may repeat S22-29 until each piece of data in the database has been processed.
The embodiment can realize the identification of the application program type by acquiring the application programs belonging to the same group as the application program to be identified and determining the category of the application program to be identified according to the package names of the application programs with known types in the application programs of the same group. In addition, when the vocabulary of the identification type exists, the type can be determined according to the vocabulary of the identification type, and the diversity of the type determining mode can be realized. Further, after the type of the application program is identified, corresponding processing can be performed, for example, garbage files and residual files can be cleaned by using corresponding type cleaning rules, so that more useless data can be cleaned, and more storage space can be released.
Fig. 3 is a schematic structural diagram of an embodiment of the apparatus for identifying an application program type according to the present invention, where the apparatus 30 includes a first obtaining module 31, a first determining module 32, and a first determining module 33.
The first obtaining module 31 is configured to obtain a first group of applications, where the first group of applications is an application belonging to the same group as the application to be identified;
optionally, referring to fig. 4, the first obtaining module 31 includes:
a first unit 311, configured to determine a first part in the package name of the application, where the first part is used for grouping;
a second unit 312, configured to determine an application program with a first part identical to the first part of the application program to be identified as the first group of application programs.
Optionally, the first unit 311 is specifically configured to:
determining the number of segments of the package name separated by separators;
selecting a first segment of the package name separated by the separator as the first portion if the number of segments is less than or equal to a preset threshold; or,
selecting a first segment and a second segment of the package name separated by the separator as the first portion if the number of segments is greater than the preset threshold.
Optionally, the separator is a dot number.
Optionally, the preset threshold is 2.
For example, each piece of data is acquired from a package name-application type database, the package name therein is sliced by a point number (') and if the number of segments after slicing is less than or equal to 2 segments, a first segment of the'. quadrature..
Specifically, the read package name includes: apinverter ai _ fcatalar, apinverter ai _ estimcc and apinverter ai _ esethac, since the number of segments separated by the '. lam' is 2, the first segment, i.e. the segment before the '. lam' is taken as the first part, and since the first parts (i.e. apinverters) of the three packet names are the same, the three packet names are the same group of application programs.
As another example, the package names read include: am, andriddukkan, hsn and bm, since the number of segments separated by '. prime' is 3, the first and second segments, i.e., the first two segments before '. prime', are taken as the first part, and since the first parts (i.e., am, andriddukkan) of the three package names are the same, the three package names are the same group of applications.
The first judging module 32 is configured to judge whether there is an application program in the first group of application programs whose type is known and whose package name has similarity with the package name of the application program to be identified;
the package name, the application name and the application type are correspondingly recorded in each piece of data read from the package name-application type database, if the application type corresponding to one package name is known, the type of the application program indicated by the package name is known, otherwise, if the application type corresponding to the package name is blank, the type of the application program indicated by the package name is unknown.
Optionally, the first determining module 32 is specifically configured to determine, as an application program having similarity to the package name of the application program to be identified, an application program corresponding to the package name of which a second part and a second part of the package name of the application program to be identified have the same characters in sequence, where the second part is a part of the package name other than the first part.
For example, assuming that the packet name of the application to be identified is apinventitor ai _ esethac, according to the above-described partitioning manner, the second part refers to the segment after' ″, since the second part of apinventitor ai _ estimeccc (i.e., ai _ estimecc) has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), and the second part of apinventitor ai _ fcatalar (i.e., ai _ fcatalar) also has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), the application indicated by apinventitor ai _ estimecc and the application indicated by apinventitor ai _ fcatalar are both similar to the application indicated by apinventitor.
The first determining module 33 is configured to determine the type of the application program to be identified according to the type of the application program with the similarity if the determination result obtained by the first determining module is that the application program exists.
Optionally, the first determining module 33 is specifically configured to:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
For example, assuming that the application types corresponding to apping ventor.
In another embodiment, referring to fig. 4, the apparatus 30 further comprises:
a second determining module 34, configured to obtain an application program of a known type in the first group of application programs if the determination result obtained by the first determining module 32 is non-existent; determining the type of the application program to be identified according to the application program of the known type.
Optionally, the second determining module 34 is specifically configured to:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
For example, the package name of the application to be recognized is avm. android dukkan.mhm, and the package names of the applications of the known types belonging to the same group as the application to be recognized are avm. android dukkan.hsn, avm. android dukkan.bsn and avm. android dukkan.bsp, respectively, in accordance with the above-described division manner, since none of the second parts of the avm. android dukkan.hsn, the avm. android dukkan.bsn and the avm. android dukkan.bsp has the same character in order as the avm. android.
In another embodiment, referring to fig. 4, the apparatus 30 further comprises:
a second obtaining module 35, configured to obtain a package name of the application program to be identified;
taking a mobile phone as an example, a storage space of the mobile phone may correspondingly record a package name, an application name and an application type of an application program, the database correspondingly recording the parameters may be referred to as a package name-application type database, and a piece of data read from the database includes the package name, the application name and the application type of an application program.
A second judging module 36, configured to judge whether the package name has a vocabulary with an identified type, so as to obtain the first group of applications when the package name does not have the vocabulary;
the word of the identification type is a word of which the type can be directly determined according to the word, for example, the word of the identification type is: mp3 or film, etc.
A third determining module 37, configured to determine the type of the vocabulary identifier as the type of the application to be recognized when the determination result obtained by the second determining module 36 is yes.
For example, when a package name contains '. mp 3', it can be determined that its type is music type.
In another embodiment, referring to fig. 4, the apparatus 30 further comprises:
and a reading module 38, configured to read data from a database, and determine that an application corresponding to the data is an application to be identified when the type of the data is unknown, where each piece of data in the database correspondingly records a package name, an application name, and a type of the application.
The three parameters may exist in one piece of read data, and when the value of the application type is blank, it indicates that the application type of the application program corresponding to the package name is unknown, and it may be determined that the application program is the application program to be identified.
The embodiment can realize the identification of the application program type by acquiring the application programs belonging to the same group as the application program to be identified and determining the category of the application program to be identified according to the package names of the application programs with known types in the application programs of the same group. In addition, when the vocabulary of the identification type exists, the type can be determined according to the vocabulary of the identification type, and the diversity of the type determining mode can be realized. Further, after the type of the application program is identified, corresponding processing can be performed, for example, garbage files and residual files can be cleaned by using corresponding type cleaning rules, so that more useless data can be cleaned, and more storage space can be released.
The embodiment of the invention also provides mobile equipment, which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s11': a first set of applications is obtained, the first set of applications being applications belonging to the same group as the application to be identified.
The package name of the application program can be obtained, then the first part in the package name of the application program is determined, and the application programs with the same first part are determined to be the same group of application programs.
Optionally, the acquiring the first group of applications includes:
determining a first part in a package name of an application, wherein the first part is used for grouping;
determining the application program with the first part identical to the first part of the application program to be identified as the first group of application programs.
Optionally, the determining the first part of the package name includes:
determining the number of segments of the package name separated by separators;
selecting a first segment of the package name separated by the separator as the first portion if the number of segments is less than or equal to a preset threshold; or,
selecting a first segment and a second segment of the package name separated by the separator as the first portion if the number of segments is greater than the preset threshold.
Optionally, the separator is a dot number.
Optionally, the preset threshold is 2.
For example, each piece of data is acquired from a package name-application type database, the package name therein is sliced by a point number (') and if the number of segments after slicing is less than or equal to 2 segments, a first segment of the'. quadrature..
Specifically, the read package name includes: apinverter ai _ fcatalar, apinverter ai _ estimcc and apinverter ai _ esethac, since the number of segments separated by the '. lam' is 2, the first segment, i.e. the segment before the '. lam' is taken as the first part, and since the first parts (i.e. apinverters) of the three packet names are the same, the three packet names are the same group of application programs.
As another example, the package names read include: am, andriddukkan, hsn and bm, since the number of segments separated by '. prime' is 3, the first and second segments, i.e., the first two segments before '. prime', are taken as the first part, and since the first parts (i.e., am, andriddukkan) of the three package names are the same, the three package names are the same group of applications.
S12': and judging whether the first group of application programs exist application programs with known types and package names having similarity with the package names of the application programs to be identified.
The package name, the application name and the application type are correspondingly recorded in each piece of data read from the package name-application type database, if the application type corresponding to one package name is known, the type of the application program indicated by the package name is known, otherwise, if the application type corresponding to the package name is blank, the type of the application program indicated by the package name is unknown.
Optionally, the application having similarity with the package name of the application to be identified includes:
the second part has sequentially the same characters as a second part of the package name of the application to be identified, the second part being a part of the package name other than the first part.
For example, assuming that the packet name of the application to be identified is apinventitor ai _ esethac, according to the above-described partitioning manner, the second part refers to the segment after' ″, since the second part of apinventitor ai _ estimeccc (i.e., ai _ estimecc) has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), and the second part of apinventitor ai _ fcatalar (i.e., ai _ fcatalar) also has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), the application indicated by apinventitor ai _ estimecc and the application indicated by apinventitor ai _ fcatalar are both similar to the application indicated by apinventitor.
S13': and if so, determining the type of the application program to be identified according to the type of the application program with the similarity.
Optionally, the determining the type of the application program to be identified according to the type of the application program with the similarity includes:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
For example, assuming that the application types corresponding to apping ventor.
On the other hand, if the application programs with the similarity do not exist, acquiring the application programs of known types in the first group of application programs;
determining the type of the application program to be identified according to the application program of the known type.
Optionally, the determining the type of the application to be identified according to the application of the known type includes:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
For example, the package name of the application to be recognized is avm. android dukkan.mhm, and the package names of the applications of the known types belonging to the same group as the application to be recognized are avm. android dukkan.hsn, avm. android dukkan.bsn and avm. android dukkan.bsp, respectively, in accordance with the above-described division manner, since none of the second parts of the avm. android dukkan.hsn, the avm. android dukkan.bsn and the avm. android dukkan.bsp has the same character in order as the avm. android.
The embodiment can realize the identification of the application program type by acquiring the application programs belonging to the same group as the application program to be identified and determining the category of the application program to be identified according to the package names of the application programs with known types in the application programs of the same group. Furthermore, after the type of the application program is identified, corresponding processing can be carried out, so that more useless data can be cleared, and more storage space can be released.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s21': reading a piece of data in the package name-application type database.
Taking a mobile phone as an example, a storage space of the mobile phone may correspondingly record a package name, an application name and an application type of an application program, the database correspondingly recording the parameters may be referred to as a package name-application type database, and a piece of data read from the database includes the package name, the application name and the application type of an application program.
S22': when the type of the data is unknown, determining that the application program corresponding to the data is the application program to be identified.
The three parameters may exist in one piece of read data, and when the value of the application type is blank, it indicates that the application type of the application program corresponding to the package name is unknown, and it may be determined that the application program is the application program to be identified.
S23': and judging whether the package name of the application program to be recognized has a vocabulary with the identification type, if so, executing S24 ', otherwise, executing S25'.
The word of the identification type is a word of which the type can be directly determined according to the word, for example, the word of the identification type is: mp3 or film, etc.
S24': and determining the type of the vocabulary identification as the type of the application program to be recognized. Then S29' is executed.
For example, when a package name contains '. mp 3', it can be determined that its type is music type.
S25': a first set of applications is obtained, the first set of applications being applications belonging to the same group as the application to be identified.
For example, the package name is sliced according to 'the', if the number of segments after segmentation is less than or equal to 2, the application program belonging to the same group as the application program to be identified is obtained according to the first segment after segmentation, and if the number of segments after segmentation is less than or equal to 2, the application program belonging to the same group as the application program to be identified is obtained according to the first two segments after segmentation.
Specifically, the read package name includes: apinverter ai _ fcatalar, apinverter ai _ estimcc and apinverter ai _ esethac, since the number of segments separated by the '. lam' is 2, the first segment, i.e. the segment before the '. lam' is taken as the first part, and since the first parts (i.e. apinverters) of the three packet names are the same, the three packet names are the same group of application programs.
As another example, the package names read include: am, andriddukkan, hsn and bm, since the number of segments separated by '. prime' is 3, the first and second segments, i.e., the first two segments before '. prime', are taken as the first part, and since the first parts (i.e., am, andriddukkan) of the three package names are the same, the three package names are the same group of applications.
S26': and judging whether the first group of application programs have application programs with known types and package names with similarity to the package name of the application program to be identified, if so, executing S27 ', otherwise, executing S28'.
The package name, the application name and the application type are correspondingly recorded in each piece of data read from the package name-application type database, if the application type corresponding to one package name is known, the type of the application program indicated by the package name is known, otherwise, if the application type corresponding to the package name is blank, the type of the application program indicated by the package name is unknown.
Optionally, the application having similarity with the package name of the application to be identified includes:
the second part has sequentially the same characters as a second part of the package name of the application to be identified, the second part being a part of the package name other than the first part.
For example, assuming that the packet name of the application to be identified is apinventitor ai _ esethac, according to the above-described partitioning manner, the second part refers to the segment after' ″, since the second part of apinventitor ai _ estimeccc (i.e., ai _ estimecc) has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), and the second part of apinventitor ai _ fcatalar (i.e., ai _ fcatalar) also has the same in-sequence characters as the second part of apinventitor ai _ esethac (i.e., ai _ esethac), the application indicated by apinventitor ai _ estimecc and the application indicated by apinventitor ai _ fcatalar are both similar to the application indicated by apinventitor.
S27': and determining the type of the application program to be identified according to the type of the application program with the similarity. Then S29' is executed.
Optionally, the determining the type of the application program to be identified according to the type of the application program with the similarity includes:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
For example, assuming that the application types corresponding to apping ventor.
S28': and acquiring the application programs with known types in the first group of application programs, and determining the type of the application program to be identified according to the application programs with known types.
Optionally, the determining the type of the application to be identified according to the application of the known type includes:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
For example, the package name of the application to be recognized is avm. android dukkan.mhm, and the package names of the applications of the known types belonging to the same group as the application to be recognized are avm. android dukkan.hsn, avm. android dukkan.bsn and avm. android dukkan.bsp, respectively, in accordance with the above-described division manner, since none of the second parts of the avm. android dukkan.hsn, the avm. android dukkan.bsn and the avm. android dukkan.bsp has the same character in order as the avm. android.
S29': reading the next piece of data, execution may repeat S22 '-29' until each piece of data in the database has been processed.
The embodiment can realize the identification of the application program type by acquiring the application programs belonging to the same group as the application program to be identified and determining the category of the application program to be identified according to the package names of the application programs with known types in the application programs of the same group. In addition, when the vocabulary of the identification type exists, the type can be determined according to the vocabulary of the identification type, and the diversity of the type determining mode can be realized. Further, after the type of the application program is identified, corresponding processing can be performed, for example, garbage files and residual files can be cleaned by using corresponding type cleaning rules, so that more useless data can be cleaned, and more storage space can be released.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (23)
1. A method for identifying an application type, comprising:
acquiring a first group of application programs, wherein the first group of application programs belong to the same group as the application program to be identified;
judging whether an application program with a known type and a package name similar to that of the application program to be identified exists in the first group of application programs;
and if so, determining the type of the application program to be identified according to the type of the application program with the similarity.
2. The method of claim 1, wherein obtaining the first set of applications comprises:
determining a first part in a package name of an application, wherein the first part is used for grouping;
determining the application program with the first part identical to the first part of the application program to be identified as the first group of application programs.
3. The method of claim 2, wherein determining the first portion of the package name comprises:
determining the number of segments of the package name separated by separators;
selecting a first segment of the package name separated by the separator as the first portion if the number of segments is less than or equal to a preset threshold; or,
selecting a first segment and a second segment of the package name separated by the separator as the first portion if the number of segments is greater than the preset threshold.
4. The method of claim 3, wherein the separator is a dot number.
5. The method of claim 3, wherein the preset threshold is 2.
6. The method according to claim 2, wherein the application having similarity with the package name of the application to be identified comprises:
the second part has sequentially the same characters as a second part of the package name of the application to be identified, the second part being a part of the package name other than the first part.
7. The method according to claim 6, wherein the determining the type of the application to be identified according to the type of the application with the similarity comprises:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
8. The method of claim 1, further comprising:
if the application programs with the similarity do not exist, acquiring the application programs of known types in the first group of application programs;
determining the type of the application program to be identified according to the application program of the known type.
9. The method of claim 8, wherein determining the type of the application to be identified based on the known type of application comprises:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
10. The method of claim 1, further comprising:
acquiring the package name of the application program to be identified;
judging whether the package name has a vocabulary of an identification type or not so as to acquire a first group of application programs when the package name does not have the vocabulary of the identification type;
if so, determining the type of the vocabulary identification as the type of the application program to be recognized.
11. The method of any one of claims 1-10, further comprising:
reading data from a database, and when the type of the data is unknown, determining that the application program corresponding to the data is the application program to be identified, wherein each piece of data in the database correspondingly records the package name, the application name and the type of the application program.
12. An apparatus for identifying an application type, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first group of application programs, and the first group of application programs are application programs belonging to the same group with the application program to be identified;
the first judging module is used for judging whether the first group of application programs have application programs with known types and package names which have similarity with the package names of the application programs to be identified;
and the first determining module is used for determining the type of the application program to be identified according to the type of the application program with the similarity if the judgment result obtained by the first judging module is that the application program exists.
13. The apparatus of claim 12, wherein the first obtaining module comprises:
a first unit, configured to determine a first part in a package name of an application, where the first part is used for grouping;
a second unit for determining an application having a first part identical to the first part of the application to be identified as the first group of applications.
14. The apparatus according to claim 12, wherein the first unit is specifically configured to:
determining the number of segments of the package name separated by separators;
selecting a first segment of the package name separated by the separator as the first portion if the number of segments is less than or equal to a preset threshold; or,
selecting a first segment and a second segment of the package name separated by the separator as the first portion if the number of segments is greater than the preset threshold.
15. The apparatus of claim 14, wherein the separator is a dot number.
16. The apparatus of claim 14, wherein the preset threshold is 2.
17. The apparatus according to claim 13, wherein the first determining module is specifically configured to determine, as the application having similarity to the package name of the application to be identified, the application corresponding to the package name having a second part with sequentially same characters as a second part of the package name of the application to be identified, the second part being a part of the package name other than the first part.
18. The apparatus of claim 17, wherein the first determining module is specifically configured to:
selecting a first application program from the application programs with the similarity, wherein the number of the characters, in which the second part of the package name of the first application program is the same as the second part of the package name of the application program to be identified, is the largest;
and determining the type of the first application program as the type of the application program to be identified.
19. The apparatus of claim 12, further comprising:
a second determining module, configured to, if the determination result obtained by the first determining module is that the application program does not exist, obtain an application program of a known type in the first group of application programs; determining the type of the application program to be identified according to the application program of the known type.
20. The apparatus of claim 19, wherein the second determining module is specifically configured to:
determining a proportion of each known type of application among the other applications;
and determining the type with the largest proportion as the type of the application program to be identified.
21. The apparatus of claim 13, further comprising:
the second acquisition module is used for acquiring the package name of the application program to be identified;
the second judging module is used for judging whether the package name has a vocabulary with an identification type so as to obtain a first group of application programs when the package name does not have the vocabulary with the identification type;
and a third determining module, configured to determine, when the determination result obtained by the second determining module is yes, the type of the vocabulary identifier as the type of the application to be recognized.
22. The apparatus of any one of claims 13-21, further comprising:
the reading module is used for reading data from a database, and when the type of the data is unknown, determining that the application program corresponding to the data is the application program to be identified, wherein each piece of data in the database correspondingly records the package name, the application name and the type of the application program.
23. A mobile device, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
acquiring a first group of application programs, wherein the first group of application programs belong to the same group as the application program to be identified;
judging whether an application program with a known type and a package name similar to that of the application program to be identified exists in the first group of application programs;
and if so, determining the type of the application program to be identified according to the type of the application program with the similarity.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410522641.3A CN104317574B (en) | 2014-09-30 | 2014-09-30 | Method and device for identifying application program type |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410522641.3A CN104317574B (en) | 2014-09-30 | 2014-09-30 | Method and device for identifying application program type |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104317574A true CN104317574A (en) | 2015-01-28 |
| CN104317574B CN104317574B (en) | 2018-03-30 |
Family
ID=52372809
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410522641.3A Active CN104317574B (en) | 2014-09-30 | 2014-09-30 | Method and device for identifying application program type |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104317574B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105426401A (en) * | 2015-10-30 | 2016-03-23 | 成都狮之吼科技有限公司 | Method and system for cleaning junk file generated by application |
| CN105867935A (en) * | 2016-04-13 | 2016-08-17 | 周奇 | Application management method and device |
| CN106294218A (en) * | 2015-05-19 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The type of a kind of terminal applies determines method and device |
| CN106293779A (en) * | 2015-05-11 | 2017-01-04 | 广州爱九游信息技术有限公司 | A kind of method and device identifying application installation kit |
| CN106294378A (en) * | 2015-05-18 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Application and identification method and device |
| WO2019033510A1 (en) * | 2017-08-16 | 2019-02-21 | 歌尔科技有限公司 | Method for recognizing vr application program, and electronic device |
| CN114706589A (en) * | 2022-04-21 | 2022-07-05 | 北京自如信息科技有限公司 | Method, device and electronic device for scanning repetitive code |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102750482A (en) * | 2012-06-20 | 2012-10-24 | 东南大学 | Detection method for repackage application in android market |
| CN102801709A (en) * | 2012-06-28 | 2012-11-28 | 北京奇虎科技有限公司 | Phishing website identification system and method |
| CN103473346A (en) * | 2013-09-24 | 2013-12-25 | 北京大学 | Android re-packed application detection method based on application programming interface |
| CN103617393A (en) * | 2013-11-28 | 2014-03-05 | 北京邮电大学 | A detection method of mobile Internet malicious application software based on support vector machine |
-
2014
- 2014-09-30 CN CN201410522641.3A patent/CN104317574B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102750482A (en) * | 2012-06-20 | 2012-10-24 | 东南大学 | Detection method for repackage application in android market |
| CN102801709A (en) * | 2012-06-28 | 2012-11-28 | 北京奇虎科技有限公司 | Phishing website identification system and method |
| CN103473346A (en) * | 2013-09-24 | 2013-12-25 | 北京大学 | Android re-packed application detection method based on application programming interface |
| CN103617393A (en) * | 2013-11-28 | 2014-03-05 | 北京邮电大学 | A detection method of mobile Internet malicious application software based on support vector machine |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106293779A (en) * | 2015-05-11 | 2017-01-04 | 广州爱九游信息技术有限公司 | A kind of method and device identifying application installation kit |
| CN106293779B (en) * | 2015-05-11 | 2019-11-08 | 广州爱九游信息技术有限公司 | A kind of method and device identifying application installation package |
| CN106294378A (en) * | 2015-05-18 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Application and identification method and device |
| CN106294218A (en) * | 2015-05-19 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The type of a kind of terminal applies determines method and device |
| CN106294218B (en) * | 2015-05-19 | 2019-10-25 | 腾讯科技(深圳)有限公司 | A kind of type of terminal applies determines method and device |
| CN105426401A (en) * | 2015-10-30 | 2016-03-23 | 成都狮之吼科技有限公司 | Method and system for cleaning junk file generated by application |
| CN105426401B (en) * | 2015-10-30 | 2019-06-04 | 成都狮之吼科技有限公司 | A kind of method and system for the garbage files that cleaning application program generates |
| CN105867935A (en) * | 2016-04-13 | 2016-08-17 | 周奇 | Application management method and device |
| WO2019033510A1 (en) * | 2017-08-16 | 2019-02-21 | 歌尔科技有限公司 | Method for recognizing vr application program, and electronic device |
| CN114706589A (en) * | 2022-04-21 | 2022-07-05 | 北京自如信息科技有限公司 | Method, device and electronic device for scanning repetitive code |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104317574B (en) | 2018-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104317574B (en) | Method and device for identifying application program type | |
| CN113127338B (en) | A firmware testing method, server and computer readable storage medium | |
| RU2013107787A (en) | RECEIVING DEVICE, RECEIVING METHOD, TRANSMISSION DEVICE, TRANSMISSION METHOD, PROGRAM AND BROADCAST TRANSMISSION SYSTEM | |
| US8706711B2 (en) | Descriptor storage and searches of k-dimensional trees | |
| CN112042204A (en) | Method, device and system for generating media playing sequence and computer readable storage medium | |
| CN109862396A (en) | A kind of analysis method of video code flow, electronic equipment and readable storage medium storing program for executing | |
| CN111309586B (en) | Command testing method and device and storage medium thereof | |
| JP6955676B2 (en) | Log analysis method, system and recording medium | |
| CN112511650A (en) | Video uploading method, device, equipment and readable storage medium | |
| CN109151185A (en) | A kind of method and device according to vehicle driving scene matching music type | |
| CN110297811B (en) | Data processing method and device, computer system and computer readable storage medium | |
| US10678539B2 (en) | Information processing device, information processing method for determining program, and storage medium | |
| CN114095410A (en) | Shunting method and device for test experiment and storage medium | |
| CN104317645B (en) | A kind of method and device of Application Instance listening port | |
| CN109150571B (en) | Grid mapping method and device | |
| CN106648912B (en) | Modularization method and device for data processing in data acquisition platform | |
| CN107707856B (en) | Method and device for recording multimedia program | |
| CN109684291B (en) | A file data acquisition method, system, electronic device and medium | |
| FI3516494T3 (en) | Data erasure method and apparatus | |
| CN109871331A (en) | Software function trial and error method of decision analysis and device | |
| CN118192982A (en) | Compiling and downloading method, device, equipment and medium based on digital chip | |
| CN111163019A (en) | Method, device and storage medium for processing data packets | |
| CN109101641A (en) | Form processing method, device, system and medium | |
| US9864668B2 (en) | Apparatus, method, and system for event data processing | |
| US8032696B2 (en) | Decoding device and semiconductor device which read file rewriting discrimination information |
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 |