CN108833669A - Closedown method and Related product - Google Patents

Closedown method and Related product Download PDF

Info

Publication number
CN108833669A
CN108833669A CN201810395878.8A CN201810395878A CN108833669A CN 108833669 A CN108833669 A CN 108833669A CN 201810395878 A CN201810395878 A CN 201810395878A CN 108833669 A CN108833669 A CN 108833669A
Authority
CN
China
Prior art keywords
chained list
vold
mobile terminal
storage
volumemanger
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.)
Pending
Application number
CN201810395878.8A
Other languages
Chinese (zh)
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 CN201810395878.8A priority Critical patent/CN108833669A/en
Publication of CN108833669A publication Critical patent/CN108833669A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading

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 to service Vold on the mobile terminal, and the Vold includes storage manager volumemanger, the method includes:Mobile terminal passes through the Vold first and sets up the first chained list, secondly, when detecting storage carry starting request, first chained list is added in mount point, obtains the second chained list, again, second chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguish display screen and shake, is completed with prompting user to shut down.The embodiment of the present application is conducive to improve high efficiency and accuracy that mobile terminal shuts down.

Description

Closedown method and Related product
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, and the high efficiency that mobile terminal shuts down can be improved 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 to service Vold, and the Vold includes storage manager volumemanger, the method includes:
The first chained list is set up by the Vold;
When detecting storage carry starting request, first chained list is added in mount point, obtains the second chained list;
Second chained list is passed in the volumemanger, storage unloading is executed by the volumemanger Operation;
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 to service Vold, and the Vold includes storage manager volumemanger, and the shutdown unit includes Unit, adding unit, execution unit and prompt unit are set up,
The establishment unit, for setting up the first chained list by the Vold;
Mount point is added first chained list, obtained by the adding unit when for detecting storage carry starting request To the second chained list;
The execution unit, for second chained list to be passed in the volumemanger, by described Volumemanger executes storage unloading operation;
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 mobile terminal passes through the Vold first and sets up the first chained list in the embodiment of the present application, secondly, inspection When measuring storage carry starting request, first chained list is added in mount point, obtains the second chained list, again, by described second Chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguishing display Shield and shake, is completed with prompting user to shut down.Since mount point is added in empty chain table mobile terminal, formation contains mount point Chained list reduces processing delay convenient for being traversed in volumemanger, is conducive to the discharge rate for improving mount point, from And promote 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 disclosed in the embodiment 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 server 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 to service Vold on the mobile terminal, and the Vold includes storage manager Volumemanger, as shown in Fig. 2, this closedown method includes:
S201, mobile terminal set up the first chained list by the Vold.
Wherein, the first chained list is empty chain table.
Wherein, chained list be a kind of common basic data structure, be a kind of linear list, be on a kind of physical memory cell Discontinuous, non-sequential storage organization.Chained list is made of a series of nodes (each element is known as node in chained list), and node can To be dynamically generated at runtime.Each node includes the data field of storing data-elements and the pointer for storing next node address Two, domain part.It is complicated for operation compared to linear list sequential organization.The logical order of data element is also by the finger in chained list What needle link orders were realized.
Mount point is added first chained list, obtained by S202 when the mobile terminal detects storage carry starting request To the second chained list.
Wherein, all in system are all used as file to manage by this type operating system of mount point linux, unix.? Our common hardware device, disk partition etc., are all considered file in linux, unix in windows, to equipment, subregion Access be exactly to read and write corresponding file.The entrance catalogue of disk file system in actually linux, is similar to The C for being used to access different subregions in windows:,D:,E:Equal drives.Winxp also supports to hang over a disk partition in fact One file is in the following, only our C:,D:Such drive operation is accustomed to the use of, typically no that subregion is suspended to file.
S203, second chained list is passed in the volumemanger by the mobile terminal, by described Volumemanger executes storage unloading operation.
S204, the mobile terminal extinguish display screen and shake, and are completed with prompting user to shut down.
As can be seen that mobile terminal passes through the Vold first and sets up the first chained list in the embodiment of the present application, secondly, inspection When measuring storage carry starting request, first chained list is added in mount point, obtains the second chained list, again, by described second Chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguishing display Shield and shake, is completed with prompting user to shut down.Since mount point is added in empty chain table mobile terminal, formation contains mount point Chained list reduces processing delay convenient for being traversed in volumemanger, is conducive to the discharge rate for improving mount point, from And promote shutdown speed.
It is described that first chained list is set up by the Vold in a possible example, including:
In the Vold module initialization, the first chained list is set up by the Vold.
Wherein, when mobile terminal-opening, initialization operation can be executed for Vold module.
As it can be seen that mobile terminal in the Vold module initialization, sets up first by the Vold first in this example Chained list, secondly, first chained list is added in mount point, obtains the second chained list when detecting storage carry starting request, then It is secondary, second chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, Finally, extinguishing display screen to complete power-off operation.Since mobile terminal is in booting, an empty chain table is created, and by multiple extensions The case where loading point is stored in empty chain table, is compared and is received shutdown request in the later period, then creates chained list, when can save chained list creation It is long, further improve mobile terminal shutdown speed.
In a possible example, it is described second chained list is passed in the volumemanger before, it is described Method further includes:
When detecting shutdown request by the Vold.
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 Vold first and sets up the first chained list in this example, secondly, detecting that storage is hung When carrying starting request, first chained list is added in mount point, obtains the second chained list, again, pass is detected by the Vold When machine is requested, second chained list is passed in the volumemanger, storage is executed by the volumemanger and is unloaded Operation is carried, finally, extinguishing display screen to complete power-off operation.Since mobile terminal passes through the shutdown request detected, then carry out Traversal and storage unloading process can avoid the occurrence of file caused by mislanding carries and lose in the case where receiving shutdown request The case where mistake, improves timeliness and accuracy when mobile terminal is shut down.
It is described that first chained list is set up by the Vold in a possible example, including:
Detect shutdown request;According to the shutdown request, setting shutdown mark;It is identified according to the shutdown, passes through institute It states Vold and sets up first chained list.
Wherein, shutdown mark is the independent normal unloading of process difference of shutting down by the volumeManager setting in Vold.
As it can be seen that mobile terminal is first it is detected that shutdown request, and according to the shutdown request, setting shutdown is marked in this example Know, identified according to the shutdown, first chained list is set up by the Vold, secondly, detecting storage carry starting request When, first chained list is added in mount point, obtains the second chained list, it is again, second chained list is incoming described In volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguishing display screen to complete to shut down Operation.Since mobile terminal can be identified according to shutdown, empty chain table is created, and then can be after receiving shutdown request, accurately The empty chain table by creation carry out storage carry and storage unloading process, be conducive to high efficiency when mobile terminal is shut down And accuracy.
In a possible example, the Vold further includes that storage inside service emulated volume and outside are deposited Storage service public volume, the storage unloading operation includes following operation:
Detect that second chained list is not empty chain table, traversal program proc catalogue is obtained and occupied in the proc catalogue At least one background process of the mount point, the proc catalogue are located at the emulated volume;Described in deleting at least One backstage occupies process, and second chained list is emptied;The emulated is unloaded by the emulated volume The corresponding mount point of volume;The corresponding mount point of the public volume is unloaded by the public volume.
Wherein, proc file system is a pseudo file system, it is only existed in memory, and is not take up external space. It provides interface in a manner of file system to access the operation of system kernel data.User and application program can pass through proc The information of system is obtained, and can change certain parameters of kernel.It is that dynamic changes due to the information of system, such as process, institute When reading proc file with user or application program, proc file system is that dynamic reads information needed from system kernel and submits 's.
Wherein, storage inside service emulated volume is mobile terminal storage, and external storage services public Volume is the external storages such as T card.
Optionally, when mount point corresponding by the emulated volume unloading emulated volume, Second chained list is detected as sky and does not include the mount point;The public is unloaded by the public volume When the corresponding mount point of volume, detect that second chained list is empty and do not include the mount point.
As it can be seen that in this example, it, can be true since mobile terminal is only needed by there is the chained list of mount point to carry out single ergodic Surely whole background process of mount point are occupied, and then delete occupancy process, without traversing 3 secondary program catalogues, reduce processing delay, The discharge rate for being conducive to improve mount point, to promote 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 to service Vold on the mobile terminal, described Vold includes storage manager volumemanger, as shown, this closedown method includes:
S301, mobile terminal set up the first chained list in the Vold module initialization, through the Vold.
Mount point is added first chained list, obtained by S302 when the mobile terminal detects storage carry starting request To the second chained list.
S303, it is when the mobile terminal detects shutdown request by the Vold, second chained list is incoming described In volumemanger, storage unloading operation is executed by the volumemanger.
S304, the mobile terminal extinguish display screen and shake, and are completed with prompting user to shut down.
As can be seen that mobile terminal passes through the Vold first and sets up the first chained list in the embodiment of the present application, secondly, inspection When measuring storage carry starting request, first chained list is added in mount point, obtains the second chained list, again, by described second Chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguishing display Shield and shake, is completed with prompting user to shut down.Since mount point is added in empty chain table mobile terminal, formation contains mount point Chained list reduces processing delay convenient for being traversed in volumemanger, is conducive to the discharge rate for improving mount point, from And promote shutdown speed.
In addition, mobile terminal in booting, creates an empty chain table, and multiple mount points are stored in empty chain table, comparison The case where receiving shutdown request in the later period, then creating chained list improves the high efficiency and convenience of mobile terminal creation chained list.
In addition, mobile terminal passes through the shutdown request detected, then unloading process is traversed and stored, can received In the case where shutdown request, the case where file is lost caused by mislanding carries is avoided the occurrence of, mobile terminal is improved and is closed Timeliness and accuracy when machine.
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 to service Vold on the mobile terminal, described Vold includes storage manager volumemanger, as shown, this closedown method includes:
S401, mobile terminal detect shutdown request.
S402, the mobile terminal is according to the shutdown request, setting shutdown mark.
S403, the mobile terminal are identified according to the shutdown, set up first chained list by the Vold.
Mount point is added first chained list, obtained by S404 when the mobile terminal detects storage carry starting request To the second chained list.
Second chained list is passed in the volumemanger by S405, the mobile terminal.
S406, the mobile terminal detect that second chained list is not empty chain table, and traversal program proc catalogue obtains institute State at least one background process that the mount point is occupied in proc catalogue.
S407, the mobile terminal delete at least one described backstage and occupy process, second chained list is emptied.
S408, the mobile terminal are corresponding by the emulated volume unloading emulated volume Mount point.
S409, the mobile terminal unload the corresponding carry of the public volume by the public volume Point.
S410, the mobile terminal extinguish display screen and shake, and are completed with prompting user to shut down.
As can be seen that mobile terminal passes through the Vold first and sets up the first chained list in the embodiment of the present application, secondly, inspection When measuring storage carry starting request, first chained list is added in mount point, obtains the second chained list, again, by described second Chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguishing display Shield and shake, is completed with prompting user to shut down.Since mount point is added in empty chain table mobile terminal, formation contains mount point Chained list reduces processing delay convenient for being traversed in volumemanger, is conducive to the discharge rate for improving mount point, from And promote shutdown speed.
In addition, mobile terminal can according to shutdown identify, create empty chain table, and then can after receiving shutdown request, Storage carry and storage unloading process are accurately carried out by the empty chain table created, are conducive to height when mobile terminal is shut down Effect property and accuracy.
Further, since mobile terminal only needs to can determine that occupancy is hung by there is the chained list of mount point to carry out single ergodic Whole background process of loading point, and then occupancy process is deleted, without traversing 3 secondary program catalogues, processing delay is reduced, is conducive to mention The discharge rate of high mount point, to promote shutdown speed.
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, operation has carry finger daemon to service Vold, the Vold packet on the mobile terminal Storage manager volumemanger is included, as shown, the mobile terminal includes processor, memory, communication interface and one A or multiple 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 above-mentioned memory, and are configured to be executed by above-mentioned processor, and above procedure includes for executing The instruction of following steps;
The first chained list is set up by the Vold;
When detecting storage carry starting request, first chained list is added in mount point, obtains the second chained list;
Second chained list is passed in the volumemanger, storage unloading is executed by the volumemanger Operation;
Extinguish display screen and shake, is completed with prompting user to shut down.
As can be seen that mobile terminal passes through the Vold first and sets up the first chained list in the embodiment of the present application, secondly, inspection When measuring storage carry starting request, first chained list is added in mount point, obtains the second chained list, again, by described second Chained list is passed in the volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguishing display Shield and shake, is completed with prompting user to shut down.Since mount point is added in empty chain table mobile terminal, formation contains mount point Chained list reduces processing delay convenient for being traversed in volumemanger, is conducive to the discharge rate for improving mount point, from And promote shutdown speed.
Finger in a possible example, in terms of first chained list of establishment by the Vold, in above procedure It enables for performing the following operations:
In the Vold module initialization, the first chained list is set up by the Vold.
In a possible example, it is described second chained list is passed in the volumemanger before, on The instruction in program is stated also particularly useful for operation below executing:When detecting shutdown request by the Vold.
Finger in a possible example, in terms of first chained list of establishment by the Vold, in above procedure It enables and is specifically used for executing following operation:Detect shutdown request;According to the shutdown request, setting shutdown mark;According to described Shutdown mark sets up first chained list by the Vold.
In a possible example, the Vold further includes that storage inside service emulated volume and outside are deposited Storage service public volume, the storage unloading operation includes following operation:
Detect that second chained list is not empty chain table, traversal program proc catalogue is obtained and occupied in the proc catalogue At least one background process of the mount point, the proc catalogue are located at the emulated volume;Described in deleting at least One backstage occupies process, and second chained list is emptied;The emulated is unloaded by the emulated volume The corresponding mount point of volume;The corresponding mount point of the public volume is unloaded by the public volume.
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 to service Vold on the mobile terminal, and the Vold includes Storage manager volumemanger, the shutdown unit include setting up unit 601, adding unit 602,603 and of execution unit Prompt unit 604, wherein
The establishment unit 601, for setting up the first chained list by the Vold;
When for detecting storage carry starting request first chain is added in mount point by the adding unit 602 Table obtains the second chained list;
The execution unit 603, for second chained list to be passed in the volumemanger, by described Volumemanger executes storage unloading operation;
The prompt unit 604 is completed for extinguishing display screen and shaking with prompting user to shut down.
In a possible example, in terms of first chained list of establishment by the Vold, the establishment unit 601 It is specifically used for:
In the Vold module initialization, the first chained list is set up by the Vold.
In a possible example, it is described second chained list is passed in the volumemanger before, institute Execution unit 603 is stated to be specifically used for:When detecting shutdown request by the Vold.
In a possible example, in terms of first chained list of establishment by the Vold, the establishment unit 601 It is specifically used for:Detect shutdown request;According to the shutdown request, setting shutdown mark;It is identified according to the shutdown, passes through institute It states Vold and sets up first chained list.
In a possible example, the Vold further includes that storage inside service emulated volume and outside are deposited Storage service public volume, in terms of the storage unloading operation, the execution unit 603 is specifically used for:
Detect that second chained list is not empty chain table, traversal program proc catalogue is obtained and occupied in the proc catalogue At least one background process of the mount point, the proc catalogue are located at the emulated volume;Described in deleting at least One backstage occupies process, and second chained list is emptied;The emulated is unloaded by the emulated volume The corresponding mount point of volume;The corresponding mount point of the public volume is unloaded by the public volume.
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, mobile terminal passes through the first chained list of the Vold establishment first, secondly, detecting storage carry starting request When, first chained list is added in mount point, obtains the second chained list, it is again, second chained list is incoming described In volumemanger, storage unloading operation is executed by the volumemanger, finally, extinguish display screen and shake, with It prompts user to shut down to complete.
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 is applied to mobile terminal, operation has carry finger daemon to service Vold, institute on the mobile terminal Stating Vold includes storage manager volumemanger, which is characterized in that the method includes:
The first chained list is set up by the Vold;
When detecting storage carry starting request, first chained list is added in mount point, obtains the second chained list;
Second chained list is passed in the volumemanger, storage unloading behaviour is executed by the volumemanger Make;
Extinguish display screen and shake, is completed with prompting user to shut down.
2. the method according to claim 1, wherein it is described by the Vold set up the first chained list, including:
In the Vold module initialization, the first chained list is set up by the Vold.
3. method according to claim 1 or 2, which is characterized in that described that second chained list is incoming described Before in volumemanger, the method also includes:
When detecting shutdown request by the Vold.
4. the method according to claim 1, wherein it is described by the Vold set up the first chained list, including:
Detect shutdown request;
According to the shutdown request, setting shutdown mark;
It is identified according to the shutdown, first chained list is set up by the Vold.
5. method according to claim 1-4, which is characterized in that the Vold further includes storage inside service Emulated volume and external storage service public volume, and the storage unloading operation includes following operation:
Detect that second chained list is not empty chain table, traversal program proc catalogue obtains described in occupying in the proc catalogue At least one background process of mount point, the proc catalogue are located at the emulated volume;
It deletes at least one described backstage and occupies process, second chained list is emptied;
The corresponding mount point of the emulated volume is unloaded by the emulated volume;
The corresponding mount point of the public volume is unloaded by the public volume.
6. a kind of shutdown unit is applied to mobile terminal, operation has carry finger daemon to service Vold, institute on the mobile terminal Stating Vold includes storage manager volumemanger, which is characterized in that the shutdown unit includes setting up unit, list being added Member, execution unit and prompt unit,
The establishment unit, for setting up the first chained list by the Vold;
Mount point is added first chained list, obtains the by the adding unit when for detecting storage carry starting request Two chained lists;
The execution unit, for second chained list to be passed in the volumemanger, by described Volumemanger executes storage unloading operation;
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 in terms of first chained list of establishment by the Vold, The establishment unit is specifically used for:
In the Vold module initialization, the first chained list is set up by the Vold.
8. device according to claim 6 or 7, which is characterized in that described that second chained list is incoming described Before in volumemanger, the execution unit is specifically used for:
When detecting shutdown request by the Vold.
9. device according to claim 6, which is characterized in that in terms of first chained list of establishment by the Vold, The establishment unit is specifically used for:
Detect shutdown request;According to the shutdown request, setting shutdown mark;It is identified according to the shutdown, by described Vold sets up first chained list.
10. according to the described in any item devices of claim 6-9, which is characterized in that the Vold further includes storage inside service Emulated volume and external storage service public volume, described to execute list in terms of the storage unloading operation Member is specifically used for:
Detect that second chained list is not empty chain table, traversal program proc catalogue obtains described in occupying in the proc catalogue At least one background process of mount point, the proc catalogue are located at the emulated volume;Delete it is described at least one Backstage occupies process, and second chained list is emptied;The emulated is unloaded by the emulated volume The corresponding mount point of volume;The corresponding mount point of the public volume is unloaded by the public volume.
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.
CN201810395878.8A 2018-04-27 2018-04-27 Closedown method and Related product Pending CN108833669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810395878.8A CN108833669A (en) 2018-04-27 2018-04-27 Closedown method and Related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810395878.8A CN108833669A (en) 2018-04-27 2018-04-27 Closedown method and Related product

Publications (1)

Publication Number Publication Date
CN108833669A true CN108833669A (en) 2018-11-16

Family

ID=64155200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810395878.8A Pending CN108833669A (en) 2018-04-27 2018-04-27 Closedown method and Related product

Country Status (1)

Country Link
CN (1) CN108833669A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664929A (en) * 2012-04-05 2012-09-12 福兴达科技实业(深圳)有限公司 Mobile terminal and method for managing mass storage device
US20140132973A1 (en) * 2012-11-13 2014-05-15 Canon Kabushiki Kaisha Information processing apparatus, method of controlling the same, and storage medium
CN104734979A (en) * 2015-04-07 2015-06-24 北京极科极客科技有限公司 Control method for storage device externally connected with router
CN105005502A (en) * 2015-07-15 2015-10-28 上海斐讯数据通信技术有限公司 Method and system for ending SD card using process through kernel
CN105049936A (en) * 2015-08-13 2015-11-11 海信集团有限公司 Startup-shutdown method and device
WO2016112568A1 (en) * 2015-01-15 2016-07-21 宇龙计算机通信科技(深圳)有限公司 Dual system based mounting method and system for external storage device
CN107678693A (en) * 2017-09-30 2018-02-09 深圳市华德安科技有限公司 Hanging method, Android device and the storage medium of disk array
CN107908957A (en) * 2017-11-03 2018-04-13 北京邮电大学 A kind of safe operation management method and system of intelligent terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664929A (en) * 2012-04-05 2012-09-12 福兴达科技实业(深圳)有限公司 Mobile terminal and method for managing mass storage device
US20140132973A1 (en) * 2012-11-13 2014-05-15 Canon Kabushiki Kaisha Information processing apparatus, method of controlling the same, and storage medium
WO2016112568A1 (en) * 2015-01-15 2016-07-21 宇龙计算机通信科技(深圳)有限公司 Dual system based mounting method and system for external storage device
CN104734979A (en) * 2015-04-07 2015-06-24 北京极科极客科技有限公司 Control method for storage device externally connected with router
CN105005502A (en) * 2015-07-15 2015-10-28 上海斐讯数据通信技术有限公司 Method and system for ending SD card using process through kernel
CN105049936A (en) * 2015-08-13 2015-11-11 海信集团有限公司 Startup-shutdown method and device
CN107678693A (en) * 2017-09-30 2018-02-09 深圳市华德安科技有限公司 Hanging method, Android device and the storage medium of disk array
CN107908957A (en) * 2017-11-03 2018-04-13 北京邮电大学 A kind of safe operation management method and system of intelligent terminal

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DENGZILIANG001: "android关机时Framework层对存储设备的操作分析", 《极客分享 HTTPS://WWW.GEEK-SHARE.COM/DETAIL/2682252269.HTML》 *
SDKDLWK: "vold挂载管理", 《CSDN博客,HTTPS://BLOG.CSDN.NET/SDKDLWK/ARTICLE/DETAILS/77159186》 *
VOIDCN: "android 6.0 vold shutdown流程", 《HTTP://WWW.VOIDCN.COM/ARTICLE/P-QOELYAAY-EV.HTML 》 *
宇落无痕: "Android7.0关机流程分析", 《CSDN博客》 *

