CN107145572B - Data processing method, device, computer equipment and storage medium - Google Patents
Data processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN107145572B CN107145572B CN201710312691.2A CN201710312691A CN107145572B CN 107145572 B CN107145572 B CN 107145572B CN 201710312691 A CN201710312691 A CN 201710312691A CN 107145572 B CN107145572 B CN 107145572B
- Authority
- CN
- China
- Prior art keywords
- data
- file
- synchronized
- server
- cleaned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 230000001360 synchronised effect Effects 0.000 claims abstract description 121
- 238000004140 cleaning Methods 0.000 claims abstract description 63
- 238000000034 method Methods 0.000 claims abstract description 12
- 230000008859 change Effects 0.000 claims description 34
- 238000001514 detection method Methods 0.000 claims description 16
- 238000012545 processing Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 12
- 239000003550 marker Substances 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明实施例涉及一种数据处理方法、装置、计算机设备及存储介质。上述方法包括:接收应用的数据清理指令;根据所述数据清理指令获取与待清理数据对应的文件信息;根据所述文件信息检测所述待清理数据中是否包含待同步数据;若包含,则将所述待同步数据同步至服务器;删除所述待清理数据。上述数据处理方法、装置、计算机设备及存储介质,可以避免应用进行数据清理时数据丢失的情况。
Embodiments of the present invention relate to a data processing method, apparatus, computer equipment, and storage medium. The above method includes: receiving a data cleaning instruction of an application; obtaining file information corresponding to the data to be cleaned according to the data cleaning instruction; detecting whether the data to be cleaned includes the data to be synchronized according to the file information; The data to be synchronized is synchronized to the server; the data to be cleaned is deleted. The above data processing method, device, computer equipment and storage medium can avoid the situation of data loss when the application performs data cleaning.
Description
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种数据处理方法、装置、计算机设备及存储介质。The present invention relates to the field of computer technology, and in particular, to a data processing method, device, computer equipment and storage medium.
背景技术Background technique
随着互联网技术的发展,市面上出现越来越多的应用,满足用户在日常生活中的各种需求。用户将应用安装到智能手机、平板电脑等移动终端,并进行使用,在应用的使用过程中,往往会产生大量的应用数据。在传统的方式中,当用户需要对应用的数据进行清理时,进行清理的数据均会从终端上删除,可能造成某些重要数据丢失。With the development of Internet technology, more and more applications appear on the market to meet the various needs of users in daily life. A user installs an application on a mobile terminal such as a smartphone, tablet computer, etc., and uses it. During the use of the application, a large amount of application data is often generated. In the traditional method, when the user needs to clean up the data of the application, the cleaned data will be deleted from the terminal, which may cause the loss of some important data.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种数据处理方法、装置、计算机设备及存储介质,可以避免应用进行数据清理时数据丢失的情况。Embodiments of the present invention provide a data processing method, apparatus, computer equipment, and storage medium, which can avoid data loss when an application performs data cleaning.
一种数据处理方法,包括:A data processing method comprising:
接收应用的数据清理指令;Receive data cleaning instructions from the application;
根据所述数据清理指令获取与待清理数据对应的文件信息;Obtain file information corresponding to the data to be cleaned according to the data cleaning instruction;
根据所述文件信息检测所述待清理数据中是否包含待同步数据;Detecting whether the data to be cleaned includes data to be synchronized according to the file information;
若包含,则将所述待同步数据同步至服务器;If included, synchronize the data to be synchronized to the server;
删除所述待清理数据。Delete the data to be cleaned.
在其中一个实施例中,所述根据所述数据清理指令获取与待清理数据对应的文件信息,包括:In one embodiment, the acquiring file information corresponding to the data to be cleaned according to the data cleaning instruction includes:
根据所述数据清理指令获取应用标识;Obtain the application identifier according to the data cleaning instruction;
根据所述应用标识从指定文件夹中读取与待清理数据对应的各个文件的变更时间。The change time of each file corresponding to the data to be cleaned is read from the specified folder according to the application identifier.
在其中一个实施例中,所述根据所述文件信息检测所述待清理数据中是否包含待同步数据,包括:In one embodiment, the detecting, according to the file information, whether the data to be cleaned includes data to be synchronized includes:
根据所述应用标识获取历史同步记录;Obtain historical synchronization records according to the application identifier;
若所述历史同步记录不为空,则从所述历史同步记录中读取最后一次同步时间;If the historical synchronization record is not empty, read the last synchronization time from the historical synchronization record;
将所述与待清理数据对应的各个文件的变更时间与所述最后一次同步时间进行比较;comparing the change time of each file corresponding to the data to be cleaned up with the last synchronization time;
若文件的变更时间晚于所述最后一次同步时间,则确定变更时间晚于所述最后一次同步时间的文件为待同步数据。If the change time of the file is later than the last synchronization time, it is determined that the file whose change time is later than the last synchronization time is the data to be synchronized.
在其中一个实施例中,所述根据所述文件信息检测所述待清理数据中是否包含待同步数据,包括:In one embodiment, the detecting, according to the file information, whether the data to be cleaned includes data to be synchronized includes:
根据所述文件信息读取与所述待清理数据对应的各个文件中的特定标记位,并判断所述特定标记位是否为预设标签;Read the specific marker bits in each file corresponding to the data to be cleaned according to the file information, and determine whether the specific marker bits are preset labels;
若是预设标签,则确定特定标记位为所述预设标签的文件为待同步数据。If it is a preset tag, it is determined that the file whose specific mark bit is the preset tag is the data to be synchronized.
在其中一个实施例中,所述若包含,则将所述待同步数据同步至服务器,包括:In one of the embodiments, if the data is included, synchronizing the data to be synchronized to the server includes:
获取服务器标识;Get the server ID;
根据所述服务器标识建立链接,并通过所述链接登录对应的服务器;Establish a link according to the server identifier, and log in to the corresponding server through the link;
按照预设格式将所述待同步数据封装成消息,并将所述消息发送至所述服务器。The data to be synchronized is encapsulated into a message according to a preset format, and the message is sent to the server.
一种数据处理装置,包括:A data processing device, comprising:
接收模块,用于接收应用的数据清理指令;The receiving module is used to receive the data cleaning instruction of the application;
信息获取模块,用于根据所述数据清理指令获取与待清理数据对应的文件信息;an information acquisition module, configured to acquire file information corresponding to the data to be cleaned according to the data cleaning instruction;
检测模块,用于根据所述文件信息检测所述待清理数据中是否包含待同步数据;a detection module, configured to detect whether the data to be cleaned includes data to be synchronized according to the file information;
同步模块,用于若所述待清理数据中包含待同步数据,则将所述待同步数据同步至服务器;a synchronization module, configured to synchronize the to-be-synchronized data to the server if the to-be-cleaned data includes the to-be-synchronized data;
删除模块,用于删除所述待清理数据。A deletion module is used to delete the data to be cleaned.
在其中一个实施例中,所述信息获取模块,包括:In one embodiment, the information acquisition module includes:
应用标识获取单元,用于根据所述数据清理指令获取应用标识;an application identifier acquiring unit, configured to acquire an application identifier according to the data cleaning instruction;
变更时间读取单元,用于根据所述应用标识从指定文件夹中读取与待清理数据对应的各个文件的变更时间。A change time reading unit, configured to read the change time of each file corresponding to the data to be cleaned from the specified folder according to the application identifier.
在其中一个实施例中,所述检测模块,包括:In one embodiment, the detection module includes:
记录获取单元,用于根据所述应用标识获取历史同步记录;a record acquiring unit, configured to acquire historical synchronization records according to the application identifier;
同步时间读取单元,用于若所述历史同步记录不为空,则从所述历史同步记录中读取最后一次同步时间;a synchronization time reading unit, configured to read the last synchronization time from the historical synchronization record if the historical synchronization record is not empty;
比较单元,用于将所述与待清理数据对应的各个文件的变更时间与所述最后一次同步时间进行比较;a comparison unit, configured to compare the change time of each file corresponding to the data to be cleaned up with the last synchronization time;
第一确定单元,用于若文件的变更时间晚于所述最后一次同步时间,则确定变更时间晚于所述最后一次同步时间的文件为待同步数据。A first determining unit, configured to determine a file whose change time is later than the last synchronization time as data to be synchronized if the change time of the file is later than the last synchronization time.
在其中一个实施例中,所述检测模块,包括:In one embodiment, the detection module includes:
判断单元,用于根据所述文件信息读取与所述待清理数据对应的各个文件中的特定标记位,并判断所述特定标记位是否为预设标签;a judging unit, configured to read a specific marker bit in each file corresponding to the data to be cleaned according to the file information, and determine whether the specific marker bit is a preset label;
第二确定单元,用于若是预设标签,则确定特定标记位为所述预设标签的文件为待同步数据。The second determining unit is configured to, if it is a preset tag, determine that the file whose specific tag bit is the preset tag is the data to be synchronized.
在其中一个实施例中,所述同步模块,包括:In one embodiment, the synchronization module includes:
服务器标识获取单元,用于获取服务器标识;The server identification obtaining unit is used to obtain the server identification;
建立单元,用于根据所述服务器标识建立链接,并通过所述链接登录对应的服务器;a establishing unit for establishing a link according to the server identifier, and logging in to a corresponding server through the link;
发送单元,用于按照预设格式将所述待同步数据封装成消息,并将所述消息发送至所述服务器。A sending unit, configured to encapsulate the data to be synchronized into a message according to a preset format, and send the message to the server.
一种计算机设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的方法。A computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the above-described method when executing the program.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法。A computer-readable storage medium having a computer program stored thereon, the computer program implementing the method as described above when executed by a processor.
上述数据处理方法、装置、计算机设备及存储介质,接收应用的数据清理指令,根据数据清理指令获取与待清理数据对应的文件信息,并根据文件信息检测待清理数据中是否包含待同步数据,若包含,则将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。The above data processing method, device, computer equipment and storage medium receive a data cleaning instruction from an application, obtain file information corresponding to the data to be cleaned according to the data cleaning instruction, and detect whether the data to be cleaned includes data to be synchronized according to the file information. If it is included, after synchronizing the data to be synchronized to the server, delete the data to be cleaned, which can avoid data loss when the application performs data cleaning.
附图说明Description of drawings
图1为一个实施例中数据处理方法的应用场景图;Fig. 1 is the application scene diagram of the data processing method in one embodiment;
图2为一个实施例中终端的框图;2 is a block diagram of a terminal in one embodiment;
图3为一个实施例中数据处理方法的流程示意图;3 is a schematic flowchart of a data processing method in one embodiment;
图4为一个实施例中获取文件信息的流程示意图;4 is a schematic flowchart of obtaining file information in one embodiment;
图5为一个实施例中检测待清理数据中是否包含待同步数据的流程示意图;5 is a schematic flowchart of detecting whether data to be cleaned includes data to be synchronized in one embodiment;
图6为另一个实施例中检测待清理数据中是否包含待同步数据的流程示意图;6 is a schematic flowchart of detecting whether data to be cleaned includes data to be synchronized in another embodiment;
图7为一个实施例中将待同步数据同步至服务器的流程示意图;7 is a schematic flowchart of synchronizing data to be synchronized to a server in one embodiment;
图8为一个实施例中数据处理装置的框图;8 is a block diagram of a data processing apparatus in one embodiment;
图9为一个实施例中信息获取模块的框图;9 is a block diagram of an information acquisition module in one embodiment;
图10为一个实施例中检测模块的框图;Figure 10 is a block diagram of a detection module in one embodiment;
图11为另一个实施例中检测模块的框图;11 is a block diagram of a detection module in another embodiment;
图12为一个实施例中同步模块的框图;Figure 12 is a block diagram of a synchronization module in one embodiment;
图13为一个实施例中计算机设备的框图。Figure 13 is a block diagram of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
图1为一个实施例中数据处理方法的应用场景图。如图1所示,终端10与服务器20通过网络进行连接。终端10接收应用的数据清理指令,根据数据清理指令获取与待清理数据对应的文件信息,并根据文件信息检测待清理数据中是否包含待同步数据,若包含,则将待同步数据同步至服务器20。数据同步完成后,终端10删除待清理数据。FIG. 1 is an application scenario diagram of a data processing method in one embodiment. As shown in FIG. 1 , the terminal 10 and the
图2为一个实施例中终端的框图。如图2所示,该终端包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口、显示屏和输入装置。其中,终端的非易失性存储介质存储有操作系统及计算机可执行指令,该计算机可执行指令被处理器执行时以实现本申请实施例中提供的一种数据处理方法。该处理器用于提供计算和控制能力,支撑整个终端的运行。终端中的内存储器为非易失性存储介质中的计算机可读指令的运行提供环境。网络接口用于与服务器进行网络通信,例如将待同步数据发送至服务器等。终端的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端的限定,具体的终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Figure 2 is a block diagram of a terminal in one embodiment. As shown in FIG. 2 , the terminal includes a processor, a non-volatile storage medium, an internal memory and a network interface, a display screen and an input device connected through a system bus. The non-volatile storage medium of the terminal stores an operating system and computer-executable instructions, and the computer-executable instructions are executed by the processor to implement a data processing method provided in the embodiments of the present application. The processor is used to provide computing and control capabilities to support the operation of the entire terminal. Internal memory in the terminal provides an environment for the execution of computer readable instructions in the non-volatile storage medium. The network interface is used for network communication with the server, such as sending data to be synchronized to the server. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, etc., and the input device can be a touch layer covered on the display screen, a button, a trackball or a touchpad set on the terminal shell, or an external device. Keyboard, trackpad or mouse, etc. The terminal may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device, or the like. Those skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied. More or fewer components are shown in the figures, either in combination or with different arrangements of components.
如图3所示,在一个实施例中,提供一种数据处理方法,包括以下步骤:As shown in Figure 3, in one embodiment, a data processing method is provided, comprising the following steps:
步骤S310,接收应用的数据清理指令。Step S310, receiving a data cleaning instruction of the application.
用户可通过触发终端的屏幕选择应用进行数据清理,数据清理可以是选择将应用的部分数据从终端删除,也可以是对应用进行卸载,将应用的全部数据进行删除,其中,卸载指的是从存储介质中删除应用的程序文件、文件夹以及从注册表删除相关数据的操作,释放原来占用的磁盘空间并使该应用不再存在于操作系统中。当终端屏幕捕捉到进行的数据清理操作时,终端接收应用的数据清理指令。进一步地,数据清理操作可包括直接点击选择应用中的文件进行数删除,或是选择应用中的数据类别,例如缓存数据、图片数据、音频数据等进行删除,也可包括直接点击选择应用的卸载选项、将应用拖动出终端的屏幕界面或是通过第三方应用管理程序选择应用进行卸载等方式。The user can select an application to perform data cleaning by triggering the screen of the terminal. Data cleaning can be to delete part of the data of the application from the terminal, or to uninstall the application and delete all the data of the application. The operation of deleting the program files and folders of the application from the storage medium and deleting the related data from the registry releases the disk space occupied by the application and makes the application no longer exist in the operating system. When the terminal screen captures the performed data cleaning operation, the terminal receives the data cleaning instruction of the application. Further, the data cleaning operation may include directly clicking and selecting files in the application to delete data, or selecting data categories in the application, such as cached data, picture data, audio data, etc. to delete, and may also include directly clicking and selecting the uninstallation of the application. options, drag the application out of the screen interface of the terminal, or select the application to uninstall through a third-party application management program.
步骤S320,根据数据清理指令获取与待清理数据对应的文件信息。Step S320: Acquire file information corresponding to the data to be cleaned according to the data cleaning instruction.
终端接收根据数据清理操作生成的数据清理指令,并根据数据清理指令获取进行数据清理的应用标识,其中,应用标识可以是应用名称、应用产品编号等可用于唯一标识应用身份的信息。终端可根据应用标识获取与待清理数据对应的各个文件的文件信息,与待清理数据对应的各个文件可包括待清理的数据文件及资源文件,其中,数据文件指的是用于存储数据的数据库文件,资源文件指的是可从中读出所需资源的文件,读出的资源可以是图片、音频、视频及文字资源等,文件信息可包括文件的文件名称、创建时间、修改时间、大小及文件类型等信息。The terminal receives the data cleaning instruction generated according to the data cleaning operation, and obtains the application identifier for data cleaning according to the data cleaning instruction. The terminal can obtain the file information of each file corresponding to the data to be cleaned according to the application identifier, and each file corresponding to the data to be cleaned can include the data file and resource file to be cleaned, wherein the data file refers to the database used for storing data File, resource file refers to the file from which the required resources can be read. The read resources can be pictures, audio, video and text resources, etc. The file information can include the file name, creation time, modification time, size and file type, etc.
在一个实施例中,终端可根据应用标识从指定文件夹中读取应用中与待清理数据对应的各个文件的文件信息。指定文件夹可以是用于存储进行数据清理的应用各个文件的文件夹,终端可根据应用标识确定该应用的文件存储路径,并根据该文件存储路径从存储该应用各个文件的文件夹中获取记录文件,并从该记录文件中读取与待清理数据对应的各个文件的文件信息。指定文件夹还可以是专门用于存储终端上各个应用的文件信息记录的文件夹,该指定文件夹中,不同应用的文件信息可分别记录在不同的文件中,并根据应用标识对记录有文件信息的文件进行命名,终端可根据应用标识在该指定文件夹中查询到对应的记录文件,并从该对应的记录文件中读取与待清理数据对应的各个文件的文件信息,指定文件夹也可以是其它文件夹,并不限于此。In one embodiment, the terminal may read the file information of each file corresponding to the data to be cleaned in the application from the specified folder according to the application identifier. The specified folder can be a folder used to store each file of the application for data cleaning, and the terminal can determine the file storage path of the application according to the application identifier, and obtain records from the folder storing each file of the application according to the file storage path. file, and read the file information of each file corresponding to the data to be cleaned from the record file. The designated folder may also be a folder specially used to store the file information records of each application on the terminal. In the designated folder, the file information of different applications may be recorded in different files respectively, and the recorded files are recorded according to the application identifier. The information file is named, the terminal can query the corresponding record file in the specified folder according to the application identifier, and read the file information of each file corresponding to the data to be cleaned from the corresponding record file, and the specified folder can also be used. It may be other folders, but is not limited to this.
步骤S330,根据文件信息检测待清理数据中是否包含待同步数据,若是,则执行步骤S340,若否,则执行步骤S350。Step S330 , according to the file information, it is detected whether the data to be cleaned contains data to be synchronized, if yes, go to step S340 , if not, go to step S350 .
数据同步,指的是两个或两个以上的计算机设备保持数据的完整性及统一性,实现信息共享。终端可根据获取的文件信息检测待清理数据是否包含待同步数据,其中,待同步数据指的是需要进行同步但是还未同步的数据。若待清理数据中包含待同步数据,则终端可将待同步数据同步至服务器,若待清理数据中不包含待同步数据,终端可直接对待清理数据进行删除。Data synchronization means that two or more computer devices maintain the integrity and unity of data and realize information sharing. The terminal can detect whether the data to be cleaned includes data to be synchronized according to the acquired file information, where the data to be synchronized refers to the data that needs to be synchronized but has not been synchronized. If the data to be cleaned includes the data to be synchronized, the terminal can synchronize the data to be synchronized to the server; if the data to be cleaned does not contain the data to be synchronized, the terminal can directly delete the data to be cleaned.
步骤S340,将待同步数据同步至服务器,再执行步骤S350。In step S340, the data to be synchronized is synchronized to the server, and then step S350 is performed.
在一个实施例中,终端与服务器实现数据同步,保证终端与服务器的数据统一性,可以是实时数据同步的方式,或是异步数据传输的方式,其中,实时数据同步指的是数据生成或修改时终端直接与服务器进行通讯,将该数据进行同步;异步数据传输指的是先将生成或修改的数据存储在终端本地中,并每隔一定时间将新生成或修改的数据传输至服务器,实现数据同步。In one embodiment, the terminal and the server realize data synchronization to ensure the data unity between the terminal and the server, which may be real-time data synchronization or asynchronous data transmission, wherein real-time data synchronization refers to data generation or modification When the terminal communicates directly with the server, the data is synchronized; asynchronous data transmission refers to first storing the generated or modified data locally in the terminal, and transmitting the newly generated or modified data to the server at regular intervals to realize data synchronization.
在本实施例中,终端可选择异步数据传输的方式实现与服务器的数据同步,终端可根据文件信息检测与待清理数据对应的各个文件中是否为自上一次同步至接收到数据清理指令之间新生成的文件或修改的文件,若是,则可将新生成的文件或修改的文件确定为待同步数据,并将待同步数据同步至服务器。进一步地,终端可采用全量同步或增量同步的方式实现数据同步,全量同步指的是一次性将新生成的文件或修改的文件全部传输至服务器进行同步,增量同步指的是将新生成的文件,以及修改的文件中发生变化的数据传输至服务器进行同步,采用增量同步,可减少数据传输量,加快同步速度。In this embodiment, the terminal can choose asynchronous data transmission to realize data synchronization with the server, and the terminal can detect, according to the file information, whether each file corresponding to the data to be cleaned is between the last synchronization and the receipt of the data cleaning instruction. The newly generated file or the modified file, if so, can determine the newly generated file or the modified file as the data to be synchronized, and synchronize the data to be synchronized to the server. Further, the terminal can realize data synchronization by means of full synchronization or incremental synchronization. Full synchronization refers to transferring all newly generated or modified files to the server for synchronization at one time, and incremental synchronization refers to The files and the changed data in the modified files are transmitted to the server for synchronization. The incremental synchronization can reduce the amount of data transmission and speed up the synchronization.
在一个实施例中,当终端检测到待清理数据中包含待同步数据时,可在屏幕上对包含的待同步数据进行提示,并由用户确认是否将待同步数据同步至服务器,当接收到确认指令时,再将待同步数据同步至服务器。In one embodiment, when the terminal detects that the data to be cleaned contains the data to be synchronized, the terminal can prompt the included data to be synchronized on the screen, and the user can confirm whether to synchronize the data to be synchronized to the server. When commanded, the data to be synchronized is synchronized to the server.
步骤S350,删除待清理数据。Step S350, delete the data to be cleaned.
终端将待同步的数据同步至服务器后,可将待清理数据进行删除。After the terminal synchronizes the data to be synchronized to the server, the data to be cleaned can be deleted.
上述数据处理方法,接收应用的数据清理指令,根据数据清理指令获取与待清理数据对应的文件信息,并根据文件信息检测待清理数据中是否包含待同步数据,若包含,则将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。In the above data processing method, a data cleaning instruction from an application is received, file information corresponding to the data to be cleaned is obtained according to the data cleaning instruction, and according to the file information, it is detected whether the data to be cleaned contains the data to be synchronized, and if so, the data to be synchronized is synchronized. After the data is sent to the server, the data to be cleaned can be deleted to avoid data loss when the application performs data cleaning.
如图4所示,在一个实施例中,步骤S320根据数据清理指令获取与待清理数据对应的文件信息,包括以下步骤:As shown in Figure 4, in one embodiment, step S320 obtains file information corresponding to the data to be cleaned according to the data cleaning instruction, including the following steps:
步骤S402,根据数据清理指令获取应用标识。Step S402, obtaining an application identifier according to the data cleaning instruction.
终端接收根据数据清理操作生成的数据清理指令,并根据数据清理指令获取进行数据清理的应用标识。The terminal receives the data cleaning instruction generated according to the data cleaning operation, and obtains the application identifier for data cleaning according to the data cleaning instruction.
步骤S404,根据应用标识从指定文件夹中读取与待清理数据对应的各个文件的变更时间。Step S404: Read the change time of each file corresponding to the data to be cleaned from the specified folder according to the application identifier.
终端可根据应用标识从指定文件夹中读取应用中与待清理数据对应的各个文件的变更时间,其中,变更时间指的是文件最后一次发生数据变更的时间,若文件没有修改时间,则变更时间为该文件的创建时间,若文件有修改时间,则变更时间为该文件的最后一次修改时间。The terminal can read the change time of each file in the application corresponding to the data to be cleaned from the specified folder according to the application ID, where the change time refers to the time when the data of the file was last changed. The time is the creation time of the file. If the file has a modification time, the modification time is the last modification time of the file.
如图5所示,在一个实施例中,步骤S330根据文件信息检测待清理数据中是否包含待同步数据,包括以下步骤:As shown in FIG. 5, in one embodiment, step S330 detects whether the data to be cleaned contains data to be synchronized according to the file information, including the following steps:
步骤S502,根据应用标识获取历史同步记录。Step S502, obtaining a historical synchronization record according to the application identifier.
终端可根据应用标识从存储有历史同步记录的文件夹或数据库中查询进行数据清理的应用是否有对应的历史同步记录,其中,历史同步记录可包括同步时间、同步服务器信息、同步数据的名称、大小及类型等。The terminal can query from the folder or database storing the historical synchronization record according to the application identifier whether the application for data cleaning has a corresponding historical synchronization record, wherein the historical synchronization record may include the synchronization time, synchronization server information, the name of the synchronization data, size and type, etc.
步骤S504,若历史同步记录不为空,则从历史同步记录中读取最后一次同步时间。Step S504, if the historical synchronization record is not empty, read the last synchronization time from the historical synchronization record.
若终端根据应用标识查询对应的历史同步记录,返回的结果为空,说明进行数据清理的应用没有对应的历史同步记录,则终端可直接删除待清理数据,若返回的结果不为空,则终端获取该应用的历史同步记录,并从该历史同步记录中读取记录的最后一次同步时间。If the terminal queries the corresponding historical synchronization record according to the application ID, and the returned result is empty, indicating that the application performing data cleaning has no corresponding historical synchronization record, the terminal can directly delete the data to be cleaned. If the returned result is not empty, the terminal Get the historical synchronization record of the application, and read the last synchronization time of the record from the historical synchronization record.
步骤S506,将与待清理数据对应的各个文件的变更时间与最后一次同步时间进行比较。Step S506, compare the change time of each file corresponding to the data to be cleaned up with the last synchronization time.
终端可分别将与待清理数据对应的各个文件的变更时间与读取的最后一次同步时间进行比较,检测从上一次同步至终端接收到数据清理指令之间,与待清理数据对应的各个文件中是否有新生成的文件或修改的文件,若文件的变更时间晚于最后一次同步时间,则说明该文件为上一次同步至终端接收到数据清理指令之间新生成或进行修改的文件,可确定该文件为待同步数据。The terminal can compare the change time of each file corresponding to the data to be cleaned with the last synchronization time read, and detect between the last synchronization and the receipt of the data cleaning instruction by the terminal, in each file corresponding to the data to be cleaned. Whether there is a newly generated file or a modified file, if the change time of the file is later than the last synchronization time, it means that the file is a newly generated or modified file between the last synchronization and the terminal receiving the data cleaning instruction, which can be determined. This file is the data to be synchronized.
步骤S508,若文件的变更时间晚于最后一次同步时间,则确定变更时间晚于最后一次同步时间的文件为待同步数据。Step S508, if the change time of the file is later than the last synchronization time, it is determined that the file whose change time is later than the last synchronization time is the data to be synchronized.
在本实施例中,可将与待清理数据对应的各个文件的变更时间与应用的最后一次同步时间进行比较,并确定变更时间晚于最后一次同步时间的文件为待同步数据,并将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。In this embodiment, the change time of each file corresponding to the data to be cleaned can be compared with the last synchronization time of the application, and it is determined that the file whose change time is later than the last synchronization time is the data to be synchronized, and the data to be synchronized After the data is synchronized to the server, delete the data to be cleaned, which can avoid data loss when the application performs data cleaning.
如图6所示,在一个实施例中,步骤S330根据文件信息检测待清理数据中是否包含待同步数据,包括以下步骤:As shown in FIG. 6, in one embodiment, step S330 detects whether the data to be cleaned contains data to be synchronized according to the file information, including the following steps:
步骤S602,根据文件信息读取与待清理数据对应的各个文件中的特定标记位。Step S602: Read specific flag bits in each file corresponding to the data to be cleaned according to the file information.
终端可根据记录的文件信息,逐一读取与待清理数据对应的各个文件的特定标记位。在一个实施例中,用户可预先设置终端上安装的应用需要进行同步的数据,例如,对即时通讯应用,设置聊天记录为同步数据,则该即时通讯应用产生的聊天记录会同步至服务器存储。特定标记位可用于标记该文件是否为需要进行同步的数据,当应用的文件中存储有预先设置的需要进行同步的数据时,可在特定标记位添加对应的标签。终端还可设定,对于需要进行同步的数据,已同步与未同步的数据可在特定标记位分别添加不同的标签,例如,可预先设定特定标记位为DS_1表示已同步的数据,预先设定特定标记位为DS_0表示需要进行同步但未同步的数据,预先设定特定标记位为N_DS表示不需要进行同步的数据,但并不限于此。The terminal can read the specific flag bits of each file corresponding to the data to be cleaned one by one according to the recorded file information. In one embodiment, the user can preset data that needs to be synchronized for applications installed on the terminal. For example, for an instant messaging application, setting chat records as synchronization data, the chat records generated by the instant messaging application will be synchronized to the server for storage. The specific marker bit can be used to mark whether the file is the data that needs to be synchronized. When there is preset data that needs to be synchronized in the application file, a corresponding label can be added to the specific marker bit. The terminal can also be set, for the data that needs to be synchronized, the synchronized and unsynchronized data can be respectively added with different tags in the specific marker. For example, the specific marker can be preset as DS_1 to indicate synchronized data. Setting the specific flag bit as DS_0 indicates data that needs to be synchronized but not synchronized, and pre-setting the specific flag bit as N_DS indicates data that does not need to be synchronized, but it is not limited to this.
步骤S604,判断特定标记位是否为预设标签,若是,则执行步骤S606,若否,则执行步骤S608。Step S604, it is judged whether the specific mark bit is a preset label, if yes, go to step S606, if not, go to step S608.
终端逐一读取与待清理数据对应的各个文件的特定标记位,并判断该特定标记位是否为预设标签,该预设标签指的是用于表示需要进行同步但未同步的数据的标签,例如上述中的DS_0。若文件中的特定标记位为预设标签,则终端可将该文件确定为待同步数据。The terminal reads the specific mark bits of each file corresponding to the data to be cleaned one by one, and judges whether the specific mark bits are a preset tag, and the preset tag refers to a tag used to represent data that needs to be synchronized but not synchronized, For example, DS_0 in the above. If a specific tag bit in the file is a preset tag, the terminal can determine the file as the data to be synchronized.
步骤S606,确定特定标记位为预设标签的文件为待同步数据。Step S606, it is determined that the file whose specific tag bit is the preset tag is the data to be synchronized.
步骤S608,确定特定标记位不是预设标签的文件不是待同步数据。Step S608, it is determined that the file whose specific tag bit is not the preset tag is not the data to be synchronized.
在本实施例中,可根据与待清理数据对应的各个文件的特定标记位确定待同步数据,并将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。In this embodiment, the data to be synchronized can be determined according to the specific flag bits of each file corresponding to the data to be cleaned, and after the data to be synchronized is synchronized to the server, the data to be cleaned is deleted, which can avoid data loss when the application performs data cleaning Case.
如图7所示,在一个实施例中,步骤S340将待同步数据同步至服务器,包括以下步骤:As shown in FIG. 7, in one embodiment, step S340 synchronizes the data to be synchronized to the server, including the following steps:
步骤S702,获取服务器标识。Step S702, acquiring the server identifier.
终端可获取数据同步的服务器标识,其中,服务器标识可以是服务器的IP(Internet Protocol,网络协议)地址、MAC(Media Access Control,媒体介入控制层)地址或服务器名称、编号等中的一种或多种。The terminal can obtain the server identifier of data synchronization, wherein the server identifier can be one of the IP (Internet Protocol, network protocol) address of the server, the MAC (Media Access Control, media intervention control layer) address or the server name, serial number, etc. variety.
步骤S704,根据服务器标识建立链接,并通过链接登录对应的服务器。Step S704, establish a link according to the server identifier, and log in to the corresponding server through the link.
终端可根据服务器标识与服务器建立链接,该链接可以是HTTP(HyperTextTransfer Protocol,超文本传输协议)、HTTPS(Hyper Text Transfer Protocol overSecure Socket Layer,超文本传输协议安全版)等链接,但不限于此。终端可根据预设的账号、密码等信息,通过该建立的链接登录对应的服务器,其中,账号可以是终端的IMEI(International Mobile Equipment Identity,国际移动设备标识)、MAC地址等固定标识信息,也可以是用户设定的由数字、字母或符号等中的一种或多种组成的字符串。The terminal can establish a link with the server according to the server identifier, and the link can be a link such as HTTP (HyperTextTransfer Protocol, hypertext transfer protocol), HTTPS (Hyper Text Transfer Protocol overSecure Socket Layer, hypertext transfer protocol secure version), but is not limited to this. The terminal can log in to the corresponding server through the established link according to the preset account, password and other information, wherein the account can be fixed identification information such as the terminal's IMEI (International Mobile Equipment Identity, international mobile equipment identity), MAC address, etc. It can be a string consisting of one or more of numbers, letters or symbols, etc. set by the user.
步骤S706,按照预设格式将待同步数据封装成消息,并将消息发送至服务器。Step S706: Encapsulate the data to be synchronized into a message according to a preset format, and send the message to the server.
终端可根据与服务器建立的链接类型,按照与该链接类型匹配的预设格式,将待同步数据封装成消息,例如,链接为HTTP链接,则可按照HTTP的数据传输格式,对待同步数据进行封装,并将封装得到的消息发送至服务器。服务器接收终端发送的消息后,对该消息进行解析,得到待同步数据,并根据待同步数据对应的文件信息在数据库中查询到需要进行更新同步的文件,并进行同步。The terminal can encapsulate the data to be synchronized into a message according to the link type established with the server and a preset format matching the link type. For example, if the link is an HTTP link, the data to be synchronized can be encapsulated according to the HTTP data transmission format. , and send the encapsulated message to the server. After receiving the message sent by the terminal, the server parses the message to obtain the data to be synchronized, and searches the database for files that need to be updated and synchronized according to the file information corresponding to the data to be synchronized, and performs synchronization.
在本实施例中,可与服务器建立链接,并待清理数据中的待同步数据同步至对应的服务器,可以避免应用进行数据清理时数据丢失的情况。In this embodiment, a link can be established with the server, and the data to be synchronized in the data to be cleaned is synchronized to the corresponding server, which can avoid the situation of data loss when the application performs data cleaning.
如图8所示,在一个实施例中,提供一种数据处理装置800,包括接收模块810、信息获取模块820、检测模块830、同步模块840及删除模块850。As shown in FIG. 8 , in one embodiment, a
接收模块810,用于接收应用的数据清理指令。The receiving
信息获取模块820,用于根据数据清理指令获取与待清理数据对应的文件信息。The
检测模块830,用于根据文件信息检测待清理数据中是否包含待同步数据。The
同步模块840,用于若待清理数据中包含待同步数据,则将待同步数据同步至服务器。The
删除模块850,用于删除待清理数据。The
上述数据处理装置,接收应用的数据清理指令,根据数据清理指令获取与待清理数据对应的文件信息,并根据文件信息检测待清理数据中是否包含待同步数据,若包含,则将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。The above data processing device receives the data cleaning instruction of the application, obtains file information corresponding to the data to be cleaned according to the data cleaning instruction, and detects whether the data to be cleaned contains the data to be synchronized according to the file information, and if so, synchronizes the data to be synchronized. After the data is sent to the server, the data to be cleaned can be deleted to avoid data loss when the application performs data cleaning.
如图9所示,在一个实施例中,信息获取模块820包括应用标识获取单元822及变更时间读取单元824。As shown in FIG. 9 , in one embodiment, the
应用标识获取单元822,用于根据数据清理指令获取应用标识。The application
变更时间读取单元824,用于根据应用标识从指定文件夹中读取与待清理数据对应的各个文件的变更时间。The change
如图10所示,在一个实施你中,检测模块830包括记录获取单元832、同步时间读取单元834、比较单元836及第一确定单元838。As shown in FIG. 10 , in one implementation, the
记录获取单元832,用于根据应用标识获取历史同步记录。The
同步时间读取单元834,用于若历史同步记录不为空,则从历史同步记录中读取最后一次同步时间。The synchronization
比较单元836,用于将与待清理数据对应的各个文件的变更时间与最后一次同步时间进行比较。The comparing
第一确定单元838,用于若文件的变更时间晚于最后一次同步时间,则确定变更时间晚于最后一次同步时间的文件为待同步数据。The first determining
在本实施例中,可将与待清理数据对应的各个文件的变更时间与应用的最后一次同步时间进行比较,并确定变更时间晚于最后一次同步时间的文件为待同步数据,并将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。In this embodiment, the change time of each file corresponding to the data to be cleaned can be compared with the last synchronization time of the application, and it is determined that the file whose change time is later than the last synchronization time is the data to be synchronized, and the data to be synchronized After the data is synchronized to the server, delete the data to be cleaned, which can avoid data loss when the application performs data cleaning.
如图11所示,在一个实施例中,检测模块830包括判断单元831及第二确定单元833。As shown in FIG. 11 , in one embodiment, the
判断单元831,用于根据文件信息读取与待清理数据对应的各个文件中的特定标记位,并判断特定标记位是否为预设标签。The judging
第二确定单元833,用于若是预设标签,则确定特定标记位为预设标签的文件为待同步数据。The second determining
在本实施例中,可根据与待清理数据对应的各个文件的特定标记位确定待同步数据,并将待同步数据同步至服务器后,再删除待清理数据,可以避免应用进行数据清理时数据丢失的情况。In this embodiment, the data to be synchronized can be determined according to the specific flag bits of each file corresponding to the data to be cleaned, and after the data to be synchronized is synchronized to the server, the data to be cleaned is deleted, which can avoid data loss when the application performs data cleaning Case.
如图12所示,在一个实施例中,同步模块840包括服务器标识获取单元842、建立单元844及发送单元846。As shown in FIG. 12 , in one embodiment, the
服务器标识获取单元842,用于获取服务器标识。The server
建立单元844,用于根据服务器标识建立链接,并通过链接登录对应的服务器。The establishing
发送单元846,用于按照预设格式将待同步数据封装成消息,并将消息发送至服务器。The sending
在本实施例中,可与服务器建立链接,并待清理数据中的待同步数据同步至对应的服务器,可以避免应用进行数据清理时数据丢失的情况。In this embodiment, a link can be established with the server, and the data to be synchronized in the data to be cleaned is synchronized to the corresponding server, which can avoid the situation of data loss when the application performs data cleaning.
本发明实施例还提供了一种计算机设备。如图13所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该计算机设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为手机为例:The embodiment of the present invention also provides a computer device. As shown in FIG. 13 , for the convenience of description, only the part related to the embodiment of the present invention is shown. For specific technical details that are not disclosed, please refer to the method part of the embodiment of the present invention. The computer device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, etc. The computer device is a mobile phone as an example :
图13为与本发明实施例提供的计算机设备相关的手机的部分结构的框图。参考图13,手机包括:射频(Radio Frequency,RF)电路1310、存储器1320、输入单元1330、显示单元1340、传感器1350、音频电路1360、WiFi模块1370、处理器1380、以及电源1390等部件。本领域技术人员可以理解,图13所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 13 is a block diagram of a partial structure of a mobile phone related to a computer device provided by an embodiment of the present invention. 13 , the mobile phone includes: a radio frequency (RF)
其中,RF电路1310可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1380处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1310还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM、通用分组无线服务(GeneralPacket Radio Service,GPRS)、CDMA、宽带码分多址(Wideband Code Division MultipleAccess,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(ShortMessaging Service,SMS)等。The
存储器1320可用于存储软件程序以及模块,处理器1380通过运行存储在存储器1320的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1320可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元1330可用于接收输入的数字或字符信息,以及产生与手机1300的用户设置以及功能控制有关的键信号输入。具体地,输入单元1330可包括触控面板1332以及其他输入设备1334。触控面板1332,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1332上或在触控面板1332附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1332可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1380,并能接收处理器1380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1332。除了触控面板1332,输入单元1330还可以包括其他输入设备1334。具体地,其他输入设备1334可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The
显示单元1340可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1340可包括显示面板1342。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1342。在一个实施例中,触控面板1332可覆盖显示面板1342,当触控面板1332检测到在其上或附近的触摸操作后,传送给处理器1380以确定触摸事件的类型,随后处理器1380根据触摸事件的类型在显示面板1342上提供相应的视觉输出。虽然在图13中,触控面板1332与显示面板1342是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1332与显示面板1342集成而实现手机的输入和输出功能。The
手机1300还可包括至少一种传感器1350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1342的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1342和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路1360、扬声器1362和传声器1364可提供用户与手机之间的音频接口。音频电路1360可将接收到的音频数据转换后的电信号,传输到扬声器1362,由扬声器1362转换为声音信号输出;另一方面,传声器1364将收集的声音信号转换为电信号,由音频电路1360接收后转换为音频数据,再将音频数据输出处理器1380处理后,经RF电路1310可以发送给另一手机,或者将音频数据输出至存储器1320以便后续处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块1370可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器1380是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1320内的软件程序和/或模块,以及调用存储在存储器1320内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1380可包括一个或多个处理单元。在一个实施例中,处理器1380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1380中。The
手机1300还包括给各个部件供电的电源1390(比如电池),优选的,电源1390可以通过电源管理系统与处理器1380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
在一个实施例中,手机1300还可以包括摄像头、蓝牙模块等。In one embodiment, the
在本发明实施例中,该移动终端所包括的处理器1380执行存储在存储器上的计算机程序时实现上述数据处理方法。In this embodiment of the present invention, the above-mentioned data processing method is implemented when the
在一个实施例中,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述数据处理方法。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned data processing method.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710312691.2A CN107145572B (en) | 2017-05-05 | 2017-05-05 | Data processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710312691.2A CN107145572B (en) | 2017-05-05 | 2017-05-05 | Data processing method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107145572A CN107145572A (en) | 2017-09-08 |
CN107145572B true CN107145572B (en) | 2020-12-18 |
Family
ID=59777011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710312691.2A Expired - Fee Related CN107145572B (en) | 2017-05-05 | 2017-05-05 | Data processing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107145572B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918348B (en) * | 2019-03-26 | 2023-09-19 | 努比亚技术有限公司 | Cleaning method, terminal and computer readable storage medium for application browsing record |
CN110309164B (en) * | 2019-06-27 | 2023-05-09 | 深圳前海微众银行股份有限公司 | Information updating method, device, equipment and computer readable storage medium |
CN113326242A (en) * | 2020-02-28 | 2021-08-31 | 阿里巴巴集团控股有限公司 | Data processing method and device, electronic equipment and computer storage medium |
CN116346755A (en) * | 2023-03-30 | 2023-06-27 | 国汽智控(重庆)科技有限公司 | Data synchronization method, device and equipment for vehicle and server |
CN119046248A (en) * | 2024-10-30 | 2024-11-29 | 广州市高奈特网络科技有限公司 | Data extraction method, device and apparatus for iOS device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325478A (en) * | 2008-08-06 | 2008-12-17 | 北京北纬通信科技股份有限公司 | Method and system for data synchronization |
CN101364250B (en) * | 2007-08-08 | 2011-06-08 | 深圳华为通信技术有限公司 | Copyright information processing method and device |
CN105843708A (en) * | 2016-04-06 | 2016-08-10 | 北京小米移动软件有限公司 | Data processing method and device |
CN105868049A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Data processing method and apparatus |
CN106506820A (en) * | 2016-10-25 | 2017-03-15 | 广东欧珀移动通信有限公司 | A mobile terminal data backup method and device |
-
2017
- 2017-05-05 CN CN201710312691.2A patent/CN107145572B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364250B (en) * | 2007-08-08 | 2011-06-08 | 深圳华为通信技术有限公司 | Copyright information processing method and device |
CN101325478A (en) * | 2008-08-06 | 2008-12-17 | 北京北纬通信科技股份有限公司 | Method and system for data synchronization |
CN105868049A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Data processing method and apparatus |
CN105843708A (en) * | 2016-04-06 | 2016-08-10 | 北京小米移动软件有限公司 | Data processing method and device |
CN106506820A (en) * | 2016-10-25 | 2017-03-15 | 广东欧珀移动通信有限公司 | A mobile terminal data backup method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107145572A (en) | 2017-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11868314B2 (en) | File processing method and mobile terminal | |
CN103327189B (en) | Method and device for uploading, browsing and deleting pictures | |
CN107145572B (en) | Data processing method, device, computer equipment and storage medium | |
CN109309696B (en) | Folder transmission method, sender, receiver, and storage medium | |
WO2017088377A1 (en) | Message revoking method and apparatus thereof | |
CN103458016A (en) | Method and device for picture management and terminal device | |
US11481357B2 (en) | Album display method, electronic device, and storage medium | |
WO2018049894A1 (en) | Data transmission method and device | |
BR112016018783B1 (en) | METHOD, APPARATUS, DEVICE AND INTERCOMMUNICATION SYSTEM | |
CN104426963A (en) | Terminal associating method and terminal | |
CN103390034A (en) | Image display method, device, terminal and server | |
CN108549698A (en) | Document handling method, device, mobile terminal and computer readable storage medium | |
CN106951492B (en) | File search method, device and electronic device | |
CN106502824A (en) | Data backup method and cloud server | |
CN111104380A (en) | Application file management method and device, mobile terminal and storage medium | |
CN106685948A (en) | Data processing method, terminal, communication device and data processing system | |
CN106657281B (en) | File sharing method and device | |
CN106657254B (en) | Method, device and system for synchronizing contact information | |
CN108897482A (en) | A kind of information display method and terminal device | |
CN108256466B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN104424203A (en) | Method and system for viewing photo sharing state in mobile device | |
CN108549576A (en) | File monitoring method and device, electronic equipment and storage medium | |
CN105703808A (en) | Method and device for transmitting data | |
CN107102913A (en) | Data backup method and device and computer equipment | |
CN106255079A (en) | The method and device of short message cancelling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201218 |