WO2020024938A1 - 数据流量的处理方法、终端及计算机存储介质 - Google Patents

数据流量的处理方法、终端及计算机存储介质 Download PDF

Info

Publication number
WO2020024938A1
WO2020024938A1 PCT/CN2019/098395 CN2019098395W WO2020024938A1 WO 2020024938 A1 WO2020024938 A1 WO 2020024938A1 CN 2019098395 W CN2019098395 W CN 2019098395W WO 2020024938 A1 WO2020024938 A1 WO 2020024938A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
data traffic
terminal
traffic
type
Prior art date
Application number
PCT/CN2019/098395
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 WO2020024938A1 publication Critical patent/WO2020024938A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/82Criteria or parameters used for performing billing operations
    • H04M15/8214Data or packet based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for processing data traffic, a terminal, and a computer storage medium.
  • Embodiments of the present invention provide a method, a device, a terminal, and a computer storage medium for processing data traffic.
  • An embodiment of the present invention provides a method for processing data traffic, which is applied to a terminal.
  • the method includes:
  • An embodiment of the present invention provides a data traffic processing device, which is applied to a terminal.
  • the device includes:
  • a statistics module configured to count the first type of data traffic generated by the application program of the terminal and classify the application program
  • a sorting module is configured to sort and process the first type of data traffic of the same type of application according to the classification of the application.
  • An embodiment of the present invention further provides a terminal, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to implement the data described above when the computer program is run. How to handle traffic.
  • An embodiment of the present invention further provides a computer storage medium that stores an executable program.
  • the executable program When the executable program is executed by a processor, the method for processing a data traffic as described above is implemented.
  • the data flow processing method, device, terminal, and computing storage medium provided in the foregoing embodiments, by counting the first type of data traffic generated by a terminal application, and classifying the application, and classifying the application according to the application, Sorts the first type of data traffic for applications in the same category.
  • the first type of data traffic of applications in the same category is sorted to implement traffic management after classifying the applications, compared to the scattered statistical results after all applications are counted, the present The embodiment of the invention sorts the first type of data traffic of the same type of application to obtain a classified statistical result.
  • FIG. 1 is a schematic flowchart of a data traffic processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a functional structure of a data traffic processing device according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a functional structure of a data traffic processing device according to a specific embodiment of the present invention.
  • FIG. 4 is a flow diagram of a data flow processing method provided by a specific embodiment of the present invention.
  • FIG. 5 is another schematic flowchart of a data traffic processing method according to a specific embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of an application classification method according to a specific embodiment of the present invention.
  • FIG. 7a is a schematic diagram of interface 1 in a data traffic processing scenario provided by a specific embodiment of the present invention.
  • FIG. 7b is a schematic diagram of interface 2 in a data traffic processing scenario provided by a specific embodiment of the present invention.
  • FIG. 7c is a schematic diagram of interface 3 in a data traffic processing scenario provided by a specific embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another scenario of processing data traffic according to a specific embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a hardware structure of a gateway according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for processing data traffic, by counting the first type of data traffic generated by a terminal application, and classifying the application, and classifying applications of the same type according to the classification of the application.
  • the first type of data traffic is sorted.
  • the present invention sorts the first type of data traffic of the same type of application to obtain a classified statistical result.
  • the classification can be viewed, which makes the management more convenient and thus helps users Quickly obtain useful information for application traffic management, and provide a favorable reference for users to quickly make traffic control strategies; moreover, because the applications are classified and managed in the statistical results, each application can be quickly and clearly known
  • the traffic ranking of the generated traffic in the same category of applications which helps users to make corresponding traffic management strategies for similar applications, and then better manage and control the traffic usage of different applications in the same type of application. Better manage and control traffic The case can be saved with the flow rates; and ultimately improve the user experience.
  • FIG. 1 is a schematic flowchart of a data traffic processing method provided by an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step 101 Count the first type of data traffic generated by the application program of the terminal.
  • the terminal counts the first type of data traffic generated by the terminal's application program accessing the Internet.
  • the first type of data traffic generated by the application program accessing the Internet may be mobile data traffic generated by the terminal accessing the Internet through the mobile communication network.
  • the mobile communication network includes a mobile base station, a propagation medium, a switching device, a receiving terminal, and the like.
  • the first type of data traffic can be understood as a terminal using a general packet radio service technology (GPRS, General Packet Radio).
  • GPRS General Packet Radio
  • Time Division Synchronous Code Division Multiple Access (TD-SCDMA, Time Division-Synchronous Code Division Multiple Access), High Speed Downlink Packet Access (HSDPA, High Speed Downlink Packet Access), Wideband Code Division Multiple Access (WCDMA, Wideband Code Division (Multiple Access), CDMA2000, Long Term Evolution (LTE, Long Term Evolution), and 5G wireless communication technology 5G and other mobile communication technologies such as mobile data traffic generated by surfing the Internet or using related data value-added services.
  • TD-SCDMA Time Division Synchronous Code Division Multiple Access
  • HSDPA High Speed Downlink Packet Access
  • WCDMA Wideband Code Division Multiple Access
  • CDMA2000 Code Division Long Term Evolution
  • LTE Long Term Evolution
  • 5G wireless communication technology 5G and other mobile communication technologies such as mobile data traffic generated by surfing the Internet or using related data value-added services.
  • the first type of data traffic generated by the terminal's application access to the Internet can be understood as mobile data traffic that requires payment when the terminal accesses the Internet through a mobile communication network.
  • the terminal and the operator A mobile data flow package with a predetermined flow for the application is signed, and only mobile data flow generated outside the mobile data flow package exceeding the predetermined flow is considered to be a mobile data flow that requires payment.
  • the first type of data traffic generated by the application of the terminal on the Internet can be understood that the mobile data traffic generated by the application in the terminal requires payment.
  • the step 101 includes: counting the total data traffic of the application program of the terminal; determining the second type of data traffic generated by the application program of the terminal; The second type of data traffic is described, and the first type of data traffic is calculated.
  • the terminal counts the total data traffic of the application program of the terminal. It can be understood that the terminal counts the total data traffic generated by the application program by counting the number of data transmission and reception interfaces of the application program.
  • the data traffic refers to the amount of data received and sent by the application under any network environment.
  • the first type of data traffic and the second type of data traffic are different types of data traffic; a difference between the first type of data traffic and the second type of data traffic may include at least one of the following:
  • the communication protocol or communication system used is different; for example, data traffic using mobile communication technologies (for example, 2G, 3G, 4G, or 5G) and data traffic generated using WiFi transmission may correspond to the above-mentioned first type of data traffic and second Data traffic
  • Data traffic is billed differently; for example, the first billing method: billing is based on the available time of the data traffic; the second billing method: billing is based on the amount of data corresponding to the data traffic; for example, using WiFi transmission
  • the data traffic is charged according to the available time of the account used by WiFi, and the data traffic used by the mobile phone to connect to the base station may be charged according to the amount of data transmitted.
  • the first charging method and the second charging method are merely examples.
  • the charging method for data traffic may further include: other charging methods, for example, the third charging method; and the third charging method. In the method, charging is performed according to the data transmission rate or transmission bandwidth;
  • the access devices are different.
  • the access device used by WiFi may be a WiFi device held by a user such as a company or a home; while the data traffic transmitted to the base station by using a mobile phone or tablet, it is obvious that the access device is a base station, radio frequency pull Remote unit, etc.
  • Different access devices can include: different access devices belong, for example, WiFi devices belong to users, base stations belong to communication operators; the connection properties of access devices are different, for example, WiFi devices are only open to some users. Private access equipment; while the base station can be open to all users using the operator, the base station can be considered as a public access equipment; the communication protocols followed by the access equipment are different.
  • the terminal separately counts the total data traffic generated by each application, for example, the terminal counts the total data traffic generated by the A application is 300MB, and the terminal counts the total data traffic generated by the B application is 500MB
  • the first type of data traffic generated by each application is determined according to the total data traffic of each application separately counted by the terminal. In the following statistical solutions for the amount of traffic, it is based on a single application. The traffic generated by the program is counted separately.
  • the terminal counts the total data traffic of the application program in the terminal system, and the operation of the traffic statistics of the application program can be implemented through the traffic monitoring class of the Android system, for example, through the Android In version 2.2, the TrafficSates class was added to implement the operation of the traffic statistics of the application. In fact, the TrafficSates class itself also relies on reading and parsing the files that store traffic information under Linus. Android.net.Traffic provides multiple static methods in the Stats class. Specifically, the traffic consumption of the application can be calculated through the getUidRxBytes (int UID) and getUidTxBytes (int UID) interfaces of the Traffic Stats class.
  • the received data, and uid obtains the uid attribute of the specified application package name through the PackageManager's getPackageInfo interface, so as to count the total data traffic of the application.
  • the operation of traffic statistics of the application program is also implemented by adding corresponding traffic monitoring programs, that is, using the corresponding traffic monitoring programs To read the data traffic of the application program's sending and receiving interface to achieve statistics on the total data traffic of the application program.
  • determining the second type of data traffic generated by the application program of the terminal can be understood as that the terminal determines the local area network data traffic generated by the application program in the local area network.
  • the terminal determines the application program The data traffic generated when the hotspot is connected, wherein the hotspot is a wireless access point of the local area network, such as a wireless router, and usually the data traffic generated by connecting a predetermined hotspot by opening a terminal WIFI device.
  • determining the second type of data traffic generated by an application program of the terminal includes: recording a total data traffic at a first time, wherein the first time is a time when the terminal establishes a connection with a predetermined hotspot; recording The total data traffic at the second moment, where the second moment is: the moment when the terminal disconnects the connection from the predetermined hotspot; according to the total data traffic at the first moment and the second moment Total data traffic.
  • the second type of data traffic generated by the terminal's application program accessing the Internet can be understood as the LAN data traffic generated by the application program in the terminal and does not belong to the category of mobile data traffic payment.
  • the terminal may connect to the network through the predetermined hotspot and perform data interaction with other devices through the network. If the terminal has established a connection with the hotspot, the hotspot is preferentially used for data transmission, and the first type of data traffic is not used for data transmission.
  • the second time is later than the first time.
  • the terminal is disconnected from the predetermined hotspot, indicating that the terminal cannot connect to the network through the predetermined hotspot. For example, when the terminal leaves the coverage of the predetermined hotspot, it is naturally disconnected from the predetermined hotspot. If the user instructs to disconnect from the predetermined hotspot, the terminal will also disconnect from the predetermined hotspot.
  • the predetermined hotspot here may be a WiFi router, or other terminal equipment serving as a hotspot.
  • the predetermined hotspot may be a hotspot within a range corresponding to the location of the terminal, a hotspot indicating connection, or a hotspot that is set to be automatically connected by the terminal device.
  • the predetermined hotspot is determined in many ways and types, and is not limited to Any of the above.
  • the counting of the first type of data traffic in step 101 may also be understood as including counting mobile data traffic packets of the predetermined traffic for the application that the terminal and the operator determine to sign.
  • Mobile data traffic other than but not including LAN data traffic specifically, based on the statistics of the total traffic of the application and the second type of traffic of the application in the case of hotspot connection, calculate the consumption of the application Mobile data traffic, to determine whether the mobile data traffic is greater than the value of the mobile data traffic packet of the predetermined traffic. If it is greater, the excess is recorded as the first type of data traffic of the application. If it is not greater, it is history. Mobile data traffic is stored in the traffic database for accumulation at the next statistics.
  • the counting of the first type of data traffic generated by the application program of the terminal includes: the total data traffic that is counted from the time when the terminal is turned on; The total data flow of the statistics and the total data flow of the historical statistical period are calculated to obtain the total data flow of the current statistical period; and based on the total data flow of the current statistical period, determine the amount of data generated by the application program of the terminal in the current statistical period.
  • the first type of data traffic includes: the total data traffic that is counted from the time when the terminal is turned on; The total data flow of the statistics and the total data flow of the historical statistical period are calculated to obtain the total data flow of the current statistical period; and based on the total data flow of the current statistical period, determine the amount of data generated by the application program of the terminal in the current statistical period.
  • the first type of data traffic includes: the total data traffic that is counted from the time when the terminal is turned on; The total data flow of the statistics and the total data flow of the historical statistical period are calculated to obtain the total data flow of the current statistical period
  • the statistical period may be a predetermined time period, for example, one year, one month, one week, etc., that is, a period of an arbitrary length may be used as a statistical period for traffic statistics.
  • the statistical period consists of The operator specifies that currently one month is used as a statistical cycle.
  • the statistics period is implemented by a timer set on the terminal. The timer starts counting from zero after the statistics period ends. The timer here can start counting in the following two ways. One is to start timing at a specific time. , The other is to call the timing function to start timing according to a specified number of times (for example, milliseconds) in a predetermined unit.
  • the timer starts counting according to the first time of each month in the calendar time built into the terminal, which is the first time counting method described above, and ends at the last time of the month. cycle.
  • the first time and the last time of the month are determined according to the sensitivity of the timer.
  • the time can be measured in seconds.
  • the first and second seconds of the first day of each month are used as the monthly time.
  • 24.59 seconds on the last day of the month is used as the last moment of the month, and the time can be measured in milliseconds.
  • the terminal when the terminal is shut down or restarted, the statistical traffic data is cleared. At this time, after receiving the shutdown or restart instruction, the terminal should save the statistical data flow information in advance. , So that the statistical data traffic can be accumulated during the statistical period. Please continue to take the Android system as an example. In the Android system, the data flow information collected through Traffic and Stats will be cleared when the terminal is restarted. Therefore, if you want to continuously collect data flow information, you need to save the data flow information to the database. In this way, when the terminal counts the data flow, it can read out and add the accumulated data flow information.
  • the data flow information includes: a data flow value and an application program corresponding to the data flow.
  • the total data traffic is counted from the time when the terminal is turned on. Specifically, after the terminal detects a power-on instruction, it starts a flow statistics process and starts to perform traffic statistics.
  • the starting flow statistics process may be automatically starting the flow statistics process after the terminal starts the operating system. For example, after the operating system of the terminal is started, a plug-in for performing traffic statistics in the operating system is automatically started, or an application for performing traffic statistics is started, thereby starting to perform traffic statistics.
  • the process of starting the traffic statistics may be associated with the opening of the network function of the terminal, that is, the startup of the traffic statistics is completed before the network connection is started or before the network connection is used.
  • the network connection here may include: a network connection for mobile data and / or a network connection for a hotspot.
  • the start-up time is within the historical statistical period
  • the total data flow of the current statistical period is calculated by combining the total data flow that is started to be counted at the start-up time and the total data flow of the historical statistical period.
  • the terminal determines whether a power-on instruction is detected within the historical statistical period.
  • the historical statistical period refers to a statistical period before the current statistical period. If the startup time is within the historical statistical period, that is, at the current time, There is no start-up job in the statistical period. Then, the total data flow of the current statistical period is the total data flow counted at the time of startup minus the total flow of the historical statistical period.
  • Timing that is, after the end of a statistical period
  • the data flow of the application that is counted from the time when the timer is turned on to when the timer restarts is counted as the total data flow of the historical statistical period, so that the total data of the current statistical period can be calculated flow.
  • the current total data flow is calculated by combining the current data flow and the accumulation of historical data flow in the current statistical period. It can be understood that each time the terminal detects a shutdown or restart instruction, the terminal will save the current data traffic information in the traffic database as historical data traffic for subsequent traffic calculations.
  • the trigger of counting the first type of data traffic generated by the application program of the terminal may be a trigger of the terminal to count the first type of data traffic generated by the application program of the terminal by a predetermined time. For example, every 1 s and the operation of counting the first type of data traffic generated by the application program of the terminal may also be performed; when the terminal detects that the traffic is generated, the first data flow generated by the application program of the terminal is counted.
  • the operation of the same type of data flow, or the operation of counting the first type of data flow generated by the application program of the terminal is performed only when a predetermined number of flow changes are detected (for example, 10 MB is set as a predetermined flow change value). In this way, statistics are triggered only when traffic changes, which can save energy consumption of the terminal.
  • Step 102 classify the application.
  • step 102 includes the following steps:
  • the terminal obtains the identification information of the application program; and determines the classification of the application program according to the identification information of the application program.
  • the identification information refers to information for identifying the category of the application program, and can be used to distinguish different categories of application programs.
  • the identification information of the application program may be the identification information of the application program which is encapsulated in the object information of the application program with specific character string information, or may be determined by the classification identifier input by the user to distinguish the application program. Identification information of the application.
  • the terminal's applications can be divided into at least the following categories: system applications and non-system applications (that is, third-party applications), where the system application refers to the terminal pre-installed in the The terminal is a total application.
  • the system applications can be divided into non-self-developed applications and self-developed applications.
  • the self-developed application refers to an application developed by the manufacturer where the terminal is located and installed in the terminal before leaving the factory. This type of application, accordingly, is not a self-developed application, which is not a type of application developed by the manufacturer where the terminal is located, but installed on the terminal before leaving the factory.
  • the terminal obtains the info object of the application, for example, info.applicationInfo.Flags & ApplicationInfo.FLAG_SYSTEM, so that it can be determined whether the application belongs to the system application, and if it belongs to the system application, then According to whether the self-developed application fixed string "xxx" is included in info.packageName to determine whether it is a self-developed application, if it is a self-developed application, add info to the selfInfoList, otherwise it is a non-self-developed application, such applications can be directly added The program's info is added to the sysInfoList.
  • info.applicationInfo.Flags & ApplicationInfo.FLAG_SYSTEM so that it can be determined whether the application belongs to the system application, and if it belongs to the system application, then According to whether the self-developed application fixed string "xxx" is included in info.packageName to determine whether it is a self-developed application, if it is a self-developed application, add info to the selfInfoList, otherwise it is a non-self-
  • this type of application should be understood as a non-self-developed application class in the system application; if it is a non-system application (that is, a third-party application), info is added to the thirdInfoList .
  • the character string "xxx" usually indicates the name of the manufacturer.
  • the terminal divides applications into at least the following categories: social applications, game applications, financial applications, audio-visual applications, etc., and various user-defined applications.
  • the terminal may intelligently determine which type of application the application belongs to according to the software name, or may further determine which type of application the application belongs to according to a classification identifier for the application input by the user. For example, the terminal receives the classification identifier input by the user for the application, and performs customized classification on the application. For example, when classifying the application, the terminal receives the classification identifier of the user for the first type of application.
  • classification identifier indicates that the application is a social application
  • classification identifier "G” indicates that the application is a game application.
  • the above-mentioned classification identifier is defined by the user, in addition to being represented by letters, it may also be represented by numbers or other symbols.
  • classification may also be performed according to other parameters of the application, for example, according to the frequency of use of the application.
  • the application programs can be divided into multiple categories according to the use frequency of the application program from high to low.
  • the specific classification method may be: determining the classification of the application program by setting a use frequency range in advance. Suppose, according to the use frequency of the application, the applications are divided into three categories, which are "high usage rate”, “usual usage rate” and “low usage rate”. You can set the use frequency range between Above 80% is classified as “high usage rate”, usage frequency between 50% and 80% is classified as “general usage rate”, and usage rate below 50% is classified as “low usage rate” ".
  • Step 103 Sort the first-type data traffic of the same type of application according to the classification of the application.
  • the first-type data traffic of the same application is sorted and processed.
  • icons of applications of the same type are sequentially displayed.
  • icons of applications of the same type may be sequentially displayed on the interface of the terminal. It can be displayed in order according to categories, for example, system application software is displayed in the front, and non-system application software is displayed in the back.
  • a display position of an application of a predetermined category may be set according to a user's setting needs. For example, an application of a predetermined category may be displayed to a specific display position of a traffic leaderboard (such as a first position of a leaderboard). ), The other categories are displayed in turn by default.
  • the terminal may further display a corresponding icon of a specific application program at a target position. Specifically, the terminal displays the corresponding icon of the specific application to the target position of the total traffic statistics list according to the setting; or displays the corresponding icon of the specific application to the target position of the traffic statistics list of the application category; or , The corresponding icon of the specific application and the first type of data flow information are displayed at a specified position on the display screen.
  • the specific application program may be an application program concerned by a user
  • the target position may be a first position or a last position of the statistical list, or a middle position of a display screen. This makes it easy for users to view the data traffic of the applications they care about.
  • the method further includes: obtaining information about the Internet access permission of the application program, and judging based on the information about the Internet access permission of the application program. Whether the application has Internet access permission, and if it has Internet access permission, execute the step of counting the first type of data traffic generated by the application, otherwise, do not perform the counting of the first type of data generated by the application Flow of steps. In this way, applications that do not have Internet access rights can be identified in advance, and data traffic statistics are not required for these applications, which saves the terminal's resources and energy consumption.
  • the method further includes the following steps:
  • Step 1 Obtain the identification information of the application
  • the identification information may be used to identify protocol information of the application program, and may also be used to identify source information of the application program.
  • the second step identifying the identification information of the application program; judging whether the application program belongs to a special application program according to the identified identification information.
  • Step 3 If it belongs to a special application program, the step of counting the first type of data traffic generated by the application program is not performed; otherwise, execute the step of counting the first type of data traffic generated by the application program. A step of.
  • Tencent s KingCard package service is used as an agreement between the terminal and the operator for traffic-free agreements for all applications of Tencent, which means that mobile data traffic generated by all applications of Tencent does not require payment.
  • the terminal obtains identification information of the application program.
  • the identification information is whether the package name information of the application program contains a "tencent" string, identifies the identification information, and determines whether the application program belongs to a Tencent application program. If yes, the step of counting the first type of data traffic generated by the application program is not performed; otherwise, the step of counting the first type of data traffic generated by the application program is not performed. In this way, applications that are free of traffic are excluded, and data traffic statistics for these applications are no longer required, which also saves the resources and energy consumption of the terminal.
  • the terminal performing control processing on the application program according to the sorting result may specifically include: the terminal performing a preset operation on the application program that is ranked in a predetermined position in the total ranking of the first type of data traffic according to the sorting result, or Perform a preset operation on an application ranked in a predetermined position in the ranking of the first type of data traffic of the same type of application.
  • the preset operations are performed on the applications ranked first and second in the total ranking of the first type of data traffic, or the same type of applications
  • the top-ranking application of the first type of data traffic performs a preset operation.
  • performing the preset operation on the application program includes: performing a traffic reminder on the application program, wherein the reminder processing includes: control prompt information for the application program output by the terminal, and the prompt information includes But it is not limited to at least one of the following: voice prompt information, text prompt information, vibration prompt.
  • the terminal sends a prompt message, or outputs a prompt dialog box on the terminal's traffic monitoring page, and displays the text prompt information in the prompt dialog box.
  • the performing a preset operation on the application program further includes: controlling usage of the application program's traffic.
  • the terminal outputs a control instruction to limit the use of the first type of data traffic of the application program, for example, the terminal A close instruction is generated to close the application.
  • the controlling the use of traffic of an application program further includes: providing a choice of traffic usage for the application program, specifically, outputting a flow control use selection key for the application program on the terminal interface for the user to choose whether to continue using the The first type of data flow of the application is described. Here, whether to stop using the first type of data flow of the application is selected based on a user input acting on a "use" or "not use” virtual control.
  • the embodiments of the present invention provide a method, a device, a terminal, and a computing storage medium for processing data traffic.
  • the first type of data traffic generated by a terminal application is counted, and the application is classified, and the application is classified according to the classification of the application.
  • the first type of data traffic of applications in the same category is sorted.
  • the present invention sorts the first type of data traffic of the same type of application to obtain a classified statistical result.
  • FIG. 2 is a functional structure diagram of a data traffic processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a statistics module 21 and a sorting system. Module 22;
  • the statistics module 21 is configured to count the first type of data traffic generated by the application program of the terminal and classify the application program;
  • the sorting 22 is configured to sort the first type of data traffic of the same type of application according to the classification of the application.
  • the device is further configured to display icons of applications of the same type in sequence according to the sorted result.
  • the statistics module 21 is specifically configured to:
  • the first type of data traffic is calculated.
  • the statistics module 21 is further configured to:
  • Determining the second type of data traffic according to the total data traffic at the first time and the total data traffic at the second time.
  • the statistics module 21 is further configured to:
  • the total data flow of the current statistical period is calculated by combining the total data flow started from the start-up time and the total data flow of the historical statistical period;
  • the first type of data flow generated by the application program of the terminal in the current statistical period is determined.
  • the statistics module 21 is further configured to: obtain identification information of the application program; and determine a classification of the application program according to the identification information of the application program.
  • the device is further configured to: display a corresponding icon of a specific application program at a target position.
  • a specific implementation mode is also provided, still taking a terminal installed with an Android system as an example.
  • the data traffic described below should be understood as the first type described above.
  • Data traffic; the following traffic data should be understood as the data volume information in the above data traffic information, that is, the amount of traffic consumption; the following WiFi access can be understood as the first moment above, and the following WiFi disconnections can be Understand the second moment mentioned above.
  • Any of the following dynamics, for example, startup, shutdown, WiFi access, disconnection, etc. will notify (hereinafter referred to as registration) the terminal's processing, and record the startup, shutdown, WiFi access, disconnection, etc.
  • Operation ID, operation time, and current data traffic data at that moment uses the natural month as the statistical cycle to perform statistics on the first type of data for each application in each month.
  • the terminal classifies the data traffic consumption of applications in the system, and the data traffic information is counted monthly.
  • the data traffic of the application includes only mobile data traffic, such as 2/3/4 / 5G data traffic, and does not include WiFi traffic.
  • the data flow of the application program uses the GetUidRxBytes (int UID) and getUidTxBytes (int UID) interfaces of the TrafficStats class to count the data sent and received by the application.
  • the uid obtains the uid attribute of the specified application package name through the getPackageInfo interface of the PackageManager. In order to carry out the statistics of the application's data traffic.
  • the shutdown Since the data collected by the Traffic Stats class is emptied when shutting down, during the data flow statistics of the application, the shutdown, monthly changes, traffic changes, and WiFi state switching of the terminal should be recorded, and the terminal is shut down. , If the shutdown flag for this month is false, the current traffic is subtracted from the current traffic to the start of the month, and the calculated traffic is saved in the historical traffic data of the month. The shutdown flag of this month is false, otherwise the shutdown flag of this month is true, and the statistics of the current traffic data are superimposed on the historical traffic data of this month. When the month changes, save the current traffic data and clear the historical traffic data and used WiFi data; meanwhile, when the terminal is turned on, save the time when it is turned on. Record the traffic data value at the time of WiFi access, count the current traffic data value and subtract the previously stored traffic data value when WiFi is disconnected, superimpose it on the used WiFi data, and add the relevant application traffic data information Saved to the application's traffic database.
  • the traffic database fields include the application package name / class name componentName, the traffic startData from the last boot to the beginning of the month, the closeBootTime of the last boot, the used data UsedData, the shutdown identifier hasShutdown this month, and the used WiFi data WiFiData.
  • the terminal performs refresh statistics on the data flow of the application program every predetermined time, and counts the data flow of each application program at the current time. Every time when the traffic refresh broadcast data is received, it is judged that the traffic at the start time of the month is subtracted from the used traffic of the WiFi according to the latest startup time; if the latest startup is after the start time of the month, the current The consumption of the first data traffic of the month is the historical traffic of the month plus the current traffic statistics minus the WiFi used traffic. After performing the above operations on all applications with Internet permissions, the first type of data traffic information of each application is encapsulated into an info object.
  • the info object is saved to the relevant info list according to the type of application, and the different info lists are sorted from highest to lowest according to the first type of data traffic consumption of each application this month, and the categories are sorted according to the order of the different types of applications.
  • the first data traffic ranking result is displayed in the view of related categories, so that users can quickly obtain useful information about traffic management according to the ranking, which provides a favorable reference for users to quickly make traffic control strategies; and because of the application of traffic statistics
  • the program is classified and managed, which can quickly and clearly know the traffic ranking of the traffic generated by each application in the same category of applications, thereby also helping users to make corresponding traffic management strategies for similar applications, and Better manage and control the traffic usage of different applications in the same type of applications, saving traffic charges; ultimately improving the user experience.
  • the terminal may further perform a top or bottom operation on the specific application program in the entire application traffic ranking, or may also perform a top or bottom operation on the specific application program in the corresponding category ranking.
  • Bottom operation the specific application is an application that a user can select according to his or her own needs. In this way, special ranking processing can be performed on the applications that the user cares about. In this way, the user can more clearly understand the traffic ranking of these applications. Therefore, it can further provide a favorable reference for users to quickly make traffic management strategies and improve user experience.
  • the terminal may also hide special applications according to the user ’s traffic package signed between the terminal and the operator. Hiding here may be understood as filtering these special applications and does not affect It performs subsequent traffic statistics.
  • the terminal may further customize the application according to the user's needs, and the terminal receives the classification identifier entered by the user for the application, and customizes the application. For example, when categorizing an application program and receiving a user's classification identifier "S" for the first type of application program, it indicates that the application program is a social application program, and if the user receives a user program for the second type of application program, The category identifier "G" of a class application indicates that the application is a game application.
  • the above-mentioned classification identifier is defined by the user, in addition to being represented by letters, it may also be represented by numbers or other symbols.
  • an embodiment of the present invention also provides a specific embodiment of a data traffic processing apparatus.
  • FIG. 3 is a function of a data traffic processing apparatus provided by a specific embodiment of the present invention.
  • the data traffic processing device includes: a broadcast registration module 31, a history data module 32, a traffic refresh module 33, a classification sorting module 34, and a classification display module 35. among them,
  • the broadcast registration module 31 is used for registration of broadcasts related to historical traffic data calculation of each application. For example, the notification of the above-mentioned startup or shutdown instruction, the notification of WiFi access or disconnection, etc. are all provided by the broadcast registration module. The instruction information is notified to the processor of the terminal.
  • the historical data module 32 is used for calculating and storing historical data of each application program. For example, during the historical statistical period, the total data flow of each application is stored, and the second type of data flow of each application is calculated.
  • the history data module 32 may be equivalent to the above-mentioned statistics module 21.
  • the traffic refresh module 33 is configured to calculate real-time traffic of each application program when the traffic changes. It can be understood that when it is detected that traffic is generated, the terminal is triggered to monitor the data generated by each application and refresh the data traffic of each application.
  • the classification and sorting module 34 is configured to classify each application program and sort each type of application program according to traffic consumption.
  • the traffic consumption is specifically the first type of traffic consumption of the application.
  • the classification and sorting module 34 can be understood as the sorting module 22 described above.
  • the classification display module 35 is configured to refresh and display the information generated by the classification and sorting into corresponding views.
  • FIG. 4 is a schematic flow diagram of a data flow processing method provided by a specific embodiment of the present invention. As shown in Figure 4, the method steps are:
  • Step 401 Initialize the database
  • the terminal initializes a database of data flow of the application program.
  • the data flow database field includes the application package name / class name componentName, the data flow startData from the last boot to the beginning of the month, the last boot time closeBootTime, and this month. Used data traffic usedData, shutdown sign hasShutdown this month, used WiFi data traffic WiFiData.
  • Step 402 Register the broadcast receiver for power on, power off, month change, WIFI status switch, and traffic change.
  • the broadcast receiver can be understood as the processor of the terminal, which is used to record the above startup, shutdown, month change, WiFi state switch, and traffic change. Wait for the instructions and execute the corresponding processing.
  • Step 403 When a boot-up broadcast is received, step 4031 is performed, where the step 4031: save the current time, specifically, obtain the current system event and save it in the closeBootTime field of the database to record the last boot-up time.
  • Step 404 When a shutdown broadcast is received, step 4041 is performed, where the step 4041: calculate historical traffic, specifically, determine whether the shutdown flag is true, and if true, then query the historical traffic and statistics of the month in the database. The current traffic data of the application is superimposed and updated into the database useDate field. If it is false, the current traffic of the application is subtracted from the database query last traffic to the start of the month, and then updated to the database usedDate field to set the shutdown flag for this month to true.
  • Step 405 When the monthly change broadcast is received, execute step 4051: save the current traffic, specifically, save the calculated current traffic data in the database startData field, and clear the used data field of the historical traffic data and the WiFiData field of the used WiFi data. .
  • Step 406 When a WiFi broadcast is received, that is, when a WiFi state switching broadcast is received, perform step 4061: storing WiFi traffic. Specifically, when a WiFi state change broadcast is received, when WiFi is on and accesses a predetermined hotspot In the state, according to the WiFiData WiFiData field, when the WiFi is disconnected from the predetermined hotspot, the current data value is counted and the previously stored data value is subtracted. It is obtained from the database and superimposed on the used WiFi data and updated to WiFiData field. Thus, the second type of data traffic generated by each application under the WiFi access state is recorded.
  • Step 407 When a traffic broadcast is received, execute step 4071: Calculate the refresh view. Specifically, 10 MB can be set as the refresh interval. That is, each time a 10 MB change in the terminal's traffic is detected, traffic statistics are applied to the application, and each The traffic data that the application has used this month, and refresh the view, that is, refresh the application's traffic ranking.
  • FIG. 5 is another flow of a data flow processing method provided by a specific embodiment of the present invention. Schematic, as shown in Figure 5, the method steps are:
  • Step 501 Obtain all applications in the terminal system.
  • Step 502 Obtain an application
  • Step 503 determine whether the application program has network access authority; if yes, execute step 504; otherwise, return to step 502;
  • Step 504 Determine whether the latest boot time is before this month, and if yes, go to step 505; if not, go to step 506;
  • Step 505 Calculate the first type of traffic that has been used this month according to the current data traffic and the data traffic of the month;
  • Step 506 Calculate the first type of traffic used this month according to the current data traffic and the historical data traffic of the month;
  • Step 507 Encapsulate the application information into the info object, and add it to the related list by classification
  • Step 508 Determine whether all applications have been traversed; if so, execute step 509; if not, return to step 502;
  • Step 509 Sort the first type of data traffic consumption according to the application classification.
  • the terminal obtains an application set of configuration permission information in the system through the getInstalledPackages () method of the PackageManager PackageManager. Iterate through the applications in all collections to determine whether the application has network Internet access permissions. If so, read the database closeBootTime field and compare it with the start time of the month. If the most recent startup time is before the start of the month, use the current statistics. The traffic is subtracted from the database startData field value and WiFiData field value to get the first type of data traffic that the application has used this month; if the latest startup time has started this month, the current statistics traffic is added to the UsedData field value and then subtracted Go to the WiFiData field to get the first type of data traffic that the application has used this month. Save the application package name, icon, name, and used traffic information this month to the info object. Classify according to the type of application in the info object.
  • FIG. 6 is a schematic flowchart of an application classification method according to a specific embodiment of the present invention. As shown in FIG. 6
  • Step 601 Obtain an info object
  • Step 602 Determine whether it belongs to a system application; if yes, go to step 603; if no, go to step 604;
  • Step 603 Determine whether it belongs to a self-developed application; if yes, go to step 605; if no, go to step 606;
  • Step 604 Add info to thirdInfoList
  • Step 605 add info to sysInfoList
  • Step 606 Add info to selfInfoList.
  • the type of the application program is determined by obtaining an info object of the application, and determining whether the application program belongs to a system application according to info.applicationInfo.Flags & ApplicationInfo.FLAG_SYSTEM. If the application program belongs to a system application, then according to info.packageName Whether to include the self-developed application fixed string "xxx" to determine whether it is a self-developed application. If it is a self-developed application, add info to the selfInfoList, otherwise it is a non-self-developed application.
  • this type of application should be understood as a non-self-developed application class of the system application; if it is a non-system application (that is, a third-party application), info is added to the thirdInfoList.
  • the lists of different application types are sorted from high to low according to the traffic value in each info.
  • FIG. 7a is a schematic diagram of interface 1 in a data traffic processing scenario provided by a specific embodiment of the present invention; as shown in FIG. 7a, the operator name is displayed at the top of the traffic ranking interface, and the category name of the application is displayed before the list. , And sort the data traffic of the application according to the classification.
  • the interface 1 shows the traffic ranking of system applications (not self-developed applications), and one side is used to display the icon of the application and the name of the application.
  • Label is used to indicate the name of the application
  • Date is used to indicate the traffic data of the first type of data traffic corresponding to the application.
  • FIG. 7b is an example of interface 1 in the data traffic processing scenario provided by a specific embodiment of the present invention. Schematic diagram; as shown in Figure 7b, interface 2 shows the traffic ranking of self-developed applications. Similarly, one side is used to display the application icon and application name.
  • Label is used to indicate the name of the application. Date represents the traffic data of the first type of data traffic corresponding to the application program; then, FIG.
  • FIG. 7c is a data flow provided by a specific embodiment of the present invention
  • the schematic diagram of interface 3 in the processing scenario is shown in Figure 7c.
  • Interface 3 shows the traffic ranking of market applications.
  • one side is used to display the icon of the application and the name of the application.
  • Label is used to indicate The name of the application.
  • Use Date to represent the traffic data corresponding to the first type of data traffic of the application.
  • the classification of the application program can be classified according to user definition.
  • FIG. 8 is a schematic diagram of another scenario of data traffic processing provided by a specific embodiment of the present invention, as shown in FIG. 8.
  • the operator name is displayed at the top of the traffic ranking interface, and the category name of the application is displayed in front of the list.
  • the category here is a user-defined category, and the data traffic of the application is sorted according to the classification.
  • the display is Customized category 1 and customized category 2 application traffic ranking.
  • One side is used to display the application icon and application name.
  • Label is used to indicate the name of the application, and Date is used to indicate the first corresponding application.
  • Traffic data for class data traffic.
  • the first type of data traffic of applications of the same category is sorted to implement traffic management after classifying applications, compared to the scattered statistical results of all applications after they have collected traffic, Sort the first type of data traffic of the same type of application to get a classified statistical result.
  • the application is classified and managed in the traffic statistics, it can be classified and viewed, which makes it easier to manage and help users quickly get Useful information for application traffic management, which provides a useful reference for users to quickly make traffic control strategies;
  • the applications are classified and managed in traffic statistics, you can quickly and clearly know what each application generates. The traffic ranking of the traffic in the same category of applications.
  • the embodiment of the present invention further provides a terminal, the specific details of the method for processing the data traffic of the present invention, and achieve the same effect.
  • FIG. 9 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
  • the gateway includes a processor 91 and a memory 92 for storing a computer program that can run on the processor 91. among them,
  • the processor 91 is configured to, when running the computing program, execute:
  • processor 91 is further configured to, when running the computing program, execute:
  • the processor 91 is configured to run the program for counting the first type of data traffic generated by an application program of the terminal, and execute:
  • the first type of data traffic is calculated.
  • the processor 91 is configured to run the program for counting the second type of data traffic generated by an application program of the terminal, and execute:
  • the first moment is: the moment when the terminal establishes a connection with a predetermined hotspot;
  • Determining the second type of data traffic according to the total data traffic at the first time and the total data traffic at the second time.
  • the first service type information includes: network access authority information;
  • the processor 91 is configured to run a program for counting the first type of data traffic generated by an application program of the terminal, and execute:
  • the total data flow of the current statistical period is calculated by combining the total data flow started from the start-up time and the total data flow of the historical statistical period;
  • the first type of data flow generated by the application program of the terminal in the current statistical period is determined.
  • the processor 91 is configured to run the program classified for an application program, and execute:
  • the classification of the application is determined according to the identification information of the application.
  • the processor 91 is configured to run the computer program and execute:
  • the present invention also provides a computer storage medium.
  • the computer storage medium stores a computer-executable program, and when the executable program is executed by a processor, the following steps are implemented:
  • the steps of counting the first type of data traffic generated by the application program of the terminal are specifically implemented:
  • the first type of data traffic is calculated.
  • the steps of counting the second type of data traffic generated by the application program of the terminal are specifically implemented:
  • the first moment is: the moment when the terminal establishes a connection with a predetermined hotspot;
  • Determining the second type of data traffic according to the total data traffic at the first time and the total data traffic at the second time.
  • the steps of counting the first type of data traffic generated by the application program of the terminal are specifically implemented:
  • the total data flow of the current statistical period is calculated by combining the total data flow started from the start-up time and the total data flow of the historical statistical period;
  • the first type of data flow generated by the application program of the terminal in the current statistical period is determined.
  • the classification of the application is determined according to the identification information of the application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种数据流量的处理方法,应用于终端,所述方法包括:统计所述终端的应用程序所产生的第一类数据流量;针对所述应用程序进行分类;按照应用程序的分类,对同一类应用程序的第一类数据流量进行排序处理。本发明实施例还公开了一种数据流量的终端及计算机存储介质。

Description

数据流量的处理方法、终端及计算机存储介质
本申请要求享有2018年07月31日提交的名称为“数据流量的处理方法、装置、终端及计算机存储介质”的中国专利申请CN201810859049.0的优先权,其全部内容通过引用并入本文中。
技术领域
本发明涉及通信技术领域,尤其涉及一种数据流量的处理方法、终端及计算机存储介质。
背景技术
随着智能终端的普及,以及智能终端的多种应用程序广泛使用,且在一些应用程序的被使用过程中需要连接网络,然而在没有WiFi的情况下,人们不得不使用运营商的移动数据流量来连接并访问网络,从而会对智能终端产生流量资费,目前市面上的流量监控软件大同小异,现有的流量监控软件虽然会将每个应用程序所消耗的移动流量统计出来并显示统计结果,但是相关技术中都是对单个应用程序进行数据流量统计,这种数据流量的统计结果的零散,即没有归总和分类等,用户根据统计结果中快速做出流量控制策略的参考性不大,用户体验不佳。
发明内容
本发明实施例提供了一种数据流量的处理方法、装置、终端及计算机存储介质。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种数据流量的处理方法,应用于终端,所述方法包括:
统计所述终端的应用程序所产生的第一类数据流量;
针对所述应用程序进行分类;
按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序处理。
本发明实施例提供了一种数据流量的处理装置,应用于终端,所述装置包括:
统计模块,用于统计所述终端的应用程序所产生的第一类数据流量及针对所述应用 程序进行分类;
排序模块,用于按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序处理。
本发明实施例还提供一种终端,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中所述处理器用于运行所述计算机程序时,实现如上述所述的数据流量的处理方法。
本发明实施例还提供一种计算机存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现如上述所述的数据流量的处理方法。
上述实施例所提供的数据流量的处理方法、装置、终端及计算存储介质,通过统计终端应用程序所产生的第一类数据流量,以及针对所述应用程序进行分类,并按照应用程序的分类,对同一类别的应用程序的第一类数据流量进行排序处理。这里,由于会对同一类别的应用程序的第一类数据流量进行排序,实现对应用程序进行分类后的流量管理,相对于将所有的应用程序统计流量后,呈现零散的统计结果而言,本发明实施例对同一类的应用程序的第一类数据流量进行排序得到一个分类的统计结果,由于在统计结果中对应用程序进行了分类管理,可以进行分类查看,使得管理起来更加方便,进而帮助用户快速得到应用程序流量管理的有用信息,为用户快速做出流量控制策略提供了有利的参考;而且,由于在统计结果中对应用程序进行了分类管理,可以快速且清楚地知晓每个应用程序所产生的流量在同一类别的应用程序中的流量排行情况,如此,针对完成同类功能的同类应用程序,基于第一类数据流量的高低排序,选择性的关闭第一类数据流量较高的应用程序,减少第一类数据流量较高的应用程序的优先使用,从而减少第一类数据流来的消耗;从而减少第一类数据流量较高的应用程序的流量费用,以提高用户的设备使用满意度。
附图说明
图1为本发明实施例所提供的数据流量的处理方法流程示意图;
图2为本发明实施例所提供的数据流量的处理装置功能结构示意图;
图3为本发明具体实施例所提供的数据流量的处理装置功能结构示意图;
图4为本发明具体实施例所提供的数据流量的处理方法的流量示意图;
图5为本发明具体实施例所提供的数据流量的处理方法的另一流程示意图;
图6为本发明具体实施例所提供的应用程序分类方法流程示意图;
图7a为本发明具体实施例所提供的数据流量的处理场景下界面1的示意图;
图7b为本发明具体实施例所提供的数据流量的处理场景下界面2的示意图;
图7c为本发明具体实施例所提供的数据流量的处理场景下界面3的示意图;
图8为本发明具体实施例所提供的数据流量的处理的另一场景示意图;
图9为本发明实施例所提供的网关的硬件结构示意图。
具体实施方式
本发明实施例提供一种数据流量的处理方法,通过统计终端应用程序所产生的第一类数据流量,及针对所述应用程序进行分类,并按照应用程序的分类,对同一类别的应用程序的第一类数据流量进行排序处理。这里,由于会对同一类别的应用程序的第一类数据流量进行排序,实现对应用程序进行分类后的流量管理,相对于将所有应用程序统计流量后,呈现零散的统计结果而言,本发明实施例对同一类的应用程序的第一类数据流量进行排序得到一个分类的统计结果,由于在统计结果中对应用程序进行了分类管理,可以进行分类查看,使得管理起来更加方便,进而帮助用户快速得到应用程序流量管理的有用信息,为用户快速做出流量控制策略提供了有利的参考;而且,由于在统计结果中对应用程序进行了分类管理,可以快速且清楚地知晓每个应用程序所产生的流量在同一类别的应用程序中的流量排行情况,从而有利于用户对同类应用程序作出相应的流量管理策略,进而更好地管理和控制同一类应用程序中不同应用程序的流量使用,在更好地管理和控制流量使用的情况下可以节省流量资费;最终提高了用户体验。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明,应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例提供一种数据流量的处理方法,应用于终端,图1为本发明实施例所提供的数据流量的处理方法的流程示意图,如图1所示,所述方法包括以下步骤:
步骤101:统计所述终端的应用程序所产生的第一类数据流量。
具体地,终端统计所述终端的应用程序上网所产生的第一类数据流量,这里,应用程序上网所产生的第一类数据流量可为终端通过移动通信网络上网所产生的移动数据流量。这里,所述移动通信网络包括移动基站、传播媒介、交换设备、接收终端等,在本实施例中,所述第一类数据流量可以理解为终端通过通用分组无线服务技术(GPRS, General Packet Radio Service)、时分同步码分多址(TD-SCDMA,Time Division-Synchronous Code Division Multiple Access)、高速下行分组接入(HSDPA,High Speed Downlink Packet Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、CDMA2000、长期演进(LTE,Long Term Evolution)、以及第五代无线通信技术5G等移动通信技术上网或使用相关数据增值业务所产生的移动数据流量。
在一些实施方式中,所述终端的应用程序上网所产生的第一类数据流量可以理解为,终端通过移动通信网络上网所产生的需要付费的移动数据流量,具体地,所述终端与运营商签订针对所述应用程序的预定流量的移动数据流量包,只有在超过该预定流量的移动数据流量包之外再产生的移动数据流量才认为是需要付费的移动数据流量。总的来说,所述终端的应用程序上网所产生的第一类数据流量,可以理解的是,终端中所述应用程序所产生的需要付费的移动数据流量。
在另一些实施方式中,所述步骤101,包括:统计所述终端的应用程序的总数据流量;确定所述终端的应用程序所产生的第二类数据流量;根据所述总数据流量及所述第二类数据流量,计算出所述第一类数据流量。
这里,终端统计所述终端的应用程序的总数据流量,可以理解为,终端通过统计所述应用程序的数据收发接口的数量流量来统计所述应用程序所产生的总的数据流量,这里,总的数据流量是指所述应用程序在任何网络环境下所接受和发送的数据量。
所述第一类数据流量和所述第二类数据流量为不同类型的数据流量;所述第一类数据流量和所述第二类数据流量的差异可包括以下至少之一:
使用的通信协议或通信制式不同;例如,利用移动通信技术(例如,2G、3G、4G或5G)的数据流量和利用WiFi传输产生的数据流量可以分别对应于上述第一类数据流量和第二类数据流量;
数据流量的计费方式不同;例如,第一计费方式:按照数据流量的可使用时长进行计费;第二计费方式:按照数据流量所对应的数据量进行计费;例如,利用WiFi传输的数据流量是按照WiFi使用的账号的可使用时长进行计费的,而手机无线连接到基站使用的数据流量可能是按照传输的数据量进行计费的。以上,第一计费方式和第二计费方式仅是举例,具体实现时,数据流量的计费方式还可包括:其他计费方式,例如,第三计费方式;所述第三计费方式时按照数据传输速率或传输带宽进行计费的;
接入设备不同,例如,WiFi使用的接入设备可能是公司或家庭等用户所持有的WiFi设备;而利用手机或平板等连接到基站传输的数据流量,显然接入设备是基站、射频拉 远单元等。接入设备的不同可包括:接入设备的归属不同,例如,WiFi设备归属用户,基站归属于通信运营商;接入设备的连接属性不同,例如,WiFi设备仅对部分用户开放,是一种私有接入设备;而基站可以对使用该运营商的所有用户开放,故基站可认为是一种公共接入设备;接入设备所遵循的通信协议不同。
总之,所述第一类数据流量和所述第二类数据流量的不同有多种,不限于上述任意一种。
可以理解的是,所述终端分别统计各应用程序所产生的总数据流量,例如,终端统计A应用程序所产生的总数据流量为300MB,而终端统计B应用程序所产生的总数据流量为500MB,相应地,根据终端分别统计的各应用程序的总数据流量,再分别确定出各应用程序所产生的第一类数据流量,以下有关数量流量的统计的方案中,均以是对单个的应用程序所产生的流量进行单独统计的。以安装安卓Android系统的终端为例,终端统计所述终端系统中应用程序的总数据流量,可以通过Android系统的流量监控类来实现对所述应用程序的流量统计的操作,例如,通过在Android 2.2版本中加入Traffic Sates类来实现对所述应用程序的流量统计的操作,其实Traffic Sates类自身也是依靠读取Linus下保存流量信息的文件并进行解析来实现的。Android.net.Traffic Stats类中提供了多种静态方法,具体地,所述应用程序的流量消耗可以通过Traffic Stats类的getUidRxBytes(int uid)和getUidTxBytes(int uid)接口来统计应用程序的发送和接收的数据,且uid通过PackageManager的getPackageInfo接口获取指定应用包名的uid属性,以此来统计应用程序的总数据流量。需要说明的是,在其他的系统中,例如,IOS系统、Symbian塞班系统等,也是通过加入相应的流量监控程序来实现对所述应用程序的流量统计的操作,即利用相应的流量监控程序来读取应用程序的收发接口的数据流量来实现对所述应用程序的总数据流量的统计。
这里,确定所述终端的应用程序所产生的第二类数据流量,可以理解为,所述终端确定所述应用程序在局域网内所产生的局域网数据流量,例如,所述终端确定所述应用程序在热点连接的情况下所产生的数据流量,其中,所述热点为所述局域网的一个无线接入点,例如无线路由器,通常地,通过打开终端WIFI设备连接预定的热点所产生的数据流量。具体地,确定所述终端的应用程序所产生的第二类数据流量,包括:记录第一时刻的总数据流量,其中,所述第一时刻为所述终端与预定热点建立连接的时刻;记录第二时刻的总数据流量,其中,所述第二时刻为:所述终端与所述预定热点断开所述连接的时刻;根据所述第一时刻的总数据流量和所述第二时刻的总数据流量,确定第二类数据流量。总的来说,所述终端的应用程序上网所产生的第二类数据流量,可以理解 为,终端中所述应用程序所产生的局域网数据流量,且不属于移动数据流量付费范畴。
具体地,在第一时刻终端与预定热点建立连接之后,终端可以通过预定热点连接到网络,并通过该网络与其他设备进行数据交互。若终端有与热点建立连接,则优先使用热点进行数据传输,不使用第一类数据流量进行数据传输。
所述第二时刻晚于所述第一时刻。在第二时刻,终端与预定热点断开连接,表示终端无法通过预定热点连接到网络。例如,终端离开预定热点的覆盖范围,自然就与预定热点断开连接。若用户指示断开与预定热点的连接,所述终端也会断开与预定热点的连接。
此处的预定热点,可为WiFi路由器,或者,作为热点的其他终端设备。该预定热点可为:终端所在位置所对应范围内的热点,也可以是指示连接的热点,还可以是终端设备设置为自动连接的热点,所述预定热点的确定方式和种类很多,不局限于上述任意一种。
在另一实施方式中,所述步骤101中统计所述第一类数据流量,还可以理解为,包括统计所述终端与运营商确定签订的针对所述应用程序的预定流量的移动数据流量包以外的移动数据流量,但不包括局域网数据流量,具体地,基于统计的所述应用程序的总流量与所述应用程序在热点连接情况下的第二类流量,计算出所述应用程序所消耗的移动数据流量,判断该移动数据流量是否大于预定流量的移动数据流量包的流量值,若大于,则超出的部分记录为所述应用程序的第一类数据流量,若不大于,则作为历史移动数据流量存储在流量数据库中,以便下一次统计时进行累加。
所述统计所述终端的应用程序所产生的第一类数据流量包括:从所述终端的开机时刻开始统计的总数据流量;若所述开机时刻位于历史统计周期内,结合所述开机时刻开始统计的总数据流量及历史统计周期的总数据流量,计算得到当前统计周期的总数据流量;根据当前统计周期的总数据流量,确定所述终端的应用程序在所述当前统计周期内所产生的第一类数据流量。
这里,所述统计周期可以是一个预定的时间周期,例如,一年、一个月、一个星期等,即可以是任意的长度的时间段作为一个流量统计的统计周期,通常地,该统计周期由运营商指定,目前主要以一个月作为一个统计周期。这里,统计周期是通过设置在终端的定时器来实现,定时器在统计周期结束后从零开始计时;这里的定时器可以按照以下两种方式开始计时,一种是按照特定的时间来开始计时,另一种是按照指定的预定单位的时间数(例如,毫秒数)后调用计时函数开始计时。通常地,若是以月为周期,定时 器按照内置于终端的日历时间中每个月第一个时刻开始计时,也就是上述的第一种计时方式开始计时,到本月的最后一个时刻结束一个周期。这里,本月的第一个时刻和最后一个时刻是根据定时器的灵敏度来确定的,例如可以是秒为计时单位进行计时,如,以每月第一天的零点的零一秒作为每月的第一个时刻,相应地,以每月最后一天的24点59秒为每月的最后一个时刻,还可以毫秒为计时单位进行计时。
需要说明的是,在一些实施方式中,所述终端关机或重启会将统计的流量数据进行清零处理,这时,终端在接收到关机或重启指令后,应当预先保存已统计的数据流量信息,以便统计周期内对所统计的数据流量进行累加即可。请继续以Android系统为例,在Android系统中,通过Traffic Stats统计的数据流量信息在终端重启的时候会被清空,所以,如果要对数据流量信息进行持续的统计需要将数据流量信息保存到数据库中,这样,终端在统计数据流量时将保存的数据流量信息读出并进行累加即可。这里,数据流量信息,包括:数据流量值及所述数据流量对应的应用程序。
这里,从所述终端的开机时刻开始统计总数据流量,具体地,终端在检测到开机指令后,启动流量统计流程,开始进行流量统计。
终端检测到开机指令之后,会完成对终端内的部分功能器件的上电,启动基本输入输出(BIOS),并启动操作系统。所述启动流量统计流程可为在终端启动操作系统之后,自动启动所述流量统计流程。例如,终端的操作系统被启动之后,操作系统内进行流量统计的插件被自动启动,或者,进行流量统计的应用程序被启动,从而开始进行流量统计。
为了实现精确的流量统计,启动流量统计流程可与终端的网络功能开启关联,即在开启网络连接之前或使用网络连接之前,就完成所述流量统计的启动。此处的网络连接可包括:移动数据的网络连接和/或热点的网络连接。
这里,所述开机时刻位于历史统计周期内,结合所述开机时刻开始统计的总数据流量及历史统计周期的总数据流量,计算得到当前统计周期的总数据流量。具体地,所述终端判断在所述历史统计周期内是否检测到开机指令,这里历史统计周期是指当前统计周期之前的统计周期,若所述开机时刻位于历史统计周期内,也就是说在当前统计周期中不存在开机作业,那么,当前统计周期的总数据流量为开机时刻开始统计的总数据流量减去历史统计周期的总流量,这里,需要说明的是,在终端检测到定时器重新开始计时,也就是一个统计周期结束后,将开机时刻到定时器重新开始计时时刻统计的所述应用程序的数据流量作为历史统计周期的总数据流量,由此,可以计算出当前统计周期的 总数据流量。
在另一实施方式中,若所述开机时刻不在历史统计周期内,结合当前的数据流量及当前统计周期的历史数据流量的累积计算出当前统计的总数据流量。可以理解的是,终端每检测到一次关机或重启指令,均会将当前的数据流量的流量信息保存在流量数据库中,作为历史数据流量,以便后续的流量计算。
需要补充的是,若在当前统计周期中存在第二类数据流量,或存在所述终端与运营商确定签订的针对所述应用程序的预定流量的移动数据流量包以内的数据流量时,仍需将这些数据流量统计出来后,再根据当前统计周期内所述应用程序所产生的总数据流量与当前统计周期内所述应用程序所产生的上述的移动数据流量,计算得到所述应用程序的第一类数据流量。
另外,还需要补充的是,所述统计所述终端的应用程序所产生的第一类数据流量的触发,可以是通过预定时间触发终端统计所述终端的应用程序所产生的第一类数据流量,例如,每隔1s并进行统计所述终端的应用程序所产生的第一类数据流量的操作;还可以是终端检测到有流量产生时,进行统计所述终端的应用程序所产生的第一类数据流量的操作,或者在检测到预定数量的流量变化(例如设置10MB为预定的流量变化值)时,才进行统计所述终端的应用程序所产生的第一类数据流量的操作。这样,在流量变化时才去触发统计,可以节省终端的能耗。
步骤102:针对所述应用程序进行分类。
这里,所述步骤102包括以下步骤:
终端获取所述应用程序的标识信息;根据所述应用程序的标识信息,确定所述应用程序的分类。
具体地,所述标识信息是指用于标识所述应用程序类别的信息,可用于区分不同的应用程序的类别。其中,应用程序的标识信息可以是被封装在应用程序的对象信息中以特定字符串信息来表示所述应用程序的标识信息,还可以是通过用户输入的用于区别应用程序的分类标识来确定所述应用程序的标识信息。
具体地,在一实施方式中,可以将终端的应用程序分成至少以下几类:系统应用程序和非系统应用程序(即第三方应用),其中,系统应用程序是指终端在出厂前预先安装在所述终端总的应用程序。具体地,系统应用程序又可以分为非自研应用,自研应用程序,其中,自研应用程序是指所述终端所在厂家自行研发的应用程序,并在出厂前安装在所述终端中的这一类应用程序,相应地,非自研应用程序,是不属于所述终端所在厂 家自行研发的,但在出厂前安装在所述终端的这一类应用程序。若按照本实施例的分类,具体的分类方式为:终端获取应用程序的info对象,例如,info.applicationInfo.Flags&ApplicationInfo.FLAG_SYSTEM,由此可以判断该应用是否属于系统应用,如果属于系统应用,则再根据info.packageName中是否包含自研应用固定字符串“xxx”来判断是否属于自研应用,如果是自研应用,将info加入到selfInfoList中,否则为非自研应用,可直接将这类应用程序的info加入到sysInfoList中,在本实施例中,该类应用程序应当理解为,系统应用程序中非自研应用类;如果是非系统应用(即第三方应用),则将info加入到thirdInfoList中。这里,需要说明的是,所述字符串“xxx”通常表示厂家的名称。
在另一实施方式中,所述终端将应用程序分成至少以下几类:社交类应用程序、游戏类应用程序、金融类应用程序、视听类应用程序等,用户自定的各类应用程序。这里,终端可以根据软件名称智能的判断所述应用程序属于哪一个类应用程序,或者还可以根据用户输入的针对所述应用程序的分类标识来判断所述应用程序属于哪一类应用程序。例如终端接收用户针对所述应用程序输入的分类标识符,对所述应用程序进行自定义的分类,例如在对应用程序进行分类时,接收了用户针对所述第一类应用程序的分类标识符“S”,则表示该应用程序为社交类应用程序,再如接收了用户针对所述第二类应用程序的分类标识符“G”,则表示该应用程序为游戏类应用程序。上述分类标识符为用户自行定义的,除了可以用字母表示之外,还可以用数字或其他符号表示。
在其他实施方式中,也可以根据应用程序的其他参数进行分类,例如,根据应用程序的使用频率等。具体地,如按照所述应用程序的使用频率由高到低可以对应用程序分成多个类,具体的分类方式可以为:通过预先设定使用频率范围确定所述应用程序的分类。假设,按照所述应用程序的使用频率由高到低对应用程序分成三类,分别为“使用率高”“使用率一般”以及“使用率低”三类,则可以设定使用频率范围在80%以上则归为“使用率高”的一类,使用频率在50%-80%之间则归为“使用率一般”的一类,使用率在50%以下则归为“使用率低”的一类。在确定所述应用程序的分类时,通过统计所述应用程序的使用频率值,比较所述使用频率值与预先设定使用频率范围的匹配关系,从而确定所述应用程序的分类,例如当统计所述应用程序的使用频率为85%时,则确定所述应用程序为“使用率高”的一类。
步骤103:按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序处理。
具体地,基于对每个应用程序的第一类数量流量的统计结果及应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序处理。
具体地,根据排序的结果,依次显示同一类应用程序的图标。这里,根据所述排序的结果,在终端的界面上可依次显示同一类应用程序的图标。可按照类别依次显示,例如在前显示系统类应用软件,在后显示非系统类应用软件。
在一实施例方式中,可以根据用户的设置需求,设置预定类别的应用程序的显示位置,例如,可以将预定类别的应用程序显示至流量排行榜的特定显示位置(如排行榜的第一位置),其他类别则默认依次显示。
在另一实施方式中,所述终端还可以将特定应用程序的对应图标显示在目标位置。具体地,所述终端根据设置,将特定应用程序的对应图标显示到总的流量统计列表的目标位置;或者,将特定应用程序的对应图标显示到所在应用类别的流量统计列表的目标位置;或者,将特定应用程序的对应图标及第一类数据流量信息显示在显示屏的指定位置。这里,所述特定的应用程序可以是用户所关注的应用程序,所述目标位置可以是所述统计列表的第一个位置,或最后一个位置,或者显示屏的中间位置。从而可以方便用户查看自己所关注的应用程序的数据流量情况。
需要补充的是,在统计所述终端的应用程序所产生的第一类数据流量之前,所述方法还包括:获取所述应用程序的上网权限信息,根据所述应用程序的上网权限信息,判断所述应用程序是否具备上网权限,若具备上网权限,则执行统计所述应用程序所产生的第一类数据流量的步骤,否则,不执行所述统计所述应用程序所产生的第一类数据流量的步骤。这样,可以预先排查出不具备上网权限的应用程序,无需对这些应用程序也进行数据流量的统计,节省了终端的资源及能耗。
在一些实施方式中,针对特殊的应用程序,例如,终端与运营商签订了关于针对该应用程序免流量的协议的这类应用程序,在统计所述终端的应用程序所产生的第一类数据流量之前,所述方法还包括以下步骤:
第一步:获取所述应用程序的标识信息;
这里,所述标识信息可以用来标识应用程序的协议信息,也可以用来标识应用程序的来源信息。
第二步:识别所述应用程序的标识信息;根据识别的标识信息判断所述应用程序是否属于特殊的应用程序。
第三步:若属于特殊的应用程序,则不执行所述统计所述应用程序所产生的第一类数据流量的步骤;否则,执行所述统计所述应用程序所产生的第一类数据流量的步骤。
具体地,例如,腾讯的大王卡套餐业务作为终端与运营商签订的关于针对腾讯的所有应用程序免流量的协议,也就是说所有腾讯的应用程序所产生的移动数据流量均不需要付费。终端获取所述应用程序的标识信息,这里,所述标识信息为应用程序的包名信息中是否包含有“tencent”字符串,识别所述标识信息,判断所述应用程序是否属于腾讯的应用程序,若属于,则不执行所述统计所述应用程序所产生的第一类数据流量的步骤;否则,执行所述统计所述应用程序所产生的第一类数据流量的步骤。这样,排查出免流量的应用程序,无需再对这些应用程序进行数据流量的统计,同样也节省了终端的资源及能耗。
需要补充的是,终端根据排序的结果,对所述应用程序进行控制处理。这里,终端根据排序的结果,对所述应用程序进行控制处理,具体可以包括:终端根据排序的结果,对第一类数据流量的总排行中排在预定位置的应用程序执行预设操作,或者对同一类应用程序的第一类数据流量的排行中排在预定位置的应用程序执行预设操作。
例如,若对第一类数据流量按照从高到低排序,对第一类数据流量的总排行中排在第一位、第二位的应用程序执行预设操作,或者,对同一类应用程序的第一类数据流量的排行中排在第一位的应用程序执行预设操作。
这里,所述对所述应用程序执行预设操作,包括:对应用程序进行流量提醒,其中,所述提醒处理包括:由终端输出的针对所述应用程序的控制提示信息,这里的提示信息包括但不限于以下至少之一:语音提示信息、文本提示信息、震动提示。例如,当所述应用程序再次产生第一类数据流量时,终端发出提示信息,或者在终端的流量监控页面输出提示对话框,将文本提示信息显示在所述提示对话框中。
这里,所述对所述应用程序执行预设操作,还包括:对应用程序进行流量的使用控制,具体地,终端输出控制指令限制所述应用程序的第一类数据流量的使用,例如,终端产生关闭指令以关闭所述应用程序。所述对应用程序进行流量的使用控制,还包括:为应用程序提供流量使用的选择,具体地,在终端的界面上输出针对应用程序的流量控制使用选择键,以供用户选择是否继续使用所述应用程序的第一类数据流量,这里,基于作用于“使用”或“不使用”的虚拟控件的用户输入,选择是否停止所述应用程序的第一类数据流量的使用。
本发明实施例提供数据流量的处理方法、装置、终端及计算存储介质,通过统计终 端应用程序所产生的第一类数据流量,以及针对所述应用程序进行分类,并按照应用程序的分类,对同一类别的应用程序的第一类数据流量进行排序处理。这里,由于会对同一类别的应用程序的第一类数据流量进行排序,实现对应用程序进行分类后的流量管理,相对于将所有的应用程序统计流量后,呈现零散的统计结果而言,本发明实施例对同一类的应用程序的第一类数据流量进行排序得到一个分类的统计结果,由于在统计结果中对应用程序进行了分类管理,可以进行分类查看,使得管理起来更加方便,进而帮助用户快速得到应用程序流量管理的有用信息,为用户快速做出流量控制策略提供了有利的参考;而且,由于在统计结果中对应用程序进行了分类管理,可以快速且清楚地知晓每个应用程序所产生的流量在同一类别的应用程序中的流量排行情况,如此,针对完成同类功能的同类应用程序,基于第一类数据流量的高低排序,选择性的关闭第一类数据流量较高的应用程序,减少第一类数据流量较高的应用程序的优先使用,从而减少第一类数据流量的消耗;从而减少第一类数据流量较高的应用程序的流量费用,以提高用户的设备使用满意度。
本发明实施例还提供了一种数据流量的处理装置,图2为本发明实施例所提供的数据流量的处理装置功能结构示意图,如图2所示,所述装置包括:统计模块21和排序模块22;
所述统计模块21,用于统计所述终端的应用程序所产生的第一类数据流量及针对所述应用程序进行分类;
所述排序22,用于按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序。
在一实施方式中,所述装置还用于:根据排序的结果,依次显示同一类应用程序的图标。
在一实施方式中,所述统计模块21具体用于:
统计所述终端的应用程序的总数据流量;
确定所述终端的应用程序所产生的第二类数据流量;
根据所述总数据流量及所述第二类数据流量,计算出所述第一类数据流量。
在一实施方式中,所述统计模块21还用于:
记录第一时刻的总数据流量,其中,所述第一时刻为:所述终端与预定热点建立连 接的时刻;
记录第二时刻的总数据流量,其中,所述第二时刻为:所述终端与所述预定热点断开所述连接的时刻;
根据所述第一时刻的总数据流量和所述第二时刻的总数据流量,确定所述第二类数据流量。
在一实施方式中,所述统计模块21还用于:
从所述终端的开机时刻开始统计总数据流量;
若所述开机时刻位于历史统计周期内,结合所述开机时刻开始统计的总数据流量及历史统计周期的总数据流量,计算得到当前统计周期的总数据流量;
根据当前统计周期的总数据流量,确定所述终端的应用程序在所述当前统计周期内所产生的第一类数据流量。
在一实施方式中,所述统计模块21还用于:,获取所述应用程序的标识信息;根据所述应用程序的标识信息,确定所述应用程序的分类。
在一实施方式中,所述装置还用于:将特定应用程序的对应图标显示在目标位置。
基于上述实施方式所提供的方法,还提供了一具体实施方式,仍以安装有安卓系统的终端为例,在本实施例中,以下所述的数据流量应当理解为上述所述的第一类数据流量;以下的流量数据应当理解为上述的数据流量信息中的数据量信息,也就是流量消耗的数量;以下的WiFi接入时可以理解为上述的第一时刻,以下的WiFi断开时可以理解为上述的第二时刻。以下的任何动态例如,开机、关机、WiFi的接入、断开等都将通知(以下称之为注册)所述终端的处理,并记录下关于开机、关机、WiFi的接入、断开等的操作标识、操作时间及该时刻的当前数据流量的流量数据;以下以自然月作为统计周期,对每个月的各应用程序进行第一类数据流量的统计。
本实施例提供的数据流量的处理方法流程如下:
终端对系统中应用程序的数据流量消耗进行分类排行,数据流量信息按月进行统计。
其中,统计的所述应用程序的数据流量只包含移动数据流量,例如2/3/4/5G数据流量,不包含WiFi流量。
其中,所述应用程序的数据流量通过Traffic Stats类的getUidRxBytes(int uid)和 getUidTxBytes(int uid)接口来统计应用的发送和接收的数据,uid通过PackageManager的getPackageInfo接口获取指定应用包名的uid属性,以此进行应用程序的数据流量的统计。
由于Traffic Stats类所统计到的数据在关机时被清空,因此在所述应用程序的数据流量统计过程中,应当记录所述终端的关机、月份变化、流量变化以及WiFi状态切换等,在终端关机时,如果是本月关机标识位为false,则用当前的总流量减去上次开机到本月起始时间的总流量,并将该计算出的流量保存到本月历史流量数据中,置本月关机标识位为false,否则本月关机标志位为true,则统计本次的流量数据叠加到本月历史流量数据中。在月份变化时,保存当前的流量数据并清空历史流量数据和已使用WiFi数据;同时在终端开机时,保存开机时的时间。在WiFi接入时记录此时的流量数据值,在WiFi断开时统计当前的流量数据值并减去之前存储的流量数据值,叠加到已使用WiFi数据中,将相关的应用程序流量数据信息保存到所述应用程序的流量数据库中。
所述流量数据库字段包括应用程序包名/类名componentName、上次开机到本月初流量startData、最近一次开机时间closeBootTime、已使用流量UsedData、本月关机标识hasShutdown、已使用WiFi数据WiFiData。
需要说明的是,终端每隔预定时间将对所述应用程序进行数据流量的刷新统计,统计当前时刻的各应用程序的数据流量。每当收到流量变化广播刷新数据时,根据最近一开开机时间来判断是在本月起始时间的流量再减去WiFi已使用流量;如果最近一次开机在本月起始时间之后,则本月的第一数据流量的消耗为本月的历史流量加上当前统计到的流量再减去WiFi已使用流量。对所有具有Internet权限的应用程序执行上述操作后,封装各应用程序的第一类数据流量信息到info对象中。根据应用程序类型将info对象保存到相关info列表中,对不同的info列表按照各应用程序的本月第一类数据流量消耗进行从高到底的排序,分类按照顺序分别将不同类别的应用程序的第一数据流量排行结果显示在相关分类的视图中,以便用户根据分类排行能快速得到关于流量管理的有用信息,为用户快速做出流量控制策略提供了有利参考;而且由于在流量统计中对应用程序进行了分类管理,可以快速且清楚地知晓每个应用程序所产生的流量在同一类别的应用程序中的流量排行情况,从而还有利于用户对同类应用程序做出相应的流量管理策略,进而更好地管理和控制同一类应用程序中不同应用程序的流量使用,节省流量资费;最终提高了用户体验。
在另一实施方式中,所述终端还可以对特定的应用程序进行在整个应用程序流量排 行的置顶或置底操作,或者还可以对特定的应用程序在相应的类别的排行中进行置顶或置底操作。这里,特定的应用程序为用户可根据自己的需求选出的应用程序。这样,可以对用户自身关注的应用程序进行特别的排行处理,这样,用户对这些应用程序的流量排行更加一目了然,因此,可以更进一步为用户快速做出流量管理策略提供了有利的参考,提高了用户体验。
在另一实施方式中,所述终端还可根据用户对所述终端与运营商签订的流量套餐对特殊应用程序进行隐藏,这里的隐藏,可以理解为对这些特殊的应用程序进行筛选,并不对其进行后续的流量统计。
在另一实施方式中,所述终端还可以根据用户的需求,对应用程序进行自定义的分类,终端接收用户针对所述应用程序输入的分类标识符,对所述应用程序进行自定义的分类,例如在对应用程序进行分类时,接收了用户针对所述第一类应用程序的分类标识符“S”,则表示该应用程序为社交类应用程序,再如接收了用户针对所述第二类应用程序的分类标识符“G”,则表示该应用程序为游戏类应用程序。上述分类标识符为用户自行定义的,除了可以用字母表示之外,还可以用数字或其他符号表示。
为了实现上述实施例所述的方法,本发明实施例还提供了一个数据流量的处理装置的具体实施例,请参阅图3,图3为本发明具体实施例所提供的数据流量的处理装置功能结构示意图,如图3所示,所述数据流量的处理装置包括:广播注册模块31、历史数据模块32、流量刷新模块33、分类排序模块34和分类显示模块35。其中,
所述广播注册模块31,用于各应用程序流量历史数据计算相关的广播的注册,例如,上述所述的开机、或关机指令的通知,WiFi接入或断开的通知等均由广播注册模块将这些指令信息通知到终端的处理器。
所述历史数据模块32,用于各应用程序历史数据的计算和存储。例如,对历史统计周期内,各应用程序的总数据流量的存储,及各应用程序的第二类数据流量的计算等。这里,所述历史数据模块32可以相当于上述的统计模块21。
所述流量刷新模块33,用于在流量变化时对各应用程序实时流量进行计算。可以理解为当侦测到有流量产生时,触发终端监测各应用程序的所产生的数据,刷新各应用程序的数据流量。
所述分类排序模块34,用于对各应用程序进行分类,并分别对各类的应用程序按照流量消耗进行排序。这里,流量消耗具体为应用程序的第一类流量消耗。这里分类排序 模块34可以理解为上述的排序模块22。
所述分类显示模块35,用于将分类排序产生的信息分别刷新显示到对应的视图中。
基于此,仍以自然月作为统计周期,对终端的应用程序的第一类数据流量进行统计,请参照图4,图4为本发明具体实施例所提供的数据流量的处理方法流量示意图;如图4所示,所述方法步骤为:
步骤401:初始化数据库;
具体地,终端对应用程序的数据流量的数据库进行初始化处理,所述数据流量的数据库字段包括应用包名/类名componentName、上次开机到本月初数据流量startData、最近一次开机时间closeBootTime、本月已使用数据流量usedData、本月关机标志hasShutdown、已使用WiFi数据流量WiFiData。
步骤402:注册开机、关机、月份变化、WIFI状态切换和流量变化广播接收器,这里广播接收器可以理解为终端的处理器,用于记录上述开机、关机、月份变化、WiFi状态切换、流量变化等指令,并执行相应的处理的。
具体的执行步骤如下:
步骤403:收到开机广播时,执行步骤4031,所述步骤4031:保存当前时间,具体地,获取当前的系统事件保存到数据库的closeBootTime字段中,记录最近一次开机时间。
步骤404:收到关机广播时,执行步骤4041,所述步骤4041:计算历史流量,具体地,判断关机标志位是否为true,如果是true,则将在数据库查询到的本月历史流量和统计到的应用程序当前流量数据叠加,更新到数据库useDate字段中。如果是false,则用统计到的应用程序的当前的流量减去数据库查询到的上次开机到本月起始时间的流量,再更新到数据库usedDate字段中,将本月关机标识位置为true。
步骤405:收到月份变化广播时,执行步骤4051:保存当前流量,具体地,将统计到的当前流量数据保存到数据库startData字段中,并清空历史流量数据usedData字段和已使用的WiFi数据WiFiData字段。
步骤406:收到WiFi广播时,也就是收到WiFi状态切换广播时,执行步骤4061:存储WiFi流量,具体地,接收到WiFi状态变化广播时,当WiFi为打开且与预定的热点为接入状态时,根据WiFi数据WiFiData字段,当WiFi为与预定的热点断开状态时,统计当前的数据值并减去之前存储的数据值,从数据库中获取到叠加到已使用WiFi数据中 并更新到WiFiData字段中。从而记录WiFi接入状态下,各应用程序所产生的第二类数据流量。
步骤407:收到流量广播时,执行步骤4071:计算刷新视图,具体地,这里可以设置10MB为刷新间隔,也就是每检测到终端的流量变化10MB时,则对应用程序进行流量统计,更新各应用程序的本月已使用的流量数据,并刷新视图,即刷新应用程序的流量排行。
基于此,本发明实施例还提供了一个用于实现所述应用程序排序的具体的方法流程,请参阅图5,图5为本发明具体实施例所提供的数据流量的处理方法的另一流程示意图,如图5所示,所述方法步骤为:
步骤501:获取终端系统中所有的应用程序;
步骤502:获取一个应用程序;
步骤503:判断所述应用程序是否有网络访问权限;如果是则执行步骤504,如果否则返回步骤502;
步骤504:判断最近开机时间是否在本月前,如果是,则执行步骤505,若果不是,则执行步骤506;
步骤505:根据当前数据流量和本月数据流量,计算本月已使用的第一类流量;
步骤506:根据当前数据流量和本月历史数据流量,计算本月已使用的第一类流量;
步骤507:将应用程序信息封装到info对象,分类加入相关列表;
步骤508:判断是否已遍历完所有应用;若是,则执行步骤509,若否,则返回步骤502;
步骤509:按照应用程序分类对第一类数据流量消耗进行排序。
具体地,终端通过包管理器PackageManager的getInstalledPackages()方法获取到系统中配置权限信息的应用集合。遍历所有集合中的应用,判断应用是否具有网络Internet访问权限,如果有则读取数据库closeBootTime字段与本月起始时间进行比较,如果最近开机时间在本月起始前,则用当前统计到的流量减去数据库startData字段值和WiFiData字段值得到本月该应用已使用的第一类数据流量;如果最近开机时间在本月起始后,则用当前统计到的流量加上UsedData字段值再减去WiFiData字段值得到本月该应用已使用的第一类数据流量。将该应用包名、图标、名称以及本月已使用流量信息保存到info对象 中。根据info对象中的应用类型进行分类。
应用程序的分类方法,请参阅图6,图6为本发明具体实施例所提供的应用程序分类方法流程示意图,如图6所示,所述方法包括以下步骤:
步骤601:获取info对象;
步骤602:判断是否属于系统应用;如果是,则执行步骤603,如果否,则执行步骤604;
步骤603:判断是否属于自研应用;如果是,则执行步骤605,如果否,则执行步骤606;
步骤604:将info加入到thirdInfoList中;
步骤605:将info加入到sysInfoList中;
步骤606:将info加入到selfInfoList中。
具体地,所述应用程序的类别的判断方式为:获取应用的info对象,根据info.applicationInfo.Flags&ApplicationInfo.FLAG_SYSTEM来判断该应用程序是否属于系统应用,如果属于系统应用,则再根据info.packageName中是否包含自研应用固定字符串“xxx”来判断是否属于自研应用,如果是自研应用,将info加入到selfInfoList中,否则为非自研应用,可直接将这类应用程序的info加入到sysInfoList中,在本实施例中,该类应用程序应当理解为,系统应用程序的非自研应用程序类;如果是非系统应用(即第三方应用),则将info加入到thirdInfoList中。当遍历完所有应用程序时,对不同应用程序类型的列表分别根据各info中的流量值从高到底对各info列表进行排序。
针对特殊流量套餐进行定制化设计,比如对使用腾讯大王卡的用户,将腾讯系的应用从具有网络权限的所有应用列表中删除,只保留非腾讯系的应用流量统计信息。应用是否为腾讯系应用通过应用的包名信息中是否包含“tencent”字符串来判断。最后将不同列表的数据分别更新显示到对应的用户界面视图中。例如,图7a为本发明具体实施例所提供的数据流量的处理场景下界面1的示意图;如图7a所示,在流量排行界面顶端展示了运营商名称,在列表前展示应用程序的类别名称,并按照分类,对应用程序进行数据流量的排序,这里,界面1中展示的是系统应用(非自研应用类)的流量排序,一侧用于展示应用程序的图标及应用程序的名称,这里用Label n表示对应用程序的名称,用Date n表示对应应用程序的第一类数据流量的流量数据;接着,图7b为本发明具体实施例所提供的数据流量的处理场景下界面1的示意图;如图7b所示,界面2中展示的是自 研应用的流量排序,同样,一侧用于展示应用程序的图标及应用程序的名称,这里用Label n表示对应用程序的名称,用Date n表示对应应用程序的第一类数据流量的流量数据;接着,图7c为本发明具体实施例所提供的数据流量的处理场景下界面3的示意图,如图7c所示,界面3中展示的是市场应用的流量排序,同样,一侧用于展示应用程序的图标及应用程序的名称,这里用Label n表示对应用程序的名称,用Date n表示对应应用程序的第一类数据流量的流量数据。在另实施方式中,所述应用程序的分类可根据用户自定义进行分类,请参阅图8,图8为本发明具体实施例所提供的数据流量的处理的另一场景示意图,如图8所示,在流量排行界面顶端展示了运营商名称,在列表前展示应用程序的类别名称,这里的类别为用户自定义类别,并按照分类,对应用程序进行数据流量的排序,这里,展示的是自定义分类1和自定义分类2应用的流量排序,一侧用于展示应用程序的图标及应用程序的名称,这里用Label n表示对应用程序的名称,用Date n表示对应应用程序的第一类数据流量的流量数据。
这样,由于对同一类别的应用程序的第一类数据流量进行了排序,实现对应用程序进行分类后的流量管理,相对于将所有的应用程序统计流量后,呈现零散的统计结果而言,对同一类的应用程序的第一类数据流量进行排序得到一个分类的统计结果,也由于在流量统计中对应用程序进行了分类管理,可以进行分类查看,使得管理起来更加方便,进而帮助用户快速得到应用程序流量管理的有用信息,为用户快速做出流量控制策略提供管理了有利的参考;而且,由于在流量统计中对应用程序进行了分类管理,可以快速且清楚地知晓每个应用程序所产生的流量在同一类别的应用程序中的流量排行情况,如此,针对完成同类功能的同类应用程序,基于第一类数据流量的高低排序,选择性的关闭第一类数据流量较高的应用程序,减少第一类数据流量较高的应用程序的优先使用,从而减少第一类数据流量的消耗;从而减少第一类数据流量较高的应用程序的流量费用,以提高用户的设备使用满意度。
为实现本发明实施例的方法,本发明实施例还提供了一种终端,用于实现本发明数据流量的处理的方法的具体细节,达到相同的效果。
图9为本发明实施例所提供的终端的硬件结构示意图,如图9所示,所述网关,包括:处理器91,以及用于存储能够在处理器91上运行的计算机程序的存储器92;其中,
所述处理器91,用于运行所述计算程序时,执行:
统计所述终端的应用程序所产生的第一类数据流量;
针对所述应用程序进行分类;
按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序。
在一实施方式中,所述处理器91,还用于运行所述计算程序时,执行:
根据排序的结果,依次显示同一类应用程序的图标。
在一实施方式中,所述处理器91用于运行所述统计所述终端的应用程序所产生的第一类数据流量的程序,执行:
统计所述终端的应用程序的总数据流量;
确定所述终端的应用程序所产生的第二类数据流量;
根据所述总数据流量及所述第二类数据流量,计算出所述第一类数据流量。
在一实施方式中,所述处理器91用于运行所述统计所述终端的应用程序所产生的第二类数据流量的程序,执行:
记录第一时刻的总数据流量,其中,所述第一时刻为:所述终端与预定热点建立连接的时刻;
记录第二时刻的总数据流量,其中,所述第二时刻为:所述终端与所述预定热点断开所述连接的时刻;
根据所述第一时刻的总数据流量和所述第二时刻的总数据流量,确定所述第二类数据流量。
在一实施方式中,所述第一业务类型信息包括:网络访问权限信息;
所述处理器91,用于运行述统计所述终端的应用程序所产生的第一类数据流量的程序,执行:
从所述终端的开机时刻开始统计总数据流量;
若所述开机时刻位于历史统计周期内,结合所述开机时刻开始统计的总数据流量及历史统计周期的总数据流量,计算得到当前统计周期的总数据流量;
根据当前统计周期的总数据流量,确定所述终端的应用程序在所述当前统计周期内所产生的第一类数据流量。
在一实施方式中,所述处理器91,用于运行所述针对应用程序进行分类的程序,执行:
获取所述应用程序的标识信息;
根据所述应用程序的标识信息,确定所述应用程序的分类。
在一实施方式中,所述处理器91,用于运行所述计算机程序,执行:
将特定应用程序的对应图标显示在目标位置。
本发明还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行程序,所述可执行程序被处理器执行时实现以下步骤:
统计所述终端的应用程序所产生的第一类数据流量;
针对所述应用程序进行分类
按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序。
在一实施方式中,所述可执行程序被处理器执行时还实现以下步骤:
根据排序的结果,依次显示同一类应用程序的图标。
在一实施方式中,所述可执行程序被处理器执行时,以具体实现所述统计所述终端的应用程序所产生的第一类数据流量的步骤:
统计所述终端的应用程序的总数据流量;
确定所述终端的应用程序所产生的第二类数据流量;
根据所述总数据流量及所述第二类数据流量,计算出所述第一类数据流量。
在一实施方式中,所述可执行程序被处理器执行时,以具体实现所述统计所述终端的应用程序所产生的第二类数据流量的步骤:
记录第一时刻的总数据流量,其中,所述第一时刻为:所述终端与预定热点建立连接的时刻;
记录第二时刻的总数据流量,其中,所述第二时刻为:所述终端与所述预定热点断开所述连接的时刻;
根据所述第一时刻的总数据流量和所述第二时刻的总数据流量,确定所述第二类数据流量。
在一实施方式中,所述可执行程序被处理器执行时,以具体实现所述统计所述终端的应用程序所产生的第一类数据流量的步骤:
从所述终端的开机时刻开始统计总数据流量;
若所述开机时刻位于历史统计周期内,结合所述开机时刻开始统计的总数据流量及历史统计周期的总数据流量,计算得到当前统计周期的总数据流量;
根据当前统计周期的总数据流量,确定所述终端的应用程序在所述当前统计周期内所产生的第一类数据流量。
在一实施方式中,所述可执行程序被处理器执行时,以具体实现所述按照应用程序的分类,所述针对所述应用程序进行分类的步骤:
获取所述应用程序的标识信息;
根据所述应用程序的标识信息,确定所述应用程序的分类。
在一实施方式中,所述可执行程序被处理器执行时,以具体实现以下步骤:
将特定应用程序的对应图标显示在目标位置。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。本发明的保护范围应以所述权利要求的保护范围以准。

Claims (9)

  1. 一种数据流量的处理方法,应用于终端,其中,所述方法包括:
    统计所述终端的应用程序所产生的第一类数据流量;
    针对所述应用程序进行分类;
    按照应用程序的分类,对同一类应用程序的所述第一类数据流量进行排序处理。
  2. 根据权利要求1所述的方法,其中,所述统计所述终端的应用程序所产生的第一类数据流量,包括:
    统计所述终端的应用程序的总数据流量;
    确定所述终端的应用程序所产生的第二类数据流量;
    根据所述总数据流量及所述第二类数据流量,计算出所述第一类数据流量。
  3. 根据权利要求2所述的方法,其中,所述确定所述终端的应用程序所产生的第二类数据流量,包括:
    记录第一时刻的总数据流量,其中,所述第一时刻为:所述终端与预定热点建立连接的时刻;
    记录第二时刻的总数据流量,其中,所述第二时刻为:所述终端与所述预定热点断开所述连接的时刻;
    根据所述第一时刻的总数据流量和所述第二时刻的总数据流量,确定所述第二类数据流量。
  4. 根据权利要求2或3所述的方法,其中,
    所述第一数据流量与所述第二数据流量的差异包括以下至少之一:
    使用的通信协议或通信制式不同;
    数据流量的计费方式不同;
    终端传输对应数据流量使用的接入设备不同。
  5. 根据权利要求1至4任一项所述的方法,其中,所述统计所述终端的应用程序所产生的第一类数据流量,包括:
    从所述终端的开机时刻开始统计总数据流量;
    若所述开机时刻位于历史统计周期内,结合所述开机时刻开始统计的总数据流量及 历史统计周期的总数据流量,计算得到当前统计周期的总数据流量;
    根据当前统计周期的总数据流量,确定所述终端的应用程序在所述当前统计周期内所产生的第一类数据流量。
  6. 根据权利要求1所述的方法,其中,所述针对所述应用程序进行分类,包括:
    获取所述应用程序的标识信息;
    根据所述应用程序的标识信息,确定所述应用程序的分类。
  7. 根据权利要求1所述的方法,其中,所述方法还包括:
    将特定应用程序的对应图标显示在目标位置。
  8. 一种终端,其中,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中所述处理器用于运行所述计算机程序时,实现权利要求1至7任一项所述的数据流量的处理方法。
  9. 一种计算机存储介质,其中,存储有可执行程序,所述可执行程序被处理器执行时,实现如权利要求1至7中任一项所述的数据流量的处理方法。
PCT/CN2019/098395 2018-07-31 2019-07-30 数据流量的处理方法、终端及计算机存储介质 WO2020024938A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810859049.0 2018-07-31
CN201810859049.0A CN110784835A (zh) 2018-07-31 2018-07-31 数据流量的处理方法、装置、终端及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2020024938A1 true WO2020024938A1 (zh) 2020-02-06

Family

ID=69231448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098395 WO2020024938A1 (zh) 2018-07-31 2019-07-30 数据流量的处理方法、终端及计算机存储介质

Country Status (2)

Country Link
CN (1) CN110784835A (zh)
WO (1) WO2020024938A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489776A (zh) * 2021-06-30 2021-10-08 北京小米移动软件有限公司 热点检测方法、装置、监测服务器及存储介质
CN113613184B (zh) * 2021-07-27 2022-07-22 中国联合网络通信集团有限公司 流量套餐确定方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014044689A1 (en) * 2012-09-24 2014-03-27 Telefonica, S.A. A method for connecting programs and/or applications to network interfaces
CN105516026A (zh) * 2015-11-20 2016-04-20 小米科技有限责任公司 热点网络的连网控制方法及装置
CN105721349A (zh) * 2016-02-24 2016-06-29 中国联合网络通信集团有限公司 一种移动应用网络资源的优化方法、装置和系统
CN107846678A (zh) * 2016-09-19 2018-03-27 中兴通讯股份有限公司 数据流量的使用控制方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9397901B2 (en) * 2012-12-18 2016-07-19 Ixia Methods, systems, and computer readable media for classifying application traffic received at a network traffic emulation device that emulates multiple application servers
US20160142935A1 (en) * 2013-06-28 2016-05-19 Nokia Solutions And Networks Oy Ran user-plane congestion management
CN105101270B (zh) * 2014-05-12 2019-02-01 宇龙计算机通信科技(深圳)有限公司 用于终端的流量管理装置和流量管理方法
CN104009892A (zh) * 2014-06-12 2014-08-27 北京奇虎科技有限公司 一种移动终端流量的监控方法、装置及客户端
US10652112B2 (en) * 2015-10-02 2020-05-12 Keysight Technologies Singapore (Sales) Pte. Ltd. Network traffic pre-classification within VM platforms in virtual processing environments
CN106656646A (zh) * 2015-10-29 2017-05-10 中国移动通信集团河北有限公司 智能流量提醒方法、装置以及相应的移动终端
US10075416B2 (en) * 2015-12-30 2018-09-11 Juniper Networks, Inc. Network session data sharing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014044689A1 (en) * 2012-09-24 2014-03-27 Telefonica, S.A. A method for connecting programs and/or applications to network interfaces
CN105516026A (zh) * 2015-11-20 2016-04-20 小米科技有限责任公司 热点网络的连网控制方法及装置
CN105721349A (zh) * 2016-02-24 2016-06-29 中国联合网络通信集团有限公司 一种移动应用网络资源的优化方法、装置和系统
CN107846678A (zh) * 2016-09-19 2018-03-27 中兴通讯股份有限公司 数据流量的使用控制方法及装置

Also Published As

Publication number Publication date
CN110784835A (zh) 2020-02-11

Similar Documents

Publication Publication Date Title
US9531887B2 (en) Conformity analysis system for analyzing conformity to restrictions on the use of a wireless communication device
EP2461549B1 (en) Mobile phone internet flow counting and displaying method, device, and mobile phone
CN109246741B (zh) 用于终端的无线网络连接方法
CN105263120B (zh) 一种提示可连接无线局域网络的方法及系统
KR101894919B1 (ko) 기본 네트워크들과의 서비스 계층 과금 상관을 위한 방법들 및 장치들
CN104935744A (zh) 一种验证码显示方法、验证码显示装置及移动终端
WO2013112647A1 (en) Managing data transfers over network connections based on priority and a data usage plan
KR20140009171A (ko) 사용자 통지를 제공하는 시스템 및 방법
EP2922032A1 (en) Attendance recording method, device and system
CN105682148A (zh) 一种流量分享的方法及系统
WO2020094035A1 (zh) 用于终端的无线网络连接方法
CN107770746B (zh) 数据处理方法和装置、计算机设备、计算机可读存储介质
WO2020024938A1 (zh) 数据流量的处理方法、终端及计算机存储介质
WO2021169497A1 (zh) 网络选择方法及电子设备
CN104254074A (zh) 一种拦截骚扰短消息的方法和装置
CN103596246A (zh) 恢复数据业务的方法及终端
CN105320616A (zh) 外部设备控制方法及装置
WO2016169268A1 (zh) 一种进行信息传输的方法、装置和系统
CN111222861A (zh) 一种欠费后的充值方法、装置及计算设备
CN108605223B (zh) 一种获取时间和时区的方法及终端
CN111132132A (zh) 一种流量管理方法、装置及终端设备
CN107346323B (zh) 一种标签推荐的方法及标签推荐装置
CN113411764B (zh) 一种基于优惠信息的智能无线接入方法及装置
CN107888772B (zh) 一种确定配置信息的方法、装置及存储介质
CN103944862A (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: 19843456

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 17/06/2021 )

122 Ep: pct application non-entry in european phase

Ref document number: 19843456

Country of ref document: EP

Kind code of ref document: A1