Movatterモバイル変換


[0]ホーム

URL:


CN107766142A - Method and device based on android system unloading storage device - Google Patents

Method and device based on android system unloading storage device
Download PDF

Info

Publication number
CN107766142A
CN107766142ACN201711130370.7ACN201711130370ACN107766142ACN 107766142 ACN107766142 ACN 107766142ACN 201711130370 ACN201711130370 ACN 201711130370ACN 107766142 ACN107766142 ACN 107766142A
Authority
CN
China
Prior art keywords
storage device
unloading
android system
module
data 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.)
Pending
Application number
CN201711130370.7A
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.)
Shenzhen Water World Co Ltd
Original Assignee
Shenzhen Water World Co 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 Shenzhen Water World Co LtdfiledCriticalShenzhen Water World Co Ltd
Priority to CN201711130370.7ApriorityCriticalpatent/CN107766142A/en
Publication of CN107766142ApublicationCriticalpatent/CN107766142A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Present invention is disclosed a kind of method and device based on android system unloading storage device, wherein method includes step:Kill the process for accessing storage device;Monitor the process and whether kill and finish;If finishing, unloading accesses the data storage read during the storage device.After the present invention extracts the storage device of the interface for the terminal for being provided with android system, system directly kills the process of the storage device, faster unloads storage device, makes the interface facilitate user to be used again insertable into storage device.

Description

Method and device based on android system unloading storage device
Technical field
The present invention relates to the storage device management field of android system, especially relates to one kind and is based on AndroidThe method and device of system uninstallation storage device.
Background technology
As android system is in the popularization of the mobile terminal devices such as mobile phone, to the need of portable large capacity storage deviceAsking also increasingly increases, and in Android overall architectures, the control of its storage device is developed based on Linux equipment controles.WithThe application of the android system intelligent platform based on linux kernel, the terminal of many android systems all supports USBThe use of external storage equipments such as (Universal Serial Bus, USBs).People set in unloading external connection storageWhen standby, it will usually first click on and confirm ejection storage device, then system prompt can pull out storage device, treat that user will depositAfter storage equipment is pulled out, it is connected although storage device is physically disconnected with Android system terminal, the ground of storage deviceLocation, process etc. are also retained in system in terminal and also thoroughly unload the related information of the storage devices such as these addresses, process, sideOther storage devices can be plugged again.But in uninstall process, it may appear that the speed of unloading is slower, and user is pulled up on the interfaceStorage device after need just be inserted into storage device after a while.The speed so unloaded is slow.
The content of the invention
The main object of the present invention is a kind of method and dress for unloading storage device based on android system faster of offerPut.
The present invention proposes a kind of method based on android system unloading storage device, including step:
Kill the process for accessing storage device;
Monitor the process and whether kill and finish;
If finishing, unloading accesses the data storage read during the storage device.
Further, the unloading includes after accessing the data step read during storage device:
Detect whether the data storage unloads success;
If it is not, send interrupt signal to the process for accessing storage device and start timing;
When the timing reaches preset time, unloading again accesses the data storage read during the storage device.
Further, include before the process steps for killing access storage device:
Receive the unloading command of user's triggering;
The process of the storage device is accessed according to unloading command search.
Further, when the timing reaches preset time, unloading again accesses what is read during the storage deviceInclude after data storage step:
Monitoring unloading accesses the number of the data storage read during the storage device;
Judge whether the number reaches preset times;
If it is not, return to step " detecting whether the data storage unloads success ".
Further, it is described to judge the number also includes after whether reaching preset times step:
If so, failed regeneration signal, sends to output end.
Further, it is described to judge the number also includes after whether reaching preset times:
If so, failed regeneration reason, sends to output end.
Further, whether the detection data storage also includes after unloading successfully:
If so, electric signal is sent to the LED for being arranged on the interface.
The present invention also proposes a kind of device based on android system unloading storage device, including:
Module is killed, the process of storage device is accessed for killing;
Module is monitored, whether kills for monitoring the process and finishes;
Unload module, finished if being killed for process, unloading accesses the data storage read during the storage device.
Further, the device based on android system unloading storage device, in addition to:
Detection module, for detecting whether the data storage unloads success;
Interrupt module, if for detecting data storage dismount failure, sent to the process for accessing storage device and interrupt letterNumber and start timing;
Unload module again, when accessing the storage device for when the timing reaches preset time, unloading againThe data storage read.
Further, the device based on android system unloading storage device, in addition to:
Instruction module is received, for receiving the unloading command of user's triggering;
Search module, for accessing the process of the storage device according to unloading command search.
Further, the device based on android system unloading storage device, in addition to:
Monitoring modular, the number of the data storage read when unloading for monitoring and access the storage device;
Number module is judged, for judging whether the number reaches preset times;
Second kills module, arrives preset times for judging that number is not crossed, calls detection module to detect the data storageWhether unloading is successful.
Further, the device based on android system unloading storage device, in addition to:
Failure module, if for detecting dismount failure after unloading preset times, failed regeneration signal, send to output end.
Further, the device based on android system unloading storage device, in addition to:
Reason module, if for detecting dismount failure after unloading preset times, failed regeneration reason, send to output end.
Further, the device based on android system unloading storage device, in addition to:
Success module, if being unloaded successfully for detecting the data storage, electric signal is sent to the LED for being arranged on the interfaceLamp.
Compared with prior art, the beneficial effects of the invention are as follows:The storage device of the interface of the terminal of android system is pulled outAfter going out, system directly kills the process of the storage device, faster unloads storage device, makes the interface facilitate user to insert againEnter storage device use.
Brief description of the drawings
Fig. 1 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 2 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 3 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 4 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 5 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 6 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 7 is the step schematic diagram of the method based on android system unloading storage device of one embodiment of the invention;
Fig. 8 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention;
Fig. 9 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention;
Figure 10 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention;
Figure 11 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention;
Figure 12 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention;
Figure 13 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention;
Figure 14 is the structural representation of the device based on android system unloading storage device of one embodiment of the invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference picture 1, propose the method based on android system unloading storage device of one embodiment of the invention, this methodApplied to terminal, it is preferable that the terminal is provided with android system, including step:
S3, kill the process for accessing storage device;
Whether S4, the monitoring process are killed and are finished;
If S5, finishing, unloading accesses the data storage read during the storage device.
In the present embodiment, the terminal has an interface with storage device grafting, interface can be USB interface orOther are used for the interface for connecting storage device.Storage device refers to the electronic product for having store function, such as USB flash disk, mobile phone etc..WithAfter family pulls the storage device on the interface in the terminal of android system, the access of storage device on the terminalLocation is still existing, if without unloading completely, other storage devices are inserted into the interface, and terminal is still gone according to former reference addressAccess, but the information of the storage device of other storage devices with pulling just now is inconsistent so that terminal can not access itHis storage device, the terminal that the present invention is provided with android system send signal, the access that the storage device is carried overLocation is all deleted, to prevent the reference address from also associating some other processes, therefore by the process related to the storage deviceAll to kill, kill process is exactly that the program process of access storage device is completely removed inside internal memory, forbids its operation,Because a process there are multiple sub-line journeys, also there is what can be run together with other processes.Set while listening for access storage is killedWhether standby process finishes, and confirms after killing, then is unloaded, and thus is avoided that because having related to storage device to enterJourney does not also unload the storage device in operation, and the process that the method for the present embodiment first kills interface unloads storage device again,The time of unloading storage device can be reduced, interface is inserted again by other storage devices as early as possible and use.
Reference picture 2, further, the unloading include after accessing the data S5 steps read during storage device:
Whether S6, the detection data storage unload success;
S7, if it is not, sending interrupt signal to the process for accessing storage device and starting timing;
S8, when the timing reaches preset time, the storage number that is read when unloading accesses the storage device againAccording to.
In the present embodiment, if not unloading success, it may be possible to which process is not over, or is provided with AndroidThe terminal of system is also sending signal with the storage device so that the storage device can not be unloaded, therefore terminal will be accessed and is somebody's turn to doAll signals of storage device send interrupt signal, storage device is not connected with terminal, and are sending the same of interrupt signalShi Jinhang timing, when timing reaches the default time, the terminal of android system is set to be set in the first preset time with storageStandby related process is all interrupted, and then unloading accesses the data storage read during storage device.The preset time according toThe design parameter of the terminal of android system is configured, and is preferably arranged to 5 seconds.
Reference picture 3, further, include before the process S3 steps for killing access storage:
S1, the unloading command for receiving user's triggering;
S2, the process according to the unloading command search access storage device.
In the present embodiment, when user prepares unloading storage device, that is, the instruction of unloading storage device, terminal are sentThe process relevant with the storage device will be searched at once after receiving instruction, carry out the preparation of unloading, accelerate the speed of unloading.
Reference picture 4, further, described when the timing reaches preset time, unloading again accesses the storage and setInclude after the data storage S8 steps read when standby:
S91, monitoring unloading access the number of the data storage read during storage device;
S92, judge whether the number reaches preset times;
If it is not, return to step S6 " detecting whether the data storage unloads success ".
In the present embodiment, the process still dismount failure of last time is have passed through, it is relevant with storage device to then proceed to killProcess, kill the reference address that carries over of storage device and other be not over or interrupt be still present in entering for terminalJourney.Unloading the data storage needs repeatedly unloading, and the number of unloading is by User Defined, if being not reaching to the number of unloading,Then need to continue to unload, therefore be back to S6 steps, detect whether to unload successfully.If do not unload successfully and be not reaching toDefault unloading number, then continue to unload.
Reference picture 5, it is further, described to judge the number also includes after whether reaching preset times S92 steps:
S10 is sent to output end if so, failed regeneration signal.
In the present embodiment, if being still dismount failure after the unloading of default number, system confirmation dismount failure, generate and loseSignal is lost, sending to output end knows user.Output end can be the display screen of Android system terminal, on a display screenDisplay dismount failure printed words are let the user know that, or output end is the loudspeaker of Android system terminal, sends dismount failureThe signal that sound is let the user know that or the other equipment of Android system terminal is sent can let the user know that unloadingThe information of failure, if user wants to reuse interface connection storage device, the Android system terminal is allowed to restart.
Reference picture 6, it is further, described to judge the number also includes after whether reaching preset times S92 steps:
S11 is sent to output end if so, failed regeneration reason.
In the present embodiment, failure cause is sent to output end, the reason for making user have a clear understanding of storage device dismount failure,Handled or repaired in time, the storage device is unloaded as early as possible, do not influenceed user and use the Android system terminal.
Reference picture 7, in the present embodiment, the detection data storage includes after whether unloading successfully S6 steps:
S12, if so, sending electric signal to the LED for being arranged on the interface.
In the present embodiment, after unloading successfully storage device, that is, represent that the interface can reconnect storage device, user can be withIt is continuing with the interface, sends electric signal to the LED of the interface, represent to control the LED bright, reminds the user interface can be withUse, bring user and experience well.Further, if detection dismount failure, sends another electric signal to LED, make thisLED sends the light of another color, and detects to unload and successfully send another different signal.
In summary, the method for the invention based on android system unloading storage device, can directly kill the storageThe process of equipment, makes storage device be unloaded as early as possible, optimization unloading flow, saves the usage time of user.Being detected after unloading isIt is no to unload successfully, and different signals is sent to different testing results, user is had a clear understanding of unloading result, be more convenient to useAndroid terminal.
Reference picture 8, the present invention also propose the device based on android system unloading storage device of an embodiment, including:
Module 3 is killed, the process of storage device is accessed for killing;
Module 4 is monitored, whether kills for monitoring the process and finishes;
Unload module 5, finished if being killed for process, unloading accesses the storage number read during the storage deviceAccording to.
In the present embodiment, the terminal has an interface with storage device grafting, interface can be USB interface orOther are used for the interface for connecting storage device.Storage device refers to the electronic product for having store function, such as USB flash disk, mobile phone etc..WithAfter family pulls the storage device on the interface in the terminal of android system, the access of storage device on the terminalLocation or existing, if Unload module 5 does not unload completely, other storage devices are inserted into the interface, and terminal is according to still visitingAsk that address is gone to access other storage devices, but the information of the storage device of other storage devices with pulling just now differsCause so that terminal can not access, and the terminal that the present invention is provided with android system sends signal, and the storage device is left downThe reference address come is all deleted, i.e., will be with by killing module 3 to prevent the reference address from also associating some other processesThe related process of the storage device is all killed, kill process be exactly the program process of access storage device inside internal memory it is completeAll clear is removed, and forbids its operation, because a process has multiple sub-line journeys, also there is what can be run together with other processes.TogetherWhen monitor module 4 monitor kill access storage device process whether finish, confirm kill after, Unload module 5 is againUnloaded, thus be avoided that because there is the process related to storage device also not unload the storage device, this implementation in operationThe process that the method for example first kills interface unloads storage device again, can reduce the time of unloading storage device, make interface as early as possibleIt can be inserted and use by other storage devices again.
Reference picture 9, further, the device based on android system unloading storage device also include:
Detection module 6, for detecting whether the data storage unloads success;
Interrupt module 7, if for detecting data storage dismount failure, sent to the process for accessing storage device and interrupt letterNumber and start timing;
Unload module 8 again, when accessing the storage device for when the timing reaches preset time, unloading againThe data storage read.
In the present embodiment, if detection module 6, which detects, does not unload success, it may be possible to process is not over, orIt is that the terminal for being provided with android system is also sending signal with the storage device so that the storage device can not be unloaded, becauseAll signals for accessing the storage device are sent interrupt signal by this interrupt module 7, storage device is not connected with terminal, andTiming is carried out while interrupt signal is sent, when timing reaches the default time, makes the terminal of android system firstThe process related to storage device is all interrupted in preset time, and then the unloading of Unload module 8 accesses storage device when institute againThe data storage of reading.The preset time is configured according to the design parameter of the terminal of android system, is preferably arranged to 5Second.
Reference picture 10, further, the device based on android system unloading storage device also include:
Instruction module 1 is received, for receiving the unloading command of user's triggering;
Search module 2, for accessing the process of the storage device according to unloading command search.
In the present embodiment, when user prepares unloading storage device, that is, the instruction of unloading storage device, instruction are sentAfter receiving module receives instruction, search module 2 will search for the process relevant with the storage device at once, carry out the standard of unloadingIt is standby, accelerate the speed of unloading.
Reference picture 11, further, the device based on android system unloading storage device also include:
Monitoring modular 91, monitoring unloading access the number of the data storage read during storage device;
Number module 92 is judged, for judging whether the number reaches preset times;
Second kills module 10, arrives preset times for judging that number is not crossed, calls detection module 6 to detect the storage numberAccording to whether unloading success.
In the present embodiment, the process still dismount failure of last time is have passed through, it is relevant with storage device to then proceed to killProcess, kill the reference address that carries over of storage device and other be not over or interrupt be still present in entering for terminalJourney.Monitoring modular 91, monitoring unload the number of data storage unloading, judge that number module 92 judges whether the number of unloading surpassesDefault number is crossed, wherein the preset times unloaded are unloaded by User Defined if the second kill judgement of module 10 is not reaching toThe number of load, then need to continue to unload, therefore call detection module 6 to continue to detect whether to unload successfully.If do not unload intoWork(and default unloading number is not reaching to, then continues to unload.
Reference picture 12, in the present embodiment, the device based on android system unloading storage device also includes:
Failure module 11, if for detecting dismount failure after unloading preset times, failed regeneration signal, send to outputEnd.
In the present embodiment, if being still dismount failure after the unloading of default number, system confirmation dismount failure, fail mouldThe failed regeneration signal of block 11, sending to output end knows user.Output end can be the display screen of Android system terminal,Show that dismount failure printed words are let the user know that on a display screen, or output end is the loudspeaker of Android system terminal, is sentThe signal that the sound of dismount failure is let the user know that or the other equipment of Android system terminal is sent can allow useThe information of dismount failure is known at family, if user wants to reuse interface connection storage device, makes the android system wholeRestart at end.
Reference picture 13, in the present embodiment, the device based on android system unloading storage device also includes:
Reason module 12, if for detecting dismount failure after unloading preset times, failed regeneration reason, send to outputEnd.
In the present embodiment, reason module 12 sends failure cause to output end, user is had a clear understanding of storage device unloadingThe reason for failure, handled or repaired in time, the storage device is unloaded as early as possible, do not influenceed user and use the AndroidSystem terminal.
Reference picture 14, in the present embodiment, the device based on android system unloading storage device also includes:
Success module 13, if unload successfully for detecting the data storage, transmission electric signal is to being arranged on the interfaceLED.
In the present embodiment, after unloading successfully storage device, that is, represent that the interface can reconnect storage device, user can be withThe interface is continuing with, success module 13 sends electric signal to the LED of the interface, represents to control the LED bright, remind userThe interface can use, and bring user and experience well.Further, if detection dismount failure, sends another electric signal extremelyLED, the LED is sent the light of another color, and detect to unload and successfully send another different signal.
In summary, the device of the invention based on android system unloading storage device, can directly kill the storageThe process of equipment, makes storage device be unloaded as early as possible, optimization unloading flow, saves the usage time of user.Being detected after unloading isIt is no to unload successfully, and different signals is sent to different testing results, user is had a clear understanding of unloading result, be more convenient to useAndroid terminal.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilizationThe equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlationsTechnical field, be included within the scope of the present invention.

Claims (10)

CN201711130370.7A2017-11-152017-11-15Method and device based on android system unloading storage devicePendingCN107766142A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711130370.7ACN107766142A (en)2017-11-152017-11-15Method and device based on android system unloading storage device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711130370.7ACN107766142A (en)2017-11-152017-11-15Method and device based on android system unloading storage device

Publications (1)

Publication NumberPublication Date
CN107766142Atrue CN107766142A (en)2018-03-06

Family

ID=61279464

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711130370.7APendingCN107766142A (en)2017-11-152017-11-15Method and device based on android system unloading storage device

Country Status (1)

CountryLink
CN (1)CN107766142A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101017447A (en)*2007-02-132007-08-15华为技术有限公司IDE calling device and calling method therefor
CN102662882A (en)*2012-03-302012-09-12奇智软件(北京)有限公司Method and device for unloading mobile storage equipment
CN103544061A (en)*2013-10-302014-01-29乐视致新电子科技(天津)有限公司Smart television based safe exit method and device for external storage device
CN104463034A (en)*2014-11-192015-03-25广东欧珀移动通信有限公司Method and device for safely, conveniently and quickly uninstalling external storage device
CN104503925A (en)*2014-12-242015-04-08乐视致新电子科技(天津)有限公司Uninstalling method and device of storage equipment
CN105049937A (en)*2015-08-172015-11-11青岛海信电器股份有限公司Method and device for unloading external storage equipment from Android system smart television
CN105224200A (en)*2015-09-252016-01-06广东欧珀移动通信有限公司A kind of method of unloading external connection memory device and mobile terminal
CN106126272A (en)*2016-06-152016-11-16北京小米移动软件有限公司File system discharging method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101017447A (en)*2007-02-132007-08-15华为技术有限公司IDE calling device and calling method therefor
CN102662882A (en)*2012-03-302012-09-12奇智软件(北京)有限公司Method and device for unloading mobile storage equipment
CN103544061A (en)*2013-10-302014-01-29乐视致新电子科技(天津)有限公司Smart television based safe exit method and device for external storage device
CN104463034A (en)*2014-11-192015-03-25广东欧珀移动通信有限公司Method and device for safely, conveniently and quickly uninstalling external storage device
CN104503925A (en)*2014-12-242015-04-08乐视致新电子科技(天津)有限公司Uninstalling method and device of storage equipment
CN105049937A (en)*2015-08-172015-11-11青岛海信电器股份有限公司Method and device for unloading external storage equipment from Android system smart television
CN105224200A (en)*2015-09-252016-01-06广东欧珀移动通信有限公司A kind of method of unloading external connection memory device and mobile terminal
CN106126272A (en)*2016-06-152016-11-16北京小米移动软件有限公司File system discharging method and device

Similar Documents

PublicationPublication DateTitle
KR100302888B1 (en) Devices and methods for automatic recognition and configuration of peripherals
CN112015587B (en)Method and device for enhancing reliability of operating system
US20130318400A1 (en)Electronic device, system, and method for testing exception handling mechanism
CN107391106A (en)The initial method and terminal of camera parameter
US20210274573A1 (en)Abnormality Processing Method, Terminal Device and Storage Medium
US12393499B2 (en)Method and device for recovering self-test exception of server component, system and medium
CN109032888A (en)A kind of server start-up course fault detection method, device and controlled terminal
CN114222018B (en) A charging test system and method
EP2291741A1 (en)System and method of reducing factory program time for wireless devices
CN107357694A (en)Error event reporting system and its method during startup self-detection
CN101169706B (en)memory interface connection method and device
CN108196892B (en) Method, device and mobile terminal for customizing system startup process
CN115431896B (en) Control method, device, electronic device, storage medium, vehicle system and vehicle
CN108132832A (en)Application program launching method and device
CN107766142A (en)Method and device based on android system unloading storage device
CN112199272B (en)Intelligent terminal testing method and device, terminal equipment and medium
CN112214235A (en) Fast charging firmware upgrade method, device, mobile terminal and storage medium
CN103544061A (en)Smart television based safe exit method and device for external storage device
CN114116034B (en)Distributed brushing method and device
CN108847232A (en)A kind of processing method and electronic equipment
CN109634782A (en)Method and device for detecting system robustness, storage medium and terminal
CN115756939A (en)Firmware recovery method, apparatus, image forming device and storage medium
CN109800567B (en)Method and device for monitoring foreground application starting and terminal equipment
CN113810684A (en)Method and device for starting aging test
CN114056262B (en) Vehicle-mounted display logic method, device, smart car and readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20180306


[8]ページ先頭

©2009-2025 Movatter.jp