CN107168905A - A kind of document display method, device, storage medium and mobile terminal - Google Patents
A kind of document display method, device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN107168905A CN107168905A CN201710329994.5A CN201710329994A CN107168905A CN 107168905 A CN107168905 A CN 107168905A CN 201710329994 A CN201710329994 A CN 201710329994A CN 107168905 A CN107168905 A CN 107168905A
- Authority
- CN
- China
- Prior art keywords
- mtp
- file
- initiator
- directory structure
- folder
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4265—Bus transfer protocol, e.g. handshake; Synchronisation on a point to point bus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种文件显示方法、装置、存储介质及移动终端。该方法包括:接收MTP发起端发送的第一消息,向MTP发起端反馈预设虚拟目录结构的访问接口,在接收到MTP发起端发送的针对预设虚拟目录结构的访问请求时,向MTP发起端反馈预设虚拟目录结构中的文件夹信息,以使MTP发起端显示相应的文件夹;在接收到MTP发起端针对所显示的目标文件夹的访问请求时,获取与目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给MTP发起端,以使MTP发起端显示相应的文件。本发明实施例通过采用上述技术方案,可提高文件访问及显示效率。
The embodiment of the invention discloses a file display method, device, storage medium and mobile terminal. The method includes: receiving the first message sent by the MTP originator, feeding back the access interface of the preset virtual directory structure to the MTP originator, and initiating to the MTP when receiving an access request for the preset virtual directory structure sent by the MTP originator The terminal feeds back the folder information in the preset virtual directory structure, so that the MTP initiator displays the corresponding folder; when receiving the MTP initiator’s access request for the displayed target folder, obtains the corresponding The file handle of the file, and feed back the obtained file handle to the MTP originator, so that the MTP originator can display the corresponding file. The embodiment of the present invention can improve file access and display efficiency by adopting the above technical solution.
Description
技术领域technical field
本发明实施例涉及计算机技术领域,尤其涉及一种文件显示方法、装置、存储介质及移动终端。The embodiments of the present invention relate to the field of computer technology, and in particular to a file display method, device, storage medium and mobile terminal.
背景技术Background technique
为了方便查看及管理移动终端上的文件,许多用户通常会将移动终端连接到个人电脑(Personal Computer,PC)等终端上,并在PC上进行相关操作。In order to conveniently view and manage files on the mobile terminal, many users usually connect the mobile terminal to a terminal such as a personal computer (Personal Computer, PC), and perform related operations on the PC.
目前,媒体传输协议(Media Transfer Protocol,MTP)是现在最常见的一个媒体文件传输协议,由微软公司提出,支持MTP协议的电子设备能够基于MTP协议提供的接口进行媒体文件传输。MTP的应用分两种角色,一个是作为发起端Initiator,如PC或笔记本等;另一个作为应答端Responder,如手机或数码相机等。当电子设备通过MTP进行通信时,Initiator的屏幕上能够显示Responder中各存储目录中的文件夹及文件。然而,现在的移动终端的存储空间越来越大,使用的存储器从几年前的4G逐渐发展到如今的256G甚至更大,按摩尔定律的发展,不久以后将以T来计算存储空间了,随之而来的是存储数量庞大的文件,使现有的基于MTP的文件显示策略很难适应。At present, the Media Transfer Protocol (MTP) is the most common media file transfer protocol. It was proposed by Microsoft Corporation. Electronic devices supporting the MTP protocol can perform media file transfer based on the interface provided by the MTP protocol. The application of MTP is divided into two roles, one is as an initiator, such as a PC or a notebook, and the other is a responder, such as a mobile phone or a digital camera. When the electronic device communicates through MTP, the screen of the Initiator can display the folders and files in each storage directory in the Responder. However, the storage space of current mobile terminals is getting larger and larger, and the memory used has gradually developed from 4G a few years ago to 256G or even larger today. According to the development of Moore's law, the storage space will be calculated by T in the near future. Followed by the storage of a huge number of files, it is difficult to adapt to the existing MTP-based file display strategy.
发明内容Contents of the invention
本发明实施例提供一种文件显示方法、装置、存储介质及移动终端,可以解决优化现有的基于MTP的文件显示方案。Embodiments of the present invention provide a file display method, device, storage medium and mobile terminal, which can solve and optimize the existing MTP-based file display solution.
第一方面,本发明实施例提供了一种文件显示方法,包括:In a first aspect, an embodiment of the present invention provides a file display method, including:
接收媒体传输协议MTP发起端发送的第一消息;receiving the first message sent by the media transfer protocol MTP initiator;
根据所述第一消息向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口,其中,所述预设虚拟目录结构中包含预设分类的文件夹;Feedback an access interface of a preset virtual directory structure of the MTP responder to the MTP initiator according to the first message, wherein the preset virtual directory structure includes folders of preset categories;
在接收到所述MTP发起端发送的针对所述预设虚拟目录结构的访问请求时,向所述MTP发起端反馈所述预设虚拟目录结构中的文件夹信息,以使所述MTP发起端显示相应的文件夹;When receiving the access request for the preset virtual directory structure sent by the MTP initiator, feed back the folder information in the preset virtual directory structure to the MTP initiator, so that the MTP initiator Display the corresponding folder;
在接收到所述MTP发起端针对所显示的目标文件夹的访问请求时,获取与所述目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。When receiving the MTP initiator's access request for the displayed target folder, obtain the file handle of the file corresponding to the target folder, and feed back the acquired file handle to the MTP initiator to Make the MTP initiator display the corresponding file.
第二方面,本发明实施例提供了一种文件显示装置,包括:In a second aspect, an embodiment of the present invention provides a file display device, including:
消息接收模块,用于接收媒体传输协议MTP发起端发送的第一消息;A message receiving module, configured to receive the first message sent by the media transfer protocol MTP initiator;
访问接口反馈模块,用于根据所述第一消息向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口,其中,所述预设虚拟目录结构中包含预设分类的文件夹;An access interface feedback module, configured to feed back the access interface of the preset virtual directory structure of the MTP responder to the MTP initiator according to the first message, wherein the preset virtual directory structure includes folders of preset categories;
文件夹信息反馈模块,用于在接收到所述MTP发起端发送的针对所述预设虚拟目录结构的访问请求时,向所述MTP发起端反馈所述预设虚拟目录结构中的文件夹信息,以使所述MTP发起端显示相应的文件夹;A folder information feedback module, configured to feed back folder information in the preset virtual directory structure to the MTP initiator when receiving an access request for the preset virtual directory structure sent by the MTP initiator , so that the MTP initiator displays the corresponding folder;
文件句柄反馈模块,用于在接收到所述MTP发起端针对所显示的目标文件夹的访问请求时,获取与所述目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。The file handle feedback module is used to obtain the file handle of the file corresponding to the target folder when receiving the access request of the MTP initiator for the displayed target folder, and feed back the acquired file handle to The MTP initiator, so that the MTP initiator displays the corresponding file.
第三方面,一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现本发明实施例提供的文件显示方法。In a third aspect, a computer-readable storage medium stores a computer program thereon, wherein the program implements the file display method provided by the embodiment of the present invention when the program is executed by a processor.
第四方面,本发明实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现本发明实施例提供的文件显示方法。In a fourth aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and operable by the processor, wherein the computer program is implemented when the processor executes the computer program The file display method provided by the embodiment of the present invention.
本发明实施例中提供的文件显示方案,在接收到MTP发起端发送的第一消息时,反馈MTP应答端的包含预设分类文件夹的预设虚拟目录结构的访问接口,并在接收到MTP发起端发送的针对预设虚拟目录结构的访问请求时,向MTP发起端反馈相应的文件夹信息,以使MTP发起端显示相应的文件夹,在接收到MTP发起端针对目标文件夹的访问请求时,获取相应的文件的文件句柄并反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。通过采用上述技术方案,可为用户提供预设分类的文件夹的快捷访问接口,方便用户快速访问到自己感兴趣的分类的文件,提高文件访问及显示的效率。The file display scheme provided in the embodiment of the present invention, when receiving the first message sent by the MTP initiator, feeds back the access interface of the preset virtual directory structure of the MTP responder that contains the preset classification folders, and when receiving the MTP initiator When the access request for the preset virtual directory structure is sent by the terminal, the corresponding folder information is fed back to the MTP initiator, so that the MTP initiator displays the corresponding folder. When receiving the access request of the MTP initiator for the target folder , acquire the file handle of the corresponding file and feed it back to the MTP initiator, so that the MTP initiator displays the corresponding file. By adopting the above technical solution, the user can be provided with a quick access interface of folders with preset categories, which is convenient for the user to quickly access the files of the category they are interested in, and improves the efficiency of file access and display.
附图说明Description of drawings
图1为本发明实施例提供的一种文件显示方法的流程示意图;FIG. 1 is a schematic flowchart of a file display method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种MTP协议栈示意图;Fig. 2 is a kind of MTP protocol stack schematic diagram that the embodiment of the present invention provides;
图3为本发明实施例提供的一种MTP命令处理流程示意图;FIG. 3 is a schematic diagram of a MTP command processing flow provided by an embodiment of the present invention;
图4为本发明实施例提供的一种文件显示方法的流程示意图;FIG. 4 is a schematic flowchart of a file display method provided by an embodiment of the present invention;
图5为本发明实施例提供的一种文件显示装置的结构框图;FIG. 5 is a structural block diagram of a file display device provided by an embodiment of the present invention;
图6为本发明实施例提供的一种移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.
具体实施方式detailed description
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
图1为本发明实施例提供的一种文件显示方法的流程示意图,该方法可以由文件显示装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:Fig. 1 is a schematic flowchart of a file display method provided by an embodiment of the present invention. The method can be executed by a file display device, wherein the device can be implemented by software and/or hardware, and generally can be integrated in a mobile terminal. As shown in Figure 1, the method includes:
步骤101、接收MTP发起端发送的第一消息。Step 101. Receive a first message sent by an MTP initiator.
示例性的,本实施例中的移动终端具体可为手机、智能手表、平板电脑、游戏机、个人数字助理和数字多媒体播放器等设备。Exemplarily, the mobile terminal in this embodiment may specifically be devices such as mobile phones, smart watches, tablet computers, game consoles, personal digital assistants, and digital multimedia players.
MTP的应用分两种角色,一个作为发起端Initiator;另一个作为应答端Responder。发起端和应答端之间通常可通过通用串行总线(Universal Serial Bus,USB)进行连接。发起端通常指USB Host(主机),如PC或笔记本电脑等;应答端可以是本发明实施例中的移动终端。MTP协议规定所有MTP操作由Initator发起,而Responder在MTP中的作用包括处理Initator发起的请求,同时,它还会根据自身状态的变化发送Event(事件)以通知Initator。The application of MTP is divided into two roles, one as the initiator Initiator; the other as the responder Responder. Usually, the initiating end and the responding end can be connected through a universal serial bus (Universal Serial Bus, USB). The initiating end usually refers to a USB Host (host), such as a PC or a notebook computer, etc.; the responding end may be a mobile terminal in an embodiment of the present invention. The MTP protocol stipulates that all MTP operations are initiated by the Initator, and the role of the Responder in the MTP includes processing the request initiated by the Initator. At the same time, it will also send an Event (event) to notify the Initator according to the change of its own state.
示例性的,所述第一消息可以是根据实际需求新增的一种用于显示本发明实施例所述的预设虚拟目录结构访问接口的消息,也可以是MTP中原有的消息,本发明实施例中不做具体限定,当MTP应答端接收到第一消息时,根据该第一消息进行响应。需要说明的是,当第一消息为MTP中原有的消息时,可更改MTP应答端原来的响应策略,以实现本发明实施例的后续步骤。Exemplarily, the first message may be a newly added message for displaying the preset virtual directory structure access interface described in the embodiment of the present invention according to actual needs, or it may be an original message in the MTP. The present invention There is no specific limitation in this embodiment. When the MTP responder receives the first message, it responds according to the first message. It should be noted that when the first message is an original message in the MTP, the original response strategy of the MTP responder can be changed to implement the subsequent steps of the embodiment of the present invention.
步骤102、根据所述第一消息向MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口。Step 102: Feed back the access interface of the preset virtual directory structure of the MTP responder to the MTP initiator according to the first message.
其中,所述预设虚拟目录结构中包含预设分类的文件夹。Wherein, the preset virtual directory structure includes folders of preset categories.
示例性的,预设分类可以由系统默认设置,也可由用户根据个人需求进行自主设置。例如,在接收MTP发起端发送的第一消息之前,还可包括:根据用户的设置操作对预设虚拟目录结构进行更改,所述设置操作包括增加、减少或修改所述预设虚拟目录结构中包含的预设分类的文件夹。Exemplarily, the preset categories can be set by default by the system, or can be set independently by the user according to individual needs. For example, before receiving the first message sent by the MTP initiator, it may also include: changing the preset virtual directory structure according to the user's setting operation, and the setting operation includes adding, reducing or modifying the preset virtual directory structure. Folder containing preset categories.
可选的,预设分类可以包括图片、视频、音频、文档、安装包、压缩包等以存储类型进行区分的分类;也可包括微信收发文件、QQ收发文件以及邮件收发文件等以在MTP应答端中的实际的存储目录进行区分的分类;还可包括最近更改、最近访问以及文件大小等以文件属性进行区分的分类。预设分类还可以包括其他种分类,本发明实施例不做限定。可以理解的是,不同预设分类的文件夹所对应的文件可以发生重复,例如,图片A可同时对应于图片文件夹和微信收发文件夹,还可对应于最近更改文件夹。此外,还可对上述几种分类进行组合,例如,最近访问的图片等。Optionally, the preset categories can include pictures, videos, audios, documents, installation packages, compressed packages, etc. classified by storage type; it can also include WeChat sending and receiving files, QQ sending and receiving files, and email sending and receiving files, etc. to respond in the MTP It can also include classifications that are distinguished by file attributes such as recent changes, recent accesses, and file sizes. The preset categories may also include other categories, which are not limited in this embodiment of the present invention. It can be understood that the files corresponding to the folders of different preset categories may be repeated. For example, picture A may correspond to both the picture folder and the WeChat send and receive folder, and may also correspond to the recently changed folder. In addition, the above-mentioned classifications can also be combined, for example, recently visited pictures and the like.
示例性的,访问接口可以是以盘符形式存在的接口,也可以是以文件夹形式存在的接口,还可以是以图标等形式存在的接口。可通过作用于访问接口的预设操作(如点击、长按或双击等形式的操作)来发起对访问接口对应的预设虚拟目录结构的访问请求。Exemplarily, the access interface may be an interface existing in the form of a drive letter, an interface existing in the form of a folder, or an interface existing in the form of an icon or the like. An access request to the preset virtual directory structure corresponding to the access interface may be initiated through a preset operation (such as an operation in the form of clicking, long-pressing, or double-clicking) acting on the access interface.
优选的,在接收MTP发起端发送的第一消息之后,还可包括根据第一消息向MTP发起端反馈MTP应答端的存储目录结构的访问接口。存储目录结构可理解为实际的存储目录结构,在MTP应答端中,文件通常会有自己的存储逻辑,所有文件按照该存储逻辑进行存储。例如,大多数安卓Android手机中的文件是以应用程序为单位进行存储的,同一个应用程序所涉及的文件通常存储在该应用程序所对应的文件目录下。而本发明实施例此处优化的好处在于,预设虚拟目录结构中通常包含的是用户常用的或者感兴趣的文件夹,一般不会涵盖所有文件,在提供预设虚拟目录结构的访问接口以外,还提供存储目录结构的访问接口,可为用户提供全面的文件访问途径,保证用户能够查看到所有文件。Preferably, after receiving the first message sent by the MTP initiator, an access interface for feeding back the storage directory structure of the MTP responder to the MTP initiator according to the first message may also be included. The storage directory structure can be understood as the actual storage directory structure. In the MTP response terminal, files usually have their own storage logic, and all files are stored according to the storage logic. For example, files in most Android mobile phones are stored in units of applications, and files involved in the same application are usually stored in a file directory corresponding to the application. The advantage of the optimization here in the embodiment of the present invention is that the preset virtual directory structure usually contains folders that are commonly used or interested by users, and generally does not cover all files. In addition to providing the access interface of the preset virtual directory structure , and also provides an access interface for storing the directory structure, which can provide users with a comprehensive file access path and ensure that users can view all files.
进一步的,所述第一消息为盘符获取命令。根据所述第一消息向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口,包括:根据所述盘符获取命令向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的第一盘符。根据所述第一消息向所述MTP发起端反馈MTP应答端的存储目录结构的访问接口,包括:根据所述盘符获取命令向所述MTP发起端反馈MTP应答端的存储目录结构的第二盘符,所述第二盘符与所述第一盘符不同。此处优化的好处在于,以盘符区分访问接口,可方便用户快速找到不同的访问接口。优选的,第一盘符的名称可以为“快速访问”、“快速展示”或“常用文件”等,为用户提供简单明快的提示。Further, the first message is a drive letter acquisition command. Feedback the access interface of the preset virtual directory structure of the MTP responder to the MTP initiator according to the first message, including: feeding back the preset virtual directory structure of the MTP responder to the MTP initiator according to the drive letter acquisition command The first letter. The access interface for feeding back the storage directory structure of the MTP responder to the MTP initiator according to the first message, including: feeding back the second drive letter of the storage directory structure of the MTP responder to the MTP initiator according to the drive letter acquisition command , the second disk letter is different from the first disk letter. The advantage of optimization here is that the access interfaces are distinguished by drive letters, which makes it easy for users to quickly find different access interfaces. Preferably, the name of the first drive letter can be "quick access", "quick display" or "frequently used files", etc., to provide simple and clear prompts for users.
优选的,所述第一盘符的访问权限为只读,剩余空间为0。这样设置的好处在于,避免用户对第一盘符内的文件进行操作而影响MTP应答端原有的存储目录结构,保证MTP应答端中文件存储的稳定性和安全性。Preferably, the access authority of the first drive letter is read-only, and the remaining space is 0. The advantage of this setting is that it prevents the user from affecting the original storage directory structure of the MTP response terminal by operating the files in the first drive letter, and ensures the stability and security of file storage in the MTP response terminal.
步骤103、在接收到MTP发起端发送的针对预设虚拟目录结构的访问请求时,向MTP发起端反馈预设虚拟目录结构中的文件夹信息,以使MTP发起端显示相应的文件夹。Step 103: When receiving the access request for the preset virtual directory structure sent by the MTP initiator, feed back folder information in the preset virtual directory structure to the MTP initiator, so that the MTP initiator displays corresponding folders.
示例性的,文件夹信息可以是文件夹名称,也可以是文件夹句柄。文件夹信息可以封装在数据包(Package)中,将包含文件夹信息的数据包反馈至MTP发起端,MTP发起端通过解析该数据包,并显示与文件夹信息对应的文件夹。例如,预设虚拟目录结构中的文件夹信息包括图片、视频、音频、文档、安装包、压缩包、微信收发文件、QQ收发文件、邮件收发文件和最近更改,则在MTP发起端的屏幕上可同时显示这些文件夹。Exemplarily, the folder information may be a folder name or a folder handle. The folder information can be encapsulated in a data packet (Package), and the data packet containing the folder information is fed back to the MTP originator, and the MTP originator parses the data packet and displays the folder corresponding to the folder information. For example, the folder information in the preset virtual directory structure includes pictures, videos, audios, documents, installation packages, compressed packages, WeChat sending and receiving files, QQ sending and receiving files, email sending and receiving files, and recent changes, then on the screen of the MTP initiator, you can These folders are also displayed.
步骤104、在接收到MTP发起端针对所显示的目标文件夹的访问请求时,获取与目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给MTP发起端,以使MTP发起端显示相应的文件。Step 104, when receiving the access request from the MTP initiator for the displayed target folder, obtain the file handle of the file corresponding to the target folder, and feed back the acquired file handle to the MTP initiator, so that the MTP can initiate The corresponding file is displayed on the terminal.
示例性的,可通过作用于目标文件夹的预设操作(如点击、长按或双击等形式的操作)来发起对目标文件夹对应的文件的访问请求。例如,用户双击图片文件夹时,MTP发起端会针对图片文件夹向MTP应答端发送访问请求,MTP应答端获取所有图片文件的文件句柄并反馈给MTP发起端,则在MTP发起端的屏幕上可以显示所有图片文件。Exemplarily, an access request to the file corresponding to the target folder may be initiated through a preset operation (such as an operation in the form of clicking, long pressing, or double-clicking) acting on the target folder. For example, when a user double-clicks a picture folder, the MTP initiator will send an access request to the MTP responder for the picture folder, and the MTP responder will obtain the file handles of all picture files and feed them back to the MTP initiator, then the MTP initiator can view the file on the screen. Display all image files.
本发明实施例中提供的文件显示方法,在接收到MTP发起端发送的第一消息时,反馈MTP应答端的包含预设分类文件夹的预设虚拟目录结构的访问接口,并在接收到MTP发起端发送的针对预设虚拟目录结构的访问请求时,向MTP发起端反馈相应的文件夹信息,以使MTP发起端显示相应的文件夹。通过采用上述技术方案,可为用户提供预设分类的文件夹的快捷访问接口,方便用户快速访问到自己感兴趣的分类的文件,提高文件访问及显示的效率。The file display method provided in the embodiment of the present invention, when receiving the first message sent by the MTP initiating end, feeds back the access interface of the preset virtual directory structure of the MTP responding end that contains the preset classification folder, and receives the MTP initiating When the access request for the preset virtual directory structure is sent by the terminal, the corresponding folder information is fed back to the MTP initiator, so that the MTP initiator displays the corresponding folder. By adopting the above technical solution, the user can be provided with a quick access interface of folders with preset categories, which is convenient for the user to quickly access the files of the category they are interested in, and improves the efficiency of file access and display.
在上述实施例的基础上,在接收到所述MTP发起端针对所显示的目标文件夹的访问请求时,获取与所述目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件可包括以下任意一种或多种:On the basis of the above embodiments, when receiving the MTP initiator's access request for the displayed target folder, obtain the file handle of the file corresponding to the target folder, and feed back the obtained file handle To the MTP originator, so that the MTP originator displays the corresponding file may include any one or more of the following:
1、在接收到所述MTP发起端针对所显示的第一文件夹的访问请求时,获取所述第一文件夹对应的文件类型;在所述MTP应答端的存储目录结构中查找与所述文件类型相匹配的文件,并将所查找到的文件对应的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。文件类型可包括图片、视频、音频、文档、安装包、压缩包等。示例性的,以文件类型为图片为例,可通过图片文件的扩展名(如.jpg,.bmp,.gif,.jpeg以及.GIFf等)在存储目录结构中进行查找。1. When receiving an access request from the MTP initiator for the displayed first folder, obtain the file type corresponding to the first folder; search for the file in the storage directory structure of the MTP responder type matching files, and feed back the file handle corresponding to the found file to the MTP initiator, so that the MTP initiator displays the corresponding file. File types may include pictures, videos, audios, documents, installation packages, compressed packages, etc. Exemplarily, taking the file type as a picture as an example, the storage directory structure can be searched through the extension of the picture file (such as .jpg, .bmp, .gif, .jpeg, and .GIFf, etc.).
2、在接收到所述MTP发起端针对所显示的第二文件夹的访问请求时,获取所述第二文件夹在所述MTP应答端的存储目录结构中对应的存储路径;获取所述存储路径中包含的文件的文件句柄,并将所获取到的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。以微信收发文件为例,此类文件通常存储在微信应用程序对应的目录下,但往往存在文件夹嵌套的情况,因此,用户在存储目录结构中查找微信收发文件时会非常麻烦,往往需要打开多个文件夹或多层文件夹才能找到,费时费力,而本发明实施例中可将预设虚拟目录结构中的第二文件夹与文件在存储目录结构中对应的存储路径建立关联,从而当用户访问第二文件夹时,MTP应答端可直接到相应的存储路径中找到文件并获取文件句柄反馈给MTP发起端,即直接获取微信收发文件在存储目录结构中的存储路径并获取文件句柄反馈给MTP发起端,从而实现快速查看微信收发文件。2. When receiving the access request of the MTP initiator for the displayed second folder, obtain the storage path corresponding to the second folder in the storage directory structure of the MTP response end; obtain the storage path The file handle of the file contained in , and feed back the obtained file handle to the MTP initiator, so that the MTP initiator displays the corresponding file. Take WeChat sending and receiving files as an example, such files are usually stored in the directory corresponding to the WeChat application, but there are often nested folders. Therefore, it is very troublesome for users to find WeChat sending and receiving files in the storage directory structure, and often requires It takes time and effort to open multiple folders or multi-layer folders to find, but in the embodiment of the present invention, the second folder in the preset virtual directory structure can be associated with the corresponding storage path of the file in the storage directory structure, so that When the user accesses the second folder, the MTP responder can directly find the file in the corresponding storage path and obtain the file handle to feed back to the MTP initiator, that is, directly obtain the storage path of the WeChat send and receive file in the storage directory structure and obtain the file handle Feedback to the MTP initiator, so as to quickly view the files sent and received by WeChat.
3、在接收到所述MTP发起端针对所显示的第三文件夹的访问请求时,获取所述第三文件夹对应的文件属性的预设范围,所述文件属性包括修改时间、访问时间或文件大小;在所述MTP应答端的存储目录结构中查找与所述预设范围相匹配的文件,并将所查找到的文件对应的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。其中,预设范围可以是文件数目范围,可以是时间的起始和结束范围,还可以是文件大小的数值范围等。例如,文件数目范围是10,文件属性为修改时间时,可显示最近修改的10个文件。又如时间的起始和结束范围为24小时内,文件属性为访问时间,则可显示最近24小时内访问过的文件。再如文件大小的数值范围为500M以上,文件属性为文件大小,则可显示所有容量大小在500M以上的文件,方便用户集中查看占用存储空间较多的文件。3. When receiving an access request from the MTP initiator for the displayed third folder, obtain a preset range of file attributes corresponding to the third folder, where the file attributes include modification time, access time, or File size; search for files matching the preset range in the storage directory structure of the MTP response end, and feed back the file handle corresponding to the found file to the MTP initiator, so that the MTP initiates The corresponding file is displayed on the terminal. Wherein, the preset range may be the range of the number of files, the start and end range of the time, or the numerical range of the file size, etc. For example, if the file number range is 10 and the file attribute is modification time, the 10 most recently modified files can be displayed. Another example is that the start and end range of the time is within 24 hours, and the file attribute is the access time, then the files accessed within the last 24 hours can be displayed. If the value range of the file size is above 500M, and the file attribute is file size, all files with a capacity above 500M can be displayed, which is convenient for users to centrally view files that occupy a large amount of storage space.
以上提供了显示三种不同类型的文件夹的具体方式,可根据各自的特点选择获取文件句柄的方式,从而达到显示不同类型文件夹所对应的文件的目的。The specific methods for displaying three different types of folders are provided above, and the method of obtaining file handles can be selected according to their respective characteristics, so as to achieve the purpose of displaying files corresponding to different types of folders.
为了加强对本发明实施例的理解,下面以MTP发起端为PC,MTP应答端为智能手机为例进行进一步的说明。其中,智能手机可以是装载Android操作系统的手机。In order to strengthen the understanding of the embodiment of the present invention, further description will be made below by taking the MTP initiator as a PC and the MTP responder as an example. Wherein, the smart phone may be a mobile phone loaded with an Android operating system.
首先,对MTP协议栈进行介绍,图2为本发明实施例提供的一种MTP协议栈示意图,MTP协议栈由下到上分别是物理层、传输层和命令层。First, the MTP protocol stack is introduced. FIG. 2 is a schematic diagram of an MTP protocol stack provided by an embodiment of the present invention. The MTP protocol stack includes a physical layer, a transport layer, and a command layer from bottom to top.
Pyshical Layer(物理层):物理层在MTP协议中用来传输数据。目前有三种物理层可供MTP使用。它们分别是USB、网际协议(Internet Protocol,IP)和蓝牙(Bluetooth,BT)。USB的主要特点是传输文件及同步媒体文件时速度快,而且可以边工作边充电,这是目前用的最多的一种方式;基于IP的MTP(简称MTP/IP)将通过UPnP来匹配和发现设备,它是家庭网络中较理想的传输方式;Bluetooth即MTP/BT比较省电,但同时也是速度最慢的一种传输方式,应用较少。因此,本发明实施例优选采用USB方式。Pyshical Layer (physical layer): The physical layer is used to transmit data in the MTP protocol. There are currently three physical layers available for MTP. They are USB, Internet Protocol (Internet Protocol, IP) and Bluetooth (Bluetooth, BT) respectively. The main feature of USB is that it is fast when transferring files and synchronizing media files, and it can be charged while working. It is an ideal transmission method in the home network; Bluetooth, that is, MTP/BT, is more power-saving, but it is also the slowest transmission method and has fewer applications. Therefore, the embodiment of the present invention preferably adopts the USB mode.
传输层:在MTP中,数据传输格式遵循图片传输协议(Picture TransferProtocol,PTP)(USB Still Image Class,描述USB静态图像捕捉行为)。Transport layer: In MTP, the data transmission format follows the Picture Transfer Protocol (Picture Transfer Protocol, PTP) (USB Still Image Class, describing USB still image capture behavior).
命令层:实现了MTP协议中的各种命令,具体可参见MTP Spec中的相关描述。Command layer: implements various commands in the MTP protocol, for details, please refer to the relevant description in the MTP Spec.
MTP采用命令-应答方式来工作(Initator发送命令给Responder处理,Responser反馈处理结果),这种方式的主要特点有:所有MTP命令均以Package(数据包)的方式在设备两端进行传递。Initiator必须接收到前一条消息的处理结果(不论是成功还是超时)后,才能发送下一条消息。MTP works in a command-response mode (Initator sends commands to Responder for processing, and Responder feeds back processing results). The main features of this mode are: all MTP commands are transmitted at both ends of the device in the form of Package (data packet). The Initiator must receive the processing result of the previous message (either success or timeout) before sending the next message.
以PC通过MTP打开一个文件为例,图3为本发明实施例提供的一种MTP命令处理流程示意图,默认的MTP命令处理流程为:手机端MTP启动后,MtpServer.cpp中的MtpServer::run()会通过read()不断地从"/dev/mtp_usb"中读取出"PC发来的消息"。read()在读取到PC来的消息之后,会交给MtpServer::handleRequest()进行处理。根据"PC读取文件内容"的消息的ID做不同的处理,常用的ID包括:Taking PC to open a file through MTP as an example, Fig. 3 is a schematic diagram of a kind of MTP command processing flow provided by the embodiment of the present invention, the default MTP command processing flow is: after the mobile terminal MTP starts, MtpServer::run in MtpServer.cpp () will continuously read "messages from PC" from "/dev/mtp_usb" through read(). After read() reads the message from the PC, it will be handed over to MtpServer::handleRequest() for processing. Different processing is done according to the ID of the message "PC reads file content". Commonly used IDs include:
MTP_OPERATION_GET_DEVICE_INFOMTP_OPERATION_GET_DEVICE_INFO
MTP_OPERATION_OPEN_SESSIONMTP_OPERATION_OPEN_SESSION
MTP_OPERATION_CLOSE_SESSIONMTP_OPERATION_CLOSE_SESSION
MTP_OPERATION_GET_STORAGE_IDSMTP_OPERATION_GET_STORAGE_IDS
MTP_OPERATION_GET_STORAGE_INFOMTP_OPERATION_GET_STORAGE_INFO
MTP_OPERATION_GET_NUM_OBJECTSMTP_OPERATION_GET_NUM_OBJECTS
MTP_OPERATION_GET_OBJECT_HANDLESMTP_OPERATION_GET_OBJECT_HANDLES
MTP_OPERATION_GET_OBJECT_INFOMTP_OPERATION_GET_OBJECT_INFO
MTP_OPERATION_GET_OBJECTMTP_OPERATION_GET_OBJECT
在打开文件流程中,图3中的"PC读取文件内容"的消息的ID是MTP_OPERATION_GET_OBJECT;因此,它会通过doGetObject()进行处理,doGetObject()会调用getObjectFilePath(),getObjectFilePath()会从MediaProvider的数据库MtpDatabase.java中查找相应的文件,最后通过ioctl()完成文件内容的传递。In the process of opening the file, the ID of the message "PC reads the file content" in Figure 3 is MTP_OPERATION_GET_OBJECT; therefore, it will be processed by doGetObject(), and doGetObject() will call getObjectFilePath(), and getObjectFilePath() will get it from the MediaProvider Find the corresponding file in the database MtpDatabase.java, and finally complete the transfer of the file content through ioctl().
下面对PC和手机之间的交互进行简单介绍:The following is a brief introduction to the interaction between PC and mobile phone:
(1)当手机第一次连接上PC后,Initiator(即PC)首先会发送一个名为GetDeviceInfo的请求以获取手机的信息,这些信息包括手机所支持PTP版本的程度,以百分号表示(默认是100)、所支持的MTP命令(Operation Supported)以及所支持的Event类型等。(1) When the mobile phone is connected to the PC for the first time, the Initiator (that is, the PC) will first send a request named GetDeviceInfo to obtain the information of the mobile phone, which includes the degree of PTP version supported by the mobile phone, expressed in percent signs ( The default is 100), supported MTP commands (Operation Supported), and supported Event types, etc.
(2)PC端会发送OpenSession命令以创建一个会话,该会话一直保持到手机从PC上断开为止。此后所有命令(除GetDeviceInfo命令外)必须在此会话存活期间才能发送。会话在MTP协议中由SessionID来标识,它是一个32位的无符号整型,由PC选择并传给手机。(2) The PC end will send an OpenSession command to create a session, which will be kept until the mobile phone is disconnected from the PC. All subsequent commands (except the GetDeviceInfo command) must be sent while the session is alive. A session is identified by SessionID in the MTP protocol, which is a 32-bit unsigned integer, selected by the PC and sent to the mobile phone.
(3)PC端需要通过GetStorageIDs命令返回某个盘符对应的StorageID。在MTP中,StorageID是一个32位无符号整型,每一个StorageID代表了一个逻辑盘符。PC端可以根据上一步的StorageID号,利用GetStorageInfo操作去获取存储设备的信息,例如剩余存储空间、文件系统类型和访问权限等。(3) The PC side needs to return the StorageID corresponding to a certain drive letter through the GetStorageIDs command. In MTP, StorageID is a 32-bit unsigned integer, and each StorageID represents a logical drive letter. According to the StorageID number in the previous step, the PC can use the GetStorageInfo operation to obtain storage device information, such as remaining storage space, file system type, and access rights.
(4)PC通过GetObjectHandles命令来获取此盘符下的文件和子目录的句柄ObjectHandles(一个Object Handle代表一个文件或目录。该值由Responder生成并保证唯一性)。(4) The PC obtains the handle ObjectHandles of files and subdirectories under this drive letter through the GetObjectHandles command (an Object Handle represents a file or directory. This value is generated by Responder and uniqueness is guaranteed).
(5)PC通过SendObjectInfo命令将文件信息(如文件名及文件大小)等传递给手机。手机需要检查目标目录是否有足够的空间和对应权限。如果一切正常,PC将通过SendObject把数据传递给手机。真正写文件到设备存储空间的则是手机中的Responder。(5) The PC transmits the file information (such as file name and file size) to the mobile phone through the SendObjectInfo command. The mobile phone needs to check whether the target directory has enough space and corresponding permissions. If everything is normal, the PC will pass the data to the mobile phone through SendObject. It is the Responder in the mobile phone that actually writes files to the device storage space.
(6)手机在媒体文件传输完毕后,将信息更新到媒体数据库中。(6) After the transfer of the media file is completed, the mobile phone updates the information into the media database.
本发明实施例中,为了实现快速浏览的目的,主要在命令层进行改进。In the embodiment of the present invention, in order to achieve the purpose of fast browsing, improvements are mainly made at the command layer.
针对上述的(3),当手机收到MTP_OPERATION_GET_NUM_OBJECTS时候,手机端处理的时候,将当前手机内的Storage总数加一,即多返回一个用于快速展示的Storage。即手机原有的Storage对应的盘符为本发明实施例中所述的第二盘符(数目不限),而用于快速展示的Storage对应的盘符为本发明实施例中所述的第一盘符(一般为1个)。For the above (3), when the mobile phone receives MTP_OPERATION_GET_NUM_OBJECTS, the mobile phone will add one to the total number of Storage in the current mobile phone when processing, that is, return one more Storage for quick display. That is, the corresponding drive letter of the original Storage of the mobile phone is the second drive letter (the number is not limited) described in the embodiment of the present invention, and the corresponding drive letter of the Storage used for quick display is the first drive letter described in the embodiment of the present invention. A drive letter (usually 1).
当手机收到MTP_OPERATION_GET_STORAGE_IDS和MTP_OPERATION_GET_STORAGE_INFO时候,手机端解析,如果PC端想访问的是快速展示的Storage的id(即第一盘符),返回虚拟的快速展示Storage的信息:访问权限为只读,剩余空间为0,名称为“快速访问”或者“常用文件”等表明快速展示的存储名称。When the mobile phone receives MTP_OPERATION_GET_STORAGE_IDS and MTP_OPERATION_GET_STORAGE_INFO, the mobile terminal parses, if the PC wants to access the id of the storage that is displayed quickly (that is, the first drive letter), it returns the information of the virtual storage that is quickly displayed: the access permission is read-only, and the remaining The space is 0, and the name is "quick access" or "frequently used files", indicating the storage name for quick display.
针对上述的(4)当手机收到访问请求MTP_OPERATION_GET_OBJECT,当前会话访问的是快速展示的Storage的id,如果是访问的根目录(即针对第一盘符的访问),返回当前虚拟目录结构:图片、视频、文档、音频、安装包、压缩包、最新更改的文件、微信收发文件、QQ收发文件和邮件收发文件。该虚拟目录结构支持用户编辑,用户可以增加目录名称和对应的文件类型或者目录,最近更改的文件,并支持用户修改显示个数。For the above (4) when the mobile phone receives the access request MTP_OPERATION_GET_OBJECT, the current session accesses the storage ID displayed quickly. If it is the root directory of the access (that is, the access to the first drive letter), the current virtual directory structure is returned: picture , video, document, audio, installation package, compressed package, latest changed files, WeChat sending and receiving files, QQ sending and receiving files and email sending and receiving files. The virtual directory structure supports user editing. The user can add directory names and corresponding file types or directories, recently changed files, and supports users to modify the displayed number.
当手机收到访问请求MTP_OPERATION_GET_OBJECT_HANDLES,当前会话访问的是快速展示的Storage的id,如果是访问的目录是图片,在手机的媒体库中查寻所有的图片,并将查寻结果的句柄反馈给PC。如果访问的是视频、文档、音频、安装包、压缩包,改变对应的数据库查寻关键字即可。When the mobile phone receives the access request MTP_OPERATION_GET_OBJECT_HANDLES, the current session accesses the id of the storage that is displayed quickly. If the accessed directory is a picture, search all the pictures in the mobile phone's media library, and feed back the handle of the search result to the PC. If the access is video, document, audio, installation package, compressed package, just change the corresponding database search keyword.
当手机收到访问请求MTP_OPERATION_GET_OBJECT_HANDLES,当前会话访问的是快速展示的Storage的id,如果是访问的目录是微信收发文件、QQ收发文件、邮件收发文件等,将对应的实际文件目录的句柄反馈给PC。When the mobile phone receives the access request MTP_OPERATION_GET_OBJECT_HANDLES, the current session accesses the storage id that is quickly displayed. If the accessed directory is WeChat send and receive files, QQ send and receive files, email send and receive files, etc., the handle of the corresponding actual file directory will be fed back to the PC .
当手机收到访问请求MTP_OPERATION_GET_OBJECT_HANDLES,当前会话访问的是快速展示的Storage的id,如果是访问的目录是最近更改的文档,根据用户设置的显示个数,在手机的媒体库中查寻最近修改的文件,并将查寻结果的句柄反馈给PC。When the mobile phone receives the access request MTP_OPERATION_GET_OBJECT_HANDLES, the current session accesses the id of the storage that is quickly displayed. If the accessed directory is the recently changed document, search for the recently modified file in the mobile phone’s media library according to the number of displayed files set by the user. , and feed back the handle of the search result to the PC.
图4为本发明实施例提供的一种文件显示方法的流程示意图,图4中示出了本发明实施例中的MTP发起端和MTP应答端之间的交互过程。FIG. 4 is a schematic flowchart of a file display method provided by an embodiment of the present invention, and FIG. 4 shows an interaction process between an MTP initiator and an MTP responder in an embodiment of the present invention.
步骤401、MTP发起端在检测到与MTP应答端建立连接后,向MTP应答端发送设备信息获取请求。In step 401, after the MTP initiator detects that it has established a connection with the MTP responder, it sends a device information acquisition request to the MTP responder.
步骤402、MTP应答端向MTP发起端反馈设备信息。In step 402, the MTP responder feeds back device information to the MTP initiator.
步骤403、MTP发起端创建会话,并向MTP应答端发送盘符获取命令。Step 403, the MTP initiator creates a session, and sends a drive letter acquisition command to the MTP responder.
步骤404、MTP应答端向MTP发起端反馈预设虚拟目录结构的第一盘符和存储目录结构的第二盘符。Step 404: The MTP responder feeds back the first drive letter of the preset virtual directory structure and the second drive letter of the storage directory structure to the MTP initiator.
步骤405、MTP发起端在屏幕上显示第一盘符和第二盘符,在检测到用户双击第一盘符时,向MTP应答端发送针对预设虚拟目录结构的第一访问请求。Step 405: The MTP initiator displays the first drive letter and the second drive letter on the screen, and sends a first access request for the preset virtual directory structure to the MTP responder when detecting that the user double-clicks the first drive letter.
需要说明的是,用户也可通过双击第二盘符来访问其中的文件或文件夹。本发明实施例以双击为例,但不限于双击的方式,还可以有其他方式。It should be noted that the user can also double-click the second drive letter to access the files or folders therein. The embodiment of the present invention takes double-click as an example, but it is not limited to the double-click manner, and there may be other manners.
步骤406、MTP应答端根据第一访问请求向MTP发起端反馈预设虚拟目录结构中的文件夹信息。Step 406: The MTP responder feeds back folder information in the preset virtual directory structure to the MTP initiator according to the first access request.
步骤407、MTP发起端根据该文件夹信息显示预设虚拟目录结构对应的所有文件夹,在检测到用户双击目标文件夹时,向MTP应答端发送针对目标文件夹的第二访问请求。Step 407: The MTP initiator displays all folders corresponding to the preset virtual directory structure according to the folder information, and sends a second access request for the target folder to the MTP responder when detecting that the user double-clicks the target folder.
步骤408、MTP应答端根据第二访问请求获取相应的文件句柄并反馈给MTP发起端。Step 408: The MTP responder acquires the corresponding file handle according to the second access request and feeds it back to the MTP initiator.
步骤409、MTP发起端根据接收到的文件句柄显示相应的文件。Step 409, the MTP initiator displays the corresponding file according to the received file handle.
由以上内容可以看出,本发明实施例可通过增加在MTP发起端显示的盘符的方式,来显示预设虚拟目录结构中的文件夹及文件,从而提供更加友好的展示,让用户能够快速找到文件,提高文件访问效率,同时不影响原来的存储目录结构。It can be seen from the above that the embodiment of the present invention can display the folders and files in the preset virtual directory structure by adding the drive letter displayed on the MTP initiator, thereby providing a more friendly display and allowing users to quickly Find files and improve file access efficiency without affecting the original storage directory structure.
图5为本发明实施例提供的一种文件显示装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行文件显示方法来进行文件显示。如图5所示,该装置包括:FIG. 5 is a structural block diagram of a file display device provided by an embodiment of the present invention. The device can be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and can display files by executing a file display method. As shown in Figure 5, the device includes:
消息接收模块501,用于接收媒体传输协议MTP发起端发送的第一消息;A message receiving module 501, configured to receive the first message sent by the media transfer protocol MTP initiator;
访问接口反馈模块502,用于根据所述第一消息向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口,其中,所述预设虚拟目录结构中包含预设分类的文件夹;The access interface feedback module 502 is configured to feed back the access interface of the preset virtual directory structure of the MTP responder to the MTP initiator according to the first message, wherein the preset virtual directory structure includes folders of preset categories ;
文件夹信息反馈模块503,用于在接收到所述MTP发起端发送的针对所述预设虚拟目录结构的访问请求时,向所述MTP发起端反馈所述预设虚拟目录结构中的文件夹信息,以使所述MTP发起端显示相应的文件夹;Folder information feedback module 503, configured to feed back folders in the preset virtual directory structure to the MTP initiator when receiving an access request for the preset virtual directory structure sent by the MTP initiator information, so that the MTP initiator displays the corresponding folder;
文件句柄反馈模块504,用于在接收到所述MTP发起端针对所显示的目标文件夹的访问请求时,获取与所述目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。The file handle feedback module 504 is configured to acquire the file handle of the file corresponding to the target folder when receiving the access request from the MTP initiator for the displayed target folder, and feed back the acquired file handle to the MTP initiator, so that the MTP initiator displays the corresponding file.
本发明实施例提供的文件显示装置,可为用户提供预设分类的文件夹的快捷访问接口,方便用户快速访问到自己感兴趣的分类的文件,提高文件访问及显示的效率。The file display device provided by the embodiment of the present invention can provide the user with a quick access interface of folders with preset categories, which facilitates the user to quickly access the files of the category they are interested in, and improves the efficiency of file access and display.
可选的,所述访问接口反馈模块还用于在接收MTP发起端发送的第一消息之后,根据所述第一消息向所述MTP发起端反馈MTP应答端的存储目录结构的访问接口。Optionally, the access interface feedback module is further configured to feed back the access interface of the storage directory structure of the MTP responder to the MTP initiator according to the first message after receiving the first message sent by the MTP initiator.
可选的,所述第一消息为盘符获取命令;Optionally, the first message is a drive letter acquisition command;
所述访问接口反馈模块具体用于:根据所述盘符获取命令向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的第一盘符;根据所述盘符获取命令向所述MTP发起端反馈MTP应答端的存储目录结构的第二盘符,所述第二盘符与所述第一盘符不同。The access interface feedback module is specifically configured to: feed back the first drive letter of the preset virtual directory structure of the MTP responder to the MTP initiator according to the drive letter acquisition command; The terminal feeds back the second drive letter of the storage directory structure of the MTP response terminal, where the second drive letter is different from the first drive letter.
可选的,所述文件句柄反馈模块用于:Optionally, the file handle feedback module is used for:
在接收到所述MTP发起端针对所显示的第一文件夹的访问请求时,获取所述第一文件夹对应的文件类型;在所述MTP应答端的存储目录结构中查找与所述文件类型相匹配的文件,并将所查找到的文件对应的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件;或,When receiving the access request from the MTP initiator for the displayed first folder, obtain the file type corresponding to the first folder; search for the file type corresponding to the file type in the storage directory structure of the MTP response end matching file, and feed back the file handle corresponding to the found file to the MTP initiator, so that the MTP initiator displays the corresponding file; or,
在接收到所述MTP发起端针对所显示的第二文件夹的访问请求时,获取所述第二文件夹在所述MTP应答端的存储目录结构中对应的存储路径;获取所述存储路径中包含的文件的文件句柄,并将所获取到的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件;或,When receiving the MTP initiator's access request for the displayed second folder, obtain the storage path corresponding to the second folder in the storage directory structure of the MTP response end; obtain the storage path containing the file handle of the file, and feed back the obtained file handle to the MTP initiator, so that the MTP initiator displays the corresponding file; or,
在接收到所述MTP发起端针对所显示的第三文件夹的访问请求时,获取所述第三文件夹对应的文件属性的预设范围,所述文件属性包括修改时间、访问时间或文件大小;在所述MTP应答端的存储目录结构中查找与所述预设范围相匹配的文件,并将所查找到的文件对应的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。When receiving the access request from the MTP initiator for the displayed third folder, obtain a preset range of file attributes corresponding to the third folder, where the file attributes include modification time, access time or file size ; Search for files matching the preset scope in the storage directory structure of the MTP responder, and feed back the file handle corresponding to the found file to the MTP initiator, so that the MTP initiator displays corresponding files.
可选的,该装置还包括:Optionally, the device also includes:
结构更改模块,用于在接收MTP发起端发送的第一消息之前,根据用户的设置操作对预设虚拟目录结构进行更改,所述设置操作包括增加、减少或修改所述预设虚拟目录结构中包含的预设分类的文件夹。The structure modification module is used to modify the preset virtual directory structure according to the user's setting operation before receiving the first message sent by the MTP initiator, and the setting operation includes adding, reducing or modifying the preset virtual directory structure. Folder containing preset categories.
本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种文件显示方法,该方法包括:An embodiment of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a file display method when executed by a computer processor, and the method includes:
接收媒体传输协议MTP发起端发送的第一消息;receiving the first message sent by the media transfer protocol MTP initiator;
根据所述第一消息向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口,其中,所述预设虚拟目录结构中包含预设分类的文件夹;Feedback an access interface of a preset virtual directory structure of the MTP responder to the MTP initiator according to the first message, wherein the preset virtual directory structure includes folders of preset categories;
在接收到所述MTP发起端发送的针对所述预设虚拟目录结构的访问请求时,向所述MTP发起端反馈所述预设虚拟目录结构中的文件夹信息,以使所述MTP发起端显示相应的文件夹;When receiving the access request for the preset virtual directory structure sent by the MTP initiator, feed back the folder information in the preset virtual directory structure to the MTP initiator, so that the MTP initiator Display the corresponding folder;
在接收到所述MTP发起端针对所显示的目标文件夹的访问请求时,获取与所述目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。When receiving the MTP initiator's access request for the displayed target folder, obtain the file handle of the file corresponding to the target folder, and feed back the acquired file handle to the MTP initiator to Make the MTP initiator display the corresponding file.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks, or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的文件显示方法操作,还可以执行本发明任意实施例所提供的文件显示方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by an embodiment of the present invention, the computer-executable instructions are not limited to the operation of the above-mentioned file display method, and can also execute the file display method provided by any embodiment of the present invention Related operations in .
本发明实施例提供了一种移动终端,该移动终端中可集成本发明实施例提供的移动终端的信息获取装置。图6为本发明实施例提供的一种移动终端的结构示意图。如图6所示,该移动终端可以包括:壳体(图中未示出)、存储器601、中央处理器(CentralProcessing Unit,CPU)602(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU602和所述存储器601设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器601,用于存储可执行程序代码;所述CPU602通过读取所述存储器601中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:An embodiment of the present invention provides a mobile terminal, in which the mobile terminal information acquisition device provided by the embodiment of the present invention can be integrated. FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 6, the mobile terminal may include: a housing (not shown in the figure), a memory 601, a central processing unit (Central Processing Unit, CPU) 602 (also known as a processor, hereinafter referred to as CPU), a circuit board (shown in FIG. not shown in) and power supply circuit (not shown in the figure). The circuit board is placed inside the space surrounded by the housing; the CPU 602 and the memory 601 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal The memory 601 is used to store executable program codes; the CPU 602 executes a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 601, to achieve the following steps:
接收媒体传输协议MTP发起端发送的第一消息;receiving the first message sent by the media transfer protocol MTP initiator;
根据所述第一消息向所述MTP发起端反馈MTP应答端的预设虚拟目录结构的访问接口,其中,所述预设虚拟目录结构中包含预设分类的文件夹;Feedback an access interface of a preset virtual directory structure of the MTP responder to the MTP initiator according to the first message, wherein the preset virtual directory structure includes folders of preset categories;
在接收到所述MTP发起端发送的针对所述预设虚拟目录结构的访问请求时,向所述MTP发起端反馈所述预设虚拟目录结构中的文件夹信息,以使所述MTP发起端显示相应的文件夹;When receiving the access request for the preset virtual directory structure sent by the MTP initiator, feed back the folder information in the preset virtual directory structure to the MTP initiator, so that the MTP initiator Display the corresponding folder;
在接收到所述MTP发起端针对所显示的目标文件夹的访问请求时,获取与所述目标文件夹相对应的文件的文件句柄,将所获取的文件句柄反馈给所述MTP发起端,以使所述MTP发起端显示相应的文件。When receiving the MTP initiator's access request for the displayed target folder, obtain the file handle of the file corresponding to the target folder, and feed back the acquired file handle to the MTP initiator to Make the MTP initiator display the corresponding file.
所述移动终端还包括:外设接口603、RF(Radio Frequency,射频)电路605、音频电路606、扬声器611、电源管理芯片608、输入/输出(I/O)子系统609、触摸屏612、其他输入/控制设备610以及外部端口604,这些部件通过一个或多个通信总线或信号线607来通信。The mobile terminal also includes: peripheral interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio circuit 606, speaker 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other Input/control devices 610 and external ports 604 , these components communicate via one or more communication buses or signal lines 607 .
应该理解的是,图示移动终端600仅仅是移动终端的一个范例,并且移动终端600可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 600 is only an example of a mobile terminal, and the mobile terminal 600 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于触摸操作处理的移动终端进行详细的描述,该移动终端以手机为例。The mobile terminal used for touch operation processing provided by this embodiment will be described in detail below, and the mobile terminal is a mobile phone as an example.
存储器601,所述存储器601可以被CPU602、外设接口603等访问,所述存储器601可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 601, the memory 601 can be accessed by the CPU 602, the peripheral interface 603, etc., the memory 601 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口603,所述外设接口603可以将设备的输入和输出外设连接到CPU602和存储器601。Peripheral interface 603 , which can connect the input and output peripherals of the device to CPU 602 and memory 601 .
I/O子系统609,所述I/O子系统609可以将设备上的输入输出外设,例如触摸屏612和其他输入/控制设备610,连接到外设接口603。I/O子系统609可以包括显示控制器6091和用于控制其他输入/控制设备610的一个或多个输入控制器6092。其中,一个或多个输入控制器6092从其他输入/控制设备610接收电信号或者向其他输入/控制设备610发送电信号,其他输入/控制设备610可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器6092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 609 , the I/O subsystem 609 can connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610 , to the peripheral interface 603 . I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610 . Among them, one or more input controllers 6092 receive electrical signals from or send electrical signals to other input/control devices 610, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 6092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏612,所述触摸屏612是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 612, the touch screen 612 is an input interface and an output interface between the user's mobile terminal and the user, and displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统609中的显示控制器6091从触摸屏612接收电信号或者向触摸屏612发送电信号。触摸屏612检测触摸屏上的接触,显示控制器6091将检测到的接触转换为与显示在触摸屏612上的用户界面对象的交互,即实现人机交互,显示在触摸屏612上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or sends electrical signals to the touch screen 612 . The touch screen 612 detects the contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 612, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 612 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touch screen.
RF电路605,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路605接收并发送RF信号,RF信号也称为电磁信号,RF电路605将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路605可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 605 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 605 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.
音频电路606,主要用于从外设接口603接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器611。The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603 , convert the audio data into electrical signals, and send the electrical signals to the speaker 611 .
扬声器611,用于将手机通过RF电路605从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 611 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 605 into sound and play the sound to the user.
电源管理芯片608,用于为CPU602、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 608 is used for power supply and power management for the hardware connected to the CPU 602 , the I/O subsystem and the peripheral interface.
本发明实施例提供的移动终端,可为用户提供预设分类的文件夹的快捷访问接口,方便用户快速访问到自己感兴趣的分类的文件,提高文件访问及显示的效率。The mobile terminal provided by the embodiment of the present invention can provide the user with a quick access interface of preset classified folders, which facilitates the user to quickly access the classified files of interest and improves the efficiency of file access and display.
上述实施例中提供的文件显示装置、计算机可读存储介质及移动终端可执行本发明任意实施例所提供的文件显示方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的文件显示方法。The file display device, computer-readable storage medium, and mobile terminal provided in the above embodiments can execute the file display method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the file display method provided by any embodiment of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710329994.5A CN107168905B (en) | 2017-05-11 | 2017-05-11 | File display method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710329994.5A CN107168905B (en) | 2017-05-11 | 2017-05-11 | File display method and device, storage medium and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107168905A true CN107168905A (en) | 2017-09-15 |
| CN107168905B CN107168905B (en) | 2020-08-21 |
Family
ID=59814846
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710329994.5A Expired - Fee Related CN107168905B (en) | 2017-05-11 | 2017-05-11 | File display method and device, storage medium and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107168905B (en) |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107577822A (en) * | 2017-10-13 | 2018-01-12 | 广东欧珀移动通信有限公司 | A data synchronization method, data synchronization device and mobile terminal |
| CN107770265A (en) * | 2017-10-17 | 2018-03-06 | 广东欧珀移动通信有限公司 | A kind of method of data synchronization, data synchronization unit and mobile terminal |
| CN109376126A (en) * | 2018-09-26 | 2019-02-22 | Oppo广东移动通信有限公司 | A file or folder processing method, mobile terminal and storage medium |
| CN109617883A (en) * | 2018-12-20 | 2019-04-12 | 努比亚技术有限公司 | A kind of mobile terminal and its with computer shared file method, apparatus and storage medium |
| CN109656880A (en) * | 2018-12-20 | 2019-04-19 | 努比亚技术有限公司 | A kind of mirror file system decoupling method and device, mobile terminal and storage medium |
| CN109710576A (en) * | 2018-12-29 | 2019-05-03 | 努比亚技术有限公司 | Method, terminal and the storage medium of document presentation |
| CN109981881A (en) * | 2019-01-21 | 2019-07-05 | 华为技术有限公司 | A kind of method and electronic equipment of image classification |
| CN110008184A (en) * | 2019-03-29 | 2019-07-12 | 维沃移动通信有限公司 | A file processing method and electronic device |
| CN110019040A (en) * | 2018-09-26 | 2019-07-16 | Oppo广东移动通信有限公司 | A kind of file processing method, mobile terminal and storage medium |
| CN110263077A (en) * | 2019-06-25 | 2019-09-20 | 努比亚技术有限公司 | Method, mobile terminal and the storage medium of file in a kind of acquisition mobile terminal |
| CN110795368A (en) * | 2018-08-03 | 2020-02-14 | 中兴通讯股份有限公司 | Implementation method, device, system, mobile terminal and display terminal for file presentation |
| CN110865981A (en) * | 2019-11-12 | 2020-03-06 | 广州三星通信技术研究有限公司 | File access method for mobile terminal and mobile terminal thereof |
| CN111291003A (en) * | 2020-01-21 | 2020-06-16 | 浙江工商大学 | Data reading method and device and electronic equipment |
| CN111400258A (en) * | 2020-03-20 | 2020-07-10 | 深圳市凯沃尔电子有限公司 | Data file storage method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090138492A1 (en) * | 2007-11-27 | 2009-05-28 | Samsung Electronics Co., Ltd. | Method and apparatus to control media transfer protocol device to manage media file |
| CN102289451A (en) * | 2011-06-17 | 2011-12-21 | 奇智软件(北京)有限公司 | Method and device for searching files or folders |
| CN105224308A (en) * | 2015-08-18 | 2016-01-06 | 杭州士兰微电子股份有限公司 | The method and apparatus of playlist is set up for MTP equipment |
| CN106095851A (en) * | 2016-06-03 | 2016-11-09 | 广东欧珀移动通信有限公司 | A directory file display method, device and mobile terminal |
| CN106484832A (en) * | 2016-09-30 | 2017-03-08 | 福州瑞芯微电子股份有限公司 | Assume the method and system of project set |
-
2017
- 2017-05-11 CN CN201710329994.5A patent/CN107168905B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090138492A1 (en) * | 2007-11-27 | 2009-05-28 | Samsung Electronics Co., Ltd. | Method and apparatus to control media transfer protocol device to manage media file |
| CN102289451A (en) * | 2011-06-17 | 2011-12-21 | 奇智软件(北京)有限公司 | Method and device for searching files or folders |
| CN105224308A (en) * | 2015-08-18 | 2016-01-06 | 杭州士兰微电子股份有限公司 | The method and apparatus of playlist is set up for MTP equipment |
| CN106095851A (en) * | 2016-06-03 | 2016-11-09 | 广东欧珀移动通信有限公司 | A directory file display method, device and mobile terminal |
| CN106484832A (en) * | 2016-09-30 | 2017-03-08 | 福州瑞芯微电子股份有限公司 | Assume the method and system of project set |
Cited By (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107577822B (en) * | 2017-10-13 | 2020-04-10 | Oppo广东移动通信有限公司 | Data synchronization method, data synchronization device and mobile terminal |
| CN107577822A (en) * | 2017-10-13 | 2018-01-12 | 广东欧珀移动通信有限公司 | A data synchronization method, data synchronization device and mobile terminal |
| CN107770265A (en) * | 2017-10-17 | 2018-03-06 | 广东欧珀移动通信有限公司 | A kind of method of data synchronization, data synchronization unit and mobile terminal |
| CN107770265B (en) * | 2017-10-17 | 2019-08-23 | Oppo广东移动通信有限公司 | A kind of method of data synchronization, data synchronization unit and mobile terminal |
| CN110795368A (en) * | 2018-08-03 | 2020-02-14 | 中兴通讯股份有限公司 | Implementation method, device, system, mobile terminal and display terminal for file presentation |
| CN110019040A (en) * | 2018-09-26 | 2019-07-16 | Oppo广东移动通信有限公司 | A kind of file processing method, mobile terminal and storage medium |
| CN109376126A (en) * | 2018-09-26 | 2019-02-22 | Oppo广东移动通信有限公司 | A file or folder processing method, mobile terminal and storage medium |
| CN110019040B (en) * | 2018-09-26 | 2022-04-12 | Oppo广东移动通信有限公司 | Folder processing method, mobile terminal and storage medium |
| CN109656880A (en) * | 2018-12-20 | 2019-04-19 | 努比亚技术有限公司 | A kind of mirror file system decoupling method and device, mobile terminal and storage medium |
| CN109617883A (en) * | 2018-12-20 | 2019-04-12 | 努比亚技术有限公司 | A kind of mobile terminal and its with computer shared file method, apparatus and storage medium |
| CN109710576A (en) * | 2018-12-29 | 2019-05-03 | 努比亚技术有限公司 | Method, terminal and the storage medium of document presentation |
| CN109710576B (en) * | 2018-12-29 | 2024-03-19 | 努比亚技术有限公司 | File display method, terminal and storage medium |
| CN109981881A (en) * | 2019-01-21 | 2019-07-05 | 华为技术有限公司 | A kind of method and electronic equipment of image classification |
| US12010257B2 (en) | 2019-01-21 | 2024-06-11 | Huawei Technologies Co., Ltd. | Image classification method and electronic device |
| CN113302904A (en) * | 2019-01-21 | 2021-08-24 | 华为技术有限公司 | Image classification method and electronic equipment |
| WO2020151396A1 (en) * | 2019-01-21 | 2020-07-30 | 华为技术有限公司 | Image classification method and electronic device |
| CN110008184A (en) * | 2019-03-29 | 2019-07-12 | 维沃移动通信有限公司 | A file processing method and electronic device |
| CN110263077A (en) * | 2019-06-25 | 2019-09-20 | 努比亚技术有限公司 | Method, mobile terminal and the storage medium of file in a kind of acquisition mobile terminal |
| CN110865981A (en) * | 2019-11-12 | 2020-03-06 | 广州三星通信技术研究有限公司 | File access method for mobile terminal and mobile terminal thereof |
| CN111291003A (en) * | 2020-01-21 | 2020-06-16 | 浙江工商大学 | Data reading method and device and electronic equipment |
| CN111400258A (en) * | 2020-03-20 | 2020-07-10 | 深圳市凯沃尔电子有限公司 | Data file storage method and device |
| CN111400258B (en) * | 2020-03-20 | 2023-07-14 | 深圳市凯沃尔电子有限公司 | Data file storage method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107168905B (en) | 2020-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107168905B (en) | File display method and device, storage medium and mobile terminal | |
| US8943232B2 (en) | System method for enumerating client devices embedded in a user device during reboot, wake up or restart of user device | |
| US8452927B2 (en) | Distributed storage service systems and architecture | |
| CN109614135B (en) | Device, method and storage device for extracting operating system specific characteristics | |
| CN112119623B (en) | Method for sharing content based on account group and electronic device for executing the method | |
| CN112347048B (en) | Electronic device and method for sharing data thereof | |
| CN104090879A (en) | Picture sharing method, device and system | |
| CN108684206A (en) | A kind of searching method and device | |
| CN106502808B (en) | Method, device and terminal for copying files | |
| CN109284142A (en) | File preloading method and device, electronic equipment and computer readable storage medium | |
| CN104092815A (en) | Method and device for inter-application information interaction based on Android system | |
| US8799542B2 (en) | System and method for providing remote device driver | |
| US20060160569A1 (en) | Cellular phone and portable storage device using the same | |
| CN106933636B (en) | Method, device and terminal device for starting plug-in service | |
| US8824964B2 (en) | System for proximity based ad-hoc data sharing across devices with intuitive interfaces | |
| CN109298956B (en) | File transmission method and device and terminal equipment | |
| US11341095B2 (en) | Electronic device for searching for file information stored in external device and operation method thereof | |
| CN108549695B (en) | Data interaction method and device, terminal equipment and storage medium | |
| CN107463524A (en) | A kind of method and relevant device for accessing data | |
| CN108563752B (en) | Data interaction method, device, terminal device and storage medium | |
| CN111262737A (en) | Port configuration management method and device, storage medium and terminal | |
| CN115576942A (en) | Data processing method, device, equipment and storage medium | |
| CN107330033A (en) | A file search method, device, storage medium and electronic equipment | |
| CN106294553B (en) | Data information sending and envelope information displaying method and device, sound box and terminal sound box | |
| WO2022151903A1 (en) | Distributed file access method, and related device |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200821 |