CN106951350B - Method and device for checking mobile terminal disk - Google Patents

Method and device for checking mobile terminal disk Download PDF

Info

Publication number
CN106951350B
CN106951350B CN201710202315.8A CN201710202315A CN106951350B CN 106951350 B CN106951350 B CN 106951350B CN 201710202315 A CN201710202315 A CN 201710202315A CN 106951350 B CN106951350 B CN 106951350B
Authority
CN
China
Prior art keywords
information
mobile terminal
association
application
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710202315.8A
Other languages
Chinese (zh)
Other versions
CN106951350A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710202315.8A priority Critical patent/CN106951350B/en
Publication of CN106951350A publication Critical patent/CN106951350A/en
Application granted granted Critical
Publication of CN106951350B publication Critical patent/CN106951350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Abstract

The invention discloses a method and a device for checking a mobile terminal disk, wherein the method comprises the following steps: collecting the use information of the installed application program, and establishing and storing a related information data model according to the collected use information of the installed application program; when the mobile terminal is in a screen-off standby state, detecting the mobile terminal to obtain detection information of the mobile terminal, comparing and judging the detection information with the associated information data model, and generating a trigger signal; and checking the magnetic disk of the mobile terminal according to the generated trigger signal. According to the method, by collecting the use information of the application program and establishing the associated information data model, when the mobile terminal is in a screen-off standby state, the magnetic disk inspection is triggered through detection, comparison and judgment; the disk check can be ensured to be executed in the background of the system, and the disk check is completed under the condition that a user cannot sense and the mobile terminal is in a suspended use state; and the safe and stable operation of the application data and the magnetic disk of the mobile terminal can be ensured.

Description

Method and device for checking mobile terminal disk
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method and a device for checking a mobile terminal disk.
Background
With the rapid development and popularization of intelligent terminals, the intelligent terminals become a part of daily life of people, and people can communicate with each other in real time through the intelligent terminals, play interactive network games, receive various push information, participate in interactive questions and answers and the like.
In the process of implementing the invention, the inventor finds that the prior art has the following problems: the end-user has more interesting applications installed in the limited disk space, and the disk has a dense storage of the user's application data and usage data, in which case the security and stability of the disk is a matter of consideration and concern for the end-user.
Disclosure of Invention
The invention mainly aims to provide a method and a device for checking a mobile terminal disk, aiming at solving the problem of how to check the mobile terminal disk and ensuring the safe and stable operation of the mobile terminal disk.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for checking a mobile terminal disk, where the method includes:
collecting the use information of the installed application program, and establishing and storing a related information data model according to the collected use information of the installed application program;
when the mobile terminal is in a screen-off standby state, detecting the mobile terminal to obtain detection information of the mobile terminal, comparing and judging the detection information with the associated information data model, and generating a trigger signal;
and checking the magnetic disk of the mobile terminal according to the generated trigger signal.
Further, the usage information includes an application name, an application usage period, an application usage place, and an associated usage progress of the application.
Further, the associated use process of the application program is obtained through a runtime code detection technology.
Further, the association type of the association information data model comprises application association, time association and place association; the degree of association strength in each association type is represented by an association factor.
Further, the detection information includes application name information, time information, or location information.
In addition, to achieve the above object, a second aspect of the embodiments of the present invention provides an apparatus for checking a magnetic disk of a mobile terminal, where the apparatus includes: the system comprises an application information collection module, an associated information database, a detection processing module and a disk inspection module;
the application information collection module is used for collecting the use information of the installed application program and establishing a correlation information data model according to the collected use information of the installed application program;
the associated information database is used for storing an associated information data model established by the application information collection module;
the detection processing module is used for detecting the mobile terminal when the mobile terminal is in a screen-off standby state, acquiring detection information of the mobile terminal, comparing and judging the detection information with an associated information data model in the associated information database, and generating a trigger signal to the disk inspection module;
and the magnetic disk checking module is used for checking the magnetic disk of the mobile terminal according to the trigger signal generated by the detection processing module.
Further, the usage information includes an application name, an application usage period, an application usage place, and an associated usage progress of the application.
Further, the associated use process of the application program is obtained through a runtime code detection technology.
Further, the association type of the association information data model comprises application association, time association and place association; the degree of association strength in each association type is represented by an association factor.
Further, the detection information includes application name information, time information, or location information.
According to the method and the device for checking the mobile terminal disk, the associated information data model is established by collecting the use information of the installed application program, and disk checking is triggered by detection, comparison and judgment when the mobile terminal is in a screen-off standby state; on one hand, the disk check can be ensured to be executed in the background of the system, and the disk check is completed under the condition that a user cannot sense and the mobile terminal is in a suspended use state; on the other hand, the safe and stable operation of the application data and the magnetic disk of the mobile terminal can be ensured.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
FIG. 3 is a flow chart of a method for checking a mobile terminal disk according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for checking a mobile terminal disk according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a data broadcasting system of multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO @), terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (incomingmunication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
As shown in fig. 3, a method for checking a mobile terminal disk according to a first embodiment of the present invention includes:
30. and collecting the use information of the installed application program, and establishing and storing a related information data model according to the collected use information of the installed application program.
In the present embodiment, the usage information includes an application name, an application usage period, an application usage place, and an associated usage progress of the application.
Wherein, the application name refers to the name of the application. The application use period refers to a period of time in which the application is used. As an example, the application usage period may include five values, respectively: morning, noon, afternoon, evening, undefined, whose values are defined in the following table:
period of use Definition of
In the morning 6:30——8:30
Noon is a Chinese traditional musical instrument 11:30——13:30
In the afternoon 17:30——19:30
At night 20:30——22:30
Is not defined The rest of the day
The application program use place refers to the geographical position of the mobile terminal when the application program is used, and is expressed by longitude and latitude.
The associated use process refers to other applications or processes that are used in association when the application is used, and the associated process may include a plurality of processes.
In this embodiment, the associated usage process of the application program may be obtained through a runtime code detection technique.
The runtime code detection technology is mainly used for detecting other application programs which can be associated and started by detecting code segments and data segments of a class when a java virtual machine needs to load the code segments and the data segments of the class in the running process of an application program under a specific code scanning rule, so that data for the associated and started of the application program and other application programs of a system are established. The format of the associated startup data table is as follows, and one class file can correspond to a plurality of associated startup applications:
class name Associating launching applications
In android applications, one application needs to launch another application, typically in four ways: ActVItivy for starting other applications, Service for starting other applications, Provider for starting other applications, and broadcasting. Therefore, the rule for detecting whether to call other application programs by scanning the class file is as follows:
1) scanning startActivity and startActityForResult methods, detecting component values of parameter intent in the two methods, and adding the application program into an associated starting data table if the component values are not the class in the application program;
2) scanning startService and bindService methods, detecting component values of parameter intent in the two methods, and adding the application program into an associated starting data table if the component values are not the class in the application program and are not the service of the system;
3) scanning sendBloadcast, sendOrderedBroadcast and sendStickyBroadcast methods, detecting component values of parameters intent in the three methods, and adding the application program into an associated starting data table if the application program is not a class in the application program;
4) scanning query, insert, delete and update method calls of a ContentResolver object, detecting the value of a parameter URI in the four method calls, and adding the application program into an associated starting data table if the application program does not point to the class in the application program;
after each class file is scanned according to the four rules, the associated starting data table of the application program can be established.
In the embodiment, the association types of the associated information data model include application association, time association and place association; the degree of association strength in each association type is represented by an association factor.
The application association refers to an association type between the application programs and the application programs which is established according to the sequence of the application programs used by the user and the functional logic sequence relation; the time association refers to the type of association between a time period established by a user using an application program in a specific time period and the application program; a place association refers to the type of association between a place and an application that is established based on the use of the application by a user at a particular place.
As an example, the association factor may be an integer value, and the value range of the association factor may be 0 to 8, where 0 indicates no association, 8 indicates the strongest degree of association, and the larger the value of the association factor, the stronger the degree of association, and the smaller the value, the weaker the degree of association.
By way of example, three associative relations may be represented by three database tables, respectively as follows:
1) and an application association table:
name of application Associated application name Correlation factor
2) And a time association table:
period of use Associated application name Correlation factor
3) And a place association table:
place of use Associated application name Correlation factor
As an example, the calculation rule of the association factor may be as follows:
1) for the application association table, when a user starts an application program each time, if the association application is started by the user within 10 minutes after the current application program is started, adding 1 to the association factor, and if the association application is not started within 10 minutes, subtracting 1 from the association factor;
2) for the time association table, in the current time period, if the user starts the association application once, the association factor is added by 1, if the user does not start in the current time period, the association factor is subtracted by 1, and the association factor is only calculated once in each time period;
3) for the place association table, on the current place, if the user starts the association application once, the association factor is added by 1, if the user does not start on the current place, the association factor is subtracted by 1, and the association factor is only calculated once per day;
by associating the above rules and data structures, the associated information data model can be calculated according to the usage information applied by the user every day.
31. When the mobile terminal is in a screen-off standby state, the mobile terminal is detected, detection information of the mobile terminal is obtained, the detection information is compared with the associated information data model for judgment, and a trigger signal is generated.
In the present embodiment, the detection information includes application name information, time information, or place information.
32. And checking the magnetic disk of the mobile terminal according to the generated trigger signal.
As an example, when the mobile terminal is in off-screen standby, the mobile terminal is detected, and if the acquired detection information of the mobile terminal is time information, the time information is compared with a time association table in the associated information data model, and a disk check operation may be triggered for an application program in a use period corresponding to the time information and/or an application program with a large association factor value.
According to the method for checking the mobile terminal disk, the relevant information data model is established by collecting the use information of the installed application program, and disk checking is triggered by detection, comparison and judgment when the mobile terminal is in a screen-off standby state; on one hand, the disk check can be ensured to be executed in the background of the system, and the disk check is completed under the condition that a user cannot sense and the mobile terminal is in a suspended use state; on the other hand, the safe and stable operation of the application data and the magnetic disk of the mobile terminal can be ensured.
The invention further provides an apparatus.
Referring to fig. 4, fig. 4 is a second embodiment of an apparatus for checking a mobile terminal disk, including: an application information collection module 40, an associated information database 41, a detection processing module 42 and a disk inspection module 43.
And the application information collecting module 40 is used for collecting the use information of the installed application program and establishing a correlation information data model according to the collected use information of the installed application program.
In the present embodiment, the usage information includes an application name, an application usage period, an application usage place, and an associated usage progress of the application.
Wherein, the application name refers to the name of the application. The application use period refers to a period of time in which the application is used. As an example, the application usage period may include five values, respectively: morning, noon, afternoon, evening, undefined, whose values are defined in the following table:
period of use Definition of
In the morning 6:30——8:30
Noon is a Chinese traditional musical instrument 11:30——13:30
In the afternoon 17:30——19:30
At night 20:30——22:30
Is not defined The rest of the day
The application program use place refers to the geographical position of the mobile terminal when the application program is used, and is expressed by longitude and latitude.
The associated use process refers to other applications or processes that are used in association when the application is used, and the associated process may include a plurality of processes.
In this embodiment, the associated usage process of the application program may be obtained through a runtime code detection technique.
The runtime code detection technology is mainly used for detecting other application programs which can be associated and started by detecting code segments and data segments of a class when a java virtual machine needs to load the code segments and the data segments of the class in the running process of an application program under a specific code scanning rule, so that data for the associated and started of the application program and other application programs of a system are established. The format of the associated startup data table is as follows, and one class file can correspond to a plurality of associated startup applications:
class name Associating launching applications
In android applications, one application needs to launch another application, typically in four ways: ActVItivy for starting other applications, Service for starting other applications, Provider for starting other applications, and broadcasting. Therefore, the rule for detecting whether to call other application programs by scanning the class file is as follows:
1) scanning startActivity and startActityForResult methods, detecting component values of parameter intent in the two methods, and adding the application program into an associated starting data table if the component values are not the class in the application program;
2) scanning startService and bindService methods, detecting component values of parameter intent in the two methods, and adding the application program into an associated starting data table if the component values are not the class in the application program and are not the service of the system;
3) scanning sendBloadcast, sendOrderedBroadcast and sendStickyBroadcast methods, detecting component values of parameters intent in the three methods, and adding the application program into an associated starting data table if the application program is not a class in the application program;
4) scanning query, insert, delete and update method calls of a ContentResolver object, detecting the value of a parameter URI in the four method calls, and adding the application program into an associated starting data table if the application program does not point to the class in the application program;
after each class file is scanned according to the four rules, the associated starting data table of the application program can be established.
And the associated information database 41 is used for storing the associated information data model established by the application information collection module 40.
In the embodiment, the association types of the associated information data model include application association, time association and place association; the degree of association strength in each association type is represented by an association factor.
The application association refers to an association type between the application programs and the application programs which is established according to the sequence of the application programs used by the user and the functional logic sequence relation; the time association refers to the type of association between a time period established by a user using an application program in a specific time period and the application program; a place association refers to the type of association between a place and an application that is established based on the use of the application by a user at a particular place.
As an example, the association factor may be an integer value, and the value range of the association factor may be 0 to 8, where 0 indicates no association, 8 indicates the strongest degree of association, and the larger the value of the association factor, the stronger the degree of association, and the smaller the value, the weaker the degree of association.
By way of example, three associative relations may be represented by three database tables, respectively as follows:
1) and an application association table:
name of application Associated application name Correlation factor
2) And a time association table:
period of use Associated application name Correlation factor
3) And a place association table:
place of use Associated application name Correlation factor
As an example, the calculation rule of the association factor may be as follows:
1) for the application association table, when a user starts an application program each time, if the association application is started by the user within 10 minutes after the current application program is started, adding 1 to the association factor, and if the association application is not started within 10 minutes, subtracting 1 from the association factor;
2) for the time association table, in the current time period, if the user starts the association application once, the association factor is added by 1, if the user does not start in the current time period, the association factor is subtracted by 1, and the association factor is only calculated once in each time period;
3) for the place association table, on the current place, if the user starts the association application once, the association factor is added by 1, if the user does not start on the current place, the association factor is subtracted by 1, and the association factor is only calculated once per day;
by associating the above rules and data structures, the associated information data model can be calculated according to the usage information applied by the user every day.
The detection processing module 42 is configured to detect the mobile terminal when the mobile terminal is in a standby state of being turned off, acquire detection information of the mobile terminal, compare and judge the detection information with the associated information data model in the associated information database 41, and generate a trigger signal to the disk checking module 43.
In the present embodiment, the detection information includes application name information, time information, or place information.
And a disk checking module 43, configured to check a disk of the mobile terminal according to the trigger signal generated by the detection processing module 42.
As an example, when the mobile terminal is in off-screen standby, the mobile terminal is detected, and if the acquired detection information of the mobile terminal is time information, the time information is compared with a time association table in the associated information data model, and a disk check operation may be triggered for an application program in a use period corresponding to the time information and/or an application program with a large association factor value.
According to the device for checking the mobile terminal disk, the relevant information data model is established by collecting the use information of the installed application program, and disk checking is triggered by detection, comparison and judgment when the mobile terminal is in a screen-off standby state; on one hand, the disk check can be ensured to be executed in the background of the system, and the disk check is completed under the condition that a user cannot sense and the mobile terminal is in a suspended use state; on the other hand, the safe and stable operation of the application data and the magnetic disk of the mobile terminal can be ensured.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for checking a mobile terminal disk comprises the following steps:
collecting the use information of the installed application program, and establishing and storing a related information data model according to the collected use information of the installed application program;
when the mobile terminal is in a screen-off standby state, detecting the mobile terminal to obtain detection information of the mobile terminal, comparing and judging the detection information with the associated information data model, and generating a trigger signal;
according to the generated trigger signal, checking a magnetic disc of the mobile terminal;
wherein the detection information includes time information;
the step of obtaining the detection information of the mobile terminal, comparing and judging the detection information with the associated information data model, and generating the trigger signal comprises:
and acquiring the acquired detection information of the mobile terminal as time information, comparing the time information with a time association table in an associated information data model, and triggering a disk checking action aiming at an application program in a use time period corresponding to the time information and/or an application program with a large association factor value.
2. The method according to claim 1, wherein the usage information includes application name, application usage period, application usage location, and associated usage progress of the application.
3. The method according to claim 2, wherein the associated usage progress of the application program is obtained by a runtime code detection technique.
4. The method according to claim 1, wherein the association type of the associated information data model includes application association, time association, and location association; the degree of association strength in each association type is represented by an association factor.
5. The method according to claim 1, wherein the detection information further includes application name information or location information.
6. An inspection apparatus for a mobile terminal disk, the apparatus comprising: the system comprises an application information collection module, an associated information database, a detection processing module and a disk inspection module;
the application information collection module is used for collecting the use information of the installed application program and establishing a correlation information data model according to the collected use information of the installed application program;
the associated information database is used for storing an associated information data model established by the application information collection module;
the detection processing module is used for detecting the mobile terminal when the mobile terminal is in a screen-off standby state, acquiring detection information of the mobile terminal, comparing and judging the detection information with an associated information data model in the associated information database, and generating a trigger signal to the disk inspection module;
the magnetic disk checking module is used for checking the magnetic disk of the mobile terminal according to the trigger signal generated by the detection processing module;
wherein the detection information includes time information;
the step of obtaining the detection information of the mobile terminal, comparing and judging the detection information with the associated information data model, and generating the trigger signal comprises:
and acquiring the acquired detection information of the mobile terminal as time information, comparing the time information with a time association table in an associated information data model, and triggering a disk checking action aiming at an application program in a use time period corresponding to the time information and/or an application program with a large association factor value.
7. The apparatus according to claim 6, wherein the usage information comprises application name, application usage period, application usage location, and associated usage progress of the application.
8. The apparatus according to claim 7, wherein the associated usage progress of the application program is obtained by a runtime code detection technique.
9. The apparatus according to claim 6, wherein the association type of the associated information data model comprises application association, time association and location association; the degree of association strength in each association type is represented by an association factor.
10. The apparatus according to claim 6, wherein the detection information further comprises application name information or location information.
CN201710202315.8A 2017-03-30 2017-03-30 Method and device for checking mobile terminal disk Active CN106951350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710202315.8A CN106951350B (en) 2017-03-30 2017-03-30 Method and device for checking mobile terminal disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710202315.8A CN106951350B (en) 2017-03-30 2017-03-30 Method and device for checking mobile terminal disk

Publications (2)

Publication Number Publication Date
CN106951350A CN106951350A (en) 2017-07-14
CN106951350B true CN106951350B (en) 2021-08-03

Family

ID=59473861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710202315.8A Active CN106951350B (en) 2017-03-30 2017-03-30 Method and device for checking mobile terminal disk

Country Status (1)

Country Link
CN (1) CN106951350B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797858A (en) * 2017-10-31 2018-03-13 努比亚技术有限公司 Disk space optimization method, mobile terminal and computer-readable recording medium
CN107797871A (en) * 2017-11-30 2018-03-13 努比亚技术有限公司 EMS memory occupation method for releasing resource, mobile terminal and computer-readable recording medium
CN108037997A (en) * 2017-11-30 2018-05-15 努比亚技术有限公司 Memory Optimize Method, mobile terminal and computer-readable recording medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100735376B1 (en) * 2006-03-29 2007-07-04 삼성전자주식회사 Method of executing fast application in mobile communication terminal
CN101154167A (en) * 2006-09-28 2008-04-02 联想(北京)有限公司 Virtual machine system and its CPU scheduling method
CN101201791A (en) * 2007-08-28 2008-06-18 深圳市同洲电子股份有限公司 Method and system for developing and debugging application program
CN103942270A (en) * 2014-03-27 2014-07-23 上海斐讯数据通信技术有限公司 Method for intelligently recommending application program and mobile terminal
CN104751050A (en) * 2015-04-13 2015-07-01 成都睿峰科技有限公司 Client application program management method
CN104778049A (en) * 2014-01-09 2015-07-15 北京汇智无限传媒技术有限公司 Implementation method used for human-computer interaction APP (application) on the basis of Android system and interaction system
CN106201490A (en) * 2016-06-30 2016-12-07 天脉聚源(北京)传媒科技有限公司 The method and device that a kind of optimization application is run

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071381A (en) * 2006-05-09 2007-11-14 上海乐金广电电子有限公司 Digital integrated unit fast boot method
US20150052253A1 (en) * 2014-09-22 2015-02-19 Weaved, Inc. Multi-server fractional subdomain dns protocol
CN100458753C (en) * 2007-03-01 2009-02-04 华为技术有限公司 Hard disk hot swap system in multiple hard disks system and method
KR20140111495A (en) * 2013-03-11 2014-09-19 삼성전자주식회사 Method for controlling display and an electronic device thereof
CN103543961B (en) * 2013-10-12 2017-04-19 浙江宇视科技有限公司 PCIe-based storage extension system and method
CN104049708A (en) * 2014-07-08 2014-09-17 山东超越数控电子有限公司 Method for automatic startup/ shutdown and standby state awakening
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
US9880760B2 (en) * 2014-10-30 2018-01-30 Sandisk Technologies Llc Managing data stored in a nonvolatile storage device
CN104714624B (en) * 2015-03-23 2018-01-16 广东欧珀移动通信有限公司 Mobile terminal saves the method and device of power consumption
CN104778100A (en) * 2015-04-23 2015-07-15 成都博元时代软件有限公司 Safe data backup method
CN204856294U (en) * 2015-06-10 2015-12-09 盛唐文创(北京)科技有限公司 Personal computer cloud calculates braced system
CN106331154A (en) * 2016-09-27 2017-01-11 湖南纽思曼存储科技有限公司 Intelligent storage device, background server and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100735376B1 (en) * 2006-03-29 2007-07-04 삼성전자주식회사 Method of executing fast application in mobile communication terminal
CN101154167A (en) * 2006-09-28 2008-04-02 联想(北京)有限公司 Virtual machine system and its CPU scheduling method
CN101201791A (en) * 2007-08-28 2008-06-18 深圳市同洲电子股份有限公司 Method and system for developing and debugging application program
CN104778049A (en) * 2014-01-09 2015-07-15 北京汇智无限传媒技术有限公司 Implementation method used for human-computer interaction APP (application) on the basis of Android system and interaction system
CN103942270A (en) * 2014-03-27 2014-07-23 上海斐讯数据通信技术有限公司 Method for intelligently recommending application program and mobile terminal
CN104751050A (en) * 2015-04-13 2015-07-01 成都睿峰科技有限公司 Client application program management method
CN106201490A (en) * 2016-06-30 2016-12-07 天脉聚源(北京)传媒科技有限公司 The method and device that a kind of optimization application is run

Also Published As

Publication number Publication date
CN106951350A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN106844029B (en) Self-management Android process freezing and unfreezing device and method
CN105468158B (en) Color adjustment method and mobile terminal
CN106304037B (en) Virtual SIM card management method and device
CN106533928B (en) Method and device for updating unread message reminding identification
CN106911850B (en) Mobile terminal and screen capturing method thereof
CN105303398B (en) Information display method and system
CN106027804B (en) Unlocking method and unlocking device of mobile terminal
CN106157970B (en) Audio identification method and terminal
CN106778176B (en) Information processing method and mobile terminal
CN104932697B (en) Gesture unlocking method and device
CN107066290B (en) Method and device for starting application according to associated policy
CN106547439B (en) Method and device for processing message
CN105898703B (en) Management method and device for identified pseudo base station
CN106598538B (en) Instruction set updating method and system
CN106534560B (en) Mobile terminal control device and method
CN106951350B (en) Method and device for checking mobile terminal disk
CN106484534B (en) Control method and control device for displayed mobile terminal
CN106851114B (en) Photo display device, photo generation device, photo display method, photo generation method and terminal
CN106371704B (en) Application shortcut layout method of screen locking interface and terminal
CN106231657B (en) Method and device for switching power saving modes of double-screen mobile terminal
CN104639428B (en) Self-adaptive method for session scene in instant messaging and mobile terminal
CN107027113B (en) SIM card activation method and mobile terminal
CN106412877B (en) Activation method and activation device for mobile terminal SIM card
CN106385494B (en) Method and device for acquiring dynamic home page of mobile terminal application
CN106534446B (en) Mobile terminal dialing device and method

Legal Events

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