CN109740374B - Hiding method, mobile terminal and computer readable storage medium - Google Patents

Hiding method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109740374B
CN109740374B CN201811561942.1A CN201811561942A CN109740374B CN 109740374 B CN109740374 B CN 109740374B CN 201811561942 A CN201811561942 A CN 201811561942A CN 109740374 B CN109740374 B CN 109740374B
Authority
CN
China
Prior art keywords
target object
mobile terminal
hiding
file
record corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811561942.1A
Other languages
Chinese (zh)
Other versions
CN109740374A (en
Inventor
陈亚南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811561942.1A priority Critical patent/CN109740374B/en
Publication of CN109740374A publication Critical patent/CN109740374A/en
Application granted granted Critical
Publication of CN109740374B publication Critical patent/CN109740374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The hiding method disclosed by the invention receives an access request to an upper-level catalogue of a target object; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. In addition, the invention also discloses a mobile terminal and a computer readable storage medium. According to the hiding method provided by the invention, whether the target object is hidden is determined according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, the hiding can be realized without moving the target object to a folder with special authority, and the hiding efficiency can be effectively improved.

Description

Hiding method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of file processing technologies, and in particular, to a hiding method, a mobile terminal, and a computer readable storage medium.
Background
With the continuous development of electronic technology, mobile terminals (such as smartphones, tablet computers, etc.) have more and more powerful functions, and play an indispensable role in both work and life of people. In this way, the privacy information of the user stored in the mobile terminal is more and more, and at present, the mobile terminal generally protects the privacy information of the user by locking a screen and other modes. However, once the screen of the mobile terminal is maliciously unlocked or in a special scenario where some users have unlocked the screen, the user's private information is not protected.
Some mobile terminals support an information hiding function, and can effectively protect private information of users, in the prior art, the information hiding mode is to move information into a disk space with special authority, however, for information occupying larger memory, the speed of hiding or canceling hiding is slower, and the efficiency is lower.
Therefore, the hiding mode in the prior art has slower speed and lower efficiency.
Disclosure of Invention
In view of the above, the present invention provides a hiding method, a mobile terminal and a computer readable storage medium for solving the above-mentioned problems.
First, to achieve the above object, the present invention proposes a hiding method applied to a mobile terminal, the method comprising:
receiving an access request to a superior directory of a target object;
responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal;
and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object.
Optionally, before the receiving the access request to the upper level target of the target object, the method further includes:
determining a target object in the mobile terminal according to a file listener of the mobile terminal, wherein the target object is an object to be hidden on the mobile terminal;
And deleting the record corresponding to the target object in the MediaProvider file.
Optionally, the determining, according to the Fileobserver of the mobile terminal, the target object in the mobile terminal includes:
acquiring a hidden field corresponding to each object in the Fileobserver;
judging whether the hidden field corresponding to each object is in a valid state or not;
and determining the object with the hidden field in the valid state as a target object.
Optionally, before the determining, according to the Fileobserver of the mobile terminal, the target object in the mobile terminal, the method further includes:
receiving a hiding operation executed on a target object;
and responding to the hiding operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in a valid state.
Optionally, if the MediaProvider file does not have a record corresponding to the target object, after hiding the target object, the method further includes:
receiving a unhiding operation performed on the mobile terminal;
and responding to the hiding canceling operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in an invalid state.
Optionally, after the hiding field corresponding to the target object in the Fileobserver is set to an invalid state in response to the hiding canceling operation, the method further includes:
And adding a record corresponding to the target object in the MediaProvider file.
Optionally, the receiving an access request to the upper directory of the target object includes:
receiving an access request to a folder where a target object is located;
or receiving a display request of the desktop page where the target object is located.
Optionally, the target object includes one or more of a file, a folder, and an application icon.
Further, to achieve the above object, the present invention also provides a mobile terminal including a memory, at least one processor, and at least one program stored on the memory and executable by the at least one processor, the at least one program implementing the steps of any one of the methods described above when executed by the at least one processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing at least one program executable by a computer, which when executed by the computer, causes the computer to perform the steps in the above method.
Compared with the prior art, the hiding method provided by the invention receives the access request of the upper-level catalogue of the target object; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. According to the hiding method provided by the invention, whether the target object is hidden is determined according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, the hiding can be realized without moving the target object to a folder with special authority, and the hiding efficiency can be effectively improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a hiding method according to an embodiment of the present invention;
FIG. 4 is a second flow chart of a hiding method according to an embodiment of the present invention;
FIG. 5 is a third flow chart of a hiding method according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: the wireless communication device comprises an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, a power supply 111 and the like, wherein the number of the processors 110 is at least one. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (GlobalSystemof Mobile communication, global System for Mobile communications), GPRS (GeneralPacket Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (WidebandCode Division Multiple Access ), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long TermEvolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to at least one element within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and the external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. The processor 110 may include at least one processing unit; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above-mentioned hardware structure of the mobile terminal 100 and the communication network system, various embodiments of the method of the present invention are presented.
Referring to fig. 3, fig. 3 is a flowchart illustrating steps of a hiding method according to an embodiment of the present invention, where the method is applied to a mobile terminal, as shown in fig. 3, and the method includes:
step 301, an access request to a superior directory of a target object is received.
In this embodiment, when the user requests to access the upper directory of the target object, the mobile terminal receives an access request to the upper directory of the target object. The target object includes one or more of a file, a folder, and an application icon.
It will be appreciated that when the target object includes a file and/or a folder, the upper directory of the target object includes the folder in which the target object is located, and the access request to the target object includes an access request to the folder in which the target object is located. When the target object includes an application icon, the upper directory of the target object includes a desktop page where the application icon is located, and correspondingly, the access request to the target object includes a display request for the desktop page where the target object is located (for example, a request for switching the mobile terminal from another desktop page to the desktop page where the target object is located).
When the target object includes a file and/or a folder, the access request to the upper directory of the upper level target of the target object may include an opening operation to the folder where the target object is located, or may include a call request from another application to the folder where the target object is located. For the case that the access request includes the opening operation performed by the folder where the target object is located, mediaProvider is added to the frame of the disk, specifically, the MediaProvider may be added to a listFile file in the file.
It may be understood that when the mobile terminal receives an access request of a superior directory of a target object, the mobile terminal needs to display all objects (including the target object) under the superior directory of the target object.
And step 302, responding to the access request, and inquiring whether a record corresponding to the target object exists in a MediaProvider (media provider) file of the mobile terminal.
In the step, the mobile terminal responds to the access request and inquires whether a record corresponding to the target object exists in a MediaProvider file of the mobile terminal. It can be understood that, if the target object needs to be hidden, the mobile terminal deletes the record corresponding to the target object in the MediaProvider file after receiving the hiding operation on the target object. In this embodiment, the mobile terminal determines whether the target object needs to be hidden by querying whether a record corresponding to the target object exists in the MediaProvider file.
For the case that the access request includes an opening operation performed on a folder where the target object is located, the mobile terminal may obtain the MediaProvider from listFile in a file.java file of a Framework of a disk, and query whether a record corresponding to the target object exists in the MediaProvider file.
Step 303, if there is no record corresponding to the target object in the MediaProvider file, hiding the target object.
In this step, if there is no record corresponding to the target object in the MediaProvider file, the target object is hidden. It can be understood that, for the mobile terminal, when the target object needs to be displayed, the record corresponding to the target object in the MediaProvider file needs to be acquired, and in this step, if the record corresponding to the target object is not available in the MediaProvider file, the mobile terminal cannot acquire the record corresponding to the target object, and therefore, the target object cannot be displayed, and the hiding of the target object can be achieved.
In this embodiment, the hiding method receives an access request to an upper directory of a target object; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. According to the hiding method provided by the embodiment, whether the target object is hidden is determined according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, the target object is not required to be moved to a folder with special authority, the hiding can be achieved, and the hiding efficiency can be effectively improved.
Optionally, the receiving an access request to the upper directory of the target object includes:
receiving an access request to a folder where a target object is located;
or receiving a display request of the desktop page where the target object is located.
In this embodiment, the target object may be a file or a folder, or may be an application icon. When the target object is a file or a folder, the upper-level directory of the target object is the folder where the target object is located, and correspondingly, receiving the access request to the upper-level directory of the target object includes receiving the access request to the folder where the target object is located. When the target object is an application icon, the upper-level directory of the target object is a desktop page where the target object is located, and correspondingly, receiving the access request to the upper-level directory of the target object includes receiving a display request to the desktop page where the target object is located.
Optionally, the target object includes one or more of a file, a folder, and an application icon.
In this embodiment, the target object may include a file, a folder, and an application icon, which is not specifically limited in the embodiment of the present invention.
Referring to fig. 4, fig. 4 is a second flowchart of a hiding method according to an embodiment of the present invention, where the hiding method is applied to a mobile terminal, as shown in fig. 4, and the method includes:
step 401, determining a target object in the mobile terminal according to a file listener Fileobserver of the mobile terminal, wherein the target object is an object to be hidden on the mobile terminal.
In the step, the mobile terminal determines a target object on the mobile terminal according to the Fileobserver, wherein the target object is an object to be hidden on the mobile terminal. The mobile terminal determines whether the object is a target object according to the hidden field corresponding to each object in the Fileobserver, and specifically, the mobile terminal can acquire the hidden field corresponding to each object in the Fileobserver; judging whether the hidden field corresponding to each object is in a valid state or not; and determining the object with the hidden field in the valid state as a target object.
And step 402, deleting the record corresponding to the target object in the MediaProvider file.
After determining the target object to be hidden on the mobile terminal, in the step, the mobile terminal deletes the record corresponding to the target object in the MediaProvider file.
Step 403, receiving an access request to a superior directory of the target object.
And step 404, responding to the access request, and inquiring whether a record corresponding to the target object exists in the media provider file of the mobile terminal.
Step 405, if there is no record corresponding to the target object in the MediaProvider file, hiding the target object.
The steps 403 to 405 are the same as the steps 301 to 303 in the embodiment of fig. 3, and are not repeated here.
In this embodiment, the hiding method determines a target object in the mobile terminal according to a file listener of the mobile terminal, where the target object is an object to be hidden on the mobile terminal; deleting a record corresponding to the target object in the MediaProvider file; receiving an access request to a superior directory of a target object; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. According to the hiding method provided by the embodiment, whether the target object is hidden is determined according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, the target object is not required to be moved to a folder with special authority, the hiding can be achieved, and the hiding efficiency can be effectively improved.
Referring to fig. 5, fig. 5 is a third flowchart of a hiding method according to an embodiment of the present invention, where the hiding method is applied to a mobile terminal, as shown in fig. 5, and the method includes:
step 501, obtaining a hidden field corresponding to each object in the Fileobserver.
In this step, the mobile terminal obtains the hidden field corresponding to each object in the Fileobserver.
Step 502, determining whether the hidden field corresponding to each object is in a valid state.
In this step, the mobile terminal determines whether the hidden field corresponding to each object is in a valid state. In the embodiment of the invention, after receiving the hiding operation executed on the target object, the mobile terminal sets the hiding object corresponding to the target object to be in an effective state. In this embodiment, the mobile terminal determines the target object by determining whether the hidden field corresponding to the object in the Fileobserver is in a valid state.
And 503, determining the object with the hidden field in the valid state as a target object, wherein the target object is the object to be hidden on the mobile terminal.
In this step, the mobile terminal determines the object whose hidden field is in the valid state as the target object. The hidden field corresponding to the object may be a hidden flag bit corresponding to the object, and different characters may indicate that the object is in different states. For example, the character "1" may be defined to indicate that the hidden field is in a valid state, and the character "0" may be defined to indicate that the hidden field is in an invalid state. Correspondingly, when the hidden field corresponding to the object A is the character '1', the mobile terminal determines that the hidden field corresponding to the object A is in a valid state; conversely, when the hidden field corresponding to the object a is the character "0", the mobile terminal determines that the hidden field corresponding to the object a is in an invalid state.
For example, assuming that the hidden fields respectively corresponding to the objects B, C, D are all valid, the mobile terminal determines the object B, C, D as the target object.
And step 504, deleting the record corresponding to the target object in the MediaProvider file.
Step 505, an access request to a superior directory of the target object is received.
And step 506, responding to the access request, and inquiring whether a record corresponding to the target object exists in the media provider file of the mobile terminal.
Step 507, if there is no record corresponding to the target object in the MediaProvider file, hiding the target object.
The steps 504 to 507 are the same as the steps 402 to 405 in the embodiment of fig. 4, and are not repeated here.
In this embodiment, the hiding method obtains a hidden field corresponding to each object in the Fileobserver; judging whether the hidden field corresponding to each object is in a valid state or not; determining an object with the hidden field in an effective state as a target object, wherein the target object is an object to be hidden on the mobile terminal; deleting a record corresponding to the target object in the MediaProvider file; receiving an access request to a superior directory of a target object; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. According to the hiding method provided by the embodiment, whether the target object is hidden is determined according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, the target object is not required to be moved to a folder with special authority, the hiding can be achieved, and the hiding efficiency can be effectively improved.
Optionally, before the determining, according to the Fileobserver of the mobile terminal, the target object in the mobile terminal, the method further includes:
receiving a hiding operation executed on a target object;
and responding to the hiding operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in a valid state.
In this embodiment, when receiving a hiding operation performed on a target object, the mobile terminal responds to the hiding operation to set a hiding field corresponding to the target object in the Fileobserver to a valid state. Specifically, the setting the hidden field corresponding to the target object in the Fileobserver to the valid state may include: and setting a hidden field corresponding to the target object in the Fileobserver to be 1.
Optionally, if the MediaProvider file does not have a record corresponding to the target object, after hiding the target object, the method further includes:
receiving a unhiding operation performed on the mobile terminal;
and responding to the hiding canceling operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in an invalid state.
In this embodiment, after hiding the target object, the user may perform an unhidden operation on the mobile terminal for unhidding the target object. And the mobile terminal receives the hiding canceling operation executed on the mobile terminal and responds to the hiding canceling operation to set the hidden field corresponding to the target object in the Fileobserver to be in an invalid state. Specifically, the setting the hidden field corresponding to the target object in the Fileobserver to an invalid state may include: and setting a hidden field corresponding to the target object in the Fileobserver to be 0.
Optionally, after the hiding field corresponding to the target object in the Fileobserver is set to an invalid state in response to the hiding canceling operation, the method further includes:
and adding a record corresponding to the target object in the MediaProvider file.
After the hidden field corresponding to the target object in the Fileobserver is set to be in an invalid state, the mobile terminal further adds a record corresponding to the target object in the MediaProvider file. In this way, the mobile terminal can query the record corresponding to the target object in the MediaProvider file, so that the target file can be displayed on the mobile terminal.
Those of ordinary skill in the art will appreciate that all or part of the steps of implementing the methods of the above embodiments may be implemented by at least one program instruction associated hardware, where the at least one program may be stored in the memory 109 of the mobile terminal 100 as shown in fig. 1 and executed by the processor 110, where the at least one program when executed by the processor 110 implements the steps of:
receiving an access request to a superior directory of a target object;
Responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal;
and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object.
Optionally, before the receiving the access request to the upper level target of the target object, the processor 110 may further implement the following steps:
determining a target object in the mobile terminal according to a file listener of the mobile terminal, wherein the target object is an object to be hidden on the mobile terminal;
and deleting the record corresponding to the target object in the MediaProvider file.
Optionally, the determining, according to the Fileobserver of the mobile terminal, the target object in the mobile terminal includes:
acquiring a hidden field corresponding to each object in the Fileobserver;
judging whether the hidden field corresponding to each object is in a valid state or not;
and determining the object with the hidden field in the valid state as a target object.
Optionally, before determining the target object in the mobile terminal according to the Fileobserver of the mobile terminal, the processor 110 may further implement the following steps:
Receiving a hiding operation executed on a target object;
and responding to the hiding operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in a valid state.
Optionally, if the MediaProvider file does not have a record corresponding to the target object, after hiding the target object, the processor 110 may further implement the following steps:
receiving a unhiding operation performed on the mobile terminal;
and responding to the hiding canceling operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in an invalid state.
Optionally, after the hiding field corresponding to the target object in the Fileobserver is set to an invalid state in response to the unhidden operation, the processor 110 may further implement the following steps:
and adding a record corresponding to the target object in the MediaProvider file.
Optionally, the receiving an access request to the upper directory of the target object includes:
receiving an access request to a folder where a target object is located;
or receiving a display request of the desktop page where the target object is located.
Optionally, the target object includes one or more of a file, a folder, and an application icon.
In this embodiment, the mobile terminal receives an access request to a superior directory of a target object; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. Therefore, the mobile terminal determines whether to hide the target object according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, and the hiding can be realized without moving the target object to a folder with special authority, so that the hiding efficiency can be effectively improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps implementing the methods of the above embodiments may be implemented by at least one program instruction-dependent hardware, and the at least one program may be stored on a computer-readable storage medium, the at least one program when executed comprising the steps of:
receiving an access request to a superior directory of a target object;
responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal;
And if no record corresponding to the target object exists in the MediaProvider file, hiding the target object.
Optionally, before the receiving the access request to the upper level target of the target object, the at least one program may further implement the following steps:
determining a target object in the mobile terminal according to a file listener of the mobile terminal, wherein the target object is an object to be hidden on the mobile terminal;
and deleting the record corresponding to the target object in the MediaProvider file.
Optionally, the determining, according to the Fileobserver of the mobile terminal, the target object in the mobile terminal includes:
acquiring a hidden field corresponding to each object in the Fileobserver;
judging whether the hidden field corresponding to each object is in a valid state or not;
and determining the object with the hidden field in the valid state as a target object.
Optionally, before the determining, according to the Fileobserver of the mobile terminal, the target object in the mobile terminal, the at least one program may further implement the following steps:
receiving a hiding operation executed on a target object;
And responding to the hiding operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in a valid state.
Optionally, if the MediaProvider file does not have a record corresponding to the target object, after hiding the target object, the at least one program may further implement the following steps when executed:
receiving a unhiding operation performed on the mobile terminal;
and responding to the hiding canceling operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in an invalid state.
Optionally, after the hiding field corresponding to the target object in the Fileobserver is set to an invalid state in response to the hiding canceling operation, when the at least one program is executed, the following steps may be further implemented:
and adding a record corresponding to the target object in the MediaProvider file.
Optionally, the receiving an access request to the upper directory of the target object includes:
receiving an access request to a folder where a target object is located;
or receiving a display request of the desktop page where the target object is located.
Optionally, the target object includes one or more of a file, a folder, and an application icon.
In this embodiment, when the at least one program is executed, an access request to a superior directory of the target object is received; responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal; and if no record corresponding to the target object exists in the MediaProvider file, hiding the target object. Therefore, when the at least one program is executed, whether the target object is hidden is determined according to whether the record corresponding to the target object exists in the MediaProvider file, if the record corresponding to the target object does not exist, the target object is not displayed, the target object can be hidden without moving to a folder with special authority, and the hiding efficiency can be effectively improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A hiding method applied to a mobile terminal, the method comprising:
receiving an access request to a superior directory of a target object;
responding to the access request, and inquiring whether a record corresponding to the target object exists in a media provider file of the mobile terminal;
if the MediaProvider file does not have a record corresponding to the target object, hiding the target object;
wherein prior to receiving the access request to the superior target of the target object, the method further comprises:
determining a target object in the mobile terminal according to a file listener of the mobile terminal, wherein the target object is an object to be hidden on the mobile terminal;
and deleting the record corresponding to the target object in the MediaProvider file.
2. The hiding method as claimed in claim 1, wherein said determining a target object in the mobile terminal according to a Fileobserver of the mobile terminal comprises:
acquiring a hidden field corresponding to each object in the Fileobserver;
judging whether the hidden field corresponding to each object is in a valid state or not;
and determining the object with the hidden field in the valid state as a target object.
3. The hiding method of claim 2, wherein before determining the target object in the mobile terminal according to a Fileobserver of the mobile terminal, the method further comprises:
receiving a hiding operation executed on a target object;
and responding to the hiding operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in a valid state.
4. The hiding method according to claim 2, wherein if there is no record corresponding to the target object in the MediaProvider file, after hiding the target object, the method further comprises:
receiving a unhiding operation performed on the mobile terminal;
and responding to the hiding canceling operation, and setting a hidden field corresponding to the target object in the Fileobserver to be in an invalid state.
5. The hiding method as claimed in claim 4, wherein after the hiding field corresponding to the target object in the Fileobserver is set to an invalid state in response to the hiding cancellation operation, the method further comprises:
and adding a record corresponding to the target object in the MediaProvider file.
6. The hiding method according to any one of claims 1 to 5, wherein the receiving an access request to an upper directory of a target object includes:
Receiving an access request to a folder where a target object is located;
or receiving a display request of the desktop page where the target object is located.
7. The hiding method of any one of claims 1 to 5, wherein the target object comprises one or more of a file, a folder, an application icon.
8. A mobile terminal comprising a memory, at least one processor and at least one program stored on the memory and executable by the at least one processor, the at least one program when executed by the at least one processor implementing the steps of the method of any of the preceding claims 1-7.
9. A computer-readable storage medium storing at least one program executable by a computer, wherein the at least one program, when executed by the computer, causes the computer to perform the steps in the method of any one of the preceding claims 1 to 7.
CN201811561942.1A 2018-12-20 2018-12-20 Hiding method, mobile terminal and computer readable storage medium Active CN109740374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811561942.1A CN109740374B (en) 2018-12-20 2018-12-20 Hiding method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811561942.1A CN109740374B (en) 2018-12-20 2018-12-20 Hiding method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109740374A CN109740374A (en) 2019-05-10
CN109740374B true CN109740374B (en) 2023-05-19

Family

ID=66360790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811561942.1A Active CN109740374B (en) 2018-12-20 2018-12-20 Hiding method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109740374B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512979B1 (en) * 1999-11-12 2009-03-31 Hideki Koike Log file protection system
CN101437116A (en) * 2007-11-12 2009-05-20 佛山普立华科技有限公司 System and method for hiding and displaying image and sound file of image-shooting apparatus
CN103324892A (en) * 2013-06-08 2013-09-25 广东欧珀移动通信有限公司 File display method and device of Android system
CN103679043A (en) * 2012-09-24 2014-03-26 上海斐讯数据通信技术有限公司 Method for hiding documents or catalogues
KR20140062736A (en) * 2012-11-15 2014-05-26 김종환 Method of controlling file with giving an attribut on hidden files
CN106874783A (en) * 2016-12-21 2017-06-20 捷开通讯(深圳)有限公司 A kind of file management method and mobile terminal
WO2018171503A1 (en) * 2017-03-24 2018-09-27 腾讯科技(深圳)有限公司 File hiding method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512979B1 (en) * 1999-11-12 2009-03-31 Hideki Koike Log file protection system
CN101437116A (en) * 2007-11-12 2009-05-20 佛山普立华科技有限公司 System and method for hiding and displaying image and sound file of image-shooting apparatus
CN103679043A (en) * 2012-09-24 2014-03-26 上海斐讯数据通信技术有限公司 Method for hiding documents or catalogues
KR20140062736A (en) * 2012-11-15 2014-05-26 김종환 Method of controlling file with giving an attribut on hidden files
CN103324892A (en) * 2013-06-08 2013-09-25 广东欧珀移动通信有限公司 File display method and device of Android system
CN106874783A (en) * 2016-12-21 2017-06-20 捷开通讯(深圳)有限公司 A kind of file management method and mobile terminal
WO2018171503A1 (en) * 2017-03-24 2018-09-27 腾讯科技(深圳)有限公司 File hiding method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
资源显示与隐藏自动转换;康小兰 等;《软件》;20130115;第34卷(第1期);全文 *
轻量级文件隐藏技术;顾夏申;《中国优秀硕士学位论文全文数据库 信息科技辑》;20101215(第12期);全文 *

Also Published As

Publication number Publication date
CN109740374A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN109618316B (en) Network sharing method, mobile terminal and storage medium
CN109800602B (en) Privacy protection method, mobile terminal and computer readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN110187925B (en) Desktop pre-starting control method, device and computer readable storage medium
CN108833690B (en) Authority control method, terminal and computer readable storage medium
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN110020386B (en) Application page sharing method, mobile terminal and computer readable storage medium
CN111427709B (en) Application program splitting control method, device and computer readable storage medium
CN107818022B (en) Application program interface merging method, mobile terminal and computer readable storage medium
CN112464208B (en) File access method, mobile terminal and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN107347114B (en) Voice information receiving and sending control method and terminal
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109684020B (en) Theme switching method, device and computer readable storage medium
CN109889660B (en) Temporary information recording method, storage medium and mobile terminal
CN109711850B (en) Secure payment method, device and computer readable storage medium
CN109388947B (en) Background management method, device and computer readable storage medium
CN108805559B (en) Two-dimensional code pushing method, mobile terminal and computer readable storage medium
CN108040330B (en) WiFi directional transmission method, mobile terminal and readable storage medium
CN108183833B (en) Response processing method and device and computer readable storage medium
CN107222933B (en) Communication method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant