A method and device for detecting the capacity of mobile phone storage space
A technology for detecting mobile phones and storage space, which is applied in the detection of faulty computer hardware, etc. It can solve problems such as wrong hardware information and the inability to judge the internal correlation of partitions, and achieve the effect of high reliability and strong versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Please refer to figure 1 , which is Embodiment 1 of the method of the present invention, a method for detecting the storage space capacity of a mobile phone (hereinafter specifically described with the Android system), including:
[0029] S101. Obtain and analyze all file system entry information of the internal storage device and external storage device on the mobile phone system, the file system entry information includes the space information of the file system entry;
[0030] Read the / proc / mounts file provided by the Linux system to obtain the file system entry information mounted on the current system. Each entry includes the following field information: device name (such as / dev / fuse), device mount directory (such as / mnt / sdcard), file system type (such as exfat), device read and write permissions (rw), these attributes are described by the corresponding fields of the structure StatMountParse. arrayArrayList allStatMountParse is used to store the parsed result...
Embodiment 2
[0039] Please refer to figure 2 , which is the second embodiment of the method of the present invention, a flow chart of a method for detecting the storage space capacity of a mobile phone, steps S202, S203, and S204 are respectively the same as S101, S102, and S103 in the first embodiment, and the difference lies in steps S200, S201, the method includes:
[0040] S200, start a command for detecting storage space;
[0041] In this embodiment, when the mobile phone detects the detection command, it starts to work. For example: the detection command can be that when the memory of the system is not enough, the system will actively prompt the user, or the user can set a period of time, and the system will periodically detect and store the command. Space, regularly update the system.
[0042] S201. Obtain the initial mount directory of the system internal storage device and the system external storage device respectively through the interface;
[0043] According to t...
Embodiment 3
[0086] refer to Image 6 , which is the third embodiment of the device of the present invention, a device 3 for detecting the storage space capacity of a mobile phone, which is mostly the same as the functional modules of the second example of the device, the difference is that the first filter subunit 11, the second filter Subunit 12, filtering subunit 40 for the third time and identical item merging unit 50 are specifically described as follows:
[0087] Command starting unit 5, used to start the command for detecting the storage space;
[0088] In this embodiment, when the mobile phone detects the detection command, it starts to work. For example: the detection command can be that when the memory of the system is not enough, the system will actively prompt the user, or the user can set a period of time, and the system will periodically detect and store the command. Space, regularly update the system.
[0089] The mount directory obtaining unit 6 is used to respec...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


