CN108833668A - Closedown method and Related product - Google Patents
Closedown method and Related product Download PDFInfo
- Publication number
- CN108833668A CN108833668A CN201810395767.7A CN201810395767A CN108833668A CN 108833668 A CN108833668 A CN 108833668A CN 201810395767 A CN201810395767 A CN 201810395767A CN 108833668 A CN108833668 A CN 108833668A
- Authority
- CN
- China
- Prior art keywords
- mount point
- mobile terminal
- shutdown
- vold
- storage
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/442—Shutdown
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present application discloses a kind of closedown method and Related product.This method is applied to mobile terminal, and operation has carry finger daemon service Vold and at least one application program on the mobile terminal, the method includes:Shutdown flag is arranged by the Vold first in mobile terminal, storage unloading strategy setting is unloaded into strategy for delay according to the shutdown flag, secondly, a reading mode is set by the mount point according to delay unloading strategy, and system is notified to remove the mount point, finally, extinguishing display screen and shaking, completed with prompting user to shut down.The embodiment of the present application is conducive to improve the high efficiency and accuracy when mobile terminal is shut down.
Description
Technical field
This application involves technical field of mobile terminals, and in particular to closedown method and Related product.
Background technique
With the fast development of smart phone the relevant technologies, more and more applications are installed in user mobile phone, are such as read
Class application, the application of payment class, game class application, the application of music class etc. are read, the clothing, food, lodging and transportion -- basic necessities of life of people are inseparable with mobile phone.
However mobile phone has been used long to block, system can generate many rubbish, and there are also many background programs to run, due to application with
And some shortcomings that system itself has, sometimes system resource is unable to get thorough release, thus with using the time
Increase, the response speed of complete machine will be slack-off, may during shutting down rest so just need that mobile phone shutdown is allowed to rest
Slow-footed problem of shutting down can be caused because of various reasons.
Summary of the invention
The embodiment of the present application provides closedown method and Related product, can be improved efficient when mobile terminal is shut down
Property and accuracy.
In a first aspect, the embodiment of the present application provides a kind of closedown method, it is applied to mobile terminal, is transported on the mobile terminal
Row has carry finger daemon service Vold and at least one application program, the method includes:
Shutdown flag is set by the Vold, storage unloading strategy setting is postponed by unloading according to the shutdown flag
Strategy;
A reading mode is set by the mount point according to delay unloading strategy, and system is notified to remove the carry
Point;
Extinguish display screen and shake, is completed with prompting user to shut down.
Second aspect, the embodiment of the present application provide a kind of shutdown unit, are applied to mobile terminal, transport on the mobile terminal
Row has carry finger daemon service Vold and at least one application program, and the shutdown unit includes setting unit, removes unit
And prompt unit,
The setting unit unloads storage according to the shutdown flag for shutdown flag to be arranged by the Vold
Strategy setting is delay unloading strategy;
The removal unit for setting a reading mode for the mount point according to delay unloading strategy, and leads to
Know that system removes the mount point;
The prompt unit is completed for extinguishing display screen and shaking with prompting user to shut down.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable
Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as
Step some or all of described in the embodiment of the present application first aspect either method, above-mentioned computer include mobile terminal.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product
Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate
Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product
It can be a software installation packet, above-mentioned computer includes mobile terminal.
As can be seen that shutdown flag is arranged by the Vold first in mobile terminal, according to described in the embodiment of the present application
Storage unloading strategy setting is delay unloading strategy by shutdown flag, secondly, tactful by the carry according to delay unloading
Point is set as a reading mode, and system is notified to remove the mount point, finally, extinguishing display screen and shaking, to prompt user to close
Machine is completed.Since mobile terminal can flexibly be adjusted storage strategy according to shutdown mark, using new unloading strategy
A reading mode is set by the read-write mode of mount point, occupied by the process that will not be applied as the mount point of only reading mode,
To which mobile terminal is without executing the occupancy process of traversal lookup mount point and closing the process of process, to accelerate mount point
Discharge rate, improve shutdown speed.
Detailed description of the invention
Attached drawing involved by the embodiment of the present application will be briefly described below.
Figure 1A is a kind of schematic diagram of the program running space of smart phone;
Figure 1B is a kind of the relevant technologies flow diagram of shutdown;
Fig. 2 is a kind of flow diagram of closedown method provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of closedown method disclosed in the embodiment of the present application;
Fig. 4 is a kind of flow diagram of closedown method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of smart phone disclosed in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have
It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap
Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application may include the various handheld devices with wireless communication function,
Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem
User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal
Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Behaviour involved by the embodiment of the present invention
It is the software systems for being managed collectively to hardware resource, and providing a user business interface as system.
As shown in Figure 1A, the mobile terminals such as smart phone are typically provided with program running space at present, and program operation is empty
Between include user's space and operating system space, wherein user's space operation have one or more application program, this or more
A application program is the third party application of mobile terminal installation, and operating system space motion has the operation system of mobile terminal
System.The mobile terminal can specifically run Android android system, Mobile operating system iOS of Apple Inc.'s exploitation etc., herein
Unique restriction is not done.Wherein, the storage system of android system mainly by:In system server (SystemServer) process
MountService and Vold process in volumeManager composition.They manage the storage equipment of system, execute each
Kind operation, such as:Carry (mount) releases carry (unmount), formatting (format) etc..Vold is Volume Daemon
Abbreviation, it is the control center of external storage system in Android platform, is to manage and control to deposit outside Android platform
Store up the background process of equipment.Control center of the Vold as storage equipment needs to receive from upper layer storage service
The operational order of MountService, MountService reside in SystemServer process and Vold as two not
Same process, the communication mode between them are communicated using socket, and storage manager volumeManager is exactly entire
The kernel scheduling of Android disk carry Vold mechanism, the terminal being vertically connected with.
Below to this application involves the relevant technologies describe in detail.
As shown in Figure 1B, by taking above-mentioned running of mobile terminal has android system as an example, in the related art, mobile terminal
It needs to require each mount point to carry out to traverse a program directory, then judges whether there is background process and work as in occupancy
Front hanging loading point.If so, first deleting backstage occupies process.Mobile phone is in the case where inserting external memory card, in addition in unloading mobile phone
The mount point of portion's storage, the mount point number for needing to be traversed for background process is usually 3.Existing procedure needs to be traversed for 3 secondary programs
Catalogue, and quantity of documents number is led generally at 700 or so wherein also needing to be implemented the io such as some open calling under program directory
Cause the problems such as time-consuming, the bit error rate is high, transmission speed is slow.
In view of the above technical problems, it proposes following solution, is described in detail with reference to the accompanying drawing.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of closedown method, it is applied to movement
Terminal, operation has carry finger daemon service Vold and at least one application program on the mobile terminal, as shown in Fig. 2, this
Closedown method includes:
Shutdown flag is arranged by the Vold in S201, mobile terminal, according to the shutdown flag that storage unloading is tactful
It is set as delay unloading strategy.
Wherein, shutdown mark is by the volumeManager setting in Vold, the normal unloading of shutdown process difference.
Wherein, storage unloading strategy refers to for cancelling application program to the strategy of the occupied state of storage resource.
S202, the mobile terminal sets a reading mode for the mount point according to delay unloading strategy, and leads to
Know that system removes the mount point.
Wherein, reading mode is that document or attribute can only be read, and cannot modify the mode that can not be stored.
Wherein, it when removing mount point, can be carried out removing whether there is or not application program in mount point.
S203, the mobile terminal extinguish display screen and shake, and are completed with prompting user to shut down.
As can be seen that shutdown flag is arranged by the Vold first in mobile terminal, according to described in the embodiment of the present application
Storage unloading strategy setting is delay unloading strategy by shutdown flag, secondly, tactful by the carry according to delay unloading
Point is set as a reading mode, and system is notified to remove the mount point, finally, extinguishing display screen and shaking, to prompt user to close
Machine is completed.Since mobile terminal can flexibly be adjusted storage strategy according to shutdown mark, using new unloading strategy
A reading mode is set by the read-write mode of mount point, occupied by the process that will not be applied as the mount point of only reading mode,
To which mobile terminal is without executing the occupancy process of traversal lookup mount point and closing the process of process, to accelerate mount point
Discharge rate, improve shutdown speed.
In a possible example, also operation has storage service mountservice on the mobile terminal, described logical
It crosses before the Vold setting shutdown flag, the method also includes:Shutdown request is received by the mountservice
When, storage unloading is broadcasted at least one described application program by the mountservice and completes message, the storage is unloaded
It carries completion message and is used to indicate the occupancy that at least one described application program cancels the mount point for the mobile terminal.
Wherein, storage service is MountService in android 7.1 and pervious version, in andnroid 8.0 and
The above are StorageManagerService.In Vold, MountService, which is equivalent to, externally to be provided a service and connects
Mouthful.
Wherein, communication service commandlistener sends to Vold and notifies in Vlod.
Wherein, the shutdown request that shutdown request can be formed for user's Self-operating, or producer makes by oneself when factory
Unused time and the shutdown request that triggers.
As it can be seen that mobile terminal passes through the shutdown request received in this example, proposes forward direction system and broadcasted, Jin Errang
The relevant treatment of storage unloading is fulfiled in android application ahead of schedule, is conducive to high efficiency when mobile terminal is shut down and convenient
Property.
In a possible example, the Vold includes memory module, and the memory module is divided into storage inside submodule
Block emulated volume and external storage submodule public volume, the mobile terminal unload plan according to the delay
A reading mode slightly is set by the mount point, including:Parameter preset is called, the parameter preset is MNT DETACH parameter;
The first mount point and the second mount point are updated to a reading mode according to the parameter preset, first mount point is located at described
Emulated volume, second mount point are located at the public volume.
Wherein, storage inside submodule emulated volume is mobile terminal storage.
Wherein, external storage submodule public volume is the external storages such as T card.
Optionally, for mobile terminal by calling parameter preset, the parameter preset is MNT DETACH parameter;According to described
First mount point is first updated to a reading mode by parameter preset, and the second mount point is updated to a reading mode again thereafter, and described
One mount point is located at the emulated volume, and second mount point is located at the public volume.
Optionally, for mobile terminal by calling parameter preset, the parameter preset is MNT DETACH parameter;According to described
First mount point is first updated to a reading mode by parameter preset, and the second mount point is updated to a reading mode again thereafter, and described
One mount point is located at the public volume, and second mount point is located at the emulated volume.
As it can be seen that in this example, mobile terminal is by calling parameter preset, by the mount point of memory storage and external storage
The whole more reading modes of mount point, background process can not occupy mount point at this time, can accelerate what mobile terminal shut down
Speed improves timeliness and accuracy when mobile terminal is shut down.
In a possible example, described that shutdown flag is arranged by the Vold, the mobile terminal is according to
Storage unloading strategy setting is delay unloading strategy by shutdown flag, including:Preset strategy database is inquired, determines the shutdown
Corresponding delay unloading strategy is identified, the policy database includes the corresponding pass between shutdown mark and delay unloading strategy
System.
As it can be seen that mobile terminal can determine that currently applicable delay is unloaded according to inquiry preset strategy database in this example
Carry strategy, further improve the accuracy for choosing unloading strategy, be conducive to high efficiency when mobile terminal is shut down and
Accuracy.
In a possible example, at least one described application program can not occupy the institute under reading mode
State mount point;The power-off operation includes closing the mountservice and Vold.
As it can be seen that in this example, since define application program writes mode, by it is readable can WriteMode become read-only mould
Formula eliminates traversal and searches the process that mount point occupies process and closing process, accelerates storage discharge rate, improve shutdown
Speed.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of shutdown provided by the embodiments of the present application
The flow diagram of method is applied to mobile terminal, and operation has carry finger daemon service Vold and extremely on the mobile terminal
A few application program, as shown, this closedown method includes:
Shutdown flag is arranged by the Vold in S301, mobile terminal, according to the shutdown flag that storage unloading is tactful
It is set as delay unloading strategy.
S302, the mobile terminal call parameter preset, and the parameter preset is MNT DETACH parameter.
First mount point and the second mount point are updated to read-only mould according to the parameter preset by S303, the mobile terminal
Formula, and system is notified to remove the mount point.
S304, the mobile terminal extinguish display screen and shake, and are completed with prompting user to shut down.
As can be seen that shutdown flag is arranged by the Vold first in mobile terminal, according to described in the embodiment of the present application
Storage unloading strategy setting is delay unloading strategy by shutdown flag, secondly, tactful by the carry according to delay unloading
Point is set as a reading mode, and system is notified to remove the mount point, finally, extinguishing display screen and shaking, to prompt user to close
Machine is completed.Since mobile terminal can flexibly be adjusted storage strategy according to shutdown mark, using new unloading strategy
A reading mode is set by the read-write mode of mount point, occupied by the process that will not be applied as the mount point of only reading mode,
To which mobile terminal is without executing the occupancy process of traversal lookup mount point and closing the process of process, to accelerate mount point
Discharge rate, improve shutdown speed.
In addition, mobile terminal is by calling parameter preset, the mount point of the mount point of memory storage and external storage is complete
Portion's more reading mode, background process can not occupy mount point at this time, can accelerate the speed that mobile terminal shuts down, and improve
Timeliness and accuracy when mobile terminal is shut down.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of shutdown provided by the embodiments of the present application
The flow diagram of method is applied to mobile terminal, and operation has carry finger daemon service Vold and extremely on the mobile terminal
A few application program.As shown, this closedown method includes:
S401, when mobile terminal receives shutdown request by the mountservice, by described
Mountservice broadcasts storage unloading at least one described application program and completes message.
S402, the mobile terminal enquiry preset strategy database determine that the shutdown identifies corresponding delay unloading plan
Slightly.
S403, the mobile terminal call parameter preset, and the parameter preset is MNT DETACH parameter.
First mount point and the second mount point are updated to read-only mould according to the parameter preset by S404, the mobile terminal
Formula, and system is notified to remove the mount point.
S405, the mobile terminal extinguish display screen and shake, and are completed with prompting user to shut down.
As can be seen that shutdown flag is arranged by the Vold first in mobile terminal, according to described in the embodiment of the present application
Storage unloading strategy setting is delay unloading strategy by shutdown flag, secondly, tactful by the carry according to delay unloading
Point is set as a reading mode, and system is notified to remove the mount point, finally, extinguishing display screen and shaking, to prompt user to close
Machine is completed.Since mobile terminal can flexibly be adjusted storage strategy according to shutdown mark, using new unloading strategy
A reading mode is set by the read-write mode of mount point, occupied by the process that will not be applied as the mount point of only reading mode,
To which mobile terminal is without executing the occupancy process of traversal lookup mount point and closing the process of process, to accelerate mount point
Discharge rate, improve shutdown speed.
In addition, mobile terminal can determine that currently applicable delay unloads strategy according to inquiry preset strategy database, into
One step improves the accuracy for choosing unloading strategy, is conducive to the high efficiency and accuracy when mobile terminal is shut down.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that
, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for mobile terminal
Block.Those skilled in the art should be readily appreciated that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution
Part.Professional technician can specifically realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to mobile terminal, for example, can
With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit
In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs
It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application
A kind of structural schematic diagram of mobile terminal, on the mobile terminal operation have carry finger daemon service Vold and at least one answer
With program, as shown, the mobile terminal includes processor, memory, communication interface and one or more programs, wherein
Said one or multiple programs are different from said one or multiple application programs, and said one or multiple programs are stored in
It states in memory, and is configured to be executed by above-mentioned processor, above procedure includes the instruction for executing following steps;
Shutdown flag is set by the Vold, storage unloading strategy setting is postponed by unloading according to the shutdown flag
Strategy;
A reading mode is set by the mount point according to delay unloading strategy, and system is notified to remove the carry
Point;
Extinguish display screen and shake, is completed with prompting user to shut down.
As can be seen that shutdown flag is arranged by the Vold first in mobile terminal, according to described in the embodiment of the present application
Storage unloading strategy setting is delay unloading strategy by shutdown flag, secondly, tactful by the carry according to delay unloading
Point is set as a reading mode, and system is notified to remove the mount point, finally, extinguishing display screen and shaking, to prompt user to close
Machine is completed.Since mobile terminal can flexibly be adjusted storage strategy according to shutdown mark, using new unloading strategy
A reading mode is set by the read-write mode of mount point, occupied by the process that will not be applied as the mount point of only reading mode,
To which mobile terminal is without executing the occupancy process of traversal lookup mount point and closing the process of process, to accelerate mount point
Discharge rate, improve shutdown speed.
In a possible example, also operation has storage service mountservice on the mobile terminal, described
Before shutdown flag is arranged by the Vold, the instruction in above procedure is also used to execute following operation:
Control is when receiving shutdown request by the mountservice, by the mountservice to it is described extremely
Message is completed in few application program broadcast storage unloading, the storage unloading complete message be used to indicate described at least one answer
With program control by-pass for the occupancy of the mount point of the mobile terminal.
In a possible example, the Vold includes memory module, and the memory module is divided into storage inside submodule
Block emulated volume and external storage submodule public volume, described tactful by institute according to delay unloading
It states mount point and is set as a reading mode aspect, the instruction in above procedure is specifically used for executing following operation:Control is called default
Parameter, the parameter preset are MNT DETACH parameter;And control according to the parameter preset by the first mount point and second
Mount point is updated to a reading mode, and first mount point is located at the emulated volume, and second mount point is located at
The public volume.
In a possible example, shutdown flag is arranged by the Vold described, it will according to the shutdown flag
Storage unloading strategy setting is delay unloading strategy aspect, and the instruction in above procedure is specifically used for executing following operation:Inquiry
Preset strategy database determines that the shutdown identifies corresponding delay unloading strategy, and the policy database includes shutdown mark
With the corresponding relationship between delay unloading strategy.
In a possible example, at least one described application program can not occupy the institute under reading mode
State mount point;The power-off operation includes closing the mountservice and Vold.
Fig. 6 shows a kind of possible functional unit composition block diagram of shutdown unit involved in above-described embodiment.It closes
Machine device 600 is applied to mobile terminal, and operation has carry finger daemon service Vold to answer at least one on the mobile terminal
With program, shutdown unit 600 includes setting unit 601, mobile unit 602 and prompt unit 603, wherein
The setting unit 601 unloads storage according to the shutdown flag for shutdown flag to be arranged by the Vold
Carrying strategy setting is delay unloading strategy;
The removal unit 602, for setting a reading mode for the mount point according to delay unloading strategy, and
Notice system removes the mount point;
The prompt unit 603 is completed for extinguishing display screen and shaking with prompting user to shut down.
In a possible example, also operation has storage service mountservice, the pass on the mobile terminal
Machine device further includes radio unit 604, and the radio unit 604 passes through Vold setting shutdown in the setting unit 601
Before mark, it is also used to:When control receives shutdown request by the mountservice, pass through the mountservice
Broadcast storage unloading at least one described application program and complete message, storage unloading complete message be used to indicate described in extremely
A few application program cancels the occupancy of the mount point for the mobile terminal.
In a possible example, the Vold includes memory module, and the memory module is divided into storage inside submodule
Block emulated volume and external storage submodule public volume, described tactful by institute according to delay unloading
It states mount point and is set as a reading mode aspect, the removal unit 602 is specifically used for:Call parameter preset, the parameter preset
For MNT DETACH parameter;The first mount point and the second mount point are updated to a reading mode according to the parameter preset, it is described
First mount point is located at the emulated volume, and second mount point is located at the public volume.
In a possible example, shutdown flag is arranged by the Vold described, it will according to the shutdown flag
Storage unloading strategy setting is delay unloading strategy aspect, and the setting unit 601 is specifically used for:Control inquiry preset strategy number
According to library, determine that the shutdown identifies corresponding delay unloading strategy, the policy database includes that shutdown mark is unloaded with delay
Corresponding relationship between strategy.
In a possible example, at least one described application program can not occupy the institute under reading mode
State mount point;The power-off operation includes closing the mountservice and Vold.
Referring to Fig. 7, Fig. 7 is that the embodiment of the present application provides a kind of structural schematic diagram of smart phone 700, above-mentioned intelligence
Mobile phone 700 includes:Shell 710, touching display screen 720, mainboard 730, battery 740 and subplate 750, before being provided on mainboard 730
Camera 731, processor 732, memory 733, power management chip 734 etc. are set, oscillator 751, integrated sound are provided on subplate
Interface 753 is filled in chamber 752, VOOC sudden strain of a muscle.
Wherein, shutdown flag is arranged by the Vold in mobile terminal, according to the shutdown flag that storage unloading is tactful
It is set as delay unloading strategy;A reading mode is set by the mount point according to delay unloading strategy, and notifies system
Remove the mount point;Extinguish display screen and shake, is completed with prompting user to shut down.
Above-mentioned processor 732 is the control centre of smart phone, utilizes various interfaces and the entire smart phone of connection
Various pieces, by running or execute the software program and/or module that are stored in memory 733, and call and be stored in
Data in memory 733 execute the various functions and processing data of smart phone, to carry out whole prison to smart phone
Control.Optionally, processor 732 may include one or more processing units;Preferably, processor 732 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 732.The processor 732 for example can be central processing unit (Central Processing Unit, CPU), general procedure
Device, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application-
Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate
Array, FPGA) either other programmable logic device, transistor logic, hardware component or any combination thereof.It can
To realize or execute various illustrative logic blocks, module and circuit in conjunction with described in present disclosure.Above-mentioned place
Reason device is also possible to realize the combination of computing function, such as combines comprising one or more microprocessors, DSP and microprocessor
Combination etc..
Above-mentioned memory 733 can be used for storing software program and module, and processor 732 is stored in memory by operation
733 software program and module, thereby executing the various function application and data processing of smart phone.Memory 733 can
It mainly include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program etc.;Storage data area, which can be stored, uses created data etc. according to smart phone.In addition, memory 733
May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory,
Flush memory device or other volatile solid-state parts.The memory 733 for example can be random access memory (Random
Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), the read-only storage of erasable programmable
Device (Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically
EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or any other shape well known in the art
The storage medium of formula.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment
Some or all of method step, above-mentioned computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either record method step in method embodiment.The computer program product can be a software installation
Packet, above-mentioned computer includes mobile terminal.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application
Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English:
Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (12)
1. a kind of closedown method, be applied to mobile terminal, on the mobile terminal operation have carry finger daemon service Vold and
At least one application program, which is characterized in that the method includes:
Shutdown flag is set by the Vold, storage unloading strategy setting is postponed according to the shutdown flag by unloading plan
Slightly;
A reading mode is set by the mount point according to delay unloading strategy, and system is notified to remove the mount point;
Extinguish display screen and shake, is completed with prompting user to shut down.
2. the method according to claim 1, wherein also operation has storage service on the mobile terminal
Mountservice, it is described by the Vold be arranged shutdown flag before, the method also includes:
When receiving shutdown request by the mountservice, by the mountservice to it is described at least one answer
Unloading is stored with program broadcast and completes message, and the storage unloading completion message is used to indicate at least one described application program and takes
The occupancy to disappear for the mount point of the mobile terminal.
3. method according to claim 1 or 2, which is characterized in that the Vold includes memory module, the memory module
It is divided into storage inside submodule emulated volume and external storage submodule public volume, it is described to prolong according to described
The mount point is set a reading mode by unloading strategy late, including:
Parameter preset is called, the parameter preset is MNT DETACH parameter;
The first mount point and the second mount point are updated to a reading mode according to the parameter preset, first mount point is located at
The emulated volume, second mount point are located at the public volume.
4. the method according to claim 1, wherein described be arranged shutdown flag by the Vold, according to institute
It is delay unloading strategy that shutdown flag, which is stated, by storage unloading strategy setting, including:
Preset strategy database is inquired, determines that the shutdown identifies corresponding delay unloading strategy, the policy database includes
Corresponding relationship between shutdown mark and delay unloading strategy.
5. method according to claim 1-4, which is characterized in that at least one described application program can not occupy
The mount point under reading mode;The power-off operation includes closing the mountservice and Vold.
6. a kind of shutdown unit, be applied to mobile terminal, on the mobile terminal operation have carry finger daemon service Vold and
At least one application program, which is characterized in that the shutdown unit includes setting unit, removes unit and prompt unit,
The setting unit, it is according to the shutdown flag that storage unloading is tactful for shutdown flag to be arranged by the Vold
It is set as delay unloading strategy;
The removal unit, for by the mount point setting a reading mode according to delay unloading strategy, and notify be
System removes the mount point;
The prompt unit is completed for extinguishing display screen and shaking with prompting user to shut down.
7. device according to claim 6, which is characterized in that also operation has storage service on the mobile terminal
mountservice;The shutdown unit further includes radio unit, and the radio unit passes through described in the setting unit
Vold is arranged before shutdown flag, is also used to:
When receiving shutdown request by the mountservice, by the mountservice to it is described at least one answer
Unloading is stored with program broadcast and completes message, and the storage unloading completion message is used to indicate at least one described application program and takes
The occupancy to disappear for the mount point of the mobile terminal.
8. device according to claim 6 or 7, which is characterized in that the Vold includes memory module, the memory module
It is divided into storage inside submodule emulated volume and external storage submodule public volume, described according to described
In terms of the mount point is set a reading mode by delay unloading strategy, the removal unit is specifically used for:Parameter preset is called,
The parameter preset is MNT DETACH parameter;And the first mount point and the second mount point are updated according to the parameter preset
For only reading mode, first mount point is located at the emulated volume, and second mount point is located at the public
volume。
9. device according to claim 6, which is characterized in that shutdown flag is arranged by the Vold described, according to
Storage unloading strategy setting is delay unloading strategy aspect by the shutdown flag, and the setting unit is specifically used for:
Preset strategy database is inquired, determines that the shutdown identifies corresponding delay unloading strategy, the policy database includes
Corresponding relationship between shutdown mark and delay unloading strategy.
10. according to the described in any item devices of claim 6-9, which is characterized in that at least one described application program can not account for
With the mount point under reading mode;The power-off operation includes closing the mountservice and Vold.
11. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface and one or more program,
Wherein, one or more of programs are stored in the memory, and are configured to be executed by the processor, the journey
Sequence includes the steps that requiring the instruction in any one of 1-5 method for perform claim.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage is used for electron number
According to the computer program of exchange, wherein it is as described in any one in claim 1-5 that the computer program executes computer
Method, the computer include mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810395767.7A CN108833668B (en) | 2018-04-27 | 2018-04-27 | Shutdown method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810395767.7A CN108833668B (en) | 2018-04-27 | 2018-04-27 | Shutdown method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108833668A true CN108833668A (en) | 2018-11-16 |
CN108833668B CN108833668B (en) | 2020-12-15 |
Family
ID=64155761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810395767.7A Active CN108833668B (en) | 2018-04-27 | 2018-04-27 | Shutdown method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108833668B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609406A (en) * | 2009-07-17 | 2009-12-23 | 浪潮电子信息产业股份有限公司 | A kind of method of multi-BIOS mapping parallel initialization |
CN102830996A (en) * | 2012-08-08 | 2012-12-19 | 广东欧珀移动通信有限公司 | Fast boot method of handheld device |
US20140132973A1 (en) * | 2012-11-13 | 2014-05-15 | Canon Kabushiki Kaisha | Information processing apparatus, method of controlling the same, and storage medium |
CN105049936A (en) * | 2015-08-13 | 2015-11-11 | 海信集团有限公司 | Startup-shutdown method and device |
CN106033362A (en) * | 2015-03-13 | 2016-10-19 | 北京视联动力国际信息技术有限公司 | Method and device for processing flash memory partition |
CN106126272A (en) * | 2016-06-15 | 2016-11-16 | 北京小米移动软件有限公司 | File system discharging method and device |
CN107870968A (en) * | 2016-09-23 | 2018-04-03 | 苹果公司 | Real-time update is performed to file system volume |
-
2018
- 2018-04-27 CN CN201810395767.7A patent/CN108833668B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609406A (en) * | 2009-07-17 | 2009-12-23 | 浪潮电子信息产业股份有限公司 | A kind of method of multi-BIOS mapping parallel initialization |
CN102830996A (en) * | 2012-08-08 | 2012-12-19 | 广东欧珀移动通信有限公司 | Fast boot method of handheld device |
US20140132973A1 (en) * | 2012-11-13 | 2014-05-15 | Canon Kabushiki Kaisha | Information processing apparatus, method of controlling the same, and storage medium |
CN106033362A (en) * | 2015-03-13 | 2016-10-19 | 北京视联动力国际信息技术有限公司 | Method and device for processing flash memory partition |
CN105049936A (en) * | 2015-08-13 | 2015-11-11 | 海信集团有限公司 | Startup-shutdown method and device |
CN106126272A (en) * | 2016-06-15 | 2016-11-16 | 北京小米移动软件有限公司 | File system discharging method and device |
CN107870968A (en) * | 2016-09-23 | 2018-04-03 | 苹果公司 | Real-time update is performed to file system volume |
Also Published As
Publication number | Publication date |
---|---|
CN108833668B (en) | 2020-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915241B (en) | A kind of virtual machine (vm) migration control method and device | |
CN105763602A (en) | Data request processing method, server and cloud interactive system | |
CN101287187A (en) | Intelligent mobile phone and operating method of the operation system | |
CN108242837A (en) | The method of the charging of electronic equipment and control electronics | |
CN107635078A (en) | Game control method and equipment | |
CN107665098B (en) | Information processing method, storage device, and computer storage medium | |
CN105824572A (en) | Disk storage space managing method, apparatus and storage device | |
CN108733797A (en) | Document handling method and relevant apparatus | |
CN111684437B (en) | Staggered update key-value storage system ordered by time sequence | |
CN110209341B (en) | Data writing method and device and storage equipment | |
US20120047108A1 (en) | Point-in-time (pit) based thin reclamation support for systems with a storage usage map api | |
CN108984339A (en) | Data reconstruction method and Related product | |
CN106776908A (en) | Data clearing method, device and terminal | |
CN109597707A (en) | Clone volume data copying method, device and computer readable storage medium | |
CN108388458A (en) | Message treatment method and Related product | |
CN103870762A (en) | Partition accessing method and electronic equipment | |
CN107908957A (en) | A kind of safe operation management method and system of intelligent terminal | |
CN107861744A (en) | Method for upgrading system and device | |
CN106354718B (en) | File management method and device of user identification module | |
CN107670276B (en) | Game application control method and equipment | |
CN108762983A (en) | Multi-medium data restoration methods and device | |
CN108833668A (en) | Closedown method and Related product | |
CN108804258A (en) | Data reconstruction method, device, mobile terminal and storage medium | |
CN104375832A (en) | Underlying hardware shielding device and method for computer | |
CN112199042A (en) | Storage space management method, device, chip, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |