WO2022105858A1 - 一种清理短信的方法、装置、移动终端及存储介质 - Google Patents

一种清理短信的方法、装置、移动终端及存储介质 Download PDF

Info

Publication number
WO2022105858A1
WO2022105858A1 PCT/CN2021/131672 CN2021131672W WO2022105858A1 WO 2022105858 A1 WO2022105858 A1 WO 2022105858A1 CN 2021131672 W CN2021131672 W CN 2021131672W WO 2022105858 A1 WO2022105858 A1 WO 2022105858A1
Authority
WO
WIPO (PCT)
Prior art keywords
short message
short
category
messages
overdue
Prior art date
Application number
PCT/CN2021/131672
Other languages
English (en)
French (fr)
Inventor
陆志豪
李辰
Original Assignee
深圳市万普拉斯科技有限公司
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 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2022105858A1 publication Critical patent/WO2022105858A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the embodiments of the present application relate to the field of terminal technologies, and in particular, to a method, a device, a mobile terminal, and a storage medium for clearing short messages.
  • SMS services With the great improvement of wireless network bandwidth and speed, and the further reduction of terminal tariffs, the ability and frequency of users to use SMS services have been greatly improved.
  • the emerging terminal applications and terminal processing technologies have also spawned new types of SMS services.
  • various types of short message services have penetrated into daily life, and the number of various short messages in terminal mailboxes has risen. Then it is the main means of information transmission between users, but it becomes the business to send advertising information and verify information.
  • these short messages will occupy a large amount of storage space of the terminal over time, which seriously affects the normal operation of the terminal.
  • service-type text messages Based on the current text messages received by users, most of them are service-type text messages. Different types of service-type text messages have different requirements for user timeliness and storage. For example, verification codes are usually valid for only 30 minutes, and ticket-type text messages are usually valid. The validity period may exceed 1 month. In the existing short message management method, the short messages are first classified and then automatically deleted in batches on a regular basis.
  • Embodiments of the present application provide a method, device, mobile terminal and storage medium for clearing short messages.
  • the embodiments of the present application provide a method for clearing short messages, including:
  • a short message whose storage time is greater than or equal to the validity period in the first short message is an overdue short message, wherein the validity period is a time length set according to the short message category;
  • the overdue short message is cleaned up.
  • a second aspect of the present application provides a device for clearing short messages, including:
  • the first acquisition module is used to acquire the short message category of the short message stored in the mobile terminal;
  • a second obtaining module configured to traverse the first short message corresponding to each short message category, and obtain the storage time corresponding to the first short message
  • a first determining module configured to determine that the first short message is an overdue short message if the storage time is greater than or equal to the validity period, wherein the validity period is a duration set according to the short message category;
  • the cleaning module is used for cleaning the overdue short message.
  • a third aspect of the present application provides a mobile terminal, including:
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method of the first aspect above.
  • a fourth aspect of the present application provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause the terminal to execute the above-mentioned section The method described in one aspect.
  • FIG. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for clearing short messages according to an embodiment of the present application
  • Fig. 3 is a sub-flow schematic diagram of step S21 in the method shown in Fig. 2;
  • Fig. 4 is a sub-flow schematic diagram of step S24 in the method shown in Fig. 2;
  • FIG. 5 is a schematic flowchart of a method for clearing short messages according to another embodiment of the present application.
  • Fig. 6 is another sub-flow schematic diagram of step S24 in the method shown in Fig. 2;
  • FIG. 7 is a schematic flowchart of a method for clearing short messages according to another embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an apparatus for clearing short messages according to another embodiment of the present application.
  • the mobile terminal may be implemented in various forms.
  • the mobile terminals described in this application may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants, portable media players, wearable devices, smart bracelets, and the like.
  • FIG. 1 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application.
  • the mobile terminal 100 may include: at least one processor 101, a memory 102, and an RF (Radio Frequency, radio frequency) unit 104, and Sensor assembly 103, WiFi module 105, audio output unit 106, A/V (audio/video) input unit 107, power supply 108 and other components.
  • RF Radio Frequency, radio frequency
  • the radio frequency unit 104 can be used for receiving and sending signals during sending and receiving short messages or calls. Specifically, after receiving the downlink information of the base station, it is processed by the processor; in addition, the uplink data is sent to the base station.
  • the radio frequency unit 104 includes, but is not limited to, at least two antennas, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the at least two antennas are arranged in different directions of the mobile terminal 100 , for example, arranged on the upper and lower sides and the left and right sides of the mobile terminal 100 . That is, by arranging multiple antennas with different azimuths, antenna switching and antenna combination schemes are added, which can effectively avoid the problem that the mobile terminal is held by the user and the antenna is blocked and the communication quality is degraded.
  • the radio frequency unit 104 can also communicate with the network and other devices through wireless communication.
  • the above-mentioned wireless communication can use any communication label or communication protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communication), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access) 2000, Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, Frequency Division Duplex Long Term Evolution) and TDD-LTE (Time Division Deplexing-Long Term Evolution, time-sharing duplex long-term evolution) and so on.
  • GSM Global System of Mobile communication, Global System for Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA2000 Code Division Multiple Access 2000, Code Division Multiple Access 2000
  • WCDMA Wideband Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access
  • FDD-LTE Frequency
  • the WiFi module 105 belongs to the short-distance wireless transmission technology, and the mobile terminal 100 can help users to send and receive emails, browse web pages, access streaming media, etc. through the WiFi module 105, which provides users with wireless broadband Internet access.
  • FIG. 1 shows the WiFi module 105, it can be understood that it does not belong to the essential structure of the mobile terminal 100, and can be completely omitted as required within the scope of not changing the essence of the present application.
  • the audio output unit 106 can output the audio received by the radio frequency unit 104 or the WiFi module 105 or stored in the memory 102 when the mobile terminal 100 is in a call signal receiving mode, a talking mode, a recording mode, a voice recognition mode, a broadcast receiving mode, etc.
  • the data is converted into audio signals and output as sound.
  • the audio output unit 106 may also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.).
  • the audio output unit 106 may also include a speaker, a buzzer, and the like.
  • the A/V input unit 107 is used to receive audio or video signals.
  • the A/V input unit 107 may include an image processor 1071 (Graphics Processing Unit, GPU) and a microphone 1072, and the image processor 1071 is capable of processing static images or images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the image data of the video is processed.
  • the processed image frame may be displayed on the display unit 111 .
  • the image frames processed by the image processor 1071 may be stored in the memory 102 or transmitted via the radio frequency unit 104 or the WiFi module 105 .
  • the microphone 1072 can receive sound (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition module, etc. operating modes, and can process such sound into audio data.
  • the processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 104 for output in the case of a telephone conversation mode.
  • the microphone 1072 may implement various types of noise cancellation (or suppression) algorithms to remove (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
  • the mobile terminal 100 further includes a sensor component 103, for example, the sensor component 103 includes a motion sensor, a gyroscope, an acceleration sensor, a gravity sensor, a capacitance sensor, and the like.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screens). Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the mobile terminal may also be configured with a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
  • the display unit 120 is used to display information input by the user or information provided to the user.
  • the display unit 120 includes a display panel 121, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 110 is used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile terminal 100 .
  • the user input unit 110 includes a touch panel 111 and other input devices 112 .
  • the touch panel 111 also referred to as a touch screen, can collect the user's touch operations on it (such as the user's operations on the touch panel with fingers, stylus, and any other suitable objects or accessories), and perform operations on the touch panel according to a preset program. Activate the corresponding connection device.
  • the touch panel 111 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller.
  • the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it to the processor, and can receive and execute commands sent by the processor.
  • various types of resistive, capacitive, infrared, and surface acoustic waves can be used to realize the touch panel.
  • the user input unit 110 may also include other input devices 112 .
  • other input devices may include, but are not limited to, physical keys, function keys, and the like.
  • the touch panel 111 may cover the display panel 121, and when the touch panel 111 detects a touch operation on it, it transmits it to the processor 101 to determine the type of the touch event, and then the processor 101 displays the touch event according to the type of the touch event. Corresponding visual outputs are provided on panel 121 .
  • the touch panel 111 and the display panel 121 are used as two independent components to realize the input and output functions of the mobile terminal 100, in some embodiments, the touch panel 111 and the display panel 121 may be The input and output functions of the mobile terminal 100 are implemented through integration, which is not specifically limited here.
  • the interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100 .
  • external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 may be used to receive input (eg, power, data, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used between the mobile terminal 100 and the external device. transfer data between.
  • the processor 101 is used to provide computing and control capabilities, and is the control center of the mobile terminal 100.
  • Various interfaces and lines are used to connect various parts of the entire mobile terminal 100, such as the processor 101 and the sensor assembly 103. Communication connection, by running or executing software programs and/or modules stored in the memory 102, and calling data stored in the memory 102, so that various functions of the mobile terminal 100 and processing data can be performed, and the mobile terminal 100 can be integrated monitor.
  • the memory 102 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as programs corresponding to the method for clearing short messages in the embodiments of the present application. Directive/Module.
  • the processor 101 can implement the method for clearing short messages in any of the following method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 102 .
  • the memory 102 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system and an application layer sequence required for at least one function (such as a sound playback function, an image playback function, a short message management function, etc.) ;
  • the storage data area can store data created according to the use of the mobile terminal (such as audio data, phone book, SMS management records) and the like.
  • memory 102 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the mobile terminal 100 may also include a power supply 109 (such as a battery) for supplying power to various components.
  • a power supply 109 such as a battery
  • the power supply may be logically connected to the processor through a power management system, so that the management of charging, discharging, and power consumption management, etc. can be realized through the power management system. Function.
  • the short messages are first classified and then automatically deleted in batches on a regular basis.
  • the present application provides a method for clearing short messages. By setting validity periods for different types of short messages, the short messages that exceed the validity period are cleaned up, so that while maintaining the cleaning effect, messages that are valuable to users can be retained. .
  • FIG. 2 is a flowchart of an embodiment of a method for clearing short messages provided by the present application.
  • the process in this embodiment is automatically run by the mobile terminal, wherein each step can be executed in sequence as shown in the flowchart, or multiple steps can be executed simultaneously according to the actual situation, which is not limited here.
  • the method for clearing short messages according to the present embodiment includes but is not limited to the following steps:
  • S23 Determine that a short message whose storage time is greater than or equal to the validity period in the first short message is an overdue short message, wherein the validity period is a duration set according to the short message type.
  • the mobile terminal may be the mobile terminal in the embodiment shown in FIG. 1 , and the mobile terminal includes a short message application, that is, supports sending and receiving of short messages, for example, the mobile terminal may be a smart phone. Based on the mobile terminal including a short message application, the mobile terminal stores received short messages and sent short messages.
  • the short message category refers to the category of the short message stored in the mobile terminal.
  • a text message includes the information: the sender number, the content of the message, and the tag information associated with the text message.
  • SMS 1# it is the ticket information sent by the booking platform, and the user has marked SMS 1# as "Important”, then the number of the booking platform, the content of the ticket, and the marked “Important” can be obtained from SMS 1#.
  • SMS 1# it is the ticket information sent by the booking platform, and the user has marked SMS 1# as "Important”
  • the number of the booking platform, the content of the ticket, and the marked “Important” can be obtained from SMS 1#.
  • the short messages stored in the mobile terminal can be classified according to the characteristic information of the short messages.
  • the short messages stored in the mobile terminal may be classified based on a trained multi-classification model, wherein the trained multi-classification model is obtained after learning the feature information of the short messages in the training samples.
  • the mobile terminal when the mobile terminal receives the short message, it can identify the short message type of the received short message.
  • the mobile terminal can identify the short message type of the received short message.
  • there are many short messages stored in the mobile terminal and each short message is determined to have its own short message category. Therefore, there are at least one or more types of short messages in the mobile terminal. For example, there are 100 short message categories stored in the mobile terminal. There are 50 short messages in category A, 30 in short message category B, and 20 in short message category C, that is, there are three short message categories A, B and C in the short messages stored in the mobile terminal.
  • the step S21 specifically includes:
  • S211 Identify the short message stored in the mobile terminal according to at least one of sender number, sending content, user setting, operator mark or third party mark, to obtain the short message category.
  • the mobile terminal When the mobile terminal receives the short message, it can determine the short message type of the short message according to the sender's number. That is, the sender number reflects the type of the short message. For example, each service platform has its own unique number, for example, the mobile platform is "10086". Therefore, the short message type of the short message can be preliminarily determined as the service according to the sender number. Short message. In some embodiments, the type of the short message can also be determined by extracting the fields in the sending content. For example, if the sending content includes a "verification code" field and a corresponding number, it can be determined that the short message type of the short message is a verification code short message. .
  • the category of the short message can also be identified according to the user's settings on the short message application. For example, when it is used to set a "keyword whitelist" in the short message application, if the received short message includes keywords in the whitelist , the SMS is determined as a whitelist category. Those skilled in the art can understand that the whitelist is an important short message set by the user that the user does not want to miss, and the mobile terminal will not intercept the short message belonging to the whitelist category.
  • the type of the short message can also be determined according to the operator's mark or the third-party mark. For example, if the short message is marked as an express short message by a third party, when the mobile terminal receives the short message, according to the characteristics marked by the third party, The text message can be recognized.
  • the short message stored in the mobile terminal can be identified as Verification code information, express text message, ticket text message, service text message or normal text message. That is, the short message category may include verification code short messages, express short messages, ticketing short messages, service short messages, and ordinary short messages, etc., which conform to the daily usage scenarios of users.
  • the features used to identify the type of short messages are refined into sender number, sender content, user settings, operator flags or third-party flags, and at least one of these features can be selected according to the actual situation to The short message category can be identified, and the short message category can be accurately obtained.
  • the step S22 traverse the first short messages corresponding to each short message category, for example, traverse 50 first short messages corresponding to the short message category A, and obtain each first short message respectively corresponding storage time.
  • the storage time refers to the time difference between the real-time time when the short message is cleared and the receiving time. For example, for the first SMS 2# under SMS category A, if its reception time is at 10:00 on September 1, 2020, when the mobile terminal clears the SMS at 18:00 on September 7, 2020, the first SMS The storage time of SMS 2# is 7 days and 8 hours.
  • a short message whose storage time is greater than or equal to the validity period in the first short message is an overdue short message, wherein the validity period is a duration set according to the type of the short message.
  • each SMS category has a corresponding validity period.
  • the SMS category is a verification code SMS. If its corresponding validity period is 1 day, and its storage time is 7 days and 8 hours , that is to say, if the storage time of the first short message 2# is longer than the validity period, it is determined that the first short message 2# is an overdue short message.
  • each short message category its corresponding validity period is determined.
  • the above verification code SMS is usually only useful within 30 minutes and is useless after expiration, then the validity period of the verification code SMS can be set to 1 day, for example, the validity period of the ticket SMS can be set to 1 month. It should be noted that, in this embodiment, there is no restriction on the validity period of each type of short message, and those skilled in the art can set it in advance according to the actual situation.
  • the overdue short messages are cleaned up, for example, all or selective cleaning can be performed to release the memory space of the mobile terminal.
  • the method obtains the short message category of the short message stored in the mobile terminal, traverses the first short message corresponding to each short message category, obtains the storage time corresponding to the first short message, and determines the first short message A short message whose storage time is greater than or equal to the validity period is an overdue short message, and then the overdue short message is cleaned up, wherein the validity period is a duration set according to the type of the short message. That is, the method clears the short messages beyond the validity period by setting the validity period for different types of short messages, so that while maintaining the cleaning effect, the short messages that are valuable to the user can be retained.
  • the step S24 specifically includes:
  • the first preset threshold is preset for the SMS category. For example, under the above-mentioned SMS category A, if 6 SMS messages are overdue, and the first preset threshold corresponding to SMS category A is 5, it can be known that the number of overdue SMS messages under SMS category A is greater than or equal to the first preset threshold. Then the six overdue short messages will be cleaned up.
  • the first preset thresholds correspond one-to-one with the SMS categories, that is, different first preset thresholds can be set according to the SMS categories. For example, if user A usually receives fewer short messages belonging to the short message category A, the first preset threshold corresponding to the short message category A can be set to a smaller value to balance the clearing and retention of short messages. If there are many received short messages belonging to short message category B, the first preset threshold corresponding to the short message category B may be set to a larger value to balance the clearing and retention of short messages.
  • a lower limit is imposed on the overdue quantity of each SMS category, and only when the overdue SMS under a certain SMS category exceeds the first preset threshold corresponding to the SMS category Clean up overdue text messages. In the above manner, frequent cleaning can be effectively avoided, and the retention time of the user's important short messages can be prolonged.
  • the method further includes:
  • S25 Determine the first preset threshold corresponding to the short message category according to the receiving frequency of the first short message corresponding to the short message category.
  • the receiving frequency of the first short message corresponding to the short message category A is 10 a week, then according to the receiving frequency (10 a week), the corresponding first preset threshold is set to a value suitable for the receiving frequency, for example , slightly lower than the receiving frequency, 80% or 50% of the receiving frequency, etc.
  • the number of the first short messages in the short message category A can be kept at a controllable amount. It can be understood that, different SMS categories have different receiving frequencies, and the corresponding first preset thresholds are also different.
  • the information under each short message category can be controlled to an amount matching the short message category, and frequent cleaning of a certain type of short messages can be effectively avoided. While maintaining the cleaning effect, it is possible to retain text messages that are valuable to users.
  • the step S24 further includes:
  • S242 Determine whether the overdue short message meets a preset condition.
  • condition judgment is first performed, the overdue short messages that meet the preset conditions are retained, and the overdue short messages that do not meet the preset conditions are cleaned up.
  • the preset conditions can be set according to the actual situation, so as to retain the short messages that are important to the user.
  • the preset condition includes that the overdue short message has been marked, bookmarked or archived, or includes a keyword in a whitelist. That is, if the short message 3# in the overdue short message is marked, for example, marked as "important" by the user, the short message 3# will not be cleaned up. If the SMS 4# in the overdue SMS has been saved or archived, it means that the SMS 4# is an important SMS, and the SMS 4# will not be cleaned up. If the content of the message 5# in the overdue message includes keywords in the whitelist, for example, the content of the message includes the keyword "meeting", and the keyword "meeting" is set in the whitelist, then the message 5# will not be processed. to clean up.
  • step S22 before the step S22, it further includes:
  • the SMS category corresponds to the cleaning cycle one-to-one, and the cleaning cycle is set according to the characteristics of the SMS category. For example, if user C usually receives more information, the corresponding cleaning cycle is shorter. Once a day, user D If there is less information received at ordinary times, the cleaning cycle will be longer, once a week. According to the above-mentioned cleaning cycle, the short message cleaning is performed, that is, the above-mentioned step S22 is executed.
  • each type of short messages is cleaned periodically to avoid frequent cleaning and loss of important short messages. It is adapted and cleaned up according to the cycle, which can avoid the interference of the short messages with high receiving frequency to the short messages with low receiving frequency, so that the important short messages with low receiving frequency are lost.
  • the method for clearing short messages obtains the short message category of the short message stored in the mobile terminal, traverses the first short message corresponding to each short message category, obtains the storage time corresponding to the first short message, and determines the first short message.
  • a short message whose storage time is greater than or equal to the validity period in a short message is an overdue short message, and then the overdue short message is cleaned up, wherein the validity period is a duration set according to the type of the short message. That is, the method clears the short messages beyond the validity period by setting the validity period for different types of short messages, so that while maintaining the cleaning effect, the short messages that are valuable to the user can be retained.
  • an embodiment of the present application provides an apparatus for clearing short messages, the apparatus includes a first acquisition module, a second acquisition module, a determination module, and a cleaning module.
  • the first obtaining module is used to obtain the short message category of the short message stored in the mobile terminal
  • a second obtaining module configured to traverse the first short message corresponding to the short message category, and obtain the storage time corresponding to the first short message
  • a first determining module configured to determine that the first short message is an overdue short message if the storage time is greater than or equal to the validity period, wherein the validity period is a duration set according to the short message category;
  • the cleaning module is used for cleaning the overdue short message.
  • the device for clearing short messages cleans the short messages beyond the validity period by setting the validity period for different types of short messages, so that while maintaining the cleaning effect, the short messages that are valuable to the user can be retained.
  • the cleaning module is further configured to clean up the overdue short messages if the number of the overdue short messages is greater than or equal to a first preset threshold.
  • the apparatus further includes a second determining module configured to determine the first preset threshold corresponding to the short message category according to the receiving frequency of the first short message corresponding to the short message category.
  • the cleaning module is further configured to determine whether the overdue short message meets the preset condition, and clean up the overdue short message that does not meet the preset condition.
  • the preset condition includes that the overdue short message has been marked, bookmarked or archived, or includes a keyword in a whitelist.
  • the second acquiring module is further configured to, according to the short message category, set a cleaning period corresponding to the short message category, and traverse the first short message corresponding to the short message category according to the cleaning period, Acquire the storage time corresponding to the first short message.
  • the first obtaining module is further specifically configured to, according to at least one of sender number, sending content, user settings, operator flag or third party flag
  • the short message is identified to obtain the short message category.
  • the short message category includes verification code short messages, express short messages, ticketing short messages, service short messages or ordinary short messages.
  • the above apparatus for clearing short messages can execute the method for clearing short messages provided by the embodiments of the present application, and has functional modules and beneficial effects corresponding to the execution method.
  • the method for clearing short messages provided by the embodiments of the present application.
  • Embodiments of the present application further provide a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as A processor 101 in FIG. 1 can enable the above-mentioned one or more processors to execute the method for clearing short messages in any of the above-mentioned method embodiments.
  • Embodiments of the present application further provide a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by an electronic device During execution, the electronic device is caused to execute the method for clearing short messages in any of the foregoing method embodiments.
  • Embodiments of the present application also provide a mobile terminal, where the mobile terminal includes at least one processor and a memory communicatively connected to the at least one processor.
  • the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor causes the at least one processor to execute the method for clearing short messages in any of the above method embodiments.
  • the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physically separated unit, that is, it can be located in one place, or it can be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each embodiment can be implemented by means of software plus a general hardware platform, and certainly can also be implemented by hardware.
  • Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请涉及一种清理短信的方法、装置、移动终端及存储介质,该方法通过获取移动终端中保存的短信的短信类别,遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间,确定所述第一短信中存储时间大于或等于有效期的短信为超期短信,然后,对所述超期短信进行清理,其中,所述有效期是根据所述短信类别而设置的时长。

Description

一种清理短信的方法、装置、移动终端及存储介质
相关申请的交叉引用
本申请要求于2020年11月20日提交中国专利局、申请号为202011314520.1、申请名称为“一种清理短信的方法、移动终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端技术领域,尤其涉及一种清理短信的方法、装置、移动终端及存储介质。
背景技术
随着无线网络带宽和速率的大大提升,终端资费的进一步降低,用户使用短信服务的能力和频率都在大幅提高,不断涌现的终端应用和终端处理技术也催生出新的短信服务类型。随着用户需求的增长,各类型的短信服务已渗入到日常生活中,终端信箱中花样繁多的短信数量猛增,而随着通信技术的发展信息传递不断呈现出多元化的趋势,短信已不再是用户与用户之间信息传递的主要手段,而是成为商家发送广告信息、验证信息。然而,随着时间的推移这些短信会大量占用终端的存储空间,严重影响终端正常运行。
基于目前用户收到的短信,绝大部分是服务类型的短信,不同类型的服务类短信,对用户使用的时效性和保存的需求是不同的,如验证码通常有效期只有30分钟,票务类短信则有效期可超过1个月。现有的短信管理方法,首先对短信进行分类,然后,定期进行批量自动删除。
发明内容
本申请实施例提供一种清理短信的方法、装置、移动终端及存储介质。
第一方面,本申请实施例中提供给了一种清理短信的方法,包括:
获取移动终端中保存的短信的短信类别;
遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间;
确定所述第一短信中存储时间大于或等于有效期的短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长;
对所述超期短信进行清理。
本申请的第二方面提供给了一种清理短信的装置,包括:
第一获取模块,用于获取移动终端中保存的短信的短信类别;
第二获取模块,用于遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间;
第一确定模块,用于如果所述存储时间大于或等于有效期,则确定所述第一短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长;
清理模块,用于对所述超期短信进行清理。
本申请的第三方面提供给了一种移动终端,包括:
至少一个处理器,以及
与所述至少一个处理器通信连接的存储器,其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行如上第一方面所述的方法。
本申请的第四方面提供给了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使终端执行如上第一方面所述的方法。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本发明的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1本申请其中一实施例提供的一种移动终端的硬件结构示意图;
图2为本申请其中一实施例提供的一种清理短信的方法的流程示意图;
图3为图2所示方法中步骤S21的一子流程示意图;
图4为图2所示方法中步骤S24的一子流程示意图;
图5为本申请另一实施例提供的一种清理短信的方法的流程示意图;
图6为图2所示方法中步骤S24的另一子流程示意图;
图7为本申请另一实施例提供的一种清理短信的方法的流程示意图;
图8为本申请另一实施例提供的一种清理短信的装置的结构示意图。
具体实施方式
下面结合具体实施例对本申请进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本申请,但不以任何形式限制本申请。应当指出的是,对本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进。这些都属于本申请的保护范围。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
需要说明的是,如果不冲突,本申请实施例中的各个特征可以相互结合,均在本申请的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。此外,本文所采用的“第一”、“第二”、“第三”等字样并不对数据和执行次序进行限定,仅是对功能和作用基本相同的相同项或相似项进行区分。
除非另有定义,本说明书所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本说明书中在本申请的说明书中所使用的术语只是为了描述具体的实施方式的目的,不是用于限制本申请。本说明书所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。
此外,下面所描述的本申请各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。
移动终端可以以各种形式来实施。例如,本申请描述的移动终端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理、便捷式媒体播放器、可穿戴设备、智能手环等。请参阅图1,其为实现本申请各个实施例的一种移动终端的硬件结构示意图,该移动终端100可以包括:至少一个处理器101、存储器102和RF(Radio Frequency,射频)单元104,以及传感器组件103、WiFi模块105、音频输出单元106、A/V(音频/视频)输入单元107、电源108等部件。本领域技术人员可以理解,图1中示出的移动终端100的结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图1对移动终端的各个部件进行具体介绍:
射频单元104可用于收发短信或通话过程中,信号的接收和发送,具体的,将基站的下行信息接收后,给处理器处理;另外,将上行的数据发送给基站。通常,射频单元104包括但不限于至少两个天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。其中,所述至少两个天线设置于所述移动终端100的不同方位,例如,设置于移动终端100的上下两侧和左右两侧。也即,通过设置方位不同的多个天线,增加了天线切换以及天线组合方案,可以有效避免移动终端被用户握住,天线受到遮挡时而带来通信质量下降的问题。
此外,射频单元104还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标注或通信协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(Code Division Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code Division Multiple Access,时分同步码多分址)、FDD-LTE(Frequency Division Duplexing-Long Term Evolution,频分双工长期演进)和TDD-LTE(Time Division Deplexing-Long Term Evolution,分时双工长期演进)等。
WiFi模块105属于短距离无线传输技术,移动终端100通过WiFi模块105可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块105,但是可以理解的是,其并不属于移动终端100的必须构成,完全可以根据需要在不改变本申请的本质的范围内而省略。
音频输出单元106可以在移动终端100处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收等模式下时,将射频单元104或WiFi模块105接收的或者在存储器102中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元106还可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元106还可以包括扬声器、蜂鸣器等等。
A/V输入单元107用于接收音频或视频信号。A/V输入单元107可以包括图像处理器1071(Graphics Processing Unit,GPU)和麦克风1072,图像处理器1071对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图谱或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元111上。经图像处理器1071处理后的图像帧可以存储在存储器102中或者经由射频单元104或WiFi模块105进行发送。麦克风1072可以在电话通话模式、记录模式、语音识别模块等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通 话模式的情况下转换为可经由射频单元104发送到移动通信基站的格式输出。麦克风1072可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。
移动终端100还包括传感器组件103,比如所述传感器组件103包括运动传感器、陀螺仪、加速度传感器、重力传感器、电容传感器等。具体的,作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。移动终端还可配置有指纹传感器、压力传感器、虹膜传感器、分子传感器、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元120用于显示由用户输入的信息或提供给用户的信息。显示单元120包括显示面板121,可以采用液晶显示器、有机发光二极管等形式来配置显示面板。
用户输入单元110用于接收输入的数字或字符信息,以及产生与移动终端100的用户设置以及功能控制有关的键信号输入。具体的,用户输入单元110包括触控面板111以及其他输入设备112。触控面板111,也称为触摸屏,可收集用户在其上的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上的操作),并根据预先设定的程式驱动相应的连接装置。触控面板111可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器。触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器,并能接收处理器发来的命令并加以执行。此外,可采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板。除了触控面板111,用户输入单元110还可以包括其他输入设备112。具体的,其他输入设备可以包括但不限于物理按键、功能键等。
进一步的,触控面板111可覆盖显示面板121,当触控面板111检测到其上的触摸操作后,传送给处理器101以确定触摸事件的类型,随后处理器101根据触摸事件的类型在显示面板121上提供相应的视觉输出。虽然在图1中,触控面板111与显示面板121是作为两个独立的部件来实现移动终端100的输入和输出功能,但是在某些实施例中,可以将触控面板111与显示面板121集成而实现移动终端100的输入和输出功能,具体此处不做限定。
接口单元108用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无 线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等。接口单元108可以用于接收来自外部装置的输入(例如,电力、数据等)并且将接收到的输入传输到移动终端100内的一个或者多个元件或者可以用于在移动终端100和外部装置之间的传输数据。
其中,所述处理器101用于提供计算和控制能力,是移动终端100的控制中心,利用各种接口和线路连接整个移动终端100的各个部分,例如所述处理器101与所述传感器组件103通信连接,通过运行或执行存储在存储器102内软件程序和/或模块,以及调用存储在存储器102内的数据,从而,能够执行移动终端100的各种功能和处理数据,对移动终端100进行整体监控。
所述存储器102作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本申请实施例中的清理短信的方法对应的程序指令/模块。所述处理器101通过运行存储在存储器102中的非暂态软件程序、指令以及模块,可以实现下述任一方法实施例中的清理短信的方法。具体地,存储器102可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用层序(比如声音播放功能、图像播放功能、短信管理功能等);存储数据区可存储根据移动终端的使用所创建的数据(比如音频数据、电话本、短信管理记录)等。此外,存储器102可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。
移动终端100还可以包括给各个部件供电的电源109(比如电池),优选的,电源可以通过电源管理系统与处理器逻辑连接,从而,通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
基于上述移动终端的硬件结构,提出本申请方法各个实施例。
现有的短信管理方法,首先对短信进行分类,然后,定期进行批量自动删除。但是,缺少对不同类型短信的保存需求差异的考虑,无法在保持清理效果的同时,保留对用户有价值的短信。基于现有技术的缺陷,本申请提供一种清理短信的方法,通过对不同类别的短信设置有效期,对超出有效期的短信进行清理,从而在保持清理效果的同时,能保留对用户有价值的短信。
请参阅图2,是本申请提供的一种清理短信的方法的实施例的流程图。本实施例中的流程通过移动终端自动运行,其中,各个步骤在运行的时候可以是按照如流程图中的顺序先后进行,也可以是根据实际情况多个步骤同时进行,在此并不做限定。根据本实施例的 清理短信的方法包括但不限制于以下步骤:
S21:获取移动终端中保存的短信的短信类别。
S22:遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间。
S23:确定所述第一短信中存储时间大于或等于有效期的短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长。
S24:对所述超期短信进行清理。
所述移动终端可以为图1所示实施例中的移动终端,所述移动终端包含短信应用,即支持短信的发送与接收,例如该移动终端可以为智能手机。基于移动终端中包含短信应用,所述移动终端中存储有接收到的短信以及发送的短信。其中,短信类别是指所述移动终端中保存的短信的分类。
可以理解的是,一条短信包括这些信息:发件人号码、发件内容以及与此短信关联的标记信息。例如,对于短信1#,是订票平台发送的票务信息,用户已将短信1#标记为“重要事项”,则从短信1#中可获取订票平台的号码、票务内容以及被标记的“重要事项”等特征信息,根据短信的特征信息即可将所述移动终端保存中的短信进行分类。例如,可将移动终端中保存的短信,基于训练好的多分类模型进行分类,其中,该训练好的多分类模型是对训练样本中短信的特征信息进行学习后获得的。
可以理解的是,当移动终端接收短信时,即可识别接收到的短信的短信类别。一般,移动终端中保存的短信有多条,每条短信均确定有各自的短信类别,从而,所述移动终端中存在的短信类别至少有一种或有多种,例如,移动终端中保存有100条短信,其中,短信类别A有50条,短信类别B有30条,短信类别C有20条,即移动终端保存中的短信存在三种短信类别A、B和C。
在一些实施例中,请参阅图3,所述步骤S21具体包括:
S211:根据发件人号码、发件内容、用户设置、运营商标记或第三方标记中的至少一项,对所述移动终端中保存的短信进行识别,以获取所述短信类别。
当移动终端接收到短信时,可以根据发件人号码,确定该短信的短信类别。也即,发件人号码反映短信的类别,例如,各服务平台均有各自特有的号码,例如,移动平台为“10086”,从而,可以根据发件人号码初步确定该短信的短信类别为服务短信。在一些实施例中,也可以通过提取发件内容中的字段,确定短信类别,例如,发件内容中包括“验证码”字段以及对应的数字,则可确定该短信的短信类别为验证码短信。在一些实施例中,也可以根据用户对短信应用的设置,识别短信的类别,例如,当用于在短信应用中设置“关 键字白名单”,若接收到的短信包括白名单内的关键字,则将该短信确定为白名单类别。本领域技术人员可以理解的是,白名单为用户设置的不想漏看的重要短信,移动终端不会拦截属于白名单类别的短信。在一些实施例中,也可以根据运营商标记或第三方标记,确定短信类别,例如短信被第三方标记为快递短信,则当移动终端接收到此短信时,根据被第三方标记的特征,就可以识别该短信。
可以理解的是,在一些实施例中,根据上述发件人号码、发件内容、用户设置、运营商标记或第三方标记,对所述移动终端中保存的短信进行识别,可将短信识别为验证码信息、快递短信、票务短信、服务短信或普通短信。也即,该短信类别可以包括验证码短信、快递短信、票务短信、服务短信和普通短信等,符合用户日常使用场景。
在本实施例中,将用于识别短信类别的特征细化为发件人号码、发件内容、用户设置、运营商标记或第三方标记,可根据具体实际情况选择其中至少一种特征以对短信类别进行识别,能够准确获取所述短信类别。
当获取到短信的短信类别后,在所述步骤S22中,遍历每个所述短信类别对应的第一短信,例如,遍历短信类别A对应的50条第一短信,分别获取每个第一短信对应的存储时间。其中,存储时间是指清理短信时的实时时间与接收时间之间的时间差。例如,对于短信类别A下的第一短信2#,若其接收时间为2020年9月1日10:00,当移动终端于2020年9月7日18:00点清理短信时,则第一短信2#的存储时间为7天8小时。
在所述步骤S23中,确定所述第一短信中存储时间大于或等于有效期的短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长。可以理解的是,每个短信类别各自对应有有效期,例如,对于上述第一短信2#,其短信类别为验证码短信,若其对应的有效期为1天,而其存储时间为7天8小时,也就是说,第一短信2#的存储时间大于有效期,则确定第一短信2#为超期短信。
可以理解的是,针对每个短信类别的属性,确定其对应的有效期。例如,上述验证码短信通常仅在30分钟内有用,过期无用,则可将验证码短信的有效期设置为1天,例如,对于票务短信可将有效期设置为1个月。值得说明的是,在本实施例中对各短信类别的有效期不做任何限制,本领域的技术人员可根据实际情况预先设定。
最后,在所述步骤S24对所述超期短信进行清理,例如,可以全部清理,也可以选择性清理,以释放移动终端的内存空间。
在本实施例中,该方法通过获取移动终端中保存的短信的短信类别,遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间,确定所述第一短信中存储时 间大于或等于有效期的短信为超期短信,然后,对所述超期短信进行清理,其中,所述有效期是根据所述短信类别而设置的时长。也即,该方法通过对不同类别的短信设置有效期,对超出有效期的短信进行清理,从而,在保持清理效果的同时,能保留对用户有价值的短信。
在一些实施例中,请参阅图4,所述步骤S24具体包括:
S241:如果所述超期短信的数量大于或等于第一预设阈值,则对所述超期短信进行清理。
其中,第一预设阈值针对短信类别预先设置。例如,在上述短信类别A下,若有6条短信超期,而短信类别A对应的第一预设阈值为5,可知,短信类别A下的超期短信的数量大于或等于第一预设阈值,则对该6条超期短信进行清理。可以理解的是,所述第一预设阈值与短信类别一一对应,也即,可根据短信类别设置不同的第一预设阈值。例如,用户甲平时接收到的属于短信类别A的短信较少,则可以将该短信类别A对应的第一预设阈值设置为一个较小的值,以平衡短信清理和保留,若用户甲平时接收到的属于短信类别B的短信较多,则可以将该短信类别B对应的第一预设阈值设置为一个较大的值,以平衡短信清理和保留。
在本实施例中,通过设置第一预设阈值,对每个短信类别的超期数量限制了一个下限,当某一短信类别下的超期短信超过该短信类别对应的第一预设阈值时,才对超期短信进行清理。通过上述方式,可以有效避免频繁清理,可延长用户重要短信的保留时长。
在一些实施例中,请参阅图5,所述方法还包括:
S25:根据所述短信类别对应的第一短信的接收频率,确定对应于所述短信类别的所述第一预设阈值。
例如,该短信类别A对应的第一短信的接收频率为一周10条,则根据该接收频率(一周10条),将对应的第一预设阈值设置成与该接收频率相适应的值,例如,略低于该接收频率,为接收频率的80%或50%等。从而,可使得短信类别A中第一短信的数量能够保持在一可控制的量。可以理解的是,不同的短信类别,接收频率不同,则其对应的第一预设阈值也不同。
在本实施例中,通过根据接收频率,确定所述第一预设阈值,可以将每个短信类别下的信息控制在与短信类别匹配的量,可以有效避免对某一类短信进行频繁清理,在保持清理效果的同时,能保留对用户有价值的短信。
在一些实施例中,请参阅图6,所述步骤S24还包括:
S242:判断所述超期短信是否满足预设条件。
S243:对不满足预设条件的超期短信进行清理。
在本实施例中,针对每个短信类别中的超期短信,首先进行条件判断,对满足预设条件的超期短信进行保留,对不满足预设条件的超期短信进行清理。其中,预设条件可根据实际情况进行设置,以保留对用户重要的短信。
在一些实施例中,所述预设条件包括超期短信已被进行标记、收藏或归档处理,或,包括白名单内的关键字。也即,若超期短信中的短信3#有被进行了标记,例如被用户标记为“重要”,则对短信3#不进行清理。若超期短信中的短信4#被进行了收藏或归档,说明短信4#是重要短信,则对短信4#不进行清理。若超期短信中的短信5#中的发件内容包括白名单内的关键字,例如发件内容包括关键字“开会”,而关键字“开会”设置于白名单内,则对短信5#不进行清理。
在本实施例中,只对不满足预设条件的超期短信进行清理,对满足预设条件的超级短信进行保留,从而,用户可以自行设置预设条件,以避免重要短信被自动清理。
在一些实施例中,请参阅图7,在所述步骤S22之前还包括:
S26:根据所述短信类别,设置所述短信类别对应的清理周期。
S27:按所述清理周期,执行所述步骤S22。
其中,短信类别与清理周期一一对应,并且,清理周期是根据短信类别的特点而设置的,例如,用户丙平时接受到的信息较多,则相应的清理周期较短,一天一次,用户丁平时接受到的信息较少,则清理周期较长,一周一次。按上述清理周期,进行短信清理,即执行上述步骤S22。
在本实施例中,为了避免频繁清理,通过对不同类别的短信设置各自的清理周期,各类别的短信按周期进行清理,以避免频繁清理,丢失重要短信,另一方面,清理周期与短信类别相适应,分类按周期进行清理,可避免接收频率高的短信对接收频率低的短信产生干扰,使得接收频率低的重要短信丢失。
综上所述,该清理短信的方法通过获取移动终端中保存的短信的短信类别,遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间,确定所述第一短信中存储时间大于或等于有效期的短信为超期短信,然后,对所述超期短信进行清理,其中,所述有效期是根据所述短信类别而设置的时长。也即,该方法通过对不同类别的短信设置有效期,对超出有效期的短信进行清理,从而,在保持清理效果的同时,能保留对用户有价值的短信。
需要说明的是,在上述各个实施例中,上述各步骤之间并不必然存在一定的先后顺序,本领域普通技术人员,根据本申请实施例的描述可以理解,不同实施例中,上述各步骤可以有不同的执行顺序,亦即,可以并行执行,亦可以交换执行等等。
作为本申请实施例的另一方面,请参阅图8,本申请实施例提供一种清理短信的装置,该装置包括第一获取模块、第二获取模块、确定模块和清理模块。
其中,第一获取模块用于获取移动终端中保存的短信的短信类别;
第二获取模块,用于遍历所述短信类别对应的第一短信,获取所述第一短信对应的存储时间;
第一确定模块,用于如果所述存储时间大于或等于有效期,则确定所述第一短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长;
清理模块,用于对所述超期短信进行清理。
因此,该清理短信的装置通过对不同类别的短信设置有效期,对超出有效期的短信进行清理,从而,在保持清理效果的同时,能保留对用户有价值的短信。
在一些实施例中,该清理模块还具体用于如果所述超期短信的数量大于或等于第一预设阈值,则对所述超期短信进行清理。
在一些实施例中,该装置还包括第二确定模块,用于根据所述短信类别对应的第一短信的接收频率,确定对应于所述短信类别的所述第一预设阈值。
在一些实施例中,该清理模块还具体用于判断超期短信是否满足预设条件,对不满足预设条件的超期短信进行清理。
在一些实施例中,所述预设条件包括所述超期短信已被进行标记、收藏或归档处理,或,包括白名单内的关键字。
在一些实施例中,所述第二获取模块还具体用于,根据所述短信类别,设置所述短信类别对应的清理周期,按所述清理周期,遍历所述短信类别对应的第一短信,获取所述第一短信对应的存储时间。
在一些实施例中,所述第一获取模块还具体用于根据发件人号码、发件内容、用户设置、运营商标记或第三方标记中的至少一项,对所述移动终端中保存的短信进行识别,以获取所述短信类别。在一些实施例中,所述短信类别包括验证码短信、快递短信、票务短信、服务短信或普通短信。
需要说明的是,上述清理短信的装置可执行本申请实施例所提供的清理短信的方法,具备执行方法相应的功能模块和有益效果。未在清理短信的装置实施例中详尽描述的技术 细节,可参见本申请实施例所提供的清理短信的方法。
本申请实施例还提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图1中的一个处理器101,可使得上述一个或多个处理器可执行上述任意方法实施例中的清理短信的方法。
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被电子设备执行时,使所述电子设备执行上述任意方法实施例中的的清理短信的方法。
本申请的实施例还提供了一种移动终端,该移动终端包括至少一个处理器和与该至少一个处理器通信连接的存储器。其中,该存储器存储有可被该至少一个处理器执行的指令,该指令被所述至少一个处理器执行时,以使该至少一个处理器执行上述任意方法实施例中的清理短信的方法。
需要说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (20)

  1. 一种清理短信的方法,包括:
    获取移动终端中保存的短信的短信类别;
    遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间;
    确定所述第一短信中存储时间大于或等于有效期的短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长;
    对所述超期短信进行清理。
  2. 根据权利要求1所述的方法,其中,对所述超期短信进行清理,包括:
    如果所述超期短信的数量大于或等于第一预设阈值,则对所述超期短信进行清理。
  3. 根据权利要求2所述的方法,其中,所述第一预设阈值针对所述短信类别预先设置。
  4. 根据权利要求2所述的方法,还包括:
    根据所述短信类别对应的第一短信的接收频率,确定对应于所述短信类别的所述第一预设阈值。
  5. 根据权利要求1所述的方法,其中,对所述超期短信进行清理,包括
    判断所述超期短信是否满足预设条件;
    对不满足预设条件的超期短信进行清理。
  6. 根据权利要求5所述的方法,其中,
    所述预设条件包括所述超期短信已被进行标记、收藏或归档处理,或,包括白名单内的关键字。
  7. 根据权利要求1所述的方法,其中,在所述遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间的步骤之前,还包括:
    根据所述短信类别,设置所述短信类别对应的清理周期;
    所述执行所述遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间,包括:
    按所述清理周期,执行所述遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间。
  8. 根据权利要求1所述的方法,所述获取移动终端中保存的短信的短信类别,包括:
    根据发件人号码、发件内容、用户设置、运营商标记或第三方标记中的至少一项,对所述移动终端中保存的短信进行识别,以获取所述短信类别。
  9. 根据权利要求1至8中任一项所述的方法,其中,所述短信类别包括验证码短信、快递短信、票务短信、服务短信和普通短信。
  10. 一种清理短信的装置,包括:
    第一获取模块,用于获取移动终端中保存的短信的短信类别;
    第二获取模块,用于遍历每个所述短信类别对应的第一短信,获取所述第一短信对应的存储时间;
    第一确定模块,用于如果所述存储时间大于或等于有效期,则确定所述第一短信为超期短信,其中,所述有效期是根据所述短信类别而设置的时长;
    清理模块,用于对所述超期短信进行清理。
  11. 根据权利要求10所述的装置,其中,所述清理模块还用于:
    如果所述超期短信的数量大于或等于第一预设阈值,则对所述超期短信进行清理。
  12. 根据权利要求11所述的装置,其中,所述第一预设阈值针对所述短信类别预先设置。
  13. 根据权利要求11所述的装置,还包括第二确定模块,用于根据所述短信类别对应的第一短信的接收频率,确定对应于所述短信类别的所述第一预设阈值。
  14. 根据权利要求10所述的装置,其中所述清理模块还用于:
    判断所述超期短信是否满足预设条件;
    对不满足预设条件的超期短信进行清理。
  15. 根据权利要求14所述的装置,其中,所述预设条件包括所述超期短信已被进行标记、收藏或归档处理,或,包括白名单内的关键字。
  16. 根据权利要求10所述的装置,其中,所述第二获取模块还具体用于,根据所述短信类别,设置所述短信类别对应的清理周期,按所述清理周期,遍历所述短信类别对应的第一短信,获取所述第一短信对应的存储时间。
  17. 根据权利要求10所述的装置,其中,所述第一获取模块还用于:
    根据发件人号码、发件内容、用户设置、运营商标记或第三方标记中的至少一项,对所述移动终端中保存的短信进行识别,以获取所述短信类别。
  18. 根据权利要求10至17中任一项所述的装置,其中,所述短信类别包括验证码短信、快递短信、票务短信、服务短信和普通短信。
  19. 一种移动终端,包括:
    至少一个处理器,以及
    与所述至少一个处理器通信连接的存储器,其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行权利要求1至9中任一项所述的方法。
  20. 一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使终端执行如权利要求1至9中任一项所述的方法。
PCT/CN2021/131672 2020-11-20 2021-11-19 一种清理短信的方法、装置、移动终端及存储介质 WO2022105858A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011314520.1A CN114520850A (zh) 2020-11-20 2020-11-20 一种清理短信的方法、移动终端及存储介质
CN202011314520.1 2020-11-20

Publications (1)

Publication Number Publication Date
WO2022105858A1 true WO2022105858A1 (zh) 2022-05-27

Family

ID=81594801

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/131672 WO2022105858A1 (zh) 2020-11-20 2021-11-19 一种清理短信的方法、装置、移动终端及存储介质

Country Status (2)

Country Link
CN (1) CN114520850A (zh)
WO (1) WO2022105858A1 (zh)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040026912A (ko) * 2002-09-26 2004-04-01 엘지전자 주식회사 이동 통신 단말기의 단문 메시지 관리 방법
KR20050093084A (ko) * 2004-03-18 2005-09-23 주식회사 팬택앤큐리텔 이동 통신 단말기의 에스엠에스 메시지 관리 방법
CN101222700A (zh) * 2007-01-12 2008-07-16 上海晨兴电子科技有限公司 一种接收处理与操作处理长短消息存储的方法
CN101883185A (zh) * 2010-06-29 2010-11-10 中兴通讯股份有限公司 短信自动删除方法和系统
CN103491245A (zh) * 2013-09-06 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种存储短信的方法、装置和终端设备
CN104661209A (zh) * 2015-03-03 2015-05-27 中国联合网络通信集团有限公司 一种短消息删除方法及系统
CN105516940A (zh) * 2014-09-22 2016-04-20 中兴通讯股份有限公司 一种短信处理的方法及装置
CN105791543A (zh) * 2016-02-23 2016-07-20 北京奇虎科技有限公司 一种清理短信的方法、装置、客户端和系统
CN105812554A (zh) * 2016-03-01 2016-07-27 中山大学深圳研究院 一种智能管理手机短信的方法和系统
CN106060238A (zh) * 2016-05-11 2016-10-26 潘成军 移动终端信息清理方法
CN106341315A (zh) * 2016-10-24 2017-01-18 北京奇虎科技有限公司 短信清理方法、装置和移动终端
CN106888331A (zh) * 2017-03-28 2017-06-23 联想(北京)有限公司 信息处理方法及电子设备
CN106937004A (zh) * 2017-05-15 2017-07-07 上海与德科技有限公司 一种自动清理时效性短信的方法、装置及移动终端
CN107205082A (zh) * 2017-05-05 2017-09-26 深圳市金立通信设备有限公司 一种短信清理方法、及移动终端
CN107645595A (zh) * 2017-09-18 2018-01-30 维沃移动通信有限公司 一种信息处理方法及移动终端
CN107729434A (zh) * 2017-09-29 2018-02-23 努比亚技术有限公司 一种短信清理的方法、终端及计算机可读存储介质

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040026912A (ko) * 2002-09-26 2004-04-01 엘지전자 주식회사 이동 통신 단말기의 단문 메시지 관리 방법
KR20050093084A (ko) * 2004-03-18 2005-09-23 주식회사 팬택앤큐리텔 이동 통신 단말기의 에스엠에스 메시지 관리 방법
CN101222700A (zh) * 2007-01-12 2008-07-16 上海晨兴电子科技有限公司 一种接收处理与操作处理长短消息存储的方法
CN101883185A (zh) * 2010-06-29 2010-11-10 中兴通讯股份有限公司 短信自动删除方法和系统
CN103491245A (zh) * 2013-09-06 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种存储短信的方法、装置和终端设备
CN105516940A (zh) * 2014-09-22 2016-04-20 中兴通讯股份有限公司 一种短信处理的方法及装置
CN104661209A (zh) * 2015-03-03 2015-05-27 中国联合网络通信集团有限公司 一种短消息删除方法及系统
CN105791543A (zh) * 2016-02-23 2016-07-20 北京奇虎科技有限公司 一种清理短信的方法、装置、客户端和系统
CN105812554A (zh) * 2016-03-01 2016-07-27 中山大学深圳研究院 一种智能管理手机短信的方法和系统
CN106060238A (zh) * 2016-05-11 2016-10-26 潘成军 移动终端信息清理方法
CN106341315A (zh) * 2016-10-24 2017-01-18 北京奇虎科技有限公司 短信清理方法、装置和移动终端
CN106888331A (zh) * 2017-03-28 2017-06-23 联想(北京)有限公司 信息处理方法及电子设备
CN107205082A (zh) * 2017-05-05 2017-09-26 深圳市金立通信设备有限公司 一种短信清理方法、及移动终端
CN106937004A (zh) * 2017-05-15 2017-07-07 上海与德科技有限公司 一种自动清理时效性短信的方法、装置及移动终端
CN107645595A (zh) * 2017-09-18 2018-01-30 维沃移动通信有限公司 一种信息处理方法及移动终端
CN107729434A (zh) * 2017-09-29 2018-02-23 努比亚技术有限公司 一种短信清理的方法、终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN114520850A (zh) 2022-05-20

Similar Documents

Publication Publication Date Title
CN112004173B (zh) 蓝牙耳机的切换方法、移动终端及计算机可读存储介质
CN109274405B (zh) 数据传输方法、装置、电子设备及计算机可读介质
CN107688607A (zh) 一种数据库访问的方法及移动终端、计算机可读存储介质
WO2022206810A1 (zh) 业务处理方法、终端及网络设备
CN107807767B (zh) 一种通讯业务的处理方法、终端及计算机可读存储介质
CN109901980B (zh) 串口日志抓取电路、方法、终端及计算机可读存储介质
CN112612598A (zh) 防沉迷方法、移动终端及计算机可读存储介质
WO2020228537A1 (zh) 资源确定方法、资源指示方法、终端及网络侧设备
CN111158815B (zh) 一种动态壁纸模糊方法、终端和计算机可读存储介质
CN108923971A (zh) 蓝牙设备管理方法、装置、计算机可读存储介质及其终端
CN109639738A (zh) 语音数据传输的方法及终端设备
CN109194979A (zh) 音视频的处理方法及装置、移动终端、可读存储介质
CN112423211A (zh) 一种多音频传输控制方法、设备及计算机可读存储介质
WO2022105858A1 (zh) 一种清理短信的方法、装置、移动终端及存储介质
CN109151201B (zh) 一种防沉迷方法、移动终端以及计算机存储介质
CN110046151A (zh) 一种数据清洗方法、服务器及计算机可读存储介质
CN110278402B (zh) 一种双声道音频处理方法、设备及计算机可读存储介质
CN114272605A (zh) 自动获取虚拟资源的方法、终端及计算机可读存储介质
CN108650404A (zh) 端口启动电路、装置及移动终端
CN108566476A (zh) 一种信息处理方法、终端和计算机可读存储介质
CN109739642B (zh) 一种cpu调频方法及装置、移动终端及计算机可读存储介质
CN109739641B (zh) 一种自适应cpu调频加速方法及装置、移动终端及存储介质
CN110572518A (zh) 息屏管控方法、移动终端及计算机可读存储介质
CN112689251B (zh) 电子价签延时刷图方法、设备及计算机存储介质
CN115277928B (zh) 处理方法、智能终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21894005

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.08.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21894005

Country of ref document: EP

Kind code of ref document: A1