CN111488620A - File processing method and device, mobile terminal and storage medium - Google Patents

File processing method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN111488620A
CN111488620A CN202010303760.5A CN202010303760A CN111488620A CN 111488620 A CN111488620 A CN 111488620A CN 202010303760 A CN202010303760 A CN 202010303760A CN 111488620 A CN111488620 A CN 111488620A
Authority
CN
China
Prior art keywords
file
mobile terminal
processing
request
computer
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
CN202010303760.5A
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.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202010303760.5A priority Critical patent/CN111488620A/en
Publication of CN111488620A publication Critical patent/CN111488620A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a file processing method, a file processing device, a mobile terminal and a storage medium. The method comprises the following steps: establishing wired communication connection with a computer terminal and entering an MTP mode; receiving a processing request of the computer terminal for the file of the mobile terminal sent by the wired communication connection; after receiving the processing request, judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter; if so, processing the file of the mobile terminal according to the processing request; if not, the processing request is refused to be executed. According to the technical scheme of the embodiment of the invention, whether the processing request of the computer terminal is executed or not is determined by the preset file protection parameter, so that a user can determine whether the computer terminal is allowed to write the mobile terminal in the MTP mode or not by himself, and the file in the mobile terminal in the MTP mode is protected from being damaged and lost.

Description

File processing method and device, mobile terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of USB, in particular to a file processing method, a file processing device, a mobile terminal and a storage medium.
Background
The mobile phone is more and more important in daily life, and a user stores some important files in the mobile phone. After a master device (e.g. a computer terminal) and a slave device (e.g. a mobile terminal) establish a connection to enter an MTP mode, the master device may process files or folders in a storage space of the slave device, for example, delete, cut, copy, and the like, and after the MTP mode in the following description refers to this mode, a computer end may access an internal storage space of the mobile phone, and may perform some read/write operations on files stored in the mobile phone, for example: the method comprises the following steps of copying files into the mobile phone, deleting files in the mobile phone, renaming files in the mobile phone and the like, so that important files in the mobile phone can be damaged maliciously or lost after being manually and wrongly operated, and great loss is caused to a user.
Disclosure of Invention
The embodiment of the invention provides a file processing method, a file processing device, a mobile terminal and a storage medium, which are used for protecting files in the mobile terminal from being damaged and lost in an MTP (multiple time transfer) mode.
In a first aspect, an embodiment of the present invention provides a file processing method, which is applied to a mobile terminal, and includes:
establishing wired communication connection with a computer terminal and entering an MTP mode;
receiving a processing request of the computer terminal for the file of the mobile terminal sent by the wired communication connection;
after receiving the processing request, judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter;
if so, processing the file of the mobile terminal according to the processing request;
if not, the processing request is refused to be executed.
Optionally, before establishing a wired communication connection with the computer terminal and entering the MTP mode, the method further includes:
receiving a setting instruction of a user for the file protection parameter;
and setting the file protection parameters according to the setting instruction.
Optionally, before receiving a setting instruction of the file protection parameter from the user, the method includes:
the identity of the user is verified.
Optionally, the verifying the identity of the user includes:
receiving a password input by a user;
judging whether the password meets a preset requirement or not;
and if so, the authentication of the user is successful.
Optionally, the preset file protection parameter includes two parameters that allow processing of the file of the mobile terminal and prohibit processing of the file of the mobile terminal.
Optionally, the processing request includes one or more of a copy request, a modification request, a deletion request, and a renaming request.
Optionally, the establishing a wired communication connection with the computer terminal and entering an MTP mode includes:
establishing wired communication connection with a computer terminal;
judging whether to allow to enter an MTP mode according to a preset mode protection parameter;
if yes, entering an MTP mode.
In a second aspect, an embodiment of the present invention further provides a file processing apparatus, which is applied to a mobile terminal, and includes:
the connection unit is used for establishing wired communication connection with the computer terminal and entering an MTP mode;
the receiving unit is used for receiving a processing request of the computer terminal for the file of the mobile terminal, which is sent by the wired communication connection;
the judging unit is used for judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter after the processing request is received;
the execution unit is used for processing the file of the mobile terminal according to the processing request if the file of the mobile terminal is processed;
and the rejection unit is used for rejecting the execution of the processing request if the processing request is not executed.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the file processing method in any one of the foregoing embodiments when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the file processing method described in any of the above embodiments.
According to the technical scheme of the embodiment of the invention, whether the processing request of the computer terminal is executed or not is determined by the preset file protection parameter, so that a user can determine whether the computer terminal is allowed to write the mobile terminal in the MTP mode or not by himself, and the file in the mobile terminal in the MTP mode is protected from being damaged and lost.
Drawings
FIG. 1 is a flowchart illustrating a file processing method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a document processing apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first speed difference may be referred to as a second speed difference, and similarly, a second speed difference may be referred to as a first speed difference, without departing from the scope of the present application. The first speed difference and the second speed difference are both speed differences, but they are not the same speed difference. The terms "first", "second", etc. are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart illustrating a file processing method according to an embodiment of the present invention, which is applicable to a USB file processing situation. The method of the embodiment of the invention can be executed by a file processing device, and the device can be realized by software and/or hardware and can be generally integrated in a mobile terminal of an Android platform. Referring to fig. 1, a file processing method according to an embodiment of the present invention specifically includes the following steps:
step S110, establishing a wired communication connection with the computer terminal and entering an MTP mode.
In this embodiment, the mobile terminal may be a terminal having a USB interface, such as a smart phone, a tablet computer, and the like, and the computer terminal may be a terminal having a USB interface, such as a desktop computer, a notebook computer, and the like. The wired communication connection with the computer terminal can be realized by connecting the mobile terminal with the computer terminal by a USB wire. The mobile terminal and the computer terminal can establish a wired communication connection based on a Universal Serial Bus (USB), and after the wired communication connection is established, when a connection mode of "file Transfer" is selected, the mobile terminal and the computer terminal select to enter an MTP mode, and can perform information interaction based on MTP (Media Transfer Protocol), for example, at this time, a writing operation can be performed on a file in a mobile phone at the computer terminal (the writing operation includes copying the file into the mobile phone and modifying, deleting or renaming the file in the mobile phone). As an alternative embodiment, step S110 includes: establishing wired communication connection with a computer terminal; judging whether to allow to enter an MTP mode according to a preset mode protection parameter; if yes, entering an MTP mode. Specifically, after the wired communication connection is established, when the connection mode of 'file transfer' is selected, the mobile terminal can determine whether to display the option of the MTP mode for the user to select according to whether the user allows to enter the MTP mode in the 'setup' menu setting, if the user allows to enter the MTP mode in the 'setup' menu setting, the option of the MTP mode can be displayed for the user to select when the mobile phone is connected with the computer, and if the user does not allow to enter the MTP mode in the 'setup' menu setting, the option of the MTP mode cannot be displayed for the user to select when the mobile phone is connected with the computer.
And step S120, receiving a processing request of the computer terminal for the file of the mobile terminal sent by the wired communication connection.
Specifically, after establishing a wired communication connection with the computer terminal and entering the MTP mode, the computer terminal may send a processing request for a file of the mobile terminal to the mobile terminal through the wired communication connection, where the processing request includes, but is not limited to, a copy request, a modify request, a delete request, and a rename request. The copy request refers to a request for copying the file of the mobile terminal to the computer terminal or copying the file of the mobile terminal to another file position of the mobile terminal. The modification request refers to a request for modifying a file of the mobile terminal. The deletion request refers to a request for deleting a file of the mobile terminal. The renaming request refers to a request for renaming a file of the mobile terminal. The computer terminal sends a processing request to the mobile terminal through the USB line, and the mobile terminal receives the processing request which is sent by the computer terminal through the USB line and aims at the file of the mobile terminal.
Step S130, after receiving the processing request, determining whether to allow processing of the file of the mobile terminal according to a preset file protection parameter.
Specifically, the preset file protection parameters include two parameters of allowing processing the file of the mobile terminal and prohibiting processing the file of the mobile terminal. The permission of processing the file of the mobile terminal refers to permission of operations such as copying, modifying, deleting and renaming the file of the mobile terminal, and the prohibition of processing the file of the mobile terminal refers to prohibition of operations such as copying, modifying, deleting and renaming the file of the mobile terminal. After receiving the processing request, the mobile terminal determines whether to allow processing of the file of the mobile terminal according to preset file protection parameters, for example, at this time, the file protection parameters of the mobile terminal are set to "allow processing of the file of the mobile terminal", after receiving the processing request, the file of the mobile terminal is directly processed according to the processing request, and if the file is requested to be modified, the file is directly modified according to the request; for another example, at this time, the file protection parameter of the mobile terminal is set to "prohibit processing the file of the mobile terminal", and after receiving the processing request, the processing request is rejected, and no operation may be performed, or a popup is presented to the user that the operation cannot be performed.
Since whether the file of the mobile terminal is allowed to be processed or not is judged according to the preset file protection parameter after the processing request is received, before establishing a wired communication connection with the computer terminal and entering an MTP mode, a user is required to set the file protection parameter of the mobile terminal as the preset file protection parameter. The method specifically comprises the following steps: adding a Switch Bar (menu of Switch type) in a 'setting' menu of the mobile terminal, named as 'MTP mode file protection', setting a value of an attribute value A when a Switch is turned on or turned off, wherein the value of the attribute value A can only be 1 or 0, allowing the file of the mobile terminal to be processed when the value of the attribute value A is 1, and forbidding the file of the mobile terminal to be processed when the value of the attribute value A is 0. When the user operates, opening a 'setting' menu, entering an 'MTP mode file protection' menu, setting file protection parameters according to own will, and selecting whether to allow processing the file, wherein at the moment, the mobile terminal receives a setting instruction of the user on the file protection parameters; and setting the file protection parameters according to the setting instruction. For example, the user selects "allow", the mobile terminal background sets the attribute value a to 1, and at this time, after the mobile terminal USB is connected to the computer terminal, the computer terminal allows processing the file of the mobile terminal.
As an alternative embodiment, before receiving the setting instruction of the user for the file protection parameter, the user may also be required to be authenticated, for example, fingerprint authentication, password authentication, nine-square authentication, and the like, for example, the password authentication may be: receiving a password input by a user; judging whether the password meets a preset requirement or not; and if so, the authentication of the user is successful. Specifically, when the user operates, the setting menu is opened, the MTP mode file protection menu is entered, a prompt box for password verification is popped up, the user inputs the password in the prompt box, whether the input password is correct or not is judged, if the input password is correct, the user successfully verifies the identity, and the user can set file protection parameters. Therefore, when the switch state of the MTP mode file protection is changed each time, the function of inputting password verification is added, and the switch state is prevented from being illegally modified. The verification mode is the existing general verification mode, and the invention is not described in detail herein.
And step S140, if so, processing the file of the mobile terminal according to the processing request.
Specifically, if the file of the mobile terminal is judged to be allowed to be processed according to the preset file protection parameter, the file of the mobile terminal is processed according to the processing request. For example, if the computer terminal requests to modify the file of the mobile terminal, the file of the mobile terminal is modified according to the modification request.
And step S150, if not, refusing to execute the processing request.
Specifically, if the file of the mobile terminal is determined to be prohibited from being processed according to the preset file protection parameter, the processing request is refused to be executed, and no operation can be performed or a popup prompt is given to the user that the operation cannot be performed.
By the scheme, the file in the mobile terminal in the USB MTP mode can be effectively protected from being lost and damaged, but the computer terminal can still read the file in the mobile terminal, such as: opening photos, files and the like in the mobile terminal. As an optional embodiment, from the perspective of protecting user privacy, the file in the mobile phone may be protected by reading in the USB MTP mode, and the file in the mobile phone is allowed to be read by the computer only under the premise of user authorization. The processing request further includes a viewing request. Specifically, a viewing request for a file of the mobile terminal sent by the computer terminal through the wired communication connection is received; after receiving the checking request, judging whether checking of the file of the mobile terminal is allowed or not according to preset file protection parameters; if yes, checking the file of the mobile terminal according to the checking request; if not, the checking request is refused to be executed.
According to the technical scheme of the embodiment of the invention, whether the processing request of the computer terminal is executed or not is determined by the preset file protection parameter, so that a user can determine whether the computer terminal is allowed to write the mobile terminal in the MTP mode or not by himself, and the file in the mobile terminal in the MTP mode is protected from being damaged and lost.
Example two
The file processing device provided by the embodiment of the invention can execute the file processing method provided by any embodiment of the invention, has the corresponding functional modules and beneficial effects of the execution method, can be realized in a software and/or hardware (integrated circuit) mode, and can be generally integrated in a mobile terminal of an Android platform. Fig. 2 is a schematic structural diagram of a document processing apparatus 200 according to a second embodiment of the invention. Referring to fig. 2, a file processing apparatus 200 according to an embodiment of the present invention may specifically include:
a connection unit 210 for establishing a wired communication connection with a computer terminal and entering an MTP mode;
a receiving unit 220, configured to receive a file processing request for the mobile terminal sent by the computer terminal through the wired communication connection;
a determining unit 230, configured to determine whether to allow processing of the file of the mobile terminal according to a preset file protection parameter after receiving the processing request;
an executing unit 240, configured to process the file of the mobile terminal according to the processing request if the file of the mobile terminal is a file of the mobile terminal;
a rejecting unit 250, configured to reject to execute the processing request if not.
Optionally, the apparatus 200 further includes:
the setting receiving unit is used for receiving a setting instruction of a user for the file protection parameter;
and the parameter setting unit is used for setting the file protection parameters according to the setting instruction.
Optionally, the apparatus 200 further includes:
and the identity authentication unit is used for authenticating the identity of the user.
Optionally, the identity authentication unit is further configured to receive a password input by a user; judging whether the password meets a preset requirement or not; and if so, the authentication of the user is successful.
Optionally, the preset file protection parameter includes two parameters that allow processing of the file of the mobile terminal and prohibit processing of the file of the mobile terminal.
Optionally, the processing request includes one or more of a copy request, a modification request, a deletion request, and a renaming request.
Optionally, the processing request further includes a viewing request.
According to the technical scheme of the embodiment of the invention, whether the processing request of the computer terminal is executed or not is determined by the preset file protection parameter, so that a user can determine whether the computer terminal is allowed to write the mobile terminal in the MTP mode or not by himself, and the file in the mobile terminal in the MTP mode is protected from being damaged and lost.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention, as shown in fig. 3, the mobile terminal includes a processor 310, a memory 320, an input device 330, and an output device 340; the number of the processors 310 in the mobile terminal may be one or more, and one processor 310 is taken as an example in fig. 3; the processor 310, the memory 320, the input device 330 and the output device 340 in the mobile terminal may be connected by a bus or other means, and are exemplified by being connected by a bus in fig. 3.
The memory 320, as a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the file processing method in the embodiment of the present invention (e.g., the connection unit 210, the reception unit 220, the judgment unit 230, the execution unit 240, and the rejection unit 250 in the file processing apparatus 200). The processor 310 executes various functional applications and data processing of the mobile terminal by executing software programs, instructions and modules stored in the memory 320, that is, implements the above-described file processing method.
Namely:
establishing wired communication connection with a computer terminal and entering an MTP mode;
receiving a processing request of the computer terminal for the file of the mobile terminal sent by the wired communication connection;
after receiving the processing request, judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter;
if so, processing the file of the mobile terminal according to the processing request;
if not, the processing request is refused to be executed.
Of course, the processor of the mobile terminal provided in the embodiment of the present invention is not limited to execute the method operations described above, and may also execute related operations in the file processing method provided in any embodiment of the present invention.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 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 non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. The output device 340 may include a display device such as a display screen.
According to the technical scheme of the embodiment of the invention, whether the processing request of the computer terminal is executed or not is determined by the preset file protection parameter, so that a user can determine whether the computer terminal is allowed to write the mobile terminal in the MTP mode or not by himself, and the file in the mobile terminal in the MTP mode is protected from being damaged and lost.
Example four
A fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a file processing method, including:
establishing wired communication connection with a computer terminal and entering an MTP mode;
receiving a processing request of the computer terminal for the file of the mobile terminal sent by the wired communication connection;
after receiving the processing request, judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter;
if so, processing the file of the mobile terminal according to the processing request;
if not, the processing request is refused to be executed.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the file processing method provided by any embodiment of the present invention.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
According to the technical scheme of the embodiment of the invention, whether the processing request of the computer terminal is executed or not is determined by the preset file protection parameter, so that a user can determine whether the computer terminal is allowed to write the mobile terminal in the MTP mode or not by himself, and the file in the mobile terminal in the MTP mode is protected from being damaged and lost.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A file processing method is applied to a mobile terminal and is characterized by comprising the following steps:
establishing wired communication connection with a computer terminal and entering an MTP mode;
receiving a processing request of the computer terminal for the file of the mobile terminal sent by the wired communication connection;
after receiving the processing request, judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter;
if so, processing the file of the mobile terminal according to the processing request;
if not, the processing request is refused to be executed.
2. The method of claim 1, further comprising, before establishing a wired communication connection with the computer terminal and entering the MTP mode:
receiving a setting instruction of a user for the file protection parameter;
and setting the file protection parameters according to the setting instruction.
3. The file processing method according to claim 2, before receiving a setting instruction of the file protection parameter from a user, comprising:
the identity of the user is verified.
4. The document processing method according to claim 3, wherein the verifying the identity of the user comprises:
receiving a password input by a user;
judging whether the password meets a preset requirement or not;
and if so, the authentication of the user is successful.
5. The method according to claim 2, wherein the preset file protection parameters include two parameters of allowing processing of the file of the mobile terminal and prohibiting processing of the file of the mobile terminal.
6. The file processing method according to claim 1, wherein the processing request includes one or more of a copy request, a modify request, a delete request, and a rename request.
7. The method of claim 6, wherein establishing a wired communication connection with the computer terminal and entering an MTP mode comprises:
establishing wired communication connection with a computer terminal;
judging whether to allow to enter an MTP mode according to a preset mode protection parameter;
if yes, entering an MTP mode.
8. A file processing device applied to a mobile terminal is characterized by comprising:
the connection unit is used for establishing wired communication connection with the computer terminal and entering an MTP mode;
the receiving unit is used for receiving a processing request of the computer terminal for the file of the mobile terminal, which is sent by the wired communication connection;
the judging unit is used for judging whether the file of the mobile terminal is allowed to be processed or not according to a preset file protection parameter after the processing request is received;
the execution unit is used for processing the file of the mobile terminal according to the processing request if the file of the mobile terminal is processed;
and the rejection unit is used for rejecting the execution of the processing request if the processing request is not executed.
9. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the file processing method according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a file processing method according to any one of claims 1 to 7.
CN202010303760.5A 2020-04-17 2020-04-17 File processing method and device, mobile terminal and storage medium Pending CN111488620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010303760.5A CN111488620A (en) 2020-04-17 2020-04-17 File processing method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010303760.5A CN111488620A (en) 2020-04-17 2020-04-17 File processing method and device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111488620A true CN111488620A (en) 2020-08-04

Family

ID=71811031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010303760.5A Pending CN111488620A (en) 2020-04-17 2020-04-17 File processing method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111488620A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172897A (en) * 2021-12-09 2022-03-11 西安邮电大学 PC (personal computer) end and Android end file transmission method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104265A1 (en) * 2006-10-27 2008-05-01 Scott Krig Method and System For String Preferences Extension For Media Transfer Protocol
CN101493867A (en) * 2008-01-25 2009-07-29 希姆通信息技术(上海)有限公司 Method and system for mutually transmitting shared data safely between mobile phone and computer
CN102868713A (en) * 2011-07-07 2013-01-09 中兴通讯股份有限公司 Method, device and wireless terminal for processing file
CN104766021A (en) * 2014-01-04 2015-07-08 深圳富泰宏精密工业有限公司 Authority control system and method
CN107562372A (en) * 2017-08-01 2018-01-09 广东欧珀移动通信有限公司 A kind of electronic equipment and its data managing method, computer-readable recording medium
CN108038112A (en) * 2017-09-28 2018-05-15 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104265A1 (en) * 2006-10-27 2008-05-01 Scott Krig Method and System For String Preferences Extension For Media Transfer Protocol
CN101493867A (en) * 2008-01-25 2009-07-29 希姆通信息技术(上海)有限公司 Method and system for mutually transmitting shared data safely between mobile phone and computer
CN102868713A (en) * 2011-07-07 2013-01-09 中兴通讯股份有限公司 Method, device and wireless terminal for processing file
CN104766021A (en) * 2014-01-04 2015-07-08 深圳富泰宏精密工业有限公司 Authority control system and method
CN107562372A (en) * 2017-08-01 2018-01-09 广东欧珀移动通信有限公司 A kind of electronic equipment and its data managing method, computer-readable recording medium
CN108038112A (en) * 2017-09-28 2018-05-15 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172897A (en) * 2021-12-09 2022-03-11 西安邮电大学 PC (personal computer) end and Android end file transmission method and system
CN114172897B (en) * 2021-12-09 2023-08-25 西安邮电大学 Method and system for transmitting files of PC (personal computer) end and Android end