Similar Documents

Publication Publication Date Title
US9715347B2 (en) Virtual disk migration
CN104915241B (en) A kind of virtual machine (vm) migration control method and device
CN106201357A (en) The construction method of a kind of storage pool and system
CN107635078A (en) Game control method and equipment
CN111684437B (en) Staggered update key-value storage system ordered by time sequence
CN107832141A (en) Application program progress control method and equipment
CN107807852A (en) Application program capacity control method and equipment
CN108733797A (en) Document handling method and relevant apparatus
CN108984339A (en) Data reconstruction method and Related product
US11237761B2 (en) Management of multiple physical function nonvolatile memory devices
CN113010265A (en) Pod scheduling method, scheduler, memory plug-in and system
TW202008147A (en) Compression processing method and apparatus for block chain data
US20200327099A1 (en) Virtualized append-only interface
CN107670276B (en) Game application control method and equipment
CN108762983A (en) Multi-medium data restoration methods and device
CN104375832A (en) Underlying hardware shielding device and method for computer
CN112306507A (en) Picture resource processing method, device, terminal and storage medium
CN108804258A (en) Data reconstruction method, device, mobile terminal and storage medium
CN108833669A (en) Closedown method and Related product
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN107890667B (en) Game application control method and equipment
CN108833668A (en) Closedown method and Related product
CN108874586A (en) Data reconstruction method and Related product
CN109062726A (en) data display method and device
CN113110846A (en) Method and device for acquiring environment variable

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication