CN106716379B - Data processing method and device and terminal equipment - Google Patents

Data processing method and device and terminal equipment Download PDF

Info

Publication number
CN106716379B
CN106716379B CN201680002702.0A CN201680002702A CN106716379B CN 106716379 B CN106716379 B CN 106716379B CN 201680002702 A CN201680002702 A CN 201680002702A CN 106716379 B CN106716379 B CN 106716379B
Authority
CN
China
Prior art keywords
data
working area
terminal equipment
working
file change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680002702.0A
Other languages
Chinese (zh)
Other versions
CN106716379A (en
Inventor
马世奎
董文锋
晋艳伟
张永亮
王凤周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloudminds Beijing Technologies Co Ltd
Original Assignee
Cloudminds Beijing Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cloudminds Beijing Technologies Co Ltd filed Critical Cloudminds Beijing Technologies Co Ltd
Publication of CN106716379A publication Critical patent/CN106716379A/en
Application granted granted Critical
Publication of CN106716379B publication Critical patent/CN106716379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1471Saving, restoring, recovering or retrying involving logging of persistent data for recovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The disclosure relates to a data processing method and device and terminal equipment. The method comprises the following steps: establishing a working area for running a preset application; when a file change event in the working area is detected, acquiring changed data in the working area according to the file change event; and sending the changed data as backup data to a configured destination. By the method and the device, the data in the working area can be completely backed up to the backup server, no special requirement is made on the local residual storage space of the terminal equipment, and the data security is high; the method has the advantages that the time for a user to use the terminal is not required to be monopolized, silent real-time differential quantity backup can be carried out in the background, the real-time performance is strong, the requirement on electric quantity is not high, and the user experience is good; the method can complete full data recovery in the device activation process, does not need to enter a recovery mode, is convenient and fast to operate, and does not need to rely on an application open API (application programming interface) to perform application data backup integration.

Description

Data processing method and device and terminal equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data processing method, an apparatus, and a terminal device.
Background
The data backup mode of the existing terminal generally includes a mode of performing local mirror image backup on the whole file system and performing cloud backup on specific application data.
The backup data is saved in a local SD card in a file form or transmitted to a local PC for saving through a data line for full backup. When the backup file is restored, the device needs to be restarted to enter an OS restoring mode for data restoration.
In the cloud backup mode, data of specific applications are collected through various APIs, and the data are backed up to the cloud one by one through a private protocol. And when data recovery is needed, downloading the backed-up data from the cloud backup to the local, and respectively updating the backed-up data to corresponding applications through corresponding APIs.
Therefore, the local mirror image backup has high requirements on the local residual space of the terminal, and has high redundancy of backup data, long backup period and high recovery difficulty. And cloud backup can only back up application data of corresponding open APIs, adaptation integration needs to be performed on different applications, data backup is incomplete, and the integration period is long.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a data processing method, an apparatus, a computer program product, a non-transitory computer-readable storage medium, and a terminal device.
According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method applied to a terminal device, including:
establishing a working area for running a preset application;
when a file change event in the working area is detected, acquiring changed data in the working area according to the file change event;
and sending the changed data as backup data to a configured destination.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus, applied to a terminal device, including:
the working area establishing module is used for establishing a working area for running a preset application;
the change data acquisition module is used for acquiring data changed in the working area according to the file change event when the file change event in the working area is detected;
and the sending module is used for sending the changed data serving as backup data to a configured destination terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a data processing method applied to an enterprise mobility management system, including:
receiving an activation request sent by terminal equipment;
authenticating according to the activation request, and returning confirmation information to the terminal equipment when the authentication is passed, wherein the confirmation information comprises first indication information; the first indication information is used for indicating the terminal equipment to establish a working area for running a preset application, and the changed data in the working area is used as backup data and sent to a configured destination.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a data processing apparatus applied to an enterprise mobility management system, including:
the receiving module is used for receiving an activation request sent by the terminal equipment;
the authentication module is used for authenticating according to the activation request and returning confirmation information to the terminal equipment when the authentication is passed, wherein the confirmation information comprises first indication information; the first indication information is used for indicating the terminal equipment to establish a working area for running a preset application, and the changed data in the working area is used as backup data and sent to a configured destination.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory for storing processor-executable instructions;
the processor is used for establishing a working area for running a preset application;
when a file change event in the working area is detected, acquiring changed data in the working area according to the file change event;
and sending the changed data to a configured destination end as backup data.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned data processing method when executed by the programmable apparatus.
According to a seventh aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium including one or more programs therein for executing the above-described data processing method.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a terminal device, including: the non-transitory computer-readable storage medium described above; and one or more processors to execute the programs in the non-transitory computer readable storage medium.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the data in the working area can be completely backed up to the backup server, no special requirement is made on the local residual storage space of the terminal equipment, and the data security is high; the method has the advantages that the time for a user to use the terminal is not required to be monopolized, silent real-time differential quantity backup can be carried out in the background, the real-time performance is strong, the requirement on electric quantity is not high, and the user experience is good; the method can complete full data recovery in the process of activating the equipment, including recovery of all enterprise applications and related persistent data in the working area, does not need to enter a recovery mode, is convenient and fast to operate, and does not need to rely on an application open API (application programming interface) to perform backup integration of application data.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an operating system of a terminal device according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram of a data processing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart of workspace establishment according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a flow of acquiring change data according to an embodiment of the disclosure;
FIG. 6 is a schematic flow chart illustrating detection of changed data of a workspace according to an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart diagram of a data processing method according to another embodiment of the present disclosure;
FIG. 8 is a schematic flow chart diagram of a data processing method according to yet another embodiment of the present disclosure;
FIG. 9 is a schematic diagram illustrating an effect of performing workspace creation and recovery according to an embodiment of the present disclosure;
FIG. 10 is a diagram illustrating the effect of performing workspace deletion according to an embodiment of the present disclosure;
FIG. 11 is a block diagram of a data processing apparatus according to an embodiment of the disclosure;
FIG. 12 is a schematic diagram of a data processing apparatus according to another embodiment of the present disclosure;
fig. 13 is a block diagram illustrating an apparatus for a data processing method according to an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Referring to fig. 1, a schematic structural diagram of a data processing system according to an embodiment of the present disclosure is shown.
The data processing system includes: a terminal device 100, an enterprise mobile Management system (EMM) 200 in a cloud, and a backup server 300.
The enterprise mobility management system 200 includes: the system comprises a front-end interface service, a management portal, a back-end server, a database and the like, and is used for providing functions of terminal equipment authentication, equipment management, application management, backup server management selection, backup server backup snapshot management and the like.
The backup Server 300 is composed of a backup synchronization Server (Rsync Server) and a distributed file system, and stores backup data.
The terminal device 100 may be a mobile phone, a tablet device, a portable computer, a messaging device, a wearable device, or a personal digital assistant, etc.
The terminal device 100 may be connected to the enterprise mobility management system 200 and the backup server 300 through the network 400, respectively.
The terminal device 100 includes: processor 101, memory 102, etc. The processor 101 is used for processing complex logic operations and performing task allocation, providing an interactive interface for a user, running an operating system, and the like. The operating system of the terminal device 100 is stored in the memory 102, and includes but is not limited to Linux, Windows, MacOSX, and the like.
Referring to fig. 2, in an embodiment of the present disclosure, an operating system includes: the system comprises an application layer, a framework layer, a local framework layer and a kernel layer. Wherein, the application layer is used for providing a user interaction interface, a core application program package and the like. The framework layer includes an activity manager that can be used to build a view of an application, to manage the application lifecycle and provide common navigation fallback functionality, a content provider that allows an application to access data of another application, and the like. The local framework layer is used for providing local services, link libraries, hardware driving interaction of the bottom layer and the like. The kernel layer is used for performing functions such as security, memory management, process management, network protocol stack and the like.
In the embodiment of the present disclosure, the EMM manages one or more terminal devices, and sets account information, rights information, and the like for the managed terminal devices. The account information may include: a username and password. The rights information may include: the terminal device may install the applications to be used and the usage right of each application, etc. The EMM may store account information and authority information corresponding one-to-one to each terminal device through the database.
The EMM is also used for connecting with one or more backup servers, managing the capacity use condition of the backup servers and configuring corresponding backup servers for the terminal equipment as backup and recovery servers according to the capacity use condition of the backup servers.
Fig. 3 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure. The data processing method is applied to terminal equipment and comprises the following steps:
in step 301, a workspace for running a predetermined application is established.
In an embodiment of the present disclosure, an mdm (mobile device management) service is preset in a framework layer of a terminal device, and is used for establishing a workspace and detecting a file system in the workspace, for example, detecting a file change event of the file system.
In an embodiment of the disclosure, account information input by a user through a power-on initial guide interface or a system setting interface of a terminal device is received, an MDM service generates an activation request according to the account information, and the activation request is sent to an EMM.
And when the EMM receives the activation request, the EMM performs authentication according to the account information contained in the activation request. And (4) the authentication process, namely comparing the received account information with the account information of the terminal equipment in the EMM database, and passing the authentication when the received account information is consistent with the account information of the terminal equipment in the EMM database. After the authentication is passed, the EMM configures a backup server for performing backup recovery and the like on the data of the terminal equipment according to the capacity condition of the managed backup server.
In an embodiment of the present invention, for a terminal device that is activated for the first time, the EMM configures an appropriate destination for the terminal device according to the capacity of the backup server in the above manner; for the terminal device which is not activated for the first time, the destination terminal which is configured before can be directly selected.
And the EMM determines the preset application usable by the terminal equipment according to the activation request and generates a list of the preset application. And when the authentication is passed, the EMM returns confirmation information to the terminal equipment.
In an embodiment of the present disclosure, the confirmation information is used to indicate that the terminal device has passed the authentication, and establishes a connection with the EMM. In one embodiment, the acknowledgement information includes: and presetting a list of applications and configured destination information. Therefore, the terminal equipment receives the confirmation information, and the working area can be established according to the confirmation information. Wherein, the backup server information includes: the access mode of the backup server and the space quota information that can be provided by the backup server (i.e., information such as the size of the storage space that can be provided by the backup server). The access mode of the backup server comprises a domain name, a port number and the like of the backup server.
In other embodiments, the first indication information and the second indication information may also be included in the confirmation message. The first indication information is used for indicating the terminal to establish a working area for running the preset application. Therefore, the terminal device receives the first indication information, namely, the working area is established according to the preset application list. And the destination terminal information configured by the EMM for the terminal can be contained in the second indication information and sent to the terminal equipment so as to indicate the destination terminal configured for the terminal equipment.
Referring to fig. 4, in an embodiment of the present disclosure, the establishment of a work area (i.e., an enterprise domain, EOS) may be performed according to the acknowledgement information returned by the EMM, and the steps include:
in step 401, if a confirmation message returned by the enterprise mobility management system according to the activation request is received, a user is created.
As described above, the EMM may send the acknowledgement message in the following two ways:
mode 1: and the list of the preset application and the configured destination information are contained in the confirmation information and are sent to the terminal equipment. In this way, the terminal device directly establishes the working area according to the confirmation information.
Mode 2: and the first indication information and the second indication information are contained in the confirmation information and are sent to the terminal equipment. In this way, the terminal device establishes the working area if receiving the first indication information.
In step 402, a working directory and built-in storage space is created for the user.
In an embodiment of the disclosure, the terminal device supports a multi-user mechanism. By creating the new user, the safety isolation between the new user and the original user can be realized, the strict distinction of the operation area of the data is realized, and the operation safety is improved. After a new user is created, a corresponding working directory and a built-in storage space are established for the new user. The working directory includes copies of the preset applications, and temporary files and the like generated by execution of the preset applications are stored in the working directory. The built-in storage space is used for the preset application to access, namely the built-in storage space is a storage space which can be accessed by each preset application.
In an embodiment of the present disclosure, the MDM service calls DevicePolicyManager to create a workspace (i.e., an EOS domain). The system framework establishes a user, establishes a work catalog (/ data/user/{ user Id }) of the user and a built-in storage space (/ mnt/shell/organized/{ user Id }) accessible by each preset application in a user work area, and establishes a work copy of each preset application in the work catalog according to a list of the preset application returned by the EMM. And after the workspace is successfully created, calling back the onProfileProvisioning complete method realized by the MDM service so that the MDM performs initialization preparation work of the enterprise domain. The initialization preparation work is used to set the MDM as the owner (owner) of the workspace so that the MDM service can manage the workspace (e.g., detect the workspace).
In the embodiment of the disclosure, after the working area is established, the initial data of the working area is fully backed up to the configured destination. In one embodiment, the configured destination is an EMM configured backup server.
In step 302, when a file change event in the workspace is detected, the changed data in the workspace is obtained according to the file change event.
In an embodiment of the disclosure, after the work area is created, file changes of the work directory and the built-in storage space are detected in real time.
In an embodiment of the disclosure, a Linux kernel file system is adopted to call inotify, and data changes of each file in a working directory and a built-in storage space are collected. Data variations include, but are not limited to: file creation, file deletion, file modification, and the like. And when the data change, generating a corresponding file change event. The file change event may include information of a data change, such as a path of the data change, a change transmission time, a change type, and the like.
Referring to fig. 5, acquiring data that changes in a workspace according to a file change event includes:
in step 501, file change events of the working directory and the built-in storage space are detected.
In step 502, the file change event is filtered according to the preset synchronization period and the preset update frequency.
When the data change occurs in the working directory and/or the built-in storage space, a file change event is generated. In the embodiment of the disclosure, the file change events are filtered according to the preset synchronization period and the preset update frequency, so as to filter out repeated events and irrelevant events.
In step 503, the changed data in the working directory and the built-in storage space is obtained according to the filtered file change event.
And comparing the difference between the changed file and the initial file (or the file before the change) according to the file change event to obtain changed data.
Fig. 6 is a schematic flow chart illustrating detecting change data of a work area according to an embodiment of the disclosure.
In step 601, a file change event is generated after a data change occurs in the work area. In step 602, event filtering is performed to filter out duplicate events, unrelated events, and the like. In step 603, an event queue is generated. In step 604, one or more work threads (work threads) are started to process the file change event. In step 605, a thread pool (thread pool) is created, one or more backup processors (Rsync processors) are started, and difference comparison is performed according to the file change event to obtain changed data. In step 606, the changed data is sent to the backup server. In step 607, the data that failed to be transmitted is put into a Failure Queue (Failure Queue) and retransmitted.
The transmission and retransmission of steps 606 and 607 can be performed under the condition that the network of the terminal device is good and the power is sufficient, so as to improve the transmission success rate.
Therefore, the backup of the embodiment of the disclosure can perform silent real-time differential quantity backup without monopolizing the time of the user for using the terminal device, has strong real-time performance, and improves the user experience.
In step 303, the changed data is sent as backup data to the configured destination.
In an embodiment of the present disclosure, when the network of the terminal device is good and the power amount is within a preset range, the changed data is sent to the configured destination as backup data. In one embodiment, the configured destination is an EMM configured backup server. And the backup server performs differential backup on the working area according to the received changed data based on the full backup of the initial data of the working area. According to the data processing method, the data in the working area can be completely backed up to the backup server, no special requirement is made on the local residual storage space of the terminal equipment, and the data safety is high.
In an embodiment of the present disclosure, the data processing method further includes:
deleting the working area according to a received data erasing instruction from the enterprise mobile management system; or deleting the working area according to a received data erasing instruction input by the user through the terminal equipment.
The enterprise mobile management system deletes the working area of the terminal equipment, so that the data security can be improved. The working area is deleted through the terminal equipment, so that the management of a user on the working area can be improved, the user can release the storage space of the terminal equipment conveniently, and the user experience is improved.
Referring to fig. 7, in an embodiment of the present disclosure, the data processing method further includes:
in step 304, a data recovery request is sent to the configured destination to recover the data of the destination into the workspace.
When data recovery is needed, for example, the working area is deleted or the working area is abnormal, a data recovery request may be sent to the configured destination to perform data recovery on the working area.
It should be understood that if the working area exists in the terminal device, the data in the backup server is overwritten to the original data in the working area when the data is restored. And if the working area in the terminal equipment is deleted, when the data is recovered, newly building the working area, and recovering the data in the backup server to the working directory and the built-in storage space of the newly built working area. Here, the step of creating the work area may be the same as the step of sending an activation request by the terminal device, returning confirmation information after the EMM is authenticated, and creating the work area by the terminal device according to the confirmation information.
Therefore, the embodiment of the disclosure can realize that the data in the backup server is restored to the terminal equipment. In order to provide a user with simpler and more convenient data recovery, referring to fig. 8, a data processing method according to another embodiment of the present disclosure includes:
in step 801, an instruction input by a user on a preset interface is detected.
In the embodiment of the present disclosure, the preset interface may be the initial booting interface or the system setting interface, or may be other interfaces at least including a "new workspace" option and a "resume workspace" option.
The user can input the instruction by performing operation on the preset interface, such as clicking, double clicking, sliding and the like. In some embodiments, the user may also effect input of instructions by physical keys, for example, by pressing a "volume +" key. In addition, the user can input instructions in a voice mode. In the present disclosure, the input form of the instruction is not limited.
In step 802, if the instruction is a work area establishment instruction, an activation request is generated according to account information allocated to the terminal device by the enterprise mobility management system.
It should be understood that the activation request is the activation request for sending to the EMM for authentication. The details of the implementation of sending the activation request to the EMM after generating the activation request and establishing the working area according to the confirmation information returned by the received EMM are as described above, and are not described herein again.
In step 803, if the command is a data recovery command, the configured data of the destination is recovered to the working area.
In the embodiment of the disclosure, if the instruction is a data recovery instruction, a data recovery request is sent to a destination (backup server) to recover the data of the destination into the working area. And when the data are recovered, respectively performing corresponding recovery operations according to whether the working area of the terminal equipment is deleted.
Therefore, the embodiment of the disclosure can perform selection operations of new creation of the working area and data recovery on the same preset interface, that is, full recovery of data (including recovery of all applications and related persistent data in the working area) can be performed in the activation process, a specific recovery mode is not required, the operation is convenient and fast, and backup recovery of application data is not required to be performed depending on an application-open API.
The following describes the processes of workspace creation, workspace deletion, and workspace recovery according to the embodiment of the present disclosure with reference to fig. 9 to 10. In an embodiment of the present disclosure, when the terminal device displays an activation interface (i.e., a preset interface), a user may select on the activation interface to establish a working area, delete the working area, and restore the working area. In an embodiment, the start-up initial wizard interface or the system setup interface may be an activation interface.
Referring to FIG. 9, the activation interface includes options such as "New workspace," resume workspace, "and" delete workspace.
When the user selects "new workspace," the interface displays "please enter account information … …". The account information is account information distributed to the terminal equipment by the enterprise mobile management system. And generating an activation request according to the account information input by the user. The activation request is sent to the enterprise mobile management system, authentication is carried out by the enterprise mobile management system, and if the authentication is passed, confirmation information is returned to the terminal equipment. And according to the confirmation information, establishing a new working area in the terminal equipment, namely establishing a user, establishing a corresponding working directory and a built-in storage space for the user, establishing a working copy of the preset application in the working directory and the like. After the working area is successfully established, the setProfileEnabled method of the devicepolickymanager is called to start the working area, so that the preset application running in the working area is visible to the user, that is, referring to fig. 9, the preset application is displayed on the display interface of the terminal device.
The files in the working area are detected in real time, and when the working area generates a file change event, the method is used for acquiring the change data and realizing differential backup at a destination (backup server). Referring to fig. 10, when a data erasure command is received from the enterprise mobility management system or from a user through a terminal device, the created work area is deleted.
Referring to fig. 10, in an embodiment of the present disclosure, when deleting a work area, the work area may be deleted by entering a corresponding interface of the terminal device, for example, the activation interface shown in fig. 9, and generating a data erasure command through an option of "delete work area".
In another embodiment, a "data erasure request" may be sent to the EMM; and when the EMM receives the data erasing request, sending a data erasing instruction to the corresponding terminal equipment so as to delete the working area of the terminal equipment. It should be appreciated that the "data erasure instruction" may be transmitted in any manner by any electronic device (e.g., text messaging, telephony, etc.). The 'data erasing instruction' comprises account information corresponding to the terminal equipment needing to be erased, so that the EMM can send the 'data erasing instruction' to the corresponding terminal equipment according to the account information, erase data in a working area and completely delete corresponding application and relevant persistent data.
After the working area is deleted, the new establishment or the recovery of the working area can be carried out through the activation interface.
With continued reference to FIG. 9, in an embodiment of the present disclosure, data recovery may occur when a user selects "restore workspace" through the activation interface. In one embodiment, the MDM service restores the full amount of data of the backup server to the terminal device through the Rsync tool. As described above, if the work area in the terminal device is deleted, when recovering, a new work area is created first, and then the data in the backup server is recovered to the work directory and the built-in storage space of the new work area; and if the terminal equipment also has a working area, covering the original data in the working area with the data in the backup server during recovery. After the data recovery is completed, a setProfileEnabled method of the devicepolickymanager is called to start the working area, so that the preset application running in the working area is visible to the user, that is, referring to fig. 9, the preset application is displayed on a display interface of the terminal device.
By the data processing method of the embodiment of the disclosure, data in the working area can be completely backed up to the backup server, no special requirement is made on the local residual storage space of the terminal equipment, and the data security is high; the method has the advantages that the time for a user to use the terminal is not required to be monopolized, silent real-time differential quantity backup can be carried out in the background, the real-time performance is strong, the requirement on electric quantity is not high, and the user experience is good; the method can complete full data recovery in the process of activating the equipment, including recovery of all enterprise applications and related persistent data in the working area, does not need to enter a recovery mode, is convenient and fast to operate, and does not need to rely on an application open API (application programming interface) to perform backup integration of application data.
Correspondingly, referring to fig. 11, an embodiment of the present disclosure further provides a data processing apparatus, which is applied to a terminal device. The data processing apparatus 110 includes:
a working area establishing module 1101, configured to establish a working area for running a preset application;
a change data obtaining module 1102, configured to, when a file change event in the working area is detected, obtain data that changes in the working area according to the file change event;
a sending module 1103, configured to send the changed data to a configured destination as backup data.
In one embodiment, workspace establishment module 1101 includes:
an activation request sending submodule (not shown in the figure) for sending an activation request to the enterprise mobility management system;
a user creating submodule (not shown in the figure) configured to create a user if receiving a confirmation message returned by the enterprise mobility management system according to the activation request;
and an establishing submodule (not shown in the figure) configured to establish a working directory and a built-in storage space for the user, where the working directory includes a copy of the preset application, and the built-in storage space is used for the preset application to access.
In one embodiment, the change data acquisition module 1102 includes:
a detection submodule (not shown in the figure) for detecting the file change event of the working directory and the built-in storage space;
a filtering submodule (not shown in the figure) for filtering the file change event according to a preset synchronization period and a preset updating frequency;
and a change data obtaining sub-module (not shown in the figure) for obtaining the changed data in the working directory and the built-in storage space according to the filtered file change event.
In one embodiment, the apparatus 110 further comprises:
the instruction detection module 1104 is used for detecting an instruction input by a user on a preset interface;
a generating module 1105, configured to generate the activation request according to the account information allocated by the enterprise mobility management system to the terminal device if the instruction is a work area establishment instruction.
In one embodiment, the apparatus 110 further comprises:
a data recovery module 1106, configured to recover the entire configured data of the destination to the working area when the instruction is a data recovery instruction.
In one embodiment, the apparatus 110 further comprises:
an initial backup module 1107, configured to send the initial data in the working area to the configured destination as backup data.
In one embodiment, the apparatus 110 further comprises:
a deleting module 1108, configured to delete the working area according to a data erasing instruction received from the enterprise mobility management system; or deleting the working area according to a received data erasing instruction input by the user through the terminal equipment. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Referring to fig. 12, an embodiment of the present disclosure further provides a data processing apparatus, which is applied to an enterprise mobility management system. The apparatus 120 comprises:
a receiving module 1201, configured to receive an activation request sent by a terminal device;
an authentication module 1202, configured to perform authentication according to the activation request, and return confirmation information to the terminal device when the authentication passes, where the confirmation information includes first indication information; the first indication information is used for indicating the terminal equipment to establish a working area for running a preset application, and the changed data in the working area is used as backup data and sent to a configured destination.
In one embodiment, the apparatus 120 further comprises:
an instruction sending module 1203, configured to send a data erasing instruction to the terminal device, so as to delete the working area of the terminal device.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating an apparatus 130 for a data processing method according to an exemplary embodiment, where the apparatus 130 may be a terminal device. As shown in fig. 13, the apparatus 130 may include: a processor 1301, a memory 1302, a multimedia component 1303, an input/output (I/O) interface 1304, and a communications component 1305.
The processor 1301 is configured to control the overall operation of the apparatus 130, so as to complete all or part of the steps in the data processing method. The memory 1302 is used to store an operating system, various types of data to support the operation of the device 130, such data may include, for example, instructions for any application or method operating on the device 130, and application-related data. The Memory 1302 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The multimedia component 1303 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 1302 or transmitted via the communication component 1305. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 1304 provides an interface between the processor 1301 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1305 is used for wired or wireless communication between the apparatus 130 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 1305 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the apparatus 130 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components for executing the above data Processing method.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned data processing method when executed by the programmable apparatus.
In another exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1302 comprising instructions, executable by processor 1301 of apparatus 130 to perform the data processing method described above is also provided. The non-transitory computer readable storage medium may be, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
Any process or method descriptions in flow charts or otherwise described in embodiments of the present invention may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the embodiments of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (19)

1. A data processing method is applied to terminal equipment and is characterized by comprising the following steps:
establishing a working area for running a preset application;
detecting the working directory of the working area and the file change of the built-in storage space in real time;
when a file change event in the working area is detected, acquiring changed data in the working area according to the file change event;
sending the changed data as backup data to a configured destination;
wherein the step of establishing a working area for running a preset application comprises:
sending an activation request to an enterprise mobility management system;
if receiving the confirmation information returned by the enterprise mobile management system according to the activation request, creating a user;
establishing a working directory and a built-in storage space for the user, wherein the working directory comprises a copy of the preset application, and the built-in storage space is used for the preset application to access;
wherein, the confirmation information further comprises second indication information; the second indication information is used for indicating a destination configured for the terminal equipment.
2. The method of claim 1, wherein the step of obtaining changed data within the workspace based on the file change event comprises:
detecting the file change events of the working directory and the built-in storage space;
filtering the file change event according to a preset synchronization period and a preset updating frequency;
and acquiring the changed data in the working directory and the built-in storage space according to the filtered file change event.
3. The method of claim 1, wherein the step of sending an activation request to an enterprise mobility management system is preceded by the step of:
detecting an instruction input by a user on a preset interface;
and if the command is a working area establishment command, generating the activation request according to account information allocated to the terminal equipment by the enterprise mobile management system.
4. The method of claim 3, further comprising:
and if the instruction is a data recovery instruction, recovering the total data of the configured destination end to the working area.
5. The method of claim 1, wherein the step of establishing a workspace for running the predetermined application is followed by the step of:
and sending the initial data in the working area to the configured destination end as backup data.
6. The method of claim 1, further comprising:
deleting the working area according to a received data erasing instruction from the enterprise mobile management system; or
And deleting the working area according to a received data erasing instruction input by the user through the terminal equipment.
7. A data processing device applied to a terminal device is characterized by comprising:
the working area establishing module is used for establishing a working area for running a preset application;
the module is used for detecting the working directory of the working area and the file change of the built-in storage space in real time;
the change data acquisition module is used for acquiring data changed in the working area according to the file change event when the file change event in the working area is detected;
the sending module is used for sending the changed data serving as backup data to a configured destination end;
wherein the workspace establishment module comprises:
the activation request sending submodule is used for sending an activation request to the enterprise mobile management system;
the user creating submodule is used for creating a user if receiving the confirmation information returned by the enterprise mobile management system according to the activation request;
the establishing submodule is used for establishing a working directory and a built-in storage space for the user, wherein the working directory comprises a copy of the preset application, and the built-in storage space is used for the preset application to access;
wherein, the confirmation information further comprises second indication information; the second indication information is used for indicating a destination configured for the terminal equipment.
8. The apparatus of claim 7, wherein the change data acquisition module comprises:
the detection submodule is used for detecting the file change events of the working directory and the built-in storage space;
the filtering submodule is used for filtering the file change event according to a preset synchronization period and a preset updating frequency;
and the change data acquisition submodule is used for acquiring the changed data in the working directory and the built-in storage space according to the filtered file change event.
9. The apparatus of claim 7, further comprising:
the instruction detection module is used for detecting an instruction input by a user on a preset interface;
and the generation module is used for generating the activation request according to the account information distributed to the terminal equipment by the enterprise mobile management system if the instruction is a working area establishment instruction.
10. The apparatus of claim 9, further comprising:
and the data recovery module is used for recovering the total data of the configured destination end to the working area when the instruction is a data recovery instruction.
11. The apparatus of claim 7, further comprising:
and the initial backup module is used for sending the initial data in the working area to the configured destination end as backup data.
12. The apparatus of claim 7, further comprising:
the deleting module is used for deleting the working area according to a received data erasing instruction from the enterprise mobile management system; or deleting the working area according to a received data erasing instruction input by the user through the terminal equipment.
13. A data processing method is applied to an enterprise mobile management system and is characterized by comprising the following steps:
receiving an activation request sent by terminal equipment;
authenticating according to the activation request, and returning confirmation information to the terminal equipment when the authentication is passed, wherein the confirmation information comprises first indication information; the first indication information is used for indicating the terminal equipment to establish a working area for running a preset application, detecting the working directory of the working area and the file change of a built-in storage space in real time, and sending the changed data in the working area to a configured destination end as backup data;
wherein, the confirmation information further comprises second indication information; the second indication information is used for indicating a destination configured for the terminal equipment.
14. The method of claim 13, further comprising:
and sending a data erasing instruction to the terminal equipment so as to delete the working area of the terminal equipment.
15. A data processing device applied to an enterprise mobile management system is characterized by comprising:
the receiving module is used for receiving an activation request sent by the terminal equipment;
the authentication module is used for authenticating according to the activation request and returning confirmation information to the terminal equipment when the authentication is passed, wherein the confirmation information comprises first indication information; the first indication information is used for indicating the terminal equipment to establish a working area for running a preset application, detecting the working directory of the working area and the file change of a built-in storage space in real time, and sending the changed data in the working area to a configured destination end as backup data, wherein the confirmation information also comprises second indication information; the second indication information is used for indicating a destination configured for the terminal equipment.
16. The apparatus of claim 15, further comprising:
and the instruction sending module is used for sending a data erasing instruction to the terminal equipment so as to delete the working area of the terminal equipment.
17. A terminal device, comprising:
a processor;
a memory for storing processor-executable instructions;
the processor is used for establishing a working area for running a preset application; detecting the working directory of the working area and the file change of the built-in storage space in real time; when a file change event in the working area is detected, acquiring changed data in the working area according to the file change event; sending the changed data as backup data to a configured destination; wherein the step of establishing a working area for running a preset application comprises:
sending an activation request to an enterprise mobility management system;
if receiving the confirmation information returned by the enterprise mobile management system according to the activation request, creating a user;
establishing a working directory and a built-in storage space for the user, wherein the working directory comprises a copy of the preset application, and the built-in storage space is used for the preset application to access;
wherein, the confirmation information further comprises second indication information; the second indication information is used for indicating a destination configured for the terminal equipment.
18. A non-transitory computer readable storage medium including one or more programs for performing the method of any of claims 1-6.
19. A terminal device, comprising:
the non-transitory computer readable storage medium recited in claim 18; and
one or more processors to execute the programs in the non-transitory computer readable storage medium.
CN201680002702.0A 2016-11-01 2016-11-01 Data processing method and device and terminal equipment Active CN106716379B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/104266 WO2018081928A1 (en) 2016-11-01 2016-11-01 Data processing method and apparatus, and terminal device

Publications (2)

Publication Number Publication Date
CN106716379A CN106716379A (en) 2017-05-24
CN106716379B true CN106716379B (en) 2020-10-30

Family

ID=58903779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680002702.0A Active CN106716379B (en) 2016-11-01 2016-11-01 Data processing method and device and terminal equipment

Country Status (2)

Country Link
CN (1) CN106716379B (en)
WO (1) WO2018081928A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963149A (en) * 2017-12-26 2019-07-02 安凯(广州)微电子技术有限公司 A kind of test method of video camera, test device and terminal device
CN109597813B (en) * 2018-11-28 2022-01-04 深圳市轱辘车联数据技术有限公司 Vehicle data processing method and device
CN111376255B (en) * 2018-12-29 2022-06-24 深圳市优必选科技有限公司 Robot data acquisition method and device and terminal equipment
CN110120983B (en) * 2019-06-14 2022-06-14 浪潮软件集团有限公司 Method and system for realizing SVN real-time synchronous backup based on inotify and rsync automatic installation and deployment
CN115412972B (en) * 2020-02-24 2023-10-20 荣耀终端有限公司 Data transmission method, device and system
CN113452525A (en) * 2021-06-29 2021-09-28 泉州市三川通讯技术有限公司 Mobile equipment remote revenue management control method and system
CN113884976B (en) * 2021-11-25 2022-10-14 安徽南瑞中天电力电子有限公司 Cloud platform based intelligent electric meter data protection method and system
CN117319383B (en) * 2023-11-30 2024-03-01 广东电网有限责任公司 File storage method, system, terminal equipment and storage medium based on Internet of things

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217401A (en) * 2008-01-10 2008-07-09 华为技术有限公司 Base station controller upgrade, backup method and device
CN102298651A (en) * 2010-06-23 2011-12-28 株式会社锦宫事务 Card information management device
CN103646077A (en) * 2013-12-11 2014-03-19 北京控制工程研究所 Efficient software data management method combining local working area with remote data server
WO2014181970A1 (en) * 2013-05-07 2014-11-13 주식회사 안랩 Method and apparatus for managing application data of portable terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217401A (en) * 2008-01-10 2008-07-09 华为技术有限公司 Base station controller upgrade, backup method and device
CN102298651A (en) * 2010-06-23 2011-12-28 株式会社锦宫事务 Card information management device
WO2014181970A1 (en) * 2013-05-07 2014-11-13 주식회사 안랩 Method and apparatus for managing application data of portable terminal
CN103646077A (en) * 2013-12-11 2014-03-19 北京控制工程研究所 Efficient software data management method combining local working area with remote data server

Also Published As

Publication number Publication date
WO2018081928A1 (en) 2018-05-11
CN106716379A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN106716379B (en) Data processing method and device and terminal equipment
CN104794014B (en) System operation method and intelligent terminal
CN111614490B (en) Management system and method for managed container cluster based on top-level container cluster
EP3073379B1 (en) Firmware recovery method, device and terminal
CN106951335B (en) Process daemon method and mobile terminal
EP2997468B1 (en) Kiosk application mode for operating system
CN105867925A (en) Shortcut establishing method and electronic device
CN108874585B (en) File backup method, device and system
CN104023154A (en) Debug system
CN111708557B (en) Method, device and storage medium for updating configuration file
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN109800135B (en) Information processing method and terminal
CN104168309A (en) Data backup and operation method based on cloud service
US20210271491A1 (en) Application processing method, device, electronic device and storage medium
CN112596951A (en) NAS data disaster tolerance method, device, equipment and storage medium
CN102110029A (en) System backup and restoration method
US10409577B2 (en) Hybrid application delivery that combines download and remote access
CN111708603A (en) Method and device for protecting Openstack cloud host data in real time
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN111209559A (en) Permission processing method and device of application program, storage medium and electronic equipment
JP2014178806A (en) Server device, update system, update method and program
US10805182B2 (en) Provisioner disaster-recovery framework for platform-as-a-service offering
KR101196748B1 (en) Data backup method in mobile telecommunication terminal equipment
WO2011117954A1 (en) Virtual machine management device, virtual machine management method, and program
WO2023221002A1 (en) Ota-based system updating method and apparatus, electronic device, and storage medium

Legal Events

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