CN106844057B - Data processing method and device and mobile terminal - Google Patents

Data processing method and device and mobile terminal Download PDF

Info

Publication number
CN106844057B
CN106844057B CN201710080046.2A CN201710080046A CN106844057B CN 106844057 B CN106844057 B CN 106844057B CN 201710080046 A CN201710080046 A CN 201710080046A CN 106844057 B CN106844057 B CN 106844057B
Authority
CN
China
Prior art keywords
operating system
data
memory area
target application
clearing
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
CN201710080046.2A
Other languages
Chinese (zh)
Other versions
CN106844057A (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 CN201710080046.2A priority Critical patent/CN106844057B/en
Publication of CN106844057A publication Critical patent/CN106844057A/en
Application granted granted Critical
Publication of CN106844057B publication Critical patent/CN106844057B/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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a data processing method, a data processing device and a mobile terminal, wherein the method comprises the following steps: running a target application in a second operating system environment, wherein the second operating system corresponds to a designated memory area; storing data generated by the target application to the designated memory area; and clearing the data in the specified memory area after exiting the second operating system. The embodiment of the invention can protect the original data in the mobile terminal and keep the compatibility of the mobile terminal.

Description

Data processing method and device and mobile terminal
Technical Field
The invention relates to the field of data processing, in particular to a data processing method and device and a mobile terminal.
Background
With the rapid development of information technology, mobile terminals (such as mobile phones, tablet computers, and the like) are becoming more and more popular. Taking a mobile phone as an example, more and more users use the mobile phone to replace a computer to perform various operations, so the stability, smoothness and memory cleaning of a mobile phone system are very important to the user experience. At any time, the service life of the mobile phone is prolonged, when the mobile phone operating system is unstable in use and poor in smoothness, a user can restore normal use of the mobile phone by restoring factory settings or updating the mobile phone, so that original data of the mobile phone can be cleared, and the mobile phone is used for a long time, the memory needs to be cleaned regularly, and the process is complex.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device and a mobile terminal, which can not only protect original data in the mobile terminal, but also keep the compatibility of the mobile terminal.
A first aspect of an embodiment of the present invention provides a data processing method, including:
running a target application in a second operating system environment, wherein the second operating system corresponds to a designated memory area;
storing data generated by the target application to the designated memory area;
and clearing the data in the specified memory area after exiting the second operating system.
A second aspect of the embodiments of the present invention provides a data processing apparatus, including:
the running unit is used for running the target application under the environment of a second operating system, and the second operating system corresponds to a specified memory area;
the storage unit is used for storing the data generated by the target application to the specified memory area;
and the clearing unit is used for clearing the data in the specified memory area after the second operating system is exited.
A third aspect of the embodiments of the present invention provides a mobile terminal, including:
a processor and a memory; wherein the processor performs some or all of the steps of the method described in the first aspect by calling code or instructions in the memory.
The embodiment of the invention has the following beneficial effects:
by the embodiment of the invention, the target application is operated in a second operating system environment, and the second operating system corresponds to a specified memory area; storing data generated by the target application to the designated memory area; and clearing the data in the specified memory area after exiting the second operating system. Because the application is used in the second operating system, the original parameters in the first operating system are not influenced, and because the operations of factory restoration, machine updating, upgrading and the like are not adopted, the compatibility of the mobile terminal can be kept.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the present invention;
FIG. 1-1 is a schematic flow chart illustrating a refinement of step 101 depicted in FIG. 1 according to an embodiment of the present invention;
FIGS. 1-2 are schematic diagrams of a detailed flow chart of step 102 depicted in FIG. 1 provided by an embodiment of the present invention;
FIGS. 1-3 are schematic diagrams of a detailed flow chart of step 103 depicted in FIG. 1 provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data processing method according to a second embodiment of the present invention;
fig. 3a is a schematic structural diagram of a data processing apparatus according to a first embodiment of the present invention;
FIG. 3b is a schematic diagram of an exemplary implementation of the data processing apparatus depicted in FIG. 3a according to an embodiment of the present invention;
FIG. 3c is a schematic diagram of a clearing unit of the data processing apparatus depicted in FIG. 3a according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data processing apparatus according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a mobile phone according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The mobile terminal described in the embodiment of the present invention may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile internet device (MID, mobile internet Devices), or a wearable device, and the mobile terminal is merely an example, and is not exhaustive and includes but is not limited to the mobile terminal.
It should be noted that the target application in the embodiment of the present invention may be a third-party application or a system application, for example, a social application (such as WeChat, QQ, microblog, etc.), a video application (such as Tokyo, Youkou, etc.), a payment application (Paibao, etc.), a game application (Xiaoxiaole, plant war zombie, etc.). Generally, a target application generates various new data in an application process, and when a mobile terminal fails or is infected with a virus, operations such as factory reset restoration or machine updating are adopted, so that the virus and the generated new data can be removed, but original data can also be removed. The embodiment of the present invention is described with reference to only one target application, and in practical applications, a plurality of applications may be run in the second operating system with reference to the embodiment of the present invention.
Fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the present invention. The data processing method described in this embodiment includes the following steps:
101. and running the target application in a second operating system environment, wherein the second operating system corresponds to a specified memory area.
Meanwhile, a second operating system in the embodiment of the present invention may be preset, and the second operating system may be a mirror operating system of the first operating system, and the mirror operating system may include a part of applications or all applications in the first operating system. The mobile terminal may switch between the first operating system and the second operating system, e.g., may be switched from the first operating system to the second operating system.
Optionally, the second operating system and the first operating system operate in the same method, and operations that can be implemented in the first operating system may also be implemented in the second operating system. The data generated by the second operating system may be stored in a designated Memory area of the mobile terminal, for example, the designated Memory area may be a Random Access Memory (RAM), and the data stored in the RAM may be randomly fetched or stored. Meanwhile, all the original parameters of the first operating system can be stored in a Read Only Memory (ROM) for short, and Only Read, but not written, so that the Memory spaces of the second operating system and the first operating system can be distinguished. The original parameters comprise data resources of system applications in the first operating system and data resources of third-party applications, and before entering the second operating system and after exiting the second operating system, the original parameters of the first operating system are consistent and cannot be changed.
Optionally, any services and applications of the mobile terminal may be used as normal after entering the second operating system as well. Such as voice dialing service, data service (e.g., mobile network 4G data, Wireless Fidelity (WiFi) network data), recording application, photographing application, audio/video playing application, etc., can be normally used in the second operating system. Visually, the display interface of the second operating system and the display interface of the first operating system can not sense any difference.
Optionally, as shown in fig. 1-1, the running the target application in the second operating system environment may include the following steps:
1021. and reading the mirror image data resource of the target application in the first operating system.
1022. And calling the mirror image data resource to the second operating system, and running the target application according to the mirror image data resource.
The target application is used in the second operating system, and only the corresponding target application in the first operating system needs to be called, and the target application does not need to be downloaded in the second operating system. When the target application is used in the second operating system, the mirror image data resource of the target application in the first operating system needs to be read, and after the mirror image data resource is read, the mirror image data resource is called to the second operating system, which is equivalent to copying the mirror image data resource to the second operating system, or copying the mirror image data resource to a designated memory area corresponding to the second operating system. For example, the target application is a photo application, the photo application has 5 photos in the first operating system, and after the second operating system is entered, the photo application is opened, at this time, the same 5 photos exist in the photo application, and at this time, the mobile terminal has stored the 5 photos in the specified memory area, so that the 5 photos can be normally used.
102. And storing the data generated by the target application to the specified memory area.
When the second operating system performs any operation on the target application, the generated data can be stored in a designated memory area, for example, in the RAM, so that the data can be conveniently stored and taken out.
Optionally, as shown in fig. 1-2, the storing the data generated by the target application to the specified memory area may include the following steps:
1021. judging whether preset operation aiming at the target application exists or not;
1022. and if the preset operation aiming at the target application exists, storing the data generated by the preset operation to the specified memory area.
If the preset operation is performed on the target application in the second operating system, the preset operation may be data downloading, data editing, or the like, and data generated by the preset operation on the target application may be stored in the specified memory area. For example, a photo is downloaded into the photo application, where there are 6 photos. The preset operation may be an operation capable of generating data.
103. And clearing the data in the specified memory area after exiting the second operating system.
After exiting the second operating system, the data stored in the designated memory area may be cleared.
Optionally, as shown in fig. 1 to 3, the clearing the data in the specified memory area may include the following steps:
1041. acquiring all data in the specified memory area;
1042. extracting the data from the total data;
1043. the data is cleared.
The data generated by the preset operation performed in the second operating system for the target application is stored in the specified memory area, so that after the second operating system is exited, all the data in the specified memory area can be read, after the read data is read, the data generated by the target application is extracted, and the data is cleared, which is equivalent to deleting all the data newly generated when the second operating system is used. For example, the photo application originally has 5 photos, and a user downloads one photo during the application using process, and the downloaded photo can be used as new generation data, and the downloaded photo can be deleted after exiting the second operating system. Meanwhile, if the target application in the first operating system is called in the second operating system, the mirror image data resource of the target application is copied in the designated memory area, and the copied mirror image data resource can be deleted after the second operating system is exited. After exiting the second operating system, the freed space for the specified memory region should be as large as the freed space before entering the second operating system.
Optionally, if the operation for the target application is not a preset operation, the operation is still valid after exiting the second operating system. The operation may be, for example, uploading data over the internet. For example, in the second operating system, 5 photos are downloaded to the photo application, and then the 5 downloaded photos are backed up to the target application, after the user exits the second operating system, there are no more 5 photos in the mobile terminal, but the user can find the 5 photos in the hundredth cloud application.
In specific applications, for example, when a user uses applications such as a microblog application, a WeChat application, a QQ application and the like through a mobile phone, a certain amount of picture cache data is generated every time the user looks up a picture of a person who looks at the user, and in the past, more and more cache data can be accumulated and occupy a memory area of the mobile phone. By the embodiment of the invention, when the user wants to use the microblog application, the microblog application can be used in the environment of the second operating system, and the cache data generated by the microblog application is automatically cleared after the user quits the second operating system. Because the data generated by using the target application in the second operating system has the designated memory area and can be cleared after exiting the second operating system, the embodiment of the invention can automatically clear the cache data generated when using each application without manually clearing by a user.
In a specific application, for example, in the second operating system, a user does not need to worry about system crash caused by a hacker attacking the mobile terminal system, or worry about downloaded data with viruses or trojans, or worry about unsmooth use of the system caused by junk information reserved in the application occupying a memory of the mobile terminal, and the user can return to the first operating system by exiting the second operating system, and can use original data resources before entering the second operating system after returning to the first operating system. Optionally, the security of the mobile terminal can be improved through the embodiment of the invention.
It can be seen that, according to the embodiment of the present invention, the target application is run in the environment of the second operating system, and the second operating system corresponds to one designated memory area; storing data generated by the target application to the designated memory area; and clearing the data in the specified memory area after exiting the second operating system. Because the application is used in the second operating system, the original parameters in the first operating system are not influenced, and because the operations of factory restoration, machine updating, upgrading and the like are not adopted, the compatibility of the mobile terminal can be kept.
In accordance with the above, please refer to fig. 2, which is a flowchart illustrating a data processing method according to a second embodiment of the present invention. The data processing method described in this embodiment includes the following steps:
201. and judging whether the memory size of the specified memory area is lower than a first preset threshold value.
Since the second operating system and the data generated when the second operating system is used are both stored in the designated memory area, a certain memory space needs to be reserved for the designated memory area, and thus, the second operating system can be normally used. Therefore, the memory size of the designated memory area can be judged, and whether the memory size of the designated memory area is lower than the preset threshold value or not can be judged. For example, the first preset threshold is 2G, and it may be determined whether the memory of the currently specified memory region is smaller than 2G.
202. And if the memory size is lower than the first preset threshold, performing memory cleaning operation on the specified memory area, and running the target application in a second operating system environment when the memory size after the memory cleaning operation is larger than a second preset threshold.
The first preset threshold and the second preset threshold can be set by default of a system or by a user. When the memory size of the specified memory area is lower than the preset threshold, the memory space of the specified memory area needs to be cleaned to release more memory space, and in the process of cleaning the memory, after the memory size of the current specified memory area is larger than a second preset threshold, the target application running in the second operating system environment can be executed. For example, when the remaining memory of the current RAM is 1G, the first preset threshold is 2G, and the second preset threshold is 1.5G, the mobile terminal automatically performs a memory cleaning operation on the specified memory area, and when the memory of the RAM is cleaned to be greater than 1.5G, the running target application can be executed.
203. And storing the data generated by the target application to the specified memory area.
204. And clearing the data in the specified memory area after exiting the second operating system.
The steps 203 to 204 may refer to steps 102 to 103 of the data processing method described with reference to fig. 1.
It can be seen that, according to the embodiment of the present invention, it is determined whether the memory size of the specified memory area is lower than the first preset threshold; if the size of the memory is lower than the first preset threshold value, performing memory cleaning operation on the specified memory area, and running a target application in a second operating system environment when the size of the memory after the memory cleaning operation is larger than a second preset threshold value; storing data generated by the target application to the designated memory area; and clearing the data in the specified memory area after exiting the second operating system. Therefore, target operation can be carried out in the second operating system, original parameters in the first operating system are not changed, and meanwhile, the memory space of the designated memory area can be cleared before the application is run, so that the normal running of the application in the second operating system is ensured.
In accordance with the foregoing, the following is a device for implementing the data processing method according to the foregoing embodiment of the present invention, and specifically includes:
please refer to fig. 3a, which is a schematic structural diagram of a data processing apparatus according to a first embodiment of the present invention. The data processing apparatus described in this embodiment includes: the operation unit 301, the storage unit 302 and the clearing unit 303 are specifically as follows:
an operation unit 301, configured to operate a target application in a second operating system environment, where the second operating system corresponds to a designated memory area;
a storage unit 302, configured to store data generated by the target application in the specified memory area;
a clearing unit 303, configured to clear the data in the specified memory area after exiting the second operating system.
Alternatively, as shown in fig. 3b, the operation unit 301 of the data processing apparatus depicted in fig. 3a may comprise: the reading module 3011 and the calling module 3012 are as follows:
a reading module 3011, configured to read a mirror data resource of the target application in a first operating system;
and the calling module 3012 is configured to call the mirrored data resource to the second operating system, and run the target application according to the mirrored data resource.
Optionally, the storage unit 302 is specifically configured to:
and if the preset operation aiming at the target application exists, storing the data generated by the preset operation to the specified memory area.
Alternatively, as shown in fig. 3c, the clearing unit 303 of the data processing apparatus depicted in fig. 3a may comprise: the acquiring module 3031, the extracting module 3032 and the clearing module 3033 are as follows:
an obtaining module 3031, configured to obtain all data in the specified memory region;
an extracting module 3032, configured to extract the data from all the data;
a clearing module 3033, configured to clear the data.
It can be seen that, with the data processing apparatus described in the embodiment of the present invention, the target application is run in the environment of the second operating system, and the second operating system corresponds to one designated memory area; storing data generated by the target application to the designated memory area; and clearing the data in the specified memory area after exiting the second operating system. Because the application is used in the second operating system, the original parameters in the first operating system are not influenced, and because the operations of factory restoration, machine updating, upgrading and the like are not adopted, the compatibility of the mobile terminal can be kept.
Fig. 4 is a schematic structural diagram of a data processing apparatus according to a second embodiment of the present invention. The data processing apparatus described in this embodiment includes: the cleaning unit 401, the running unit 402, the storage unit 403 and the cleaning unit 404 are specifically as follows:
a clearing unit 401, configured to perform a memory clearing operation on a specified memory area if the memory size of the specified memory area is lower than a first preset threshold;
a running unit 402, configured to run the target application in a second operating system environment when the size of the memory after the memory cleaning operation is greater than a second preset threshold;
a storage unit 403, configured to store data generated by the target application in the specified memory area;
a clearing unit 404, configured to clear the data in the specified memory area after exiting the second operating system.
It can be seen that, with the data processing apparatus described in the embodiment of the present invention, if the memory size of a specified memory region is lower than a first preset threshold, a memory cleaning operation is performed on the specified memory region, and when the memory size after the memory cleaning operation is larger than a second preset threshold, a target application is run in a second operating system environment; storing data generated by the target application to the designated memory area; and clearing the data in the specified memory area after exiting the second operating system. Therefore, target operation can be carried out in the second operating system, original parameters in the first operating system are not changed, and meanwhile, the memory space of the designated memory area can be cleared before the application is run, so that the normal running of the application in the second operating system is ensured.
Fig. 5 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a touch panel, a physical button, or a mouse.
The output device 2000 may be a display screen.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the processor 3000 is configured to:
running a target application in a second operating system environment, wherein the second operating system corresponds to a designated memory area;
storing data generated by the target application to the designated memory area;
and clearing the data in the specified memory area after exiting the second operating system.
Optionally, the processor 3000 runs a target application in the second operating system environment, and includes:
reading mirror image data resources of the target application in a first operating system;
and calling the mirror image data resource to the second operating system, and running the target application according to the mirror image data resource.
Optionally, the processor 3000 stores the data generated by the target application in the designated memory area, including:
judging whether preset operation aiming at the target application exists or not;
and if the preset operation aiming at the target application exists, storing the data generated by the preset operation to the specified memory area.
Optionally, the clearing, by the processor 3000, the data in the specified memory area includes:
acquiring all data in the specified memory area;
extracting the data from the total data;
the data is cleared.
Optionally, before the processor 3000 runs the target application in the second operating system environment, the method further includes:
judging whether the memory size of the specified memory area is lower than a first preset threshold value or not;
and if the memory size is lower than the first preset threshold, performing memory cleaning operation on the specified memory area, and executing the target application running in the second operating system environment when the memory size after the memory cleaning operation is larger than a second preset threshold.
Fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuitry 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuitry 660, WiFi module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a 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 on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the foregoing embodiment, the method flows of the steps may be implemented based on the structure of the mobile terminal. Wherein the sensor 670 may comprise a proximity sensor and a humidity sensor, and the touch panel 631 may be used as a fingerprint recognition module.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the data processing methods described in the above method embodiments.
While the invention has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the invention has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the invention. Accordingly, the specification and figures are merely exemplary of the invention as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A data processing method, comprising:
running the target application in a second operating system environment, wherein the second operating system corresponds to a designated memory area, and the method comprises the following steps: reading a mirror image data resource of the target application in a first operating system, calling the mirror image data resource to a second operating system, and running the target application according to the mirror image data resource, wherein the second operating system is the mirror image operating system of the first operating system, and the specified memory area is used for storing data generated when the second operating system is used;
storing data generated by the target application to the designated memory area;
and clearing the data in the specified memory area after exiting the second operating system.
2. The method of claim 1, wherein storing the data generated by the target application to the specified memory region comprises:
and if the preset operation aiming at the target application exists, storing the data generated by the preset operation to the specified memory area.
3. The method of claim 1, wherein said clearing said data in said specified memory region comprises:
acquiring all data in the specified memory area;
extracting the data from the total data;
the data is cleared.
4. The method of claim 1, wherein prior to said running the target application in the second operating system environment, the method further comprises:
and if the memory size of the specified memory area is lower than a first preset threshold value, performing memory cleaning operation on the specified memory area, and executing the target application running in the second operating system environment when the memory size after the memory cleaning operation is larger than a second preset threshold value.
5. A data processing apparatus, comprising:
the system comprises a running unit, a storage unit and a processing unit, wherein the running unit is used for running a target application under a second operating system environment, the second operating system corresponds to a designated memory area, the running unit is also used for reading a mirror image data resource of the target application in a first operating system, calling the mirror image data resource to the second operating system, and running the target application according to the mirror image data resource, and the second operating system is a mirror image operating system of the first operating system;
the storage unit is used for storing data generated by the target application to the specified memory area, and the specified memory area is used for storing the data generated when the second operating system is used;
and the clearing unit is used for clearing the data in the specified memory area after the second operating system is exited.
6. The data processing apparatus of claim 5, wherein the storage unit is specifically configured to:
and if the preset operation aiming at the target application exists, storing the data generated by the preset operation to the specified memory area.
7. The data processing apparatus according to claim 5, wherein the clearing unit includes:
the acquisition module is used for acquiring all data in the specified memory area;
an extraction module for extracting the data from the total data;
and the clearing module is used for clearing the data.
8. The data processing apparatus of claim 5, wherein the data processing apparatus further comprises:
and the clearing unit is used for performing memory clearing operation on the specified memory area if the memory size of the specified memory area is lower than a first preset threshold value before the running unit runs the target application in the second operating system environment, and executing the target application in the second operating system environment by the running unit when the memory size after the memory clearing operation is larger than a second preset threshold value.
9. A mobile terminal, comprising:
a processor and a memory; wherein the processor performs the method of any one of claims 1 to 4 by calling code or instructions in the memory.
CN201710080046.2A 2017-02-14 2017-02-14 Data processing method and device and mobile terminal Active CN106844057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710080046.2A CN106844057B (en) 2017-02-14 2017-02-14 Data processing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710080046.2A CN106844057B (en) 2017-02-14 2017-02-14 Data processing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106844057A CN106844057A (en) 2017-06-13
CN106844057B true CN106844057B (en) 2020-05-26

Family

ID=59127296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710080046.2A Active CN106844057B (en) 2017-02-14 2017-02-14 Data processing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106844057B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688497B (en) * 2017-07-25 2021-09-14 努比亚技术有限公司 Memory regulation and control method, equipment and computer readable storage medium
CN107844375B (en) * 2017-11-14 2019-09-13 Oppo广东移动通信有限公司 Using method for closing, device, storage medium and electronic equipment
CN108052419B (en) * 2018-01-05 2021-10-26 哈尔滨学院 Data disaster tolerance method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870298A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Switching method and electronic device
CN105224399A (en) * 2014-05-26 2016-01-06 宏碁股份有限公司 The method of electronic installation and switching operating system thereof
CN105808442A (en) * 2014-12-27 2016-07-27 北京奇虎科技有限公司 A mobile terminal memory clearing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870298A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Switching method and electronic device
CN105224399A (en) * 2014-05-26 2016-01-06 宏碁股份有限公司 The method of electronic installation and switching operating system thereof
CN105808442A (en) * 2014-12-27 2016-07-27 北京奇虎科技有限公司 A mobile terminal memory clearing method and device

Also Published As

Publication number Publication date
CN106844057A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN104383681B (en) Method for controlling game program, device and mobile terminal
CN107967129B (en) Display control method and related product
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
CN110430592B (en) Network control method and related product
CN105653220B (en) Screen data display method and device in remote control
CN106569910B (en) Data backup and transmission method and mobile terminal
WO2015007232A1 (en) Method, device and mobile terminal for checking message
CN106658753B (en) Data migration method and terminal equipment
WO2018049934A1 (en) Data migration method and terminals
CN106507269B (en) Data migration method and terminal equipment
CN110162954B (en) Authority management method and related product
CN103294442B (en) A kind of method of playing alert tones, device and terminal device
CN104036536A (en) Generating method and apparatus of stop motion animation
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN106844057B (en) Data processing method and device and mobile terminal
CN107124516B (en) Method and device for sending refused incoming call short message and mobile terminal
CN109413256B (en) Contact person information processing method and device, storage medium and electronic equipment
CN106484563B (en) Data migration method and terminal equipment
CN114691277A (en) Application program processing method, intelligent terminal and storage medium
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN105700801B (en) Interface intercepting method and equipment
EP3447641A1 (en) Sound effect processing method and terminal
CN110855807A (en) Method and equipment for adding contact person

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