CN113076452A - Application classification method, device, equipment and computer readable storage medium - Google Patents

Application classification method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113076452A
CN113076452A CN202110252038.8A CN202110252038A CN113076452A CN 113076452 A CN113076452 A CN 113076452A CN 202110252038 A CN202110252038 A CN 202110252038A CN 113076452 A CN113076452 A CN 113076452A
Authority
CN
China
Prior art keywords
application
information
category
package
target information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110252038.8A
Other languages
Chinese (zh)
Inventor
吴茂强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202110252038.8A priority Critical patent/CN113076452A/en
Publication of CN113076452A publication Critical patent/CN113076452A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification

Abstract

The application discloses a method, a device and equipment for classifying applications and a computer readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: acquiring an application program package of an application; acquiring a registry file of an application based on the application package; generating target information based on the registry file, the target information indicating a category of the application; and determining the category of the application according to the target information. The method realizes automatic classification of the applications, improves the classification efficiency of the applications, simplifies the operation flow when the applications are classified by users, and optimizes the user experience. In addition, aiming at any application comprising the registry file, the scheme can realize automatic classification of the application, and the application range is wide.

Description

Application classification method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a method, a device and equipment for classifying applications and a computer readable storage medium.
Background
When a plurality of Applications (APPs) are installed in a terminal, in order to reduce the occupied area of APP icons in a display interface and reduce the time for searching for APPs that need to be opened, the APPs need to be classified.
In the related art, a user judges based on own preference or based on the APP category information provided by an application store, determines the category of the APP, and realizes the classification of the APP. However, the APP is classified according to the judgment result of the user, so that the efficiency is low; when a plurality of APPs need to be classified, the user needs to judge the process of the category for each APP in the plurality of APPs, and the mode occupies a large amount of time of the user and can reduce user experience.
Disclosure of Invention
The embodiment of the application classification method, device and equipment and a computer readable storage medium can be used for improving the APP classification efficiency. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides an application classification method, where the method includes:
acquiring an application program package of an application;
acquiring a registry file of the application based on the application program package;
generating target information based on the registry file, the target information being used for indicating the category of the application;
and determining the category of the application according to the target information.
In a possible implementation manner, the determining the category of the application according to the target information includes:
matching the target information with a plurality of category information, wherein the plurality of category information is a plurality of pieces of specified information used for indicating application categories;
and in response to the target information being successfully matched with any one of the plurality of category information, taking the successfully matched category information as the category of the application.
In a possible implementation manner, the generating target information based on the registry file includes:
extracting attribute information in the registry file, wherein the attribute information comprises at least one of package name, activity and authority;
and directly combining the attribute information to generate target information.
In a possible implementation manner, the generating target information based on the registry file includes:
extracting attribute information in the registry file, wherein the attribute information comprises at least one of package name, activity and authority;
matching the attribute information with a plurality of keywords, wherein the keywords correspond to the types to which the attribute information belongs; and generating a target character in response to the attribute information being successfully matched with any keyword in the plurality of keywords, and generating target information according to the target character.
In one possible implementation, after determining the category of the application, the method further includes:
receiving an instruction for packaging the application, and adding the application to the classified package of the category based on the instruction.
In a possible implementation manner, the classification packet of the category is an existing classification packet of the category or a newly-created classification packet of the category.
In one possible implementation manner, the obtaining an application package of an application includes:
hooking an application package of a hook application, wherein the application is an application in an installation state.
In another aspect, an embodiment of the present application provides an apparatus for classifying applications, where the apparatus includes:
the acquisition module is used for acquiring an application program package of the application;
the acquisition module is further used for acquiring the registry file of the application based on the application program package;
a generation module, configured to generate target information based on the registry file, where the target information is used to indicate a category of the application;
and the classification module is used for determining the category of the application according to the target information.
In another aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one program code or instruction, and the at least one program code or instruction is loaded and executed by the processor, so as to enable the electronic device to implement any one of the above methods for classifying applications.
In another aspect, a computer-readable storage medium is provided, in which at least one program code or instruction is stored, and the at least one program code or instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned methods for application classification.
In another aspect, a computer program or a computer program product is provided, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor, so as to enable a computer to implement any one of the above methods for application classification.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
according to the technical scheme provided by the embodiment of the application, the registry file of the application is obtained, the target information is generated based on the registry file, and the type of the application is determined according to the target information. Therefore, automatic classification of the applications is realized, the classification efficiency of the applications is improved, the operation flow of the user in application classification is simplified, and the user experience is optimized. In addition, aiming at any application comprising the registry file, the scheme can realize automatic classification of the application, and the application range is wide.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment of a method for application classification according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for application classification provided by an embodiment of the present application;
fig. 3 is a schematic view of a display interface of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an apparatus for classifying applications according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a method for classifying applications according to an embodiment of the present application, and as shown in fig. 1, the implementation environment includes: an electronic device 101 and a server 102.
The electronic device 101 may be at least one of a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3(moving picture experts group audio layer III, moving picture experts compression standard audio layer 3) player, an MP4(moving picture experts group audio layer IV, moving picture experts compression standard audio layer 4) player, and a laptop computer. The electronic device 101 is configured to execute the method for classifying applications provided by the embodiment of the present application.
The electronic device 101 may be generally referred to as one of a plurality of electronic devices, and the embodiment is only illustrated by the electronic device 101. Those skilled in the art will appreciate that the number of electronic devices 101 described above may be greater or fewer. For example, the number of the electronic devices 101 may be only one, or the number of the electronic devices 101 may be larger, and the number and the device type of the electronic devices 101 are not limited in the embodiment of the present application.
The server 102 is a server, or a server cluster formed by a plurality of servers, or any one of a cloud computing platform and a virtualization center, which is not limited in this embodiment of the present application. The server 102 and the electronic device 101 are communicatively connected through a wired network or a wireless network. The server 102 stores an application package therein, and the server 102 is configured to provide the application package to the electronic device 101. Of course, the server 102 may also have other functions, which are not limited in this embodiment.
Based on the above implementation environment, the embodiment of the present application provides a method for classifying applications, which is exemplified by the flowchart of the method for classifying applications provided in the embodiment of the present application shown in fig. 2, and the method can be executed by the electronic device 101 in fig. 1. As shown in fig. 2, the method includes the following steps 201 to 204.
In step 201, an application package of an application is obtained.
In one possible implementation, the application package of the application is an APK (android application package) of the application. The types of application packages of the application include, but are not limited to: the downloaded application package of the application store, the downloaded web page linked application package, or the received application package forwarded by other devices. Illustratively, the manner of acquiring the application package of the application is to hook the application package of the (hook) application, which is the application in the installation state. When the application package of the Hook application is used, the application package of the Hook application can be based on any one of an Xposed framework, a Cydia infrastructure framework, an Android Inline Hook framework, a storm Hook framework, a Root-free (super user permission) Hook framework or a Root-free Hook framework based on YAHFA of virtual application. Of course, the framework of the application package of the hook application may also be based on other frameworks.
In step 202, based on the application package, a registry file for the application is obtained.
The application package of the application includes a plurality of files, such as compiled code files, file resources (resources), native resource files (assets), certificates (certifies), and registry files. Xml file, the registry file of the application is obtained by obtaining the file with the file extension name of xml in the application package.
In step 203, target information indicating a category of the application is generated based on the registry file.
In a possible implementation manner, the attribute information in the registry file is extracted, and the attribute information includes at least one of package name (packageaname), activity (activity) information, and permission (permission) information.
In one possible implementation, the attribute information in the registry file is extracted by a circular scan, for example, a function is used to perform a circular scan on the registry file. Illustratively, in response to the attribute information comprising a plurality of pieces of sub information, the registry file is cyclically scanned by a plurality of functions, wherein each function of the plurality of functions is used for extracting one piece of sub information; for example, a package name is acquired by getheadmaname (), activity information is acquired by getheadmanager (), and authority information is acquired by aapt (android asset packaging tool).
Illustratively, the target information is generated based on the attribute information, including but not limited to the following two ways.
In the first mode, the attribute information is directly combined to generate the target information.
For example, the extracted attribute information includes a package name a, an activity B, and a right C, and the attribute information is directly combined to generate target information ABC.
Matching the attribute information with a plurality of keywords, wherein the keywords correspond to the types of the attribute information; and generating a target character in response to the attribute information being successfully matched with any keyword in the plurality of keywords, and generating target information according to the target character.
Illustratively, in response to the attribute information including a plurality of pieces of sub information, for any piece of sub information in the plurality of pieces of sub information, matching the any piece of sub information with a plurality of keywords of a type to which the any piece of sub information belongs; generating a target character in response to the successful matching of any sub-information and any keyword in the plurality of keywords; target information is generated based on the plurality of target characters.
For example, the attribute information includes package name sub-information, and a plurality of keywords corresponding to the package name sub-information include music, education, and shopping, wherein if the package name sub-information is successfully matched with the keyword "music", a target character 1 is generated, if the package name sub-information is successfully matched with the keyword "education", a target character 2 is generated, and if the package name sub-information is successfully matched with the keyword "shopping", a target character 3 is generated; if the package name sub information is 'XX music', a target character 1 is generated in response to the successful matching of the package name sub information and the keyword 'music'. For another example, the attribute information further includes authority sub information, where the plurality of keywords corresponding to the authority sub information include "allow the application to update the collected battery data" and "allow the application to connect to the paired bluetooth device", and if the authority sub information is successfully matched with the keyword "allow the application to update the collected battery data", a target character 1 is generated, and if the authority sub information is successfully matched with the keyword "allow the application to update the collected battery data", a target character 2 is generated; if the authority sub-information is "allow application to update the collected battery data", the target character 1 is generated in response to a successful match of the authority sub-information with the keyword "allow application to update the collected battery data". If the attribute information comprises a plurality of authority sub information, matching each authority sub information in the plurality of authority sub information with a plurality of keywords respectively, and generating a target character group according to the successfully matched authority sub information, wherein the target character group comprises target characters generated according to each successfully matched authority sub information. It should be noted that the package attribute information and the keywords in the embodiment of the present application are only the attribute information and the keywords illustrated in the embodiment of the present application, and the type and the number of the attribute information and the keywords are not limited.
In step 204, the category of the application is determined based on the target information.
In one possible implementation manner, the target information is matched with a plurality of category information, and the plurality of category information is a plurality of pieces of specified information used for indicating application categories; and in response to the target information being successfully matched with any one of the plurality of category information, taking the successfully matched category information as the category of the application.
Illustratively, the target information is matched with a plurality of category information, any of the plurality of category information includes a plurality of parts, and each part of the plurality of parts corresponds to a part of the target information. For example, the target information is ABC, and the any one category information includes a first part, a second part and a third part, where the first part corresponds to part a in the target information, the second part corresponds to part B in the target information, and the third part corresponds to part C in the target information; and matching each part in the target information with a corresponding part in any one of the category information, and in response to that each part in the target information is successfully matched with a corresponding part in any one of the category information, for example, if each part in the target information is identical to a corresponding part in any one of the category information, the matching is successful, and the category information which is successfully matched is used as the category of the application.
For example, if any part of the target information is different from the corresponding part of the any category information, the matching between the any part and the corresponding part of the any category information fails, and the matching between the target information and the any category information fails. Still taking the above target information as ABC, each category information includes a first part, a second part and a third part as an example for description, if the first part is a, the second part is B, and the third part is D, where D is different from C; since the part C in the target information corresponds to the third part in any one of the categories of information, and C is different from D, the matching between the part C and the third part fails, and the matching between the target information ABC and any one of the categories of information fails. If the target information and the plurality of category information fail to be matched, the manner of determining the category of the application includes, but is not limited to: and generating a new category according to the target information, and determining the new category as the category of the application.
In a possible implementation manner, after step 204, the method for classifying the application further includes: an instruction to package an application is received, and based on the instruction, a classification package applied to the category is added. Wherein the classification package of the category includes but is not limited to: an existing classification package of a category, or a newly created classification package of a category.
For example, after determining the category of the application, the electronic device may display a prompt for prompting the user whether to add the application to the classification package belonging to the category; responding to the received instruction as an instruction for packaging application, and adding the application to the classified package of the category based on the instruction; and in response to the received instruction being an instruction for not packaging the application, not adding the application to the classified packet of the category to which the application belongs based on the instruction.
The description will be given taking the display interface of the electronic device shown in fig. 3 as an example. FIG. 3 includes a classification package with category education and a classification package with category shopping; the application 1 is an application classified as education, and the application 1 is added to a classification package classified as education based on the received instruction as an instruction for packaging the application 1; the application 2 is an application classified into music, and the application 2 is added to a classification packet of music in the category based on the received instruction as an instruction for packaging the application 2, wherein the classification packet of music in the category is a newly-created classification packet.
The method comprises the steps of acquiring a registry file of an application, generating target information based on the registry file, and determining the type of the application according to the target information. Therefore, automatic classification of the applications is realized, the classification efficiency of the applications is improved, the operation flow of the user in application classification is simplified, and the user experience is optimized. In addition, aiming at any application comprising the registry file, the scheme can realize automatic classification of the application, and the application range is wide.
It should be noted that the above method for classifying applications can be functionally multiplexed with the existing method for installing applications. Illustratively, the functions of the application classification method in the embodiment of the application are superimposed on the application installation method, and the superimposed method is used as the application classification method, so that the application classification is further superimposed on the basis of the original functions of the application installation method. For example, when an application is installed, an application package of the application is obtained, and then the process of classifying the application in the method embodiment is performed based on the application package; after the application is installed, displaying a prompt indicating whether the application is added to the classified classification package, receiving an instruction for packaging the application, and adding the application to the classified classification package based on the instruction to realize application classification.
Fig. 4 is a schematic structural diagram of an application classification apparatus according to an embodiment of the present application, which is used for performing the above application classification method. As shown in fig. 4, the apparatus includes:
an obtaining module 401, configured to obtain an application package of an application;
the obtaining module 401 is further configured to obtain a registry file of an application based on the application package;
a generating module 402, configured to generate target information based on the registry file, where the target information is used to indicate a category of the application;
a classification module 403, configured to determine a category of the application according to the target information.
In a possible implementation manner, the classification module 403 is configured to match the target information with a plurality of category information, where the plurality of category information is a plurality of specifying information for indicating an application category; and in response to the target information being successfully matched with any one of the plurality of category information, taking the successfully matched category information as the category of the application.
Illustratively, the generating module 402 is configured to extract attribute information in the registry file, where the attribute information includes at least one of package name, activity, and authority; and directly combining the attribute information to generate target information.
Illustratively, the generating module 402 is further configured to match the attribute information with a plurality of keywords, where the plurality of keywords correspond to types to which the attribute information belongs; and generating a target character in response to the attribute information being successfully matched with any keyword in the plurality of keywords, and generating target information according to the target character.
Illustratively, the apparatus further comprises: and the packaging module is used for receiving an instruction of packaging the application and adding the classification package applied to the category based on the instruction. Illustratively, the classification packet of the category is an existing classification packet of the category, or a newly-created classification packet of the category.
Illustratively, the obtaining module 401 is configured to apply an application package to a hook application, where the application is an application in an installation state.
The device generates target information based on the registry file by acquiring the registry file of the application, and determines the type of the application according to the target information. Therefore, automatic classification of the applications is realized, the classification efficiency of the applications is improved, the operation flow of the user in application classification is simplified, and the user experience is optimized. In addition, aiming at any application comprising the registry file, the scheme can realize automatic classification of the application, and the application range is wide.
It should be understood that, when the apparatus provided in fig. 4 implements its functions, it is only illustrated by the division of the functional modules, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 5 shows a block diagram of an electronic device 500 according to an exemplary embodiment of the present application. The electronic device 500 may be a portable terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The electronic device 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, the electronic device 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 502 is used to store at least one program code or instruction for execution by processor 501 to implement the method of application classification provided by the method embodiments herein.
In some embodiments, the electronic device 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, display screen 505, camera assembly 506, audio circuitry 507, positioning assembly 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, disposed on the front panel of the electronic device 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the electronic device 500 or in a folded design; in other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 507 may also include a headphone jack.
The positioning component 508 is used to locate the current geographic Location of the electronic device 500 for navigation or LBS (Location Based Service). The Positioning component 508 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 509 is used to power the various components in the electronic device 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the electronic device 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the display screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the electronic device 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the electronic device 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 513 may be disposed on a side bezel of the electronic device 500 and/or underneath the display screen 505. When the pressure sensor 513 is disposed on the side frame of the electronic device 500, the holding signal of the user to the electronic device 500 can be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be disposed on the front, back, or side of the electronic device 500. When a physical button or vendor Logo is provided on the electronic device 500, the fingerprint sensor 514 may be integrated with the physical button or vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 505 is increased; when the ambient light intensity is low, the display brightness of the display screen 505 is reduced. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also known as a distance sensor, is typically disposed on the front panel of the electronic device 500. The proximity sensor 516 is used to capture the distance between the user and the front of the electronic device 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the electronic device 500 gradually decreases, the processor 501 controls the display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the electronic device 500 becomes gradually larger, the processor 501 controls the display screen 505 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of the electronic device 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, there is also provided a computer-readable storage medium having at least one program code or instruction stored therein, the at least one program code or instruction being loaded and executed by a processor to cause a computer to implement any of the above-described methods of application classification.
Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program or a computer program product is also provided, in which at least one computer instruction is stored, which is loaded and executed by a processor, to cause a computer to implement any of the above-mentioned methods of application classification.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of application classification, the method comprising:
acquiring an application program package of an application;
acquiring a registry file of the application based on the application program package;
generating target information based on the registry file, the target information being used for indicating the category of the application;
and determining the category of the application according to the target information.
2. The method of claim 1, wherein determining the class of the application according to the target information comprises:
matching the target information with a plurality of category information, wherein the plurality of category information is a plurality of pieces of specified information used for indicating application categories;
and in response to the target information being successfully matched with any one of the plurality of category information, taking the successfully matched category information as the category of the application.
3. The method of claim 1 or 2, wherein generating target information based on the registry file comprises:
extracting attribute information in the registry file, wherein the attribute information comprises at least one of package name, activity and authority;
and directly combining the attribute information to generate target information.
4. The method of claim 1 or 2, wherein generating target information based on the registry file comprises:
extracting attribute information in the registry file, wherein the attribute information comprises at least one of package name, activity and authority;
matching the attribute information with a plurality of keywords, wherein the keywords correspond to the types to which the attribute information belongs; and generating a target character in response to the attribute information being successfully matched with any keyword in the plurality of keywords, and generating target information according to the target character.
5. The method of claim 1 or 2, wherein after determining the category of the application, the method further comprises:
receiving an instruction for packaging the application, and adding the application to the classified package of the category based on the instruction.
6. The method of claim 5, wherein the class classification package is an existing class classification package or a newly-created class classification package.
7. The method according to any one of claims 1, 2 and 6, wherein the obtaining the application package of the application comprises:
hooking an application package of a hook application, wherein the application is an application in an installation state.
8. An apparatus for application classification, the apparatus comprising:
the acquisition module is used for acquiring an application program package of the application;
the acquisition module is further used for acquiring the registry file of the application based on the application program package;
a generation module, configured to generate target information based on the registry file, where the target information is used to indicate a category of the application;
and the classification module is used for determining the category of the application according to the target information.
9. An electronic device, comprising a processor and a memory, wherein at least one program code or instruction is stored in the memory, and the at least one program code or instruction is loaded and executed by the processor to cause the electronic device to implement the method for application classification according to any one of claims 1-7.
10. A computer-readable storage medium having stored therein at least one program code or instruction, the at least one program code or instruction being loaded and executed by a processor to cause a computer to implement a method of application classification as claimed in any one of claims 1 to 7.
CN202110252038.8A 2021-03-08 2021-03-08 Application classification method, device, equipment and computer readable storage medium Pending CN113076452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110252038.8A CN113076452A (en) 2021-03-08 2021-03-08 Application classification method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110252038.8A CN113076452A (en) 2021-03-08 2021-03-08 Application classification method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113076452A true CN113076452A (en) 2021-07-06

Family

ID=76612139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110252038.8A Pending CN113076452A (en) 2021-03-08 2021-03-08 Application classification method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113076452A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398102A (en) * 2022-01-18 2022-04-26 杭州米络星科技(集团)有限公司 Application package generation method and device, compiling server and computer readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170495A (en) * 2011-04-07 2011-08-31 宇龙计算机通信科技(深圳)有限公司 Mobile phone application classification management method and device
CN103049515A (en) * 2012-12-14 2013-04-17 北京小米科技有限责任公司 Method, device and equipment for classifying application programs
CN103218238A (en) * 2013-03-27 2013-07-24 四川长虹电器股份有限公司 Method of classifying application programs based on operating system
CN104657181A (en) * 2015-03-02 2015-05-27 深圳市中兴移动通信有限公司 Method and device for mounting application program
CN105046270A (en) * 2015-06-19 2015-11-11 上海卓悠网络科技有限公司 Application classification model constructing method and system and application classification method and system
US20160021174A1 (en) * 2014-07-17 2016-01-21 Telefonica Digital Espana, S.L.U. Computer implemented method for classifying mobile applications and computer programs thereof
CN106227400A (en) * 2016-07-13 2016-12-14 乐视控股(北京)有限公司 Application icon automatic clustering method, device and terminal unit
CN106445619A (en) * 2016-10-18 2017-02-22 江西博瑞彤芸科技有限公司 Classified setting method of applications
CN109376771A (en) * 2018-09-27 2019-02-22 北京小米移动软件有限公司 Application program classification method and device
CN110941638A (en) * 2018-09-21 2020-03-31 武汉安天信息技术有限责任公司 Application classification rule base construction method, application classification method and device
US20200410100A1 (en) * 2019-06-28 2020-12-31 AO Kaspersky Lab System and method of categorization of an application on a computing device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170495A (en) * 2011-04-07 2011-08-31 宇龙计算机通信科技(深圳)有限公司 Mobile phone application classification management method and device
CN103049515A (en) * 2012-12-14 2013-04-17 北京小米科技有限责任公司 Method, device and equipment for classifying application programs
CN103218238A (en) * 2013-03-27 2013-07-24 四川长虹电器股份有限公司 Method of classifying application programs based on operating system
US20160021174A1 (en) * 2014-07-17 2016-01-21 Telefonica Digital Espana, S.L.U. Computer implemented method for classifying mobile applications and computer programs thereof
CN104657181A (en) * 2015-03-02 2015-05-27 深圳市中兴移动通信有限公司 Method and device for mounting application program
CN105046270A (en) * 2015-06-19 2015-11-11 上海卓悠网络科技有限公司 Application classification model constructing method and system and application classification method and system
CN106227400A (en) * 2016-07-13 2016-12-14 乐视控股(北京)有限公司 Application icon automatic clustering method, device and terminal unit
CN106445619A (en) * 2016-10-18 2017-02-22 江西博瑞彤芸科技有限公司 Classified setting method of applications
CN110941638A (en) * 2018-09-21 2020-03-31 武汉安天信息技术有限责任公司 Application classification rule base construction method, application classification method and device
CN109376771A (en) * 2018-09-27 2019-02-22 北京小米移动软件有限公司 Application program classification method and device
US20200410100A1 (en) * 2019-06-28 2020-12-31 AO Kaspersky Lab System and method of categorization of an application on a computing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398102A (en) * 2022-01-18 2022-04-26 杭州米络星科技(集团)有限公司 Application package generation method and device, compiling server and computer readable storage medium
CN114398102B (en) * 2022-01-18 2023-08-08 杭州米络星科技(集团)有限公司 Application package generation method and device, compiling server and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN108717365B (en) Method and device for executing function in application program
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN110851823B (en) Data access method, device, terminal and storage medium
CN111159604A (en) Picture resource loading method and device
CN111897465B (en) Popup display method, device, equipment and storage medium
CN112257006A (en) Page information configuration method, device, equipment and computer readable storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN111192072A (en) User grouping method and device and storage medium
CN107943484B (en) Method and device for executing business function
CN112612539B (en) Data model unloading method and device, electronic equipment and storage medium
CN112118353A (en) Information display method, device, terminal and computer readable storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN113051015B (en) Page rendering method and device, electronic equipment and storage medium
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN112612540B (en) Data model configuration method, device, electronic equipment and storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN109618018B (en) User head portrait display method, device, terminal, server and storage medium
CN113268234A (en) Page generation method, device, terminal and storage medium
CN112783533A (en) Version information updating method, version information updating device, terminal and storage medium
CN112132472A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN111191254A (en) Access verification method and device, computer equipment and storage medium
CN111008381B (en) Terminal detection method, device, terminal and storage medium
CN113064537B (en) Media resource playing method, device, equipment, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination