CN107943562B - Information storage method, information storage device, storage medium and electronic equipment - Google Patents

Information storage method, information storage device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107943562B
CN107943562B CN201711124553.8A CN201711124553A CN107943562B CN 107943562 B CN107943562 B CN 107943562B CN 201711124553 A CN201711124553 A CN 201711124553A CN 107943562 B CN107943562 B CN 107943562B
Authority
CN
China
Prior art keywords
queue
application
target
information
switching information
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
CN201711124553.8A
Other languages
Chinese (zh)
Other versions
CN107943562A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711124553.8A priority Critical patent/CN107943562B/en
Publication of CN107943562A publication Critical patent/CN107943562A/en
Priority to PCT/CN2018/115268 priority patent/WO2019096134A1/en
Application granted granted Critical
Publication of CN107943562B publication Critical patent/CN107943562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/461Saving or restoring of program or task context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data

Abstract

The application discloses an information storage method, an information storage device, a storage medium and electronic equipment, wherein the information storage method is applied to first electronic equipment and comprises the following steps: acquiring application information to be stored, wherein the application information comprises a target application identifier and target switching information; determining a first target queue from a stored application queue library according to the target application identifier, wherein the application queue library comprises at least one application queue, and each application queue comprises at least one piece of switching information; updating the first target queue according to the target switching information so as to store the application information in the application queue library; and updating the application queue library according to the updated first target queue, so that the memory occupation of the system can be reduced, the data comprehensiveness of the application information can be ensured, the method is simple, and the storage effect is good.

Description

Information storage method, information storage device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information storage method and apparatus, a storage medium, and an electronic device.
Background
With the development of science and technology, mobile terminals such as smart phones and tablet personal computers (PADs) have become indispensable devices in user life.
At present, as the types of application programs are increasing, a plurality of application programs often run simultaneously in a terminal, and except for visible foreground applications, the application programs are often run in an invisible form in a stolen manner in the background, and for the invisible background applications, a user often forgets to close the terminal, so that excessive background applications occupy a large amount of system resources. Since the app operation data is constantly changing, if all the app operation data is stored in the memory, the data volume is huge, and a large amount of memory space is inevitably occupied, so that the system performance is influenced.
Disclosure of Invention
The embodiment of the application provides an information storage method, an information storage device, a storage medium and an electronic device, which can reduce memory occupation during information storage and improve storage effect.
The embodiment of the application provides an information storage method, which is applied to first electronic equipment and comprises the following steps:
acquiring application information to be stored, wherein the application information comprises a target application identifier and target switching information;
determining a first target queue from a stored application queue library according to the target application identifier, wherein the application queue library comprises at least one application queue, and each application queue comprises at least one piece of switching information;
updating the first target queue according to the target switching information so as to store the application information in the application queue library;
and updating the application queue library according to the updated first target queue.
An embodiment of the present application further provides an information storage apparatus, which is applied to a first electronic device, and includes:
the device comprises an acquisition module, a storage module and a switching module, wherein the acquisition module is used for acquiring application information to be stored, and the application information comprises a target application identifier and target switching information;
a determining module, configured to determine a first target queue from a stored application queue library according to the target application identifier, where the application queue library includes at least one application queue, and each application queue includes at least one piece of handover information;
a first updating module, configured to update the first target queue according to the target switching information, so as to store the application information in the application queue library;
and the second updating module is used for updating the application queue library according to the updated first target queue.
The embodiment of the application also provides a storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the information storage methods.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used in any one of the steps of the information storage method.
The information storage method, the device, the storage medium and the electronic equipment are applied to first electronic equipment, application information to be stored is obtained, the application information comprises a target application identifier and target switching information, a first target queue is determined from a stored application queue library according to the target application identifier, the application queue library comprises at least one application queue, each application queue comprises at least one piece of switching information, then the first target queue is updated according to the target switching information so as to store the application information in the application queue library, and the application queue library is updated according to the updated first target queue, so that the occupied amount of a system memory can be reduced, the data comprehensiveness of the application information can be ensured, the method is simple, and the storage effect is good.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an information storage method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of the information storage method according to the embodiment of the present application.
Fig. 3 is a schematic diagram of a hashmap provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of an information storage process provided in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an information storage device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a second update module according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an information storage device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an information storage method, an information storage device, a storage medium and electronic equipment.
An information storage method is applied to first electronic equipment and comprises the following steps: acquiring application information to be stored, wherein the application information comprises a target application identifier and target switching information; determining a first target queue from a stored application queue library according to the target application identifier, wherein the application queue library comprises at least one application queue, and each application queue comprises at least one piece of switching information; updating the first target queue according to the target switching information so as to store the application information in the application queue library; and updating the application queue library according to the updated first target queue.
As shown in fig. 1, the specific flow of the information storage method may be as follows:
101. and acquiring application information to be stored, wherein the application information comprises a target application identifier and target switching information.
In this embodiment, the application identifier (or the target application identifier) is a unique identifier of the application program, which may be an application name. The switching information (or target switching information) mainly refers to relevant information when the application switches to the foreground, such as the switching time, the last foreground application being switched, and the like.
102. A first target queue is determined from a stored application queue library according to the target application identification, the application queue library comprises at least one application queue, and each application queue comprises at least one piece of switching information.
In this embodiment, the application queue library is configured to store switching information of all applications that have been switched to a foreground in a historical period, each switching information is stored in a corresponding application queue according to a sequence of switching time, and the application queue may be a First Input First Output (FIFO) queue, which is a First in First out data structure and can only write the switching information in sequence and read the switching information in sequence.
For example, the application queue library further includes at least one application identifier, where each application identifier corresponds to one application queue, and at this time, the step 102 may specifically include:
matching the target application identification with the application identification;
if the matching is successful, taking an application queue corresponding to the successfully matched application identifier as a first target queue;
and if the matching fails, storing the target application identifier in the application queue library, and creating an empty application queue corresponding to the target application identifier as a first target queue.
In this embodiment, the application queue and the application identifier stored in the application queue library are stored in an associated manner, for example, the application identifier may be used as a Key (Key), and the application queue may be used as a Value (Value) of the Key to be associated. The electronic device may establish an application queue for each application in advance, or may establish a corresponding application queue only when the application is first started. When the application is started for the first time to create the corresponding application queue, if the application queue of the current foreground application does not exist in the application queue library, an empty first-in first-out queue can be created according to the application identifier of the current foreground application and used as the application queue of the current foreground application.
103. And updating the first target queue according to the target switching information so as to store the application information in the application queue library.
For example, the step 103 may specifically include:
storing the target switching information at the tail of the first target queue;
when the target switching information is successfully added, counting the number of the switching information in the first target queue as a first number;
judging whether the first quantity is larger than a first preset threshold value or not;
if yes, deleting the preset number switching information with the top rank in the first target queue.
In this embodiment, for the first-in first-out application queue, each time new switching information is acquired, the new switching information may be stored at the end of the corresponding application queue. The first preset threshold may be determined according to an actual memory size, and the larger the actual memory is, the larger the first preset threshold may be, for example, the first preset threshold may be 100. The predetermined number may be a value set manually, such as 5. Generally, because the number of times of switching from a high-frequency application (referred to as a high-frequency application) to a foreground is large, the number of switching information stored in the corresponding application queue is large (that is, the queue length is long), in order to avoid that the switching information of the high-frequency application occupies too much system memory, so that insufficient memory is not available to store the switching information of the low-frequency application, the maximum length (a first preset threshold) of each application queue may be defined, that is, each time new switching information is stored in the corresponding application queue, whether the length of the application queue exceeds the maximum length may be detected, if the length exceeds the maximum length, data deletion may be performed, and considering that the reference value of data farther from the current time is lower, the single or part of the switching information with the longest storage time (that is, arranged in front of the application queue) may be deleted.
104. And updating the application queue library according to the updated first target queue.
For example, the step 104 may specifically include:
counting the number of switching information in each application queue as a second number;
sequencing the application queues in the application queue library according to the sequence of the second number from large to small to obtain a sequenced queue library, and calculating the total number according to the second number;
and updating the sorted queue library according to the total quantity.
In this embodiment, since the application queue library is usually stored in a system memory of the electronic device, in order to avoid occupying too much memory space, the data amount may be controlled within a certain scale, that is, each time new switching information is stored, the total amount of the switching information in the application queue library needs to be detected, and it is determined that data deletion is not needed according to the total amount.
For example, the step "updating the sorted queue library according to the total amount" may specifically include:
judging whether the total number is larger than a second preset threshold value;
if so, selecting the application queue with the top rank in the queue library after the sorting as the queue to be updated;
acquiring a second quantity corresponding to the queue to be updated, and determining a target quantity according to a preset proportion and the second quantity corresponding to the queue to be updated;
deleting the previous target number of switching information in the queue to be updated so as to update the queue to be updated.
In this embodiment, the second preset threshold and the preset ratio may be set manually, for example, the second preset threshold may be 1000, and the preset ratio may be 10%. When the total amount of the switching information in the application queue library exceeds a second preset threshold, the application switching information can be deleted in sequence from high to low in use frequency, and when the application switching information is deleted for the first time, the application queue which is the first bit in the sorted queue library is usually selected.
Further, after deleting the previous target number of pieces of switching information in the queue to be updated, the information storage method may further include:
calculating a difference between the current total number and the target number;
judging whether the difference value is smaller than or equal to a third preset threshold value, wherein the second preset threshold value is larger than the third preset threshold value;
if so, taking the next application queue in the sorted queue library as a queue to be updated, taking the difference value as the total number, and returning to execute the operation of obtaining the second number corresponding to the queue to be updated until all the application queues are updated.
In this embodiment, the third preset threshold may be an optimal storage amount, such as 800, set by a human. When a single application queue is deleted each time, the total amount of switching information in the application queue library changes, and if the detected total amount exceeds the optimal storage amount each time, the next application queue needs to be continuously selected for deletion until the total amount is less than or equal to the optimal storage amount.
In addition, since general electronic devices all have a power-down protection policy, that is, data stored in the system memory is automatically cleared when power is off, in order to avoid that data stored in the application queue library is lost after power is off, the data may be periodically synchronized to an external storage device, that is, after step 104, the information storage method may further include:
acquiring a synchronous storage instruction;
acquiring an application identifier in the application queue library according to the synchronous storage instruction;
encrypting the application identifier to obtain an encrypted identifier;
and storing the switching information in the corresponding application queue in the second electronic equipment according to the encrypted identifier.
In this embodiment, the synchronous storage instruction may be automatically generated after shutdown or reaching a specified time, and specifically, the electronic device may set a timer, and the timer may trigger generation of the synchronous storage instruction every certain time period (for example, one hour) or when shutdown information is received. The Encryption method may be determined according to actual requirements, and may be, for example, AES (Advanced Encryption Standard), which is a symmetric Encryption algorithm, that is, data is encrypted and decrypted using the same key. The second electronic device mainly refers to an external storage device, such as a storage server or a hard disk.
It should be emphasized that, since the switching information of the application is related to the usage habit of the user, in order to avoid the external storage device from revealing the privacy of the user when the external storage device is lost or stolen, the application identifier may be encrypted in the synchronous storage process, of course, since the first-in first-out queue has a certain data structure, in order to avoid the messy code in the storage process, the encryption identifier and the switching information may be stored only in the external storage device, specifically, the electronic device may write the encryption identifier into the external storage device, then write the carriage back as row division, then write the switching information in the corresponding application queue in sequence, after writing, write the carriage back as row division, then start to write the next encryption identifier and the switching information corresponding thereto until all the encryption identifiers and the switching information are written completely.
It is easy to understand that, since the data in the system memory is cleared after each power-off, the electronic device may automatically synchronize the data in the external storage device into the memory after starting up, so as to facilitate subsequent query and use, that is, after the switching information in the corresponding application queue is stored in the second electronic device according to the encryption identifier, the information storage method may further include:
acquiring a starting-up instruction;
acquiring an encryption identifier and switching information corresponding to the encryption identifier from the second electronic equipment according to the starting instruction;
decrypting the encrypted identifier to obtain the application identifier;
and establishing the application queue library according to the application identification and the corresponding switching information.
In this embodiment, for the AES encryption algorithm, the same key may be used to decrypt the encrypted identifier and restore the encrypted identifier to obtain the application identifier, and then an empty first-in first-out queue corresponding to the application identifier may be first established, and the switching information corresponding to the encrypted identifier is sequentially written into the empty first-in first-out queue, so that the application queue is restored and obtained.
As can be seen from the above, the information storage method provided in this embodiment is applied to a first electronic device, and is implemented by obtaining application information to be stored, where the application information includes a target application identifier and target switching information, determining a first target queue from a stored application queue library according to the target application identifier, where the application queue library includes at least one application queue, and each application queue includes at least one piece of switching information, and then updating the first target queue according to the target switching information to store the application information in the application queue library, and updating the application queue library according to the updated first target queue, so that in a storage process of the application information, not only can an occupied amount of a system memory be reduced, but also a comprehensiveness of data can be better ensured, and the method is simple and has a good storage effect.
In the present embodiment, a detailed description will be given taking an example in which the information storage apparatus is specifically integrated in the first electronic device.
Referring to fig. 2, a specific flow of an information storage method may be as follows:
201. the first electronic equipment acquires application information to be stored, wherein the application information comprises a target application identifier and target switching information.
For example, foreground running applications may be monitored in real time, and when a change of the foreground running application is found, the application identifier of the running application after the change, the application identifier of the running application before the change, and the change time may be used as the application information to be stored.
202. And the first electronic equipment matches the target application identifier with the application identifiers in the stored application queue library, if the matching is successful, the application queue corresponding to the successfully matched application identifier is used as a first target queue, if the matching is failed, the target application identifier is stored in the application queue library, and an empty application queue corresponding to the target application identifier is created and used as the first target queue.
For example, referring to fig. 3, when a user starts a certain App, the switching information corresponding to the App may be established in the electronic device through hashmap (hash mapping), where key is an App application name, value is a first-in-first-out FiFo (first-in-first-out) queue, and each FiFo queue corresponds to the switching information of the corresponding App
Figure BDA0001468117820000071
Figure BDA0001468117820000081
Indicating that the matching fails, and needing to create a FiFo queue corresponding to the api.
203. The first electronic device stores the target switching information at the tail of the first target queue, and counts the number of the switching information in the first target queue as a first number when the target switching information is successfully added.
204. The first electronic device determines whether the first number is greater than a first preset threshold, if so, deletes the preset number switching information with the top rank in the first target queue, otherwise, directly performs the following step 205.
For example, the first preset threshold (QueueMax) may be 100, the preset number may be 1, the application queue corresponding to api is Queuei, the Queuei may include Ni pieces of switching information, such as api _1 and api _2.
205. The first electronic device counts the number of switching information in each application queue as a second number, sorts the application queues in the application queue library according to the sequence of the second number from large to small to obtain a sorted queue library, and then calculates the total number according to the second number.
For example, if the application Queue library includes X application queues { Queue1, Queue2.. QueueX }, and the second number of switching information in each application Queue may be { N1, N2.. NX }, in turn, the application queues may be sorted according to the second number of values corresponding to each application Queue, the more switching information, the earlier the ranking, the less switching information, and the later the ranking, for example, the application Queue library after sorting may be Queue5, Queue2.. QueueX-1.
206. The first electronic device determines whether the total number is greater than a second preset threshold, if so, the following step 207 is executed, and if not, the following step 210 may be executed.
207. And the first electronic equipment selects the application queue with the top rank in the queue library after the sorting as the queue to be updated and acquires the second quantity corresponding to the queue to be updated.
208. And the first electronic equipment determines the target quantity according to a preset proportion and the second quantity corresponding to the queue to be updated, and deletes the switching information of the previous target quantity in the queue to be updated so as to update the queue to be updated.
For example, the second predetermined threshold may be 1000, and the predetermined ratio may be 10%. SUM of N1, N2.. Nx may be calculated, if SUM is greater than 1000, for example, 1005, a Queue5 with the first rank may be obtained, and if the second number N5 of switching information in Queue5 is 90, the target number is 90 × 10% to 9, that is, the first 9 pieces of switching information are selected for deletion.
209. And the first electronic device calculates a difference value between the current total number and the target number, and judges whether the difference value is smaller than or equal to a third preset threshold value, wherein the second preset threshold value is larger than the third preset threshold value, if not, the next application queue in the sorted queue library is used as a queue to be updated, the difference value is used as the total number, the step 208 is returned to be executed, and if yes, the following step 210 can be executed.
For example, the third preset threshold may be 800, since the total number SUM of the switching information in the application Queue library after the deletion of Queue5 is changed to 1005-9 ═ 996 > 800, the second Queue2 in the application Queue library is continuously selected for deletion, and the target number of deletions is N2 × 10%, and then the total number SUM after the deletion is continuously calculated, and the process is repeated until the SUM is less than or equal to 800.
210. And the first electronic equipment acquires the synchronous storage instruction and acquires the application identifier in the application queue library according to the synchronous storage instruction.
For example, referring to fig. 4, the first electronic device may set a timer, and the timer may trigger generation of the synchronous storage instruction every hour, or may automatically generate the synchronous storage instruction when the electronic device is powered off.
211. The first electronic device encrypts the application identifier to obtain an encrypted identifier, and stores the switching information in the corresponding application queue in the second electronic device according to the encrypted identifier.
For example, { App1, App2 … Appx } may be encrypted by AES encryption algorithm to obtain an encrypted identifier, and after the encrypted identifier is written into the external storage device, it is written back as line partition, then the switching information in the corresponding application queue is written in sequence, after writing, it is also written back as line partition, and then the next encrypted identifier and its corresponding switching information are written in until all encrypted identifiers and switching information are written in.
212. The first electronic device obtains a starting-up instruction, and obtains an encryption identifier and switching information corresponding to the encryption identifier from the second electronic device according to the starting-up instruction.
213. The first electronic equipment decrypts the encrypted identifier to obtain the application identifier, and establishes the application queue library according to the application identifier and the corresponding switching information.
For example, the first electronic device may actively obtain the storage content from the external storage device at the time of booting, and then restore the hashmap by decryption and data structure reconstruction.
As can be seen from the above, in the information storage method provided in this embodiment, the first electronic device may obtain application information to be stored, where the application information includes a target application identifier and target switching information, match the target application identifier with an application identifier in a stored application queue library, if the matching is successful, use an application queue corresponding to the successfully matched application identifier as a first target queue, if the matching is unsuccessful, store the target application identifier in the application queue library, create an empty application queue corresponding to the target application identifier as a first target queue, then store the target switching information at a tail of the first target queue, and when the target switching information is successfully added, count the number of switching information in the first target queue as a first number, then determine whether the first number is greater than a first preset threshold, if so, deleting the preset number switching information with the highest ranking in the first target queue, if not, counting the number of the switching information in each application queue as a second number, sequencing the application queues in the application queue library according to the sequence of the second number from large to small to obtain a sequenced queue library, then calculating the total number according to the second number, then judging whether the total number is greater than a second preset threshold value, if so, selecting the application queue with the highest ranking in the sequenced queue library as a queue to be updated, obtaining the second number corresponding to the queue to be updated, then determining the target number according to a preset proportion and the second number corresponding to the queue to be updated, deleting the previous target number switching information in the queue to be updated to update the queue to be updated, and then calculating the difference value between the current total number and the target number, and judging whether the difference is less than or equal to a third preset threshold, the second preset threshold is greater than the third preset threshold, if so, taking the next application queue in the sorted queue library as a queue to be updated, taking the difference as the total amount, and returning to execute the operation of judging whether the total amount is greater than the second preset threshold, so that in the storage process of the application information, not only can the occupation amount of a system memory be reduced, but also the comprehensiveness of data can be better ensured, the method is simple, the storage effect is good, then, the first electronic device can obtain a synchronous storage instruction, obtain an application identifier in the application queue library according to the synchronous storage instruction, then encrypt the application identifier to obtain an encrypted identifier, and store the switching information in the corresponding application queue in the second electronic device according to the encrypted identifier, so that the backup operation of the data can be better completed, the method has a certain power-down protection strategy, avoids data loss caused by power failure, and is high in reliability.
According to the method described in the above embodiments, the present embodiment will be further described from the perspective of an information storage device, which may be specifically implemented as a stand-alone entity, or may be implemented by being integrated in an electronic device, such as a terminal, which may include a mobile phone, a tablet computer, a personal computer, and the like.
Referring to fig. 5, fig. 5 specifically illustrates an information storage apparatus provided in an embodiment of the present application, which is applied to a first electronic device, and includes: a first obtaining module 10, a determining module 20, a first updating module 30 and a second updating module 40, wherein:
(1) first acquisition module 10
The first obtaining module 10 is configured to obtain application information to be stored, where the application information includes a target application identifier and target handover information.
In this embodiment, the application identifier (or the target application identifier) is a unique identifier of the application program, which may be an application name. The switching information (or target switching information) mainly refers to relevant information when the application switches to the foreground, such as the switching time, the last foreground application being switched, and the like.
(2) Determination module 20
A determining module, configured to determine a first target queue from a stored application queue library according to the target application identifier, where the application queue library includes at least one application queue, and each application queue includes at least one piece of handover information.
In this embodiment, the application queue library is configured to store switching information of all applications that have been switched to a foreground in a historical period, each switching information is stored in a corresponding application queue according to a sequence of switching time, and the application queue may be a First Input First Output (FIFO) queue, which is a First in First out data structure and can only write the switching information in sequence and read the switching information in sequence.
For example, the application queue library further includes at least one application identifier, each application identifier corresponds to one application queue, and the determining module is specifically configured to:
the matching submodule is used for matching the target application identifier with the application identifier;
if the matching is successful, taking an application queue corresponding to the successfully matched application identifier as a first target queue;
and if the matching fails, storing the target application identifier in the application queue library, and creating an empty application queue corresponding to the target application identifier as a first target queue.
In this embodiment, the application queue and the application identifier stored in the application queue library are stored in an associated manner, for example, the application identifier may be used as a Key (Key), and the application queue may be used as a Value (Value) of the Key to be associated. The electronic device may establish an application queue for each application in advance, or may establish a corresponding application queue only when the application is first started. When the application is started for the first time to create the corresponding application queue, if the application queue of the current foreground application does not exist in the application queue library, an empty first-in first-out queue can be created according to the application identifier of the current foreground application and used as the application queue of the current foreground application.
(3) First update module 30
The first updating module 30 is configured to update the first target queue according to the target handover information, so as to store the application information in the application queue library.
For example, the first updating module 30 may specifically be configured to:
storing the target switching information at the tail of the first target queue;
when the target switching information is successfully added, counting the number of the switching information in the first target queue as a first number;
judging whether the first quantity is larger than a first preset threshold value or not;
if yes, deleting the preset number switching information with the top rank in the first target queue.
In this embodiment, for the first-in first-out application queue, each time new switching information is acquired, the new switching information may be stored at the end of the corresponding application queue. The first preset threshold may be determined according to an actual memory size, and the larger the actual memory is, the larger the first preset threshold may be, for example, the first preset threshold may be 100. The predetermined number may be a value set manually, such as 5. Generally, because the number of times of switching from a high-frequency application (referred to as a high-frequency application) to a foreground is large, the number of switching information stored in the corresponding application queue is large (that is, the queue length is long), in order to avoid that the switching information of the high-frequency application occupies too much system memory, so that insufficient memory is not available to store the switching information of the low-frequency application, the maximum length (a first preset threshold) of each application queue may be defined, that is, each time new switching information is stored in the corresponding application queue, whether the length of the application queue exceeds the maximum length may be detected, if the length exceeds the maximum length, data deletion may be performed, and considering that the reference value of data farther from the current time is lower, the single or part of the switching information with the longest storage time (that is, arranged in front of the application queue) may be deleted.
(4) Second update module 40
And the second updating module 40 is configured to update the application queue library according to the updated first target queue.
For example, referring to fig. 6, the second updating module 40 may specifically include a statistics sub-module 41, a ranking sub-module 42, and an updating sub-module 43, where:
a counting submodule 41, configured to count the number of switching information in each application queue as a second number;
the sorting submodule 42 is configured to sort the application queues in the application queue library according to the sequence from the largest to the smallest of the second number to obtain a sorted queue library, and calculate the total number according to the second number;
and an updating submodule 43, configured to update the sorted queue library according to the total number.
In this embodiment, since the application queue library is usually stored in a system memory of the electronic device, in order to avoid occupying too much memory space, the data amount may be controlled within a certain scale, that is, each time new switching information is stored, the total amount of the switching information in the application queue library needs to be detected, and it is determined that data deletion is not needed according to the total amount.
For example, the update submodule 43 may be specifically configured to:
judging whether the total number is larger than a second preset threshold value;
if so, selecting the application queue with the top rank in the queue library after the sorting as the queue to be updated;
acquiring a second quantity corresponding to the queue to be updated, and determining a target quantity according to a preset proportion and the second quantity corresponding to the queue to be updated;
deleting the previous target number of switching information in the queue to be updated so as to update the queue to be updated.
In this embodiment, the second preset threshold and the preset ratio may be set manually, for example, the second preset threshold may be 1000, and the preset ratio may be 10%. When the total amount of the switching information in the application queue library exceeds a second preset threshold, the application switching information can be deleted in sequence from high to low in use frequency, and when the application switching information is deleted for the first time, the application queue which is the first bit in the sorted queue library is usually selected.
Further, after deleting the previous target number of pieces of switching information in the queue to be updated, the updating sub-module 43 may further be configured to:
calculating a difference between the current total number and the target number;
judging whether the difference value is smaller than or equal to a third preset threshold value, wherein the second preset threshold value is larger than the third preset threshold value;
if so, taking the next application queue in the sorted queue library as a queue to be updated, taking the difference value as the total number, and returning to execute the operation of obtaining the second number corresponding to the queue to be updated until all the application queues are updated.
In this embodiment, the third preset threshold may be an optimal storage amount, such as 800, set by a human. When a single application queue is deleted each time, the total amount of switching information in the application queue library changes, and if the detected total amount exceeds the optimal storage amount each time, the next application queue needs to be continuously selected for deletion until the total amount is less than or equal to the optimal storage amount.
In addition, since general electronic devices all have a power-down protection policy, that is, data stored in the system memory is automatically cleared when power is off, in order to avoid that the data stored in the application queue library is lost after power is off, the data may be periodically synchronized to an external storage device, that is, referring to fig. 7, the information storage apparatus may further include a synchronization module 50 configured to:
after the second updating module 40 updates the application queue library according to the updated first target queue, a synchronous storage instruction is acquired;
acquiring an application identifier in the application queue library according to the synchronous storage instruction;
encrypting the application identifier to obtain an encrypted identifier;
and storing the switching information in the corresponding application queue in the second electronic equipment according to the encrypted identifier.
In this embodiment, the synchronous storage instruction may be automatically generated after shutdown or reaching a specified time, and specifically, the electronic device may set a timer, and the timer may trigger generation of the synchronous storage instruction every certain time period (for example, one hour) or when shutdown information is received. The Encryption method may be determined according to actual requirements, and may be, for example, AES (Advanced Encryption Standard), which is a symmetric Encryption algorithm, that is, data is encrypted and decrypted using the same key. The second electronic device mainly refers to an external storage device, such as a storage server or a hard disk.
It should be emphasized that, since the switching information of the application is related to the usage habit of the user, in order to avoid the external storage device from revealing the privacy of the user when the external storage device is lost or stolen, the application identifier may be encrypted in the synchronous storage process, of course, since the first-in first-out queue has a certain data structure, in order to avoid the messy code in the storage process, the encryption identifier and the switching information may be stored only in the external storage device, specifically, the electronic device may write the encryption identifier into the external storage device, then write the carriage back as row division, then write the switching information in the corresponding application queue in sequence, after writing, write the carriage back as row division, then start to write the next encryption identifier and the switching information corresponding thereto until all the encryption identifiers and the switching information are written completely.
It is easy to understand that, since the data in the system memory is cleared after each power-off, the electronic device may automatically synchronize the data in the external storage device to the memory after the electronic device is powered on, so as to facilitate subsequent query and use, that is, the information storage apparatus may further include a second obtaining module 60, configured to:
after the synchronization module 50 stores the switching information in the corresponding application queue in the second electronic device according to the encrypted identifier, acquiring a power-on instruction;
acquiring an encryption identifier and switching information corresponding to the encryption identifier from the second electronic equipment according to the starting instruction;
decrypting the encrypted identifier to obtain the application identifier;
and establishing the application queue library according to the application identification and the corresponding switching information.
In this embodiment, for the AES encryption algorithm, the same key may be used to decrypt the encrypted identifier and restore the encrypted identifier to obtain the application identifier, and then an empty first-in first-out queue corresponding to the application identifier may be first established, and the switching information corresponding to the encrypted identifier is sequentially written into the empty first-in first-out queue, so that the application queue is restored and obtained.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above description, the information storage apparatus provided in this embodiment is applied to a first electronic device, and obtains application information to be stored through a first obtaining module 10, where the application information includes a target application identifier and target switching information, a determining module 20 determines a first target queue from a stored application queue library according to the target application identifier, the application queue library includes at least one application queue, each application queue includes at least one piece of switching information, a first updating module 30 updates the first target queue according to the target switching information to store the application information in the application queue library, a second updating module 40 updates the application queue library according to the updated first target queue, so that in a storage process of the application information, not only can the occupied amount of a system memory be reduced, but also the comprehensiveness of data can be better ensured, the method is simple and has good storage effect.
In addition, the embodiment of the application also provides electronic equipment which can be equipment such as a smart phone and a tablet computer. As shown in fig. 8, the electronic device 900 includes a processor 901, a memory 902, a display 903, and a control circuit 904. The processor 901 is electrically connected to the memory 902, the display 903, and the control circuit 904.
The processor 901 is a control center of the electronic device 900, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by running or loading an application program stored in the memory 902 and calling the data stored in the memory 902, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 901 in the electronic device 900 loads instructions corresponding to processes of one or more application programs into the memory 902 according to the following steps, and the processor 901 runs the application programs stored in the memory 902, so as to implement various functions:
acquiring application information to be stored, wherein the application information comprises a target application identifier and target switching information;
determining a first target queue from a stored application queue library according to the target application identifier, wherein the application queue library comprises at least one application queue, and each application queue comprises at least one piece of switching information;
updating the first target queue according to the target switching information so as to store the application information in the application queue library;
and updating the application queue library according to the updated first target queue.
Memory 902 may be used to store applications and data. The memory 902 stores applications containing instructions executable in the processor. The application programs may constitute various functional modules. The processor 901 executes various functional applications and data processing by running an application program stored in the memory 902.
The display 903 may be used to display information input by or provided to the user as well as various graphical user interfaces of the terminal, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 904 is electrically connected to the display 903, and is configured to control the display 903 to display information.
In some embodiments, as shown in fig. 8, electronic device 900 further comprises: a radio frequency circuit 905, an input unit 906, an audio circuit 907, a sensor 908, and a power supply 909. The processor 901 is electrically connected to the rf circuit 905, the input unit 906, the audio circuit 907, the sensor 908, and the power source 909.
The radio frequency circuit 905 is configured to receive and transmit radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and receive and transmit signals with the network device or other electronic devices.
The input unit 906 may be used to receive input numbers, character information, or user characteristic information (e.g., a fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 906 may include a fingerprint recognition module.
The audio circuit 907 may provide an audio interface between the user and the terminal through a speaker, microphone, or the like.
The electronic device 900 may also include at least one sensor 908, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
The power supply 909 is used to supply power to the various components of the electronic device 900. In some embodiments, the power source 909 may be logically connected to the processor 901 through a power management system, so that functions of managing charging, discharging, and power consumption management are realized through the power management system.
Although not shown in fig. 8, the electronic device 900 may further include a camera, a bluetooth module, etc., which are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the information storage methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any information storage method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any information storage method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (15)

1. An information storage method applied to a first electronic device, comprising:
acquiring application information to be stored, wherein the application information comprises a target application identifier and target switching information, the target switching information mainly refers to relevant information when an application is switched to a foreground, and the relevant information comprises: switching time and the last foreground application switched;
determining a first target queue from a stored application queue library according to the target application identifier, wherein the application queue library comprises at least one application queue, each application queue comprises at least one piece of switching information, each piece of switching information is stored in a corresponding queue according to the time sequence, and the application queue is a first-in first-out queue;
updating the first target queue according to the target switching information so as to store the application information in the application queue library;
and updating the application queue library according to the updated first target queue.
2. The information storage method of claim 1, wherein the application queue library further comprises at least one application identifier, each application identifier corresponds to one application queue, and determining the first target queue from the stored application queue library according to the target application identifier comprises:
matching the target application identification with the application identification;
if the matching is successful, taking an application queue corresponding to the successfully matched application identifier as a first target queue;
and if the matching fails, storing the target application identifier in the application queue library, and creating an empty application queue corresponding to the target application identifier as a first target queue.
3. The information storage method according to claim 1, wherein the updating the first target queue according to the target handover information includes:
storing the target switching information at the tail of the first target queue;
when the target switching information is successfully added, counting the number of the switching information in the first target queue as a first number;
judging whether the first quantity is greater than a first preset threshold value or not;
and if so, deleting the preset number switching information with the top rank in the first target queue.
4. The information storage method according to claim 1, wherein the updating the application queue library according to the updated first target queue comprises:
counting the number of switching information in each application queue as a second number;
sequencing the application queues in the application queue library according to the sequence of the second number from large to small to obtain a sequenced queue library, and calculating the total number according to the second number;
and updating the sorted queue library according to the total quantity.
5. The information storage method of claim 4, wherein the updating the sorted queue bank according to the total number comprises:
judging whether the total number is larger than a second preset threshold value;
if so, selecting the application queue with the top rank in the queue library after the sorting as a queue to be updated;
acquiring a second quantity corresponding to the queue to be updated, and determining a target quantity according to a preset proportion and the second quantity corresponding to the queue to be updated;
deleting the previous target number of pieces of switching information in the queue to be updated so as to update the queue to be updated.
6. The information storage method according to claim 5, further comprising, after deleting a previous target number of pieces of switching information in the queue to be updated:
calculating a difference between the current total number and a target number;
judging whether the difference value is smaller than or equal to a third preset threshold value, wherein the second preset threshold value is larger than the third preset threshold value;
and if not, taking the next application queue in the sorted queue library as a queue to be updated, taking the difference value as the total number, and returning to execute the operation of obtaining the second number corresponding to the queue to be updated until all the application queues are updated.
7. The information storage method according to any one of claims 2 to 6, further comprising, after updating the application queue library according to the updated first target queue:
acquiring a synchronous storage instruction;
acquiring an application identifier in the application queue library according to the synchronous storage instruction;
encrypting the application identifier to obtain an encrypted identifier;
and storing the switching information in the corresponding application queue in the second electronic equipment according to the encrypted identifier.
8. The information storage method according to claim 7, further comprising, after storing the switching information in the corresponding application queue in the second electronic device according to the encryption identifier:
acquiring a starting-up instruction;
acquiring an encryption identifier and switching information corresponding to the encryption identifier from the second electronic equipment according to the starting instruction;
decrypting the encrypted identifier to obtain the application identifier;
and establishing the application queue library according to the application identification and the corresponding switching information.
9. An information storage device applied to a first electronic device, comprising:
an obtaining module, configured to obtain application information to be stored, where the application information includes a target application identifier and target switching information, the target switching information mainly refers to relevant information when an application is switched to a foreground, and the relevant information includes: switching time and the last foreground application switched;
a determining module, configured to determine a first target queue from a stored application queue library according to the target application identifier, where the application queue library includes at least one application queue, each application queue includes at least one piece of switching information, each piece of switching information is stored in a corresponding queue according to a time sequence, and the application queue is a first-in first-out queue;
a first updating module, configured to update the first target queue according to the target switching information, so as to store the application information in the application queue library;
and the second updating module is used for updating the application queue library according to the updated first target queue.
10. The information storage device of claim 9, wherein the application queue library further comprises at least one application identifier, each application identifier corresponds to an application queue, and the determining module is specifically configured to:
the matching submodule is used for matching the target application identifier with the application identifier;
if the matching is successful, taking an application queue corresponding to the successfully matched application identifier as a first target queue;
and if the matching fails, storing the target application identifier in the application queue library, and creating an empty application queue corresponding to the target application identifier as a first target queue.
11. The information storage device of claim 9, wherein the first update module is specifically configured to:
storing the target switching information at the tail of the first target queue;
when the target switching information is successfully added, counting the number of the switching information in the first target queue as a first number;
judging whether the first quantity is greater than a first preset threshold value or not;
and if so, deleting the preset number switching information with the top rank in the first target queue.
12. The information storage device according to claim 9, wherein the second update module specifically includes:
the counting submodule is used for counting the quantity of the switching information in each application queue as a second quantity;
the sequencing submodule is used for sequencing the application queues in the application queue library according to the sequence of the second quantity from large to small to obtain a sequenced queue library, and calculating the total quantity according to the second quantity;
and the updating submodule is used for updating the sorted queue library according to the total quantity.
13. The information storage device of claim 12, wherein the update submodule is specifically configured to:
judging whether the total number is larger than a second preset threshold value;
if so, selecting the application queue with the top rank in the queue library after the sorting as a queue to be updated;
acquiring a second quantity corresponding to the queue to be updated, and determining a target quantity according to a preset proportion and the second quantity corresponding to the queue to be updated;
deleting the previous target number of pieces of switching information in the queue to be updated so as to update the queue to be updated.
14. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the information storage method of any one of claims 1 to 8.
15. An electronic device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the information storage method of any one of claims 1 to 8.
CN201711124553.8A 2017-11-14 2017-11-14 Information storage method, information storage device, storage medium and electronic equipment Active CN107943562B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711124553.8A CN107943562B (en) 2017-11-14 2017-11-14 Information storage method, information storage device, storage medium and electronic equipment
PCT/CN2018/115268 WO2019096134A1 (en) 2017-11-14 2018-11-13 Information storage method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711124553.8A CN107943562B (en) 2017-11-14 2017-11-14 Information storage method, information storage device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107943562A CN107943562A (en) 2018-04-20
CN107943562B true CN107943562B (en) 2020-09-08

Family

ID=61932094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711124553.8A Active CN107943562B (en) 2017-11-14 2017-11-14 Information storage method, information storage device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN107943562B (en)
WO (1) WO2019096134A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943562B (en) * 2017-11-14 2020-09-08 Oppo广东移动通信有限公司 Information storage method, information storage device, storage medium and electronic equipment
CN109445915A (en) * 2018-09-27 2019-03-08 努比亚技术有限公司 Task processing method, server and terminal
CN111338810A (en) * 2018-12-19 2020-06-26 北京京东尚科信息技术有限公司 Method and apparatus for storing information
CN111274010B (en) * 2020-01-14 2024-01-16 Oppo广东移动通信有限公司 Data control method, device, electronic equipment and storage medium
CN112307518A (en) * 2020-10-16 2021-02-02 神州融安科技(北京)有限公司 Signature information processing method, signature information display method, signature information processing device, signature information display device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102281A (en) * 2007-08-16 2008-01-09 中兴通讯股份有限公司 Data processing method for reporting a large number of data in mobile communication system
CN103077075A (en) * 2012-12-27 2013-05-01 东莞宇龙通信科技有限公司 Method and terminal for displaying backgrounder application
US8904063B1 (en) * 2011-12-30 2014-12-02 Emc Corporation Ordered kernel queue for multipathing events
CN105320577A (en) * 2014-06-11 2016-02-10 中国移动通信集团公司 Data backup and recovery method, system and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655808A (en) * 2009-09-07 2010-02-24 宇龙计算机通信科技(深圳)有限公司 Application program management method and mobile communication terminal
US9910755B2 (en) * 2015-06-26 2018-03-06 Amazon Technologies, Inc. Retrieval of authoritative measurement data from in-memory datastores
CN106201688A (en) * 2016-07-06 2016-12-07 青岛海信移动通信技术股份有限公司 The control method of a kind of application program and device
CN107943562B (en) * 2017-11-14 2020-09-08 Oppo广东移动通信有限公司 Information storage method, information storage device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102281A (en) * 2007-08-16 2008-01-09 中兴通讯股份有限公司 Data processing method for reporting a large number of data in mobile communication system
US8904063B1 (en) * 2011-12-30 2014-12-02 Emc Corporation Ordered kernel queue for multipathing events
CN103077075A (en) * 2012-12-27 2013-05-01 东莞宇龙通信科技有限公司 Method and terminal for displaying backgrounder application
CN105320577A (en) * 2014-06-11 2016-02-10 中国移动通信集团公司 Data backup and recovery method, system and device

Also Published As

Publication number Publication date
WO2019096134A1 (en) 2019-05-23
CN107943562A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107943562B (en) Information storage method, information storage device, storage medium and electronic equipment
US10956280B2 (en) Data backup method, electronic device, and storage medium
CN106412093B (en) A kind of method for uploading of data, apparatus and system
CN106357808B (en) A kind of method of data synchronization and device
CN109271283A (en) A kind of data back up method based on block chain
EP3451193B1 (en) Electronic device and file data journaling method of electronic device
CN106569910B (en) Data backup and transmission method and mobile terminal
US10922193B2 (en) Data backup method, storage medium, and terminal
WO2018049934A1 (en) Data migration method and terminals
WO2018049935A1 (en) Data migration method and terminals
CN107145386B (en) Data migration method, terminal device and computer readable storage medium
EP3511840B1 (en) Data processing method, electronic device, and computer-readable storage medium
CN110460862B (en) Live broadcast processing method, terminal equipment and storage medium
CN106844057B (en) Data processing method and device and mobile terminal
CN111459410B (en) Memory space allocation method and device, electronic equipment and storage medium
CN109165194A (en) A kind of data conversion storage method, apparatus, electronic equipment and storage medium
CN107632985B (en) Webpage preloading method and device
CN108111889B (en) Electronic equipment and related product
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
US11327845B2 (en) Image synchronization method and device, and server
WO2017088180A1 (en) Method, apparatus and device for storing data in queue
CN109388487B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111581223A (en) Data updating method and device, terminal equipment and storage medium
CN111880928B (en) Method for releasing selection process and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant