WO2019024641A1 - 数据同步方法、装置、存储介质以及电子设备 - Google Patents

数据同步方法、装置、存储介质以及电子设备 Download PDF

Info

Publication number
WO2019024641A1
WO2019024641A1 PCT/CN2018/094231 CN2018094231W WO2019024641A1 WO 2019024641 A1 WO2019024641 A1 WO 2019024641A1 CN 2018094231 W CN2018094231 W CN 2018094231W WO 2019024641 A1 WO2019024641 A1 WO 2019024641A1
Authority
WO
WIPO (PCT)
Prior art keywords
target application
synchronization
preset
data synchronization
application
Prior art date
Application number
PCT/CN2018/094231
Other languages
English (en)
French (fr)
Inventor
杜冰
林志泳
张俊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019024641A1 publication Critical patent/WO2019024641A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a data synchronization method, apparatus, storage medium, and electronic device.
  • the mobile terminal side when the mobile terminal side needs to acquire data in the cloud server, or needs to synchronize the data of the mobile terminal side to the cloud server, it is required to log in to the cloud account, and then upload or download data through the cloud account to implement the cloud server and Data synchronization of the mobile terminal.
  • the actual operating state of the mobile terminal is affected by many factors, in the case of poor running conditions, it is impossible to ensure that all applications that need to be synchronized can complete the data synchronization operation, so how to control the applications that need to be synchronized is particularly important.
  • the present application provides a data synchronization method, device, storage medium, and electronic device, which can flexibly control the synchronization operation of a background application in a case where the electronic device has a poor running state.
  • the embodiment of the present application provides a data synchronization method, including:
  • the target application is controlled to perform data synchronization according to the network speed, where the first preset threshold is smaller than the second preset threshold.
  • the embodiment of the present application further provides a data synchronization apparatus, including:
  • a first acquiring module configured to acquire an application to be synchronized in the electronic device
  • a determining module configured to determine a target application from the to-be-synchronized application by using a preset application whitelist
  • a second acquiring module configured to acquire a current network speed and a power value of the electronic device
  • a first control module configured to: when the power quantity is greater than the first preset threshold and less than the second preset threshold, control the target application to perform data synchronization according to the network speed, where the first preset threshold is smaller than the first Two preset thresholds.
  • the embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute any one of the foregoing data synchronization methods.
  • the embodiment of the present application further provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to perform the following steps:
  • a first acquiring module configured to acquire an application to be synchronized in the electronic device
  • a determining module configured to determine a target application from the to-be-synchronized application by using a preset application whitelist
  • a second acquiring module configured to acquire a current network speed and a power value of the electronic device
  • a first control module configured to: when the power quantity is greater than the first preset threshold and less than the second preset threshold, control the target application to perform data synchronization according to the network speed, where the first preset threshold is smaller than the first Two preset thresholds.
  • FIG. 1 is a schematic diagram of an application scenario of a data synchronization system according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a data synchronization method according to an embodiment of the present application
  • FIG. 3 is another schematic flowchart of a data synchronization method according to an embodiment of the present disclosure
  • step S206 is a schematic flowchart of step S206 according to an embodiment of the present application.
  • FIG. 5 is another schematic flowchart of step S206 according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a data synchronization apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a first control module according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a synchronization submodule according to an embodiment of the present application.
  • FIG. 9 is another schematic structural diagram of a data synchronization apparatus according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • Embodiments of the present application provide a data synchronization method, apparatus, storage medium, electronic device, and system.
  • FIG. 1 is an application scenario diagram of a data synchronization system, which may include any of the electronic devices provided by the present application.
  • the electronic device can obtain the application to be synchronized; determine the target application from the to-be-synchronized application by using the preset application whitelist; obtain the current network speed and the power value of the electronic device; and when the power value is greater than the first preset threshold When the second preset threshold is smaller, the target application is controlled to perform data synchronization according to the network speed, where the first preset threshold is smaller than the second preset threshold.
  • the data synchronization system can also include a server that can transmit the synchronization data to the electronic device for data synchronization by the electronic device.
  • the preset application whitelist may be an application name that allows synchronization.
  • the preset application whitelist may be used to filter out the synchronization.
  • the application then further controls the data synchronization of the application allowing synchronization according to the current network speed and power, such as allowing all applications to synchronize, or allowing a part of the application to synchronize, etc., in the process, when the electronic device determines that data synchronization is to be performed,
  • the server can provide synchronization data to the electronic device.
  • a data synchronization device which may be implemented as a separate entity or integrated in an electronic device, such as a terminal, which may include a mobile phone, a tablet computer, and a personal computer. Wait.
  • An embodiment of the present application provides a data synchronization method, including the following steps:
  • the target application is controlled to perform data synchronization according to the network speed, where the first preset threshold is smaller than the second preset threshold.
  • the controlling the target application for data synchronization according to the network speed comprises:
  • controlling the target application for data synchronization according to the network speed and the amount of data to be synchronized includes:
  • the target application at the last preset position in the sort result is prohibited from performing data synchronization.
  • the sorting the target application according to the synchronization duration includes:
  • the target applications are sorted in descending order of the synchronization recommendation.
  • the sorting the target application according to the synchronization duration includes:
  • the target applications are sorted in descending order of adjusted preset priorities.
  • the method further includes:
  • the target application is allowed to perform data synchronization
  • the target application is prohibited from performing data synchronization.
  • the method further includes:
  • the data synchronization method can be applied to an electronic device, and the specific process can be as follows:
  • the application when the electronic device receives the synchronization request sent by the application installed therein, the application may be determined as the application to be synchronized.
  • the to-be-synchronized application may be a period-synchronized application or an aperiodic-synchronized application.
  • the application whitelist is mainly used to store the name of the application that can be allowed to be synchronized, and may be provided by an electronic device manufacturer or a server, or may be set by the user, and the application white list is mainly used to filter out some A vicious application of self-starting updates.
  • the application to be synchronized can be matched with the application on the application whitelist, and the successfully matched application is determined as the target application.
  • the electronic device since the data synchronization requires the support of the electronic device network and the power, when the power is low or the network is poor, the electronic device may not be able to synchronize all the target applications, so when the target application that can be synchronized is determined, Further detecting the network speed and power value of the electronic device, and further controlling the target application according to the network speed and the power value. For example, when the network is poor or the power is low, all synchronization operations can be prohibited. When the network is good and the power is sufficient, all synchronization operations can be allowed. ,and many more.
  • the first preset threshold and the second preset threshold may be set in advance according to actual requirements.
  • the first preset threshold is used to define whether the electronic device is in a low battery state, for example, 20%.
  • the second preset threshold is mainly used to define whether the electronic device is in a high power state, such as 60%.
  • the electronic device may not need to limit the synchronous operation of the target application, but in the case of low power, for example, the power value is lower than the first preset.
  • the threshold is set, in order to avoid automatic power-off caused by excessive power consumption, the electronic device should prohibit the synchronous operation of the target application.
  • the electronic device can further limit according to the network speed.
  • the foregoing step S104 may specifically include:
  • the preset speed is mainly used to define whether the network is in a poor state, which may be equal to 0, or a smaller value.
  • a poor state which may be equal to 0, or a smaller value.
  • data synchronization can be prohibited to reduce network occupancy, while in other network situations, only limited
  • a part of the target application may perform data synchronization, and specific target data may be determined according to the amount of data to be synchronized of each target application.
  • the above step “controls the target application according to the network speed and the amount of data to be synchronized. Synchronization can include:
  • the synchronization duration may be a quotient of the amount of data to be synchronized and the network speed. Generally, for the same network speed, the larger the amount of data to be synchronized, the longer the synchronization duration required, and the amount of power to be lost. more.
  • the target application may be directly sorted according to the synchronization duration, for example, the target application is sorted according to the synchronization duration from short to long, and may also be sorted according to other factors, such as the running frequency and priority of the target application.
  • the specifics can be determined according to the actual situation.
  • the foregoing step 1-2 may specifically include:
  • the target applications are sorted in descending order of the synchronization recommendation.
  • the synchronization recommendation degree mainly refers to the degree of tendency of the recommended target application to perform data synchronization. Since different applications have different importance to users, the importance can be reflected by the historical running frequency of the application. For example, the higher the historical running frequency, the more frequently the user uses the application, and the more important the application is to the user. Specifically, the historical running frequency and the weighting ratio of the synchronization duration may be set in advance, such as 1:1, or 2:1, and then the synchronous recommendation degree is calculated according to the weight ratio.
  • the foregoing step 1-2 may specifically include:
  • the target applications are sorted in descending order of adjusted preset priorities.
  • the preset priority may be set in advance according to the application type or the security level.
  • the preset priority of the application of the system application or the security level may be set higher, the video playing application or the security level.
  • the low priority of the application is set lower, and so on.
  • the target application at the last preset position in the sorting result is prohibited from performing data synchronization.
  • the preset bit may be determined according to actual conditions, such as 3 bits or 4 bits. Since the order of the target application is related to the synchronization duration, and the longer the ranking is, the longer the synchronization time is, the easier it is to consume power. Therefore, in the case of low power, in order to achieve data synchronization of many target applications as much as possible, Consider closing the target application behind the ranking so that the data synchronization of the top target application can proceed smoothly.
  • the data synchronization method may further include:
  • the target application is allowed to perform data synchronization
  • the target application is prohibited from performing data synchronization.
  • the data synchronization of all the target applications can be prohibited to minimize the power consumption, and if the electronic device is in the charging state, all the targets can be directly allowed.
  • the data synchronization of the application can also be other control methods, which can be determined according to actual needs.
  • the data synchronization method provided in this embodiment is applied to an electronic device, and the target application is determined from the to-be-synchronized application by acquiring a to-be-synchronized application, and then acquiring the current application of the electronic device.
  • the data synchronization device is specifically integrated into the electronic device as an example for detailed description.
  • a data synchronization method may be as follows:
  • the electronic device acquires an application to be synchronized.
  • the application when the electronic device receives the synchronization request sent by the application installed therein, the application may be determined as the application to be synchronized.
  • the application to be synchronized may be an application of periodic synchronization or an application of non-periodic synchronization.
  • the application to be synchronized may include ⁇ qq, WeChat, Weibo... Baidu Library ⁇ .
  • the electronic device determines the target application from the to-be-synchronized application by using a preset application whitelist.
  • the application whitelist is mainly used to store the name of an application that can be allowed to be synchronized, which may be provided by an electronic device manufacturer or a server, or may be set by a user, and the application whitelist is mainly used to filter out some self-starting updates.
  • the vicious application Specifically, the application to be synchronized can be matched with the application on the application whitelist, and the successfully matched application is determined to be the target application. For example, if the application whitelist includes WeChat or Weibo, the application to be synchronized can be synchronized ⁇ qq, WeChat. WeChat and Weibo in Weibo... Baidu Library are identified as target applications.
  • the electronic device acquires a current network speed and a power value of the electronic device.
  • the electronic device may not be able to synchronize all target applications, so when the target application that can be synchronized is determined, the electronic device can be further detected.
  • the network speed and power value of the device further control the target application according to the network speed and the power value. For example, when the network is poor or the power is low, all synchronization operations can be prohibited. When the network is good and the power is sufficient, all synchronization operations can be allowed, etc. .
  • step S204 When the power value is greater than the first preset threshold and less than the second preset threshold, the electronic device determines whether the network speed does not exceed the preset speed. If yes, the target application may be prohibited from performing data synchronization, and if not, The following step S205 can be performed.
  • the first preset threshold may be 20%
  • the second preset threshold may be 60%
  • the preset speed may be 10 kb/s.
  • the power value of the electronic device is 35%, that is, between 20% and 60%
  • the network state of the electronic device can be further detected. If the network state is poor, data synchronization may not be performed.
  • the electronic device acquires the amount of data to be synchronized for each target application, and calculates a synchronization duration of each target application according to the network speed and the amount of data to be synchronized.
  • the synchronization duration may be a quotient of the amount of data to be synchronized and the network speed.
  • the larger the amount of data to be synchronized the longer the synchronization duration required, and the more power to be lost.
  • the electronic device sorts the target application according to the synchronization duration to obtain a sort result.
  • the target application may be directly sorted according to the synchronization duration, for example, the target application is sorted according to the synchronization duration from short to long, and may also be sorted according to other factors, such as the running frequency and priority of the target application.
  • the specifics can be determined according to the actual situation.
  • step S206 may specifically include:
  • S2062A Calculate a synchronization recommendation degree of the corresponding target application according to each historical running frequency and synchronization duration;
  • S2063A sorts the target application according to the synchronization recommendation degree in descending order.
  • the historical running frequency and the weighting ratio of the synchronization duration may be set in advance, such as 1:1, or 2:1, and then the synchronization recommendation degree is calculated according to the weight ratio.
  • the synchronization recommendation may be calculated according to the formula a*M+b*N. Degree, where a and b are weight ratios, M is the historical running frequency, and N is the synchronization duration.
  • step S206 may specifically include:
  • S2061B Obtain a preset priority of each target application.
  • the preset priority of the target application whose synchronization duration is less than the first preset duration is raised, and the preset priority of the target application whose synchronization duration is greater than the second preset duration is decreased, and the first preset duration is smaller than the first preset duration Two preset durations;
  • S2063B sorts the target application according to the adjusted preset priority from highest to lowest.
  • the preset priority may be set in advance according to the application type or the security level.
  • the preset priority of the application of the system application or the security level may be set higher, the video playing application or the security level.
  • the low priority of the application is set lower, and so on.
  • the electronic device prohibits the target application located at the last preset position in the sorting result from performing data synchronization.
  • the preset bit can be 3 bits. Since the order of the target application is related to the synchronization duration, and the later the application is ranked, the longer the synchronization time is, the easier it is to consume power. Therefore, in the case of low power, Try to achieve data synchronization for more target applications. You can consider closing the target application behind the ranking, so that the data synchronization of the target application can be smoothly performed.
  • the electronic device detects whether it is in a charging state. If yes, the target application may be allowed to perform data synchronization. If not, the target application may be prohibited from performing data synchronization.
  • the electronic device when the power value is lower than 20%, the electronic device is in a low battery state. At this time, if the user can perform charging in time, there is no need to limit the synchronization operation of the target application, otherwise, the automatic consumption is avoided in order to avoid excessive power consumption. When turned off, the electronic device can prohibit all target applications from synchronizing data.
  • the data synchronization method provided by the embodiment, wherein the electronic device can obtain the application to be synchronized, and determine the target application from the to-be-synchronized application by using the preset application white list, and then, when the power value is greater than the first When the threshold is set and is less than the second preset threshold, it is determined whether the network speed does not exceed the preset speed.
  • the target application is prohibited from performing data synchronization, and if not, the amount of data to be synchronized for each target application is obtained, and according to Calculating the synchronization duration of each target application according to the network speed and the amount of data to be synchronized, and then sorting the target application according to the synchronization duration to obtain a sorting result, and prohibiting the target application at the last preset position in the sorting result from performing data Synchronization, at the same time, when the power value is less than or equal to the first preset threshold, the electronic device detects whether it is in a charging state, and if so, allows the target application to perform data synchronization, and if not, prohibits the target application from performing data synchronization. Synchronization, so that the data of the background application can be flexibly controlled according to the actual operation of the electronic device.
  • the method is simple, can save power consumption, but also ensures cycle synchronization can perform normal, good synchronization effect.
  • the present embodiment will be further described from the perspective of a data synchronizing apparatus which can be integrated in an electronic device.
  • the embodiment of the present application provides a data synchronization apparatus, including:
  • a first acquiring module configured to acquire an application to be synchronized in the electronic device
  • a determining module configured to determine a target application from the to-be-synchronized application by using a preset application whitelist
  • a second acquiring module configured to acquire a current network speed and a power value of the electronic device
  • the first control module is configured to control the target application to perform data synchronization according to the network speed when the power value is greater than the first preset threshold and less than the second preset threshold, where the first preset threshold is less than the second preset threshold .
  • the first control module specifically includes:
  • a determining submodule configured to determine whether the network speed does not exceed a preset speed
  • the sub-module is prohibited, and if so, the target application is prohibited from performing data synchronization;
  • the synchronization sub-module is configured to: if not, acquire the amount of data to be synchronized for each target application; and control the target application to perform data synchronization according to the network speed and the amount of data to be synchronized.
  • the synchronization submodule specifically includes:
  • a calculating unit configured to calculate a synchronization duration of each target application according to the network speed and the amount of data to be synchronized
  • a sorting unit configured to sort the target application according to the synchronization duration to obtain a sorting result
  • the prohibition unit is configured to prohibit the target application located at the last preset position in the sorting result from performing data synchronization.
  • the sorting unit is specifically configured to:
  • the target applications are sorted in descending order of the synchronization recommendation.
  • the sorting unit is specifically configured to:
  • the target applications are sorted in descending order of adjusted preset priorities.
  • a second control module is further included for:
  • the second acquisition module acquires the current network speed and the power value of the electronic device, when the power value is less than or equal to the first preset threshold, detecting whether the electronic device is in a charging state;
  • the target application is allowed to perform data synchronization
  • the target application is prohibited from performing data synchronization.
  • the first control module is further configured to:
  • FIG. 6 specifically describes a data synchronization apparatus according to an embodiment of the present application, which is applied to an electronic device, and may include: a first obtaining module 10, a determining module 20, a second acquiring module 30, and a first control module 40. ,among them:
  • the first obtaining module 10 is configured to acquire an application to be synchronized in the electronic device.
  • the application when the electronic device receives the synchronization request sent by the application installed therein, the application may be determined as the application to be synchronized.
  • the to-be-synchronized application may be a period-synchronized application or an aperiodic-synchronized application.
  • the determining module 20 is configured to determine a target application from the to-be-synchronized application by using a preset application whitelist.
  • the application whitelist is mainly used to store the name of the application that can be allowed to be synchronized, and may be provided by an electronic device manufacturer or a server, or may be set by the user, and the application white list is mainly used to filter out some A vicious application of self-starting updates.
  • the determining module 20 may match the application to be synchronized with the application on the application whitelist, and determine the successfully matched application as the target application.
  • the second obtaining module 30 is configured to obtain a current network speed and a power value of the electronic device.
  • the first The second obtaining module 30 can further detect the network speed and the power value of the electronic device, and further control the target application according to the network speed and the power value. For example, when the network is poor or the power is low, all synchronization operations can be prohibited. When the network is good and the power is sufficient, Can allow all synchronization operations, and so on.
  • the first control module 40 is configured to control the target application to perform data synchronization according to the network speed when the power value is greater than the first preset threshold and less than the second preset threshold, where the first preset threshold is smaller than the second preset Threshold.
  • the first preset threshold and the second preset threshold may be set in advance according to actual requirements.
  • the first preset threshold is used to define whether the electronic device is in a low battery state, for example, 20%.
  • the second preset threshold is mainly used to define whether the electronic device is in a high power state, such as 60%.
  • the electronic device may not need to limit the synchronous operation of the target application, but in the case of low power, for example, the power value is lower than the first preset.
  • the threshold is set, in order to avoid automatic power-off caused by excessive power consumption, the electronic device should prohibit the synchronous operation of the target application.
  • the electronic device can further limit according to the network speed.
  • the first control module 40 may specifically include:
  • the sub-module 42 is disabled, and if so, the target application is prohibited from performing data synchronization;
  • the synchronization sub-module 43 is configured to: if not, acquire an amount of data to be synchronized for each target application; and control the target application to perform data synchronization according to the network speed and the amount of data to be synchronized.
  • the preset speed is mainly used to define whether the network is in a poor state, which may be equal to 0, or a smaller value.
  • the power is not sufficient, if the network is poor, in order to ensure that other applications can receive network data normally, data synchronization can be prohibited to reduce network occupancy, while in other network situations, only limited
  • the synchronization sub-module 43 may specifically include a computing unit 431, and the sorting may be performed according to the amount of data to be synchronized for each target application.
  • the calculating unit 431 is configured to calculate a synchronization duration of each target application according to the network speed and the amount of data to be synchronized.
  • the synchronization duration may be a quotient of the amount of data to be synchronized and the network speed. Generally, for the same network speed, the larger the amount of data to be synchronized, the longer the synchronization duration required, and the amount of power to be lost. more.
  • a sorting unit 432 configured to sort the target application according to the synchronization duration to obtain a sorting result
  • the sorting unit 432 can directly sort the target application according to the synchronization duration, for example, sorting the target application according to the synchronization duration from short to long, or combining other factors, such as the running frequency and priority of the target application. Sorting, depending on the actual situation.
  • the sorting unit 432 can be specifically configured to:
  • the target applications are sorted in descending order of the synchronization recommendation.
  • the synchronization recommendation degree mainly refers to the degree of tendency of the recommended target application to perform data synchronization. Since different applications have different importance to users, the importance can be reflected by the historical running frequency of the application. For example, the higher the historical running frequency, the more frequently the user uses the application, and the more important the application is to the user. Specifically, the historical running frequency and the weighting ratio of the synchronization duration may be set in advance, such as 1:1, or 2:1, and then the synchronous recommendation degree is calculated according to the weight ratio.
  • the sorting unit 432 can be specifically used to:
  • the target applications are sorted in descending order of adjusted preset priorities.
  • the preset priority may be set in advance according to the application type or the security level.
  • the preset priority of the application of the system application or the security level may be set higher, the video playing application or the security level.
  • the low priority of the application is set lower, and so on.
  • the prohibiting unit 433 is configured to prohibit the target application located at the last preset position in the sorting result from performing data synchronization.
  • the preset bit may be determined according to actual conditions, such as 3 bits or 4 bits. Since the order of the target application is related to the synchronization duration, and the longer the ranking is, the longer the synchronization time is, the easier it is to consume power. Therefore, in the case of low power, in order to achieve data synchronization of many target applications as much as possible, Consider closing the target application behind the ranking so that the data synchronization of the top target application can proceed smoothly.
  • the data synchronization device may further include a second control module 50, configured to:
  • the second acquisition module 30 acquires the current network speed and the power value of the electronic device, when the power value is less than or equal to the first preset threshold, detecting whether the electronic device is in a charging state;
  • the target application is allowed to perform data synchronization
  • the target application is prohibited from performing data synchronization.
  • the second control module 50 can prohibit data synchronization of all target applications to minimize power consumption, and if the electronic device is in a charging state, It can directly allow data synchronization of all target applications.
  • it can also be other control methods, which can be determined according to actual needs.
  • the foregoing units may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing method embodiments and details are not described herein.
  • the data synchronization device acquires the application to be synchronized through the first obtaining module 10, and the determining module 20 determines the target application from the to-be-synchronized application by using the preset application whitelist, and then the second acquiring module.
  • the power value is greater than a first preset threshold and less than a second preset threshold
  • the first control module 40 controls the target application to perform data synchronization according to the network speed.
  • the first preset threshold is smaller than the second preset threshold, so that the data synchronization of the background application can be flexibly controlled according to the actual running condition of the electronic device, and the method is simple and the synchronization effect is good.
  • the embodiment of the present application further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
  • the target application is controlled to perform data synchronization according to the network speed, where the first preset threshold is smaller than the second preset threshold.
  • the embodiment of the present application further provides an electronic device, which may be a device such as a smart phone or a tablet computer.
  • the electronic device 600 includes a processor 601, a memory 602, a display screen 603, and a control circuit 604.
  • the processor 601 is electrically connected to the memory 602, the display screen 603, and the control circuit 604, respectively.
  • the processor 601 is a control center of the electronic device 600, which connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 602, and calling data stored in the memory 602.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • the processor 601 in the electronic device 600 loads the instructions corresponding to the process of one or more applications into the memory 602 according to the following steps, and is stored in the memory 602 by the processor 601.
  • the application thus implementing various functions:
  • the target application is controlled to perform data synchronization according to the network speed, where the first preset threshold is smaller than the second preset threshold.
  • the processor when the target application is controlled for data synchronization according to the network speed, the processor is configured to perform the following steps:
  • the processor when the target application is controlled for data synchronization according to the network speed and the amount of data to be synchronized, the processor is configured to perform the following steps:
  • the target application at the last preset position in the sort result is prohibited from performing data synchronization.
  • the processor when the target application is sorted according to the synchronization duration, the processor is configured to perform the following steps:
  • the target applications are sorted in descending order of the synchronization recommendation.
  • the processor when the target application is sorted according to the synchronization duration, the processor is configured to perform the following steps:
  • the target applications are sorted in descending order of adjusted preset priorities.
  • the processor is further configured to perform the following steps:
  • the target application is allowed to perform data synchronization
  • the target application is prohibited from performing data synchronization.
  • the processor is further configured to perform the following steps:
  • Memory 602 can be used to store applications and data.
  • the application stored in the memory 602 contains instructions executable in the processor.
  • Applications can form various functional modules.
  • the processor 601 executes various functional applications and data processing by running an application stored in the memory 602.
  • the display screen 603 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the terminal, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 604 is electrically connected to the display screen 603 for controlling the display screen 603 to display information.
  • the electronic device 600 further includes: a radio frequency circuit 605, an input unit 606, an audio circuit 607, a sensor 608, and a power source 609.
  • the processor 601 is electrically connected to the radio frequency circuit 605, the input unit 606, the audio circuit 607, the sensor 608, and the power source 609, respectively.
  • the radio frequency circuit 605 is used for transmitting and receiving radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the input unit 606 can be configured to receive input numbers, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
  • the input unit 606 can include a fingerprint identification module.
  • the audio circuit 607 can provide an audio interface between the user and the terminal through a speaker and a microphone.
  • Electronic device 600 may also include at least one type of sensor 608, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and/or the backlight when the terminal moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • Power source 609 is used to power various components of electronic device 600.
  • the power supply 609 can be logically coupled to the processor 601 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 600 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the electronic device obtained by the embodiment of the present application obtains a target application from the to-be-synchronized application by acquiring a to-be-synchronized application, and then acquiring a current network speed and a power value of the electronic device, and When the power value is greater than the first preset threshold and is less than the second preset threshold, the target application is controlled to perform data synchronization according to the network speed, and the first preset threshold is smaller than the second preset threshold, so that the actual operation of the electronic device can be performed according to the actual operation of the electronic device.
  • the situation is flexible to control the data synchronization of the background application, the method is simple, and the synchronization effect is good.
  • the storage medium may include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.

Abstract

一种数据同步方法、装置、存储介质以及电子设备,包括:获取所述电子设备中的待同步应用;利用预设的应用白名单从所述待同步应用中确定目标应用;获取所述电子设备当前的网络速度和电量值;当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所述网络速度控制所述目标应用进行数据同步。

Description

数据同步方法、装置、存储介质以及电子设备
本申请要求于2017年7月31日提交中国专利局、申请号为201710643091.4、发明名称为“数据同步方法、装置、存储介质以及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种数据同步方法、装置、存储介质以及电子设备。
背景技术
随着网络技术的发展,云端大数据、云备份以及云同步等技术的使用越来越普遍。
相关技术中,当移动终端侧需要获取云端服务器中的数据,或者需要将移动终端侧数据同步至云端服务器时,需要登陆云账号,然后通过云账号进行数据的上传或下载,以实现云服务器和移动终端的数据同步。但是,由于移动终端的实际运行状态受很多因素的影响,而在运行状态差的情况下,无法保证所有需要同步的应用都能完成数据同步操作,故如何对需要同步的应用进行管控就显得尤其重要。
发明内容
本申请提供一种数据同步方法、装置、存储介质以及电子设备,能在电子设备运行状态差的情况下,灵活管控后台应用的同步操作。
本申请实施例提供了一种数据同步方法,包括:
获取所述电子设备中的待同步应用;
利用预设的应用白名单从所述待同步应用中确定目标应用;
获取所述电子设备当前的网络速度和电量值;
当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所述网络速度控制所述目标应用进行数据同步,所述第一预设阈值小于第二预设阈值。
本申请实施例还提供了一种数据同步装置,包括:
第一获取模块,用于获取所述电子设备中的待同步应用;
确定模块,用于利用预设的应用白名单从所述待同步应用中确定目标应用;
第二获取模块,用于获取所述电子设备当前的网络速度和电量值;
第一控制模块,用于当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所 述网络速度控制所述目标应用进行数据同步,所述第一预设阈值小于第二预设阈值。
本申请实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一项数据同步方法。
本申请实施例还提供了一种电子设备,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:
第一获取模块,用于获取所述电子设备中的待同步应用;
确定模块,用于利用预设的应用白名单从所述待同步应用中确定目标应用;
第二获取模块,用于获取所述电子设备当前的网络速度和电量值;
第一控制模块,用于当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所述网络速度控制所述目标应用进行数据同步,所述第一预设阈值小于第二预设阈值。
附图说明
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。
图1为本申请实施例提供的数据同步系统的应用场景示意图;
图2为本申请实施例提供的数据同步方法的流程示意图;
图3为本申请实施例提供的数据同步方法的另一流程示意图;
图4为本申请实施例提供的步骤S206的流程示意图;
图5为本申请实施例提供的步骤S206的另一流程示意图;
图6为本申请实施例提供的数据同步装置的结构示意图;
图7为本申请实施例提供的第一控制模块的结构示意图;
图8为本申请实施例提供的同步子模块的结构示意图;
图9为本申请实施例提供的数据同步装置的另一结构示意图;
图10为本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供一种数据同步方法、装置、存储介质、电子设备以及系统。
请参阅图1,图1为数据同步系统的应用场景图,该数据同步系统可以包括本申请提供的任一种电子设备。
其中,电子设备可以获取待同步应用;利用预设的应用白名单从该待同步应用中确定目标应用;获取该电子设备当前的网络速度和电量值;当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
该数据同步系统还可以包括服务器,该服务器可以将同步数据发送至电子设备,以供电子设备进行数据同步。
比如,该预设的应用白名单中存储的可以是允许进行同步的应用名,当电子设备中存在某些应用需要进行数据同步时,可以先利用预设的应用白名单过滤掉不允许同步的应用,然后再根据当前网络速度和电量进一步控制允许同步的应用进行数据同步,比如允许全部应用同步,或者允许一部分应用同步,等等,在这个过程中,当电子设备确定要进行数据同步时,服务器可以向电子设备提供同步数据。
本实施例将从数据同步装置的角度进行描述,该数据同步装置具体可以作为独立的实体来实现,也可以集成在电子设备,比如终端中来实现,该终端可以包括手机、平板电脑以及个人计算机等。
本申请实施例提供了一种数据同步方法,包括以下步骤:
获取该电子设备中的待同步应用;
利用预设的应用白名单从该待同步应用中确定目标应用;
获取该电子设备当前的网络速度和电量值;
当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
在一些实施例中,该根据该网络速度控制该目标应用进行数据同步,包括:
判断该网络速度是否不超过预设速度;
若是,则禁止该目标应用进行数据同步;
若否,则获取每一目标应用的待同步数据量;根据该网络速度和待同步数据量控制该目标应用进行数据同步。
在一些实施例中,该根据该网络速度和待同步数据量控制该目标应用进行数据同步,包括:
根据该网络速度和待同步数据量计算每一目标应用的同步时长;
根据该同步时长对该目标应用进行排序,得到排序结果;
禁止该排序结果中位于末尾预设位的目标应用进行数据同步。
在一些实施例中,该根据该同步时长对该目标应用进行排序,包括:
获取每一目标应用的历史运行频率;
根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
按照该同步推荐度从大到小的顺序对该目标应用进行排序。
在一些实施例中,该根据该同步时长对该目标应用进行排序,包括:
获取每一目标应用的预设优先级;
将该同步时长小于第一预设时长的目标应用的预设优先级上调,将该同步时长大于第二预设时长的目标应用的预设优先级下调,该第一预设时长小于第二预设时长;
按照调整后的预设优先级从高到低的顺序对该目标应用进行排序。
在一些实施例中,在获取该电子设备当前的网络速度和电量值之后,还包括:
当该电量值小于或等于该第一预设阈值时,检测该电子设备是否处于充电状态;
若是,则允许该目标应用进行数据同步;
若否,则禁止该目标应用进行数据同步。
在一些实施例中,在获取该电子设备当前的网络速度和电量值之后,还包括:
当该电量值低于第一预设阈值时,禁止所有目标应用进行数据同步;
当该电量值高于第二预设阈值时,允许所有目标应用进行数据同步。
如图2所示,该数据同步方法可以应用于电子设备,其具体流程可以如下:
S101、获取该电子设备中的待同步应用。
本实施例中,当电子设备接收到了其内安装的应用所发送的同步请求时,可以将该应用确定为待同步应用。该待同步应用可以是周期同步的应用,也可以是非周期同步的应用。
S102、利用预设的应用白名单从该待同步应用中确定目标应用。
本实施例中,该应用白名单主要用于存储可以允许同步的应用的名称,其可以是电子设备厂商或服务器提供的,也可以是用户自行设置的,该应用白名单主要用于过滤掉一些自启更新的恶性应用。具体的,可以将待同步应用与应用白名单上的应用进行匹配,将匹配成功的应用确定为目标应用。
S103、获取该电子设备当前的网络速度和电量值。
本实施例中,由于数据同步需要电子设备网络和电量的支持,当电量低或者网络差的时候,电子设备可能无法实现所有目标应用的同步,故当确定出了可以同步的目标应用时, 可以进一步检测电子设备的网络速度和电量值,根据网络速度和电量值对目标应用做进一步控制,比如网络差或电量低时,可以禁止一切同步操作,网络良好且电量充足时,可以允许一切同步操作,等等。
S104、当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
本实施例中,该第一预设阈值和第二预设阈值可以根据实际需求提前设定好,该第一预设阈值主要用于界定电子设备是否处于低电量状态,比如20%,该第二预设阈值主要用于界定电子设备是否处于高电量状态,比如60%。通常,在高电量的情况下,比如电量值高于第二预设阈值时,电子设备可以无需对目标应用的同步操作进行限制,而在低电量的情况下,比如电量值低于第一预设阈值时,为避免电量消耗过快导致自动关机,电子设备应该禁止目标应用的同步操作,当然,在电量不高不低的情况下,电子设备则可以进一步根据网速来限制,此时,上述步骤S104具体可以包括:
判断该网络速度是否不超过预设速度;
若是,则禁止该目标应用进行数据同步;
若否,则获取每一目标应用的待同步数据量;根据该网络速度和待同步数据量控制该目标应用进行数据同步。
本实施例中,该预设速度主要用于界定网络是否处于较差状态,其可以等于0,或者是一个较小的数值。通常,在电量不是很充足时,若网络较差,为保证其他应用还能正常接收网络数据,则可以禁止数据同步,以减小网络占用率,而在其他网络情况下,则可以只需限制一部分目标应用进行数据同步即可,具体可以根据每个目标应用的待同步数据量来确定需要禁止哪些目标应用,此时,上述步骤“根据该网络速度和待同步数据量控制该目标应用进行数据同步”可以包括:
1-1、根据该网络速度和待同步数据量计算每一目标应用的同步时长。
本实施例中,该同步时长可以为待同步数据量和网络速度的商值,通常,对于同一网络速度来说,待同步数据量越大,所需的同步时长越长,所要损耗的电量也越多。
1-2、根据该同步时长对该目标应用进行排序,得到排序结果。
本实施例中,可以直接根据同步时长对目标应用排序,比如按照同步时长从短到长对目标应用进行排序,也可以结合其他因素,比如目标应用的运行频率和优先级等对其进行排序,具体可以根据实际情况而定。
例如,当结合运行频率对目标应用进行排序时,上述步骤1-2具体可以包括:
获取每一目标应用的历史运行频率;
根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
按照该同步推荐度从大到小的顺序对该目标应用进行排序。
本实施例中,该同步推荐度主要指推荐目标应用进行数据同步的倾向程度。由于不同的应用对于用户的重要性不同,而该重要性又可以通过应用的历史运行频率体现出,比如,历史运行频率越高,表明用户越经常使用该应用,从而该应用对用户越重要。具体的,可以提前设置历史运行频率和同步时长的权重比例,比如1:1,或者2:1,然后根据权重比例计算同步推荐度。
例如,当结合优先级对目标应用进行排序时,上述步骤1-2具体可以包括:
获取每一目标应用的预设优先级;
将该同步时长小于第一预设时长的目标应用的预设优先级上调,将该同步时长大于第二预设时长的目标应用的预设优先级下调,该第一预设时长小于第二预设时长;
按照调整后的预设优先级从高到低的顺序对该目标应用进行排序。
本实施例中,该预设优先级可以根据应用类型或者安全等级而提前设定好,比如可以将系统应用或者安全等级高的应用的预设优先级设置得较高,视频播放应用或者安全等级低的应用的预设优先级设置得较低,等等。
1-3、禁止该排序结果中位于末尾预设位的目标应用进行数据同步。
本实施例中,该预设位可以根据实际情况而定,比如3位或者4位。由于目标应用的排序都和同步时长有关,且排位越靠后的应用其同步时长越长,越容易消耗电量,故在低电量的情况下,为尽量实现较多目标应用的数据同步,可以考虑将排位靠后的目标应用进行关闭,以便排位靠前的目标应用的数据同步可以顺利进行。
容易理解的是,并非只要电子设备电量过低(比如低于20%),就要禁止目标应用的同步操作,比如若用户能及时对电子设备进行充电,则可以无需担心因同步操作导致电量损失,也即,在上述步骤S103之后,该数据同步方法还可以包括:
当该电量值小于或等于该第一预设阈值时,检测该电子设备是否处于充电状态;
若是,则允许该目标应用进行数据同步;
若否,则禁止该目标应用进行数据同步。
本实施例中,当电子设备无法在低电量的情况下补充电量时,可以禁止所有目标应用的数据同步,以尽可能减少耗电量,而若电子设备处于充电状态,则可以直接允许所有目标应用的数据同步,当然,还可以是其他控制方式,具体可以根据实际需求而定。
由上述可知,本实施例提供的数据同步方法,应用于电子设备,通过获取待同步应用,并利用预设的应用白名单从该待同步应用中确定目标应用,之后,获取该电子设备当前的网络速度和电量值,并当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值,从而能根据电子设备的实际运行情况灵活的控制后台应用的数据同步,方法简单,同步效果好。
在本实施例中,将以该数据同步装置具体集成在电子设备中为例进行详细说明。
请参见图3,一种数据同步方法,具体流程可以如下:
S201、电子设备获取待同步应用。
譬如,当电子设备接收到了其内安装的应用所发送的同步请求时,可以将该应用确定为待同步应用。该待同步应用可以是周期同步的应用,也可以是非周期同步的应用,比如该待同步应用可以包括{qq、微信、微博…百度文库}。
S202、电子设备利用预设的应用白名单从该待同步应用中确定目标应用。
譬如,该应用白名单主要用于存储可以允许同步的应用的名称,其可以是电子设备厂商或服务器提供的,也可以是用户自行设置的,该应用白名单主要用于过滤掉一些自启更新的恶性应用。具体的,可以将待同步应用与应用白名单上的应用进行匹配,将匹配成功的应用确定为目标应用,比如若应用白名单上包括微信、微博,则可以将待同步应用{qq、微信、微博…百度文库}中的微信、微博确定为目标应用。
S203、电子设备获取该电子设备当前的网络速度和电量值。
譬如,由于数据同步需要电子设备网络和电量的支持,当电量低或者网络差的时候,电子设备可能无法实现所有目标应用的同步,故当确定出了可以同步的目标应用时,可以进一步检测电子设备的网络速度和电量值,根据网络速度和电量值对目标应用做进一步控制,比如网络差或电量低时,可以禁止一切同步操作,网络良好且电量充足时,可以允许一切同步操作,等等。
S204、当该电量值大于第一预设阈值且小于第二预设阈值时,电子设备判断该网络速度是否不超过预设速度,若是,则可以禁止该目标应用进行数据同步,若否,则可以执行下述步骤S205。
譬如,该第一预设阈值可以为20%,该第二预设阈值可以为60%,该预设速度可以为10kb/s。当电子设备的电量值为35%,也即在20%ˉ60%之间时,可以进一步检测电子设备的网络状态,若网络状态差,则可以不进行数据同步。
S205、电子设备获取每一目标应用的待同步数据量,并根据该网络速度和待同步数据 量计算每一目标应用的同步时长。
譬如,该同步时长可以为待同步数据量和网络速度的商值,通常,对于同一网络速度来说,待同步数据量越大,所需的同步时长越长,所要损耗的电量也越多。
S206、电子设备根据该同步时长对该目标应用进行排序,得到排序结果。
本实施例中,可以直接根据同步时长对目标应用排序,比如按照同步时长从短到长对目标应用进行排序,也可以结合其他因素,比如目标应用的运行频率和优先级等对其进行排序,具体可以根据实际情况而定。
例如,当结合运行频率对目标应用进行排序时,请参见图4,上述步骤S206具体可以包括:
S2061A、获取每一目标应用的历史运行频率;
S2062A、根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
S2063A、按照该同步推荐度从大到小的顺序对该目标应用进行排序。
本实施例中,由于不同的应用对于用户的重要性不同,而该重要性又可以通过应用的历史运行频率体现出,比如,历史运行频率越高,表明用户越经常使用该应用,从而该应用对用户越重要。具体的,可以提前设置历史运行频率和同步时长的权重比例,比如1:1,或者2:1,然后根据权重比例计算同步推荐度,比如可以按照公式a*M+b*N来计算同步推荐度,其中,a、b为权重比例,M为历史运行频率,N为同步时长。
例如,当结合优先级对目标应用进行排序时,请参见图5,上述步骤S206具体可以包括:
S2061B、获取每一目标应用的预设优先级;
S2062B、将该同步时长小于第一预设时长的目标应用的预设优先级上调,将该同步时长大于第二预设时长的目标应用的预设优先级下调,该第一预设时长小于第二预设时长;
S2063B、按照调整后的预设优先级从高到低的顺序对该目标应用进行排序。
本实施例中,该预设优先级可以根据应用类型或者安全等级而提前设定好,比如可以将系统应用或者安全等级高的应用的预设优先级设置得较高,视频播放应用或者安全等级低的应用的预设优先级设置得较低,等等。
S207、电子设备禁止该排序结果中位于末尾预设位的目标应用进行数据同步。
譬如,该预设位可以为3位,由于目标应用的排序都和同步时长有关,且排位越靠后的应用其同步时长越长,越容易消耗电量,故在低电量的情况下,为尽量实现较多目标应用的数据同步,可以考虑将排位靠后的目标应用进行关闭,以便排位靠前的目标应用的数 据同步可以顺利进行。
S208、当该电量值小于或等于第一预设阈值时,电子设备检测是否处于充电状态,若是,则可以允许该目标应用进行数据同步,若否,则可以禁止该目标应用进行数据同步。
譬如,由于电量值低于20%时,说明电子设备处于低电量状态,此时,若用户能及时进行充电,则无需对目标应用的同步操作进行限制,否则,为避免电量消耗过快导致自动关机,电子设备可以禁止所有目标应用进行数据同步。
由上述可知,本实施例提供的数据同步方法,其中电子设备可以获取待同步应用,并利用预设的应用白名单从该待同步应用中确定目标应用,接着,当该电量值大于第一预设阈值且小于第二预设阈值时,判断该网络速度是否不超过预设速度,若是,则禁止该目标应用进行数据同步,若否,则获取每一目标应用的待同步数据量,并根据该网络速度和待同步数据量计算每一目标应用的同步时长,接着,根据该同步时长对该目标应用进行排序,得到排序结果,并禁止该排序结果中位于末尾预设位的目标应用进行数据同步,与此同时,当该电量值小于或等于该第一预设阈值时,电子设备检测是否处于充电状态,若是,则允许该目标应用进行数据同步,若否,则禁止该目标应用进行数据同步,从而能根据电子设备的实际运行情况灵活的控制后台应用的数据同步,方法简单,既能节省功耗,又能保证周期同步能正常执行,同步效果好。
根据上述实施例所描述的方法,本实施例将从数据同步装置的角度进一步进行描述,该数据同步装置可以集成在电子设备中。
本申请实施例提供一种数据同步装置,包括:
第一获取模块,用于获取该电子设备中的待同步应用;
确定模块,用于利用预设的应用白名单从该待同步应用中确定目标应用;
第二获取模块,用于获取该电子设备当前的网络速度和电量值;
第一控制模块,用于当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
在一些实施例中,该第一控制模块具体包括:
判断子模块,用于判断该网络速度是否不超过预设速度;
禁止子模块,用于若是,则禁止该目标应用进行数据同步;
同步子模块,用于若否,则获取每一目标应用的待同步数据量;根据该网络速度和待同步数据量控制该目标应用进行数据同步。
在一些实施例中,该同步子模块具体包括:
计算单元,用于根据该网络速度和待同步数据量计算每一目标应用的同步时长;
排序单元,用于根据该同步时长对该目标应用进行排序,得到排序结果;
禁止单元,用于禁止该排序结果中位于末尾预设位的目标应用进行数据同步。
在一些实施例中,该排序单元具体用于:
获取每一目标应用的历史运行频率;
根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
按照该同步推荐度从大到小的顺序对该目标应用进行排序。
在一些实施例中,该排序单元具体用于:
获取每一目标应用的预设优先级;
将该同步时长小于第一预设时长的目标应用的预设优先级上调,将该同步时长大于第二预设时长的目标应用的预设优先级下调,该第一预设时长小于第二预设时长;
按照调整后的预设优先级从高到低的顺序对该目标应用进行排序。
在一些实施例中,还包括第二控制模块,用于:
在该第二获取模块获取该电子设备当前的网络速度和电量值之后,当该电量值小于或等于该第一预设阈值时,检测该电子设备是否处于充电状态;
若是,则允许该目标应用进行数据同步;
若否,则禁止该目标应用进行数据同步。
在一些实施例中,在获取该电子设备当前的网络速度和电量值之后,第一控制模块还用于:
当该电量值低于第一预设阈值时,禁止所有目标应用进行数据同步;
当该电量值高于第二预设阈值时,允许所有目标应用进行数据同步。
请参阅图6,图6具体描述了本申请实施例提供的数据同步装置,应用于电子设备,其可以包括:第一获取模块10、确定模块20、第二获取模块30和第一控制模块40,其中:
(1)第一获取模块10
第一获取模块10,用于获取该电子设备中的待同步应用。
本实施例中,当电子设备接收到了其内安装的应用所发送的同步请求时,可以将该应用确定为待同步应用。该待同步应用可以是周期同步的应用,也可以是非周期同步的应用。
(2)确定模块20
确定模块20,用于利用预设的应用白名单从该待同步应用中确定目标应用。
本实施例中,该应用白名单主要用于存储可以允许同步的应用的名称,其可以是电子 设备厂商或服务器提供的,也可以是用户自行设置的,该应用白名单主要用于过滤掉一些自启更新的恶性应用。具体的,确定模块20可以将待同步应用与应用白名单上的应用进行匹配,将匹配成功的应用确定为目标应用。
(3)第二获取模块30
第二获取模块30,用于获取该电子设备当前的网络速度和电量值。
本实施例中,由于数据同步需要电子设备网络和电量的支持,当电量低或者网络差的时候,电子设备可能无法实现所有目标应用的同步,故当确定出了可以同步的目标应用时,第二获取模块30可以进一步检测电子设备的网络速度和电量值,根据网络速度和电量值对目标应用做进一步控制,比如网络差或电量低时,可以禁止一切同步操作,网络良好且电量充足时,可以允许一切同步操作,等等。
(4)第一控制模块40
第一控制模块40,用于当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
本实施例中,该第一预设阈值和第二预设阈值可以根据实际需求提前设定好,该第一预设阈值主要用于界定电子设备是否处于低电量状态,比如20%,该第二预设阈值主要用于界定电子设备是否处于高电量状态,比如60%。通常,在高电量的情况下,比如电量值高于第二预设阈值时,电子设备可以无需对目标应用的同步操作进行限制,而在低电量的情况下,比如电量值低于第一预设阈值时,为避免电量消耗过快导致自动关机,电子设备应该禁止目标应用的同步操作,当然,在电量不高不低的情况下,电子设备则可以进一步根据网速来限制,此时,请参见图7,该第一控制模块40具体可以包括:
判断子模41,用于判断该网络速度是否不超过预设速度;
禁止子模块42,用于若是,则禁止该目标应用进行数据同步;
同步子模块43,用于若否,则获取每一目标应用的待同步数据量;根据该网络速度和待同步数据量控制该目标应用进行数据同步。
本实施例中,该预设速度主要用于界定网络是否处于较差状态,其可以等于0,或者是一个较小的数值。通常,在电量不是很充足时,若网络较差,为保证其他应用还能正常接收网络数据,则可以禁止数据同步,以减小网络占用率,而在其他网络情况下,则可以只需限制一部分目标应用进行数据同步即可,具体可以根据每个目标应用的待同步数据量来确定需要禁止哪些目标应用,此时,请参见图8,该同步子模块43具体可以包括计算单元431、排序单元432和禁止单元433,其中:
计算单元431,用于根据该网络速度和待同步数据量计算每一目标应用的同步时长。
本实施例中,该同步时长可以为待同步数据量和网络速度的商值,通常,对于同一网络速度来说,待同步数据量越大,所需的同步时长越长,所要损耗的电量也越多。
排序单元432,用于根据该同步时长对该目标应用进行排序,得到排序结果;
本实施例中,排序单元432可以直接根据同步时长对目标应用排序,比如按照同步时长从短到长对目标应用进行排序,也可以结合其他因素,比如目标应用的运行频率和优先级等对其进行排序,具体可以根据实际情况而定。
例如,当结合运行频率对目标应用进行排序时,该排序单元432具体可以用于:
获取每一目标应用的历史运行频率;
根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
按照该同步推荐度从大到小的顺序对该目标应用进行排序。
本实施例中,该同步推荐度主要指推荐目标应用进行数据同步的倾向程度。由于不同的应用对于用户的重要性不同,而该重要性又可以通过应用的历史运行频率体现出,比如,历史运行频率越高,表明用户越经常使用该应用,从而该应用对用户越重要。具体的,可以提前设置历史运行频率和同步时长的权重比例,比如1:1,或者2:1,然后根据权重比例计算同步推荐度。
例如,当结合优先级对目标应用进行排序时,该排序单元432具体可以用于:
获取每一目标应用的预设优先级;
将该同步时长小于第一预设时长的目标应用的预设优先级上调,将该同步时长大于第二预设时长的目标应用的预设优先级下调,该第一预设时长小于第二预设时长;
按照调整后的预设优先级从高到低的顺序对该目标应用进行排序。
本实施例中,该预设优先级可以根据应用类型或者安全等级而提前设定好,比如可以将系统应用或者安全等级高的应用的预设优先级设置得较高,视频播放应用或者安全等级低的应用的预设优先级设置得较低,等等。
禁止单元433,用于禁止该排序结果中位于末尾预设位的目标应用进行数据同步。
本实施例中,该预设位可以根据实际情况而定,比如3位或者4位。由于目标应用的排序都和同步时长有关,且排位越靠后的应用其同步时长越长,越容易消耗电量,故在低电量的情况下,为尽量实现较多目标应用的数据同步,可以考虑将排位靠后的目标应用进行关闭,以便排位靠前的目标应用的数据同步可以顺利进行。
容易理解的是,并非只要电子设备电量过低(比如低于20%),就要禁止目标应用的同 步操作,比如若用户能及时对电子设备进行充电,则可以无需担心因同步操作导致电量损失,也即,请参见图9,该数据同步装置还可以包括第二控制模块50,用于:
在该第二获取模块30获取该电子设备当前的网络速度和电量值之后,当该电量值小于或等于该第一预设阈值时,检测该电子设备是否处于充电状态;
若是,则允许该目标应用进行数据同步;
若否,则禁止该目标应用进行数据同步。
本实施例中,当电子设备无法在低电量的情况下补充电量时,第二控制模块50可以禁止所有目标应用的数据同步,以尽可能减少耗电量,而若电子设备处于充电状态,则可以直接允许所有目标应用的数据同步,当然,还可以是其他控制方式,具体可以根据实际需求而定。
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。
由上述可知,本实施例提供的数据同步装置,通过第一获取模块10获取待同步应用,确定模块20利用预设的应用白名单从该待同步应用中确定目标应用,之后,第二获取模块30获取该电子设备当前的网络速度和电量值,当该电量值大于第一预设阈值且小于第二预设阈值时,第一控制模块40根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值,从而能根据电子设备的实际运行情况灵活的控制后台应用的数据同步,方法简单,同步效果好。
此外,本申请实施例还提供了一种存储介质,其中,该存储介质中存储有多条指令,该指令适于由处理器加载以执行以下步骤:
获取该电子设备中的待同步应用;
利用预设的应用白名单从该待同步应用中确定目标应用;
获取该电子设备当前的网络速度和电量值;
当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
另外,本申请实施例还提供了一种电子设备,该电子设备可以是智能手机、平板电脑等设备。图10所示,电子设备600包括处理器601、存储器602、显示屏603以及控制电路604。其中,处理器601分别与存储器602、显示屏603、控制电路604电性连接。
处理器601是电子设备600的控制中心,利用各种接口和线路连接整个电子设备的各 个部分,通过运行或加载存储在存储器602内的应用程序,以及调用存储在存储器602内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
在本实施例中,电子设备600中的处理器601会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现各种功能:
获取该电子设备中的待同步应用;
利用预设的应用白名单从该待同步应用中确定目标应用;
获取该电子设备当前的网络速度和电量值;
当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值。
在一些实施例中,在根据该网络速度控制该目标应用进行数据同步时,该处理器用于执行以下步骤:
判断该网络速度是否不超过预设速度;
若是,则禁止该目标应用进行数据同步;
若否,则获取每一目标应用的待同步数据量;根据该网络速度和待同步数据量控制该目标应用进行数据同步。
在一些实施例中,在根据该网络速度和待同步数据量控制该目标应用进行数据同步时,该处理器用于执行以下步骤:
根据该网络速度和待同步数据量计算每一目标应用的同步时长;
根据该同步时长对该目标应用进行排序,得到排序结果;
禁止该排序结果中位于末尾预设位的目标应用进行数据同步。
在一些实施例中,在根据该同步时长对该目标应用进行排序时,该处理器用于执行以下步骤:
获取每一目标应用的历史运行频率;
根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
按照该同步推荐度从大到小的顺序对该目标应用进行排序。
在一些实施例中,在根据该同步时长对该目标应用进行排序时,该处理器用于执行以下步骤:
获取每一目标应用的预设优先级;
将该同步时长小于第一预设时长的目标应用的预设优先级上调,将该同步时长大于第 二预设时长的目标应用的预设优先级下调,该第一预设时长小于第二预设时长;
按照调整后的预设优先级从高到低的顺序对该目标应用进行排序。
在一些实施例中,在获取该电子设备当前的网络速度和电量值之后,该处理器还用于执行以下步骤:
当该电量值小于或等于该第一预设阈值时,检测该电子设备是否处于充电状态;
若是,则允许该目标应用进行数据同步;
若否,则禁止该目标应用进行数据同步。
在一些实施例中,在获取该电子设备当前的网络速度和电量值之后,该处理器还用于执行以下步骤:
当该电量值低于第一预设阈值时,禁止所有目标应用进行数据同步;
当该电量值高于第二预设阈值时,允许所有目标应用进行数据同步。
存储器602可用于存储应用程序和数据。存储器602存储的应用程序中包含有可在处理器中执行的指令。应用程序可以组成各种功能模块。处理器601通过运行存储在存储器602的应用程序,从而执行各种功能应用以及数据处理。
显示屏603可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。
控制电路604与显示屏603电性连接,用于控制显示屏603显示信息。
在一些实施例中,如图10所示,电子设备600还包括:射频电路605、输入单元606、音频电路607、传感器608以及电源609。其中,处理器601分别与射频电路605、输入单元606、音频电路607、传感器608以及电源609电性连接。
射频电路605用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
输入单元606可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元606可以包括指纹识别模组。
音频电路607可通过扬声器、传声器提供用户与终端之间的音频接口。
电子设备600还可以包括至少一种传感器608,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为 三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
电源609用于给电子设备600的各个部件供电。在一些实施例中,电源609可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图10中未示出,电子设备600还可以包括摄像头、蓝牙模块等,在此不再赘述。
本申请实施例提供的电子设备,通过获取待同步应用,并利用预设的应用白名单从该待同步应用中确定目标应用,之后,获取该电子设备当前的网络速度和电量值,并当该电量值大于第一预设阈值且小于第二预设阈值时,根据该网络速度控制该目标应用进行数据同步,该第一预设阈值小于第二预设阈值,从而能根据电子设备的实际运行情况灵活的控制后台应用的数据同步,方法简单,同步效果好。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
综上所述,虽然本申请已以优选实施例揭露如上,但上述优选实施例并非用以限制本申请,本领域的普通技术人员,在不脱离本申请的精神和范围内,均可作各种更动与润饰,因此本申请的保护范围以权利要求界定的范围为准。

Claims (20)

  1. 一种数据同步方法,其应用于电子设备,所述数据同步方法包括:
    获取所述电子设备中的待同步应用;
    利用预设的应用白名单从所述待同步应用中确定目标应用;
    获取所述电子设备当前的网络速度和电量值;
    当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所述网络速度控制所述目标应用进行数据同步,所述第一预设阈值小于第二预设阈值。
  2. 根据权利要求1所述的数据同步方法,其中,所述根据所述网络速度控制所述目标应用进行数据同步,包括:
    判断所述网络速度是否不超过预设速度;
    若是,则禁止所述目标应用进行数据同步;
    若否,则获取每一目标应用的待同步数据量;根据所述网络速度和待同步数据量控制所述目标应用进行数据同步。
  3. 根据权利要求2所述的数据同步方法,其中,所述根据所述网络速度和待同步数据量控制所述目标应用进行数据同步,包括:
    根据所述网络速度和待同步数据量计算每一目标应用的同步时长;
    根据所述同步时长对所述目标应用进行排序,得到排序结果;
    禁止所述排序结果中位于末尾预设位的目标应用进行数据同步。
  4. 根据权利要求3所述的数据同步方法,其中,所述根据所述同步时长对所述目标应用进行排序,包括:
    获取每一目标应用的历史运行频率;
    根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
    按照所述同步推荐度从大到小的顺序对所述目标应用进行排序。
  5. 根据权利要求3所述的数据同步方法,其中,所述根据所述同步时长对所述目标应用进行排序,包括:
    获取每一目标应用的预设优先级;
    将所述同步时长小于第一预设时长的目标应用的预设优先级上调,将所述同步时长大于第二预设时长的目标应用的预设优先级下调,所述第一预设时长小于第二预设时长;
    按照调整后的预设优先级从高到低的顺序对所述目标应用进行排序。
  6. 根据权利要求1所述的数据同步方法,其中,在获取所述电子设备当前的网络速度和电量值之后,还包括:
    当所述电量值小于或等于所述第一预设阈值时,检测所述电子设备是否处于充电状态;
    若是,则允许所述目标应用进行数据同步;
    若否,则禁止所述目标应用进行数据同步。
  7. 根据权利要求1所述的数据同步方法,在获取所述电子设备当前的网络速度和电量值之后,还包括:
    当所述电量值低于第一预设阈值时,禁止所有目标应用进行数据同步;
    当所述电量值高于第二预设阈值时,允许所有目标应用进行数据同步。
  8. 一种数据同步装置,其应用于电子设备,所述数据同步装置包括:
    第一获取模块,用于获取所述电子设备中的待同步应用;
    确定模块,用于利用预设的应用白名单从所述待同步应用中确定目标应用;
    第二获取模块,用于获取所述电子设备当前的网络速度和电量值;
    第一控制模块,用于当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所述网络速度控制所述目标应用进行数据同步,所述第一预设阈值小于第二预设阈值。
  9. 根据权利要求8所述的数据同步装置,其中,所述第一控制模块具体包括:
    判断子模块,用于判断所述网络速度是否不超过预设速度;
    禁止子模块,用于若是,则禁止所述目标应用进行数据同步;
    同步子模块,用于若否,则获取每一目标应用的待同步数据量;根据所述网络速度和待同步数据量控制所述目标应用进行数据同步。
  10. 根据权利要求9所述的数据同步装置,其中,所述同步子模块具体包括:
    计算单元,用于根据所述网络速度和待同步数据量计算每一目标应用的同步时长;
    排序单元,用于根据所述同步时长对所述目标应用进行排序,得到排序结果;
    禁止单元,用于禁止所述排序结果中位于末尾预设位的目标应用进行数据同步。
  11. 根据权利要求10所述的数据同步装置,其中,所述排序单元具体用于:
    获取每一目标应用的历史运行频率;
    根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
    按照所述同步推荐度从大到小的顺序对所述目标应用进行排序。
  12. 根据权利要求10所述的数据同步装置,其中,所述排序单元具体用于:
    获取每一目标应用的预设优先级;
    将所述同步时长小于第一预设时长的目标应用的预设优先级上调,将所述同步时长大于第二预设时长的目标应用的预设优先级下调,所述第一预设时长小于第二预设时长;
    按照调整后的预设优先级从高到低的顺序对所述目标应用进行排序。
  13. 根据权利要求8所述的数据同步装置,其中,还包括第二控制模块,用于:
    在所述第二获取模块获取所述电子设备当前的网络速度和电量值之后,当所述电量值小于或等于所述第一预设阈值时,检测所述电子设备是否处于充电状态;
    若是,则允许所述目标应用进行数据同步;
    若否,则禁止所述目标应用进行数据同步。
  14. 根据权利要求8所述的数据同步装置,其中,在获取所述电子设备当前的网络速度和电量值之后,第一控制模块还用于:
    当所述电量值低于第一预设阈值时,禁止所有目标应用进行数据同步;
    当所述电量值高于第二预设阈值时,允许所有目标应用进行数据同步。
  15. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行权利要求1所述的数据同步方法。
  16. 一种电子设备,其包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:
    获取所述电子设备中的待同步应用;
    利用预设的应用白名单从所述待同步应用中确定目标应用;
    获取所述电子设备当前的网络速度和电量值;
    当所述电量值大于第一预设阈值且小于第二预设阈值时,根据所述网络速度控制所述目标应用进行数据同步,所述第一预设阈值小于第二预设阈值。
  17. 根据权利要求16所述的电子设备,其中,所述处理器用于执行以下步骤:
    判断所述网络速度是否不超过预设速度;
    若是,则禁止所述目标应用进行数据同步;
    若否,则获取每一目标应用的待同步数据量;根据所述网络速度和待同步数据量控制所述目标应用进行数据同步。
  18. 根据权利要求17所述的电子设备,其中,所述处理器用于执行以下步骤:
    根据所述网络速度和待同步数据量计算每一目标应用的同步时长;
    根据所述同步时长对所述目标应用进行排序,得到排序结果;
    禁止所述排序结果中位于末尾预设位的目标应用进行数据同步。
  19. 根据权利要求18所述的电子设备,其中,所述处理器用于执行以下步骤:
    获取每一目标应用的历史运行频率;
    根据每一历史运行频率和同步时长计算对应目标应用的同步推荐度;
    按照所述同步推荐度从大到小的顺序对所述目标应用进行排序。
  20. 根据权利要求18所述的电子设备,其中,所述处理器用于执行以下步骤:
    获取每一目标应用的预设优先级;
    将所述同步时长小于第一预设时长的目标应用的预设优先级上调,将所述同步时长大于第二预设时长的目标应用的预设优先级下调,所述第一预设时长小于第二预设时长;
    按照调整后的预设优先级从高到低的顺序对所述目标应用进行排序。
PCT/CN2018/094231 2017-07-31 2018-07-03 数据同步方法、装置、存储介质以及电子设备 WO2019024641A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710643091.4 2017-07-31
CN201710643091.4A CN107465737A (zh) 2017-07-31 2017-07-31 数据同步方法、装置、存储介质以及电子设备

Publications (1)

Publication Number Publication Date
WO2019024641A1 true WO2019024641A1 (zh) 2019-02-07

Family

ID=60548159

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/094231 WO2019024641A1 (zh) 2017-07-31 2018-07-03 数据同步方法、装置、存储介质以及电子设备

Country Status (2)

Country Link
CN (1) CN107465737A (zh)
WO (1) WO2019024641A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506439A (zh) * 2020-04-08 2020-08-07 Tcl移动通信科技(宁波)有限公司 数据的获取方法、装置、存储介质及移动终端
CN111652407A (zh) * 2020-04-13 2020-09-11 北京旷视机器人技术有限公司 仓库中的任务处理方法、装置、介质、电子设备与系统
CN111867024A (zh) * 2020-06-28 2020-10-30 维沃移动通信有限公司 电子设备的控制方法、装置及电子设备
CN114416868A (zh) * 2021-12-30 2022-04-29 联通智网科技股份有限公司 一种数据同步方法、装置、设备及存储介质
CN115207909A (zh) * 2022-07-20 2022-10-18 北京三圣凯瑞科技有限公司 一种台区拓扑识别方法、装置、设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465737A (zh) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 数据同步方法、装置、存储介质以及电子设备
CN109254803A (zh) * 2018-08-16 2019-01-22 中国平安人寿保险股份有限公司 应用程序启动控制方法、装置、终端及可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385304A (zh) * 2006-01-03 2009-03-11 苹果公司 用于便携式媒体设备的远程内容更新
US20120207098A1 (en) * 2007-03-23 2012-08-16 Zenzui, Inc. Systems and methods for controlling application updates across a wireless interface
US9185514B1 (en) * 2013-10-10 2015-11-10 Sprint Communications Company L.P. Orchestration of application updates over a wireless communication network
CN106537883A (zh) * 2014-07-25 2017-03-22 高通股份有限公司 用于触发高效应用同步的方法和系统
CN106896894A (zh) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 终端电量管理方法及终端
CN107302591A (zh) * 2017-07-31 2017-10-27 广东欧珀移动通信有限公司 数据同步方法、装置、存储介质以及电子设备
CN107465737A (zh) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 数据同步方法、装置、存储介质以及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374275B2 (en) * 2013-12-11 2016-06-21 Dropbox, Inc. Rapid application development using a content management system
CN104363302A (zh) * 2014-11-27 2015-02-18 北京奇艺世纪科技有限公司 一种离线下载文件的方法及装置
CN105550003A (zh) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 应用程序更新系统和方法
CN106022108B (zh) * 2016-05-17 2019-07-02 Oppo广东移动通信有限公司 一种同步管理方法及终端设备
CN106502837B (zh) * 2016-10-25 2019-06-14 Oppo广东移动通信有限公司 一种数据备份的方法、装置及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385304A (zh) * 2006-01-03 2009-03-11 苹果公司 用于便携式媒体设备的远程内容更新
US20120207098A1 (en) * 2007-03-23 2012-08-16 Zenzui, Inc. Systems and methods for controlling application updates across a wireless interface
US9185514B1 (en) * 2013-10-10 2015-11-10 Sprint Communications Company L.P. Orchestration of application updates over a wireless communication network
CN106537883A (zh) * 2014-07-25 2017-03-22 高通股份有限公司 用于触发高效应用同步的方法和系统
CN106896894A (zh) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 终端电量管理方法及终端
CN107302591A (zh) * 2017-07-31 2017-10-27 广东欧珀移动通信有限公司 数据同步方法、装置、存储介质以及电子设备
CN107465737A (zh) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 数据同步方法、装置、存储介质以及电子设备

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506439A (zh) * 2020-04-08 2020-08-07 Tcl移动通信科技(宁波)有限公司 数据的获取方法、装置、存储介质及移动终端
CN111506439B (zh) * 2020-04-08 2024-04-09 北京兰格云商科技有限公司 数据的获取方法、装置、存储介质及移动终端
CN111652407A (zh) * 2020-04-13 2020-09-11 北京旷视机器人技术有限公司 仓库中的任务处理方法、装置、介质、电子设备与系统
CN111652407B (zh) * 2020-04-13 2023-09-05 北京旷视机器人技术有限公司 仓库中的任务处理方法、装置、介质、电子设备与系统
CN111867024A (zh) * 2020-06-28 2020-10-30 维沃移动通信有限公司 电子设备的控制方法、装置及电子设备
CN114416868A (zh) * 2021-12-30 2022-04-29 联通智网科技股份有限公司 一种数据同步方法、装置、设备及存储介质
CN114416868B (zh) * 2021-12-30 2023-02-17 联通智网科技股份有限公司 一种数据同步方法、装置、设备及存储介质
CN115207909A (zh) * 2022-07-20 2022-10-18 北京三圣凯瑞科技有限公司 一种台区拓扑识别方法、装置、设备及存储介质
CN115207909B (zh) * 2022-07-20 2023-09-15 北京三圣凯瑞科技有限公司 一种台区拓扑识别方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN107465737A (zh) 2017-12-12

Similar Documents

Publication Publication Date Title
WO2019024641A1 (zh) 数据同步方法、装置、存储介质以及电子设备
WO2019024642A1 (zh) 进程控制方法、装置、存储介质以及电子设备
US11849399B2 (en) Method for reducing power consumption of terminal, and terminal
CN111158910B (zh) 内存管理方法、装置、存储介质及电子设备
WO2018082412A1 (zh) 电子设备控制方法、装置及电子设备
CN107302633B (zh) 应用控制方法、装置、存储介质以及电子设备
US10712798B2 (en) Sensor processing method of mobile terminal, storage medium, and electronic device
EP3407162B1 (en) Mobile terminal application program processing method and apparatus, storage medium, and electronic device
CN107402625B (zh) 触摸屏扫描方法、装置、终端及计算机可读存储介质
WO2019024640A1 (zh) 进程控制方法、装置、存储介质以及电子设备
CN107402808B (zh) 进程管理方法、装置、存储介质及电子设备
WO2019024646A1 (zh) 应用管控方法、装置及电子设备
CN109272917A (zh) 屏幕亮度调节方法、装置、存储介质及电子设备
CN107341094B (zh) 启动项耗时的测量方法及装置
CN111443803A (zh) 模式切换方法、装置、存储介质及移动终端
CN107291213B (zh) 模式选择方法、装置、终端及计算机可读存储介质
CN107343100B (zh) 信息提示方法、装置、存储介质及电子设备
CN106791170B (zh) 网络处理方法、装置及终端
WO2019024643A1 (zh) 数据同步管控方法、装置及电子设备
CN111008079B (zh) 进程管理方法、装置、存储介质及电子设备
CN114546910A (zh) 访问控制方法、装置、存储介质及电子装置
CN112468870A (zh) 一种视频播放方法、装置、设备及存储介质
CN111026456A (zh) 应用管理方法、装置、存储介质及电子设备
CN111143580A (zh) 多媒体数据存储方法、装置、存储介质及电子设备
CN114245026B (zh) 拍摄方法、装置、计算机设备及存储介质

Legal Events

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

Ref document number: 18842186

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18842186

Country of ref document: EP

Kind code of ref document: A1