Similar Documents

Publication Publication Date Title
CN106330958B (en) Secure access method and device
WO2017143879A1 (en) File permission management method and device
KR102107277B1 (en) System and method for anti-fishing or anti-ransomware application
MX2014007792A (en) File system access for one or more sandboxed applications.
CN107622203A (en) Guard method, device, storage medium and the electronic equipment of sensitive information
CN111800273B (en) Information processing method, electronic device, and storage medium
US20220075867A1 (en) Temporary removal of software programs to secure mobile device
CN117378173A (en) Transfer of ownership of computing device via secure processor
CN105893865A (en) File processing method and device
CN106599115B (en) Data protection method, device and terminal
CN114861158A (en) Security authentication method, device, system, electronic equipment and storage medium
CN111488620A (en) File processing method and device, mobile terminal and storage medium
JP4993114B2 (en) Shared management method for portable storage device and portable storage device
CN106919812B (en) Application process authority management method and device
CN105653989B (en) A kind of information leakage preventing method and device
CN112581659A (en) Digital key user passing method, device, system and storage medium
CN108875396B (en) File operation method, USIM card, terminal and readable storage medium
CN112422281B (en) Method and system for changing secret key in security module
CN106066967A (en) Permission setting method and device
CN112165706B (en) Equipment connection management method and device and Bluetooth equipment
CN106446719B (en) Method for preventing eSIM file from being tampered and mobile terminal
KR20160110704A (en) Using method for mobile payment and payment service system thereof
CN104361269A (en) Access control method and device of access target in terminal
CN105636046A (en) Credible access control method and system for WiFi device
CN113507445B (en) Method and device for detecting rule security of third party of Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200